From 6d863cfa1978ed186fdf812de9d76180b3155765 Mon Sep 17 00:00:00 2001 From: thiloho <123883702+thiloho@users.noreply.github.com> Date: Tue, 29 Apr 2025 05:09:22 +0200 Subject: [PATCH] Increase press visibility on mobile --- src/components/Button.astro | 2 +- src/components/Footer.astro | 2 +- src/components/Header.astro | 2 +- src/components/TableOfContents.astro | 4 ++-- src/layouts/PageLayout.astro | 2 +- src/pages/blog/index.astro | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/Button.astro b/src/components/Button.astro index c83adcf..586d520 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-100 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-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"; const classes = `${baseClasses} ${variant === "icon" && href ? "inline-grid place-content-center" : "inline-block"} ${className}`; --- diff --git a/src/components/Footer.astro b/src/components/Footer.astro index 84cb44f..bb77724 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -1,5 +1,5 @@