From fa5cca5cd387570292b02769a4d68f8dad432b4f Mon Sep 17 00:00:00 2001 From: thiloho <123883702+thiloho@users.noreply.github.com> Date: Tue, 29 Apr 2025 05:21:52 +0200 Subject: [PATCH] Adjust light mode hover styles --- src/components/Button.astro | 2 +- src/components/TableOfContents.astro | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Button.astro b/src/components/Button.astro index 586d520..68dc9e5 100644 --- a/src/components/Button.astro +++ b/src/components/Button.astro @@ -9,7 +9,7 @@ interface Props { const { href, variant = "text", title, class: className = "" } = Astro.props; const baseClasses = - "border-transparent border-b-2 p-2 cursor-pointer hover:border-neutral-300 hover:bg-neutral-100 hover:dark:border-neutral-600 hover:dark:bg-neutral-700 active:bg-neutral-200 active:dark:bg-neutral-700 active:border-neutral-300 active:dark:border-neutral-600"; + "border-transparent border-b-2 p-2 cursor-pointer hover:border-neutral-300 hover:bg-neutral-200 hover:dark:border-neutral-600 hover:dark:bg-neutral-700 active:bg-neutral-200 active:dark:bg-neutral-700 active:border-neutral-300 active:dark:border-neutral-600"; const classes = `${baseClasses} ${variant === "icon" && href ? "inline-grid place-content-center" : "inline-block"} ${className}`; --- diff --git a/src/components/TableOfContents.astro b/src/components/TableOfContents.astro index afbd087..d4b293b 100644 --- a/src/components/TableOfContents.astro +++ b/src/components/TableOfContents.astro @@ -14,7 +14,7 @@ const { headings } = Astro.props; >