From e4cd8e5cc1980dca5b271097431aa3a8c1435c97 Mon Sep 17 00:00:00 2001 From: mrmissx Date: Thu, 14 Sep 2023 15:55:08 +0700 Subject: [PATCH] fix(navigation): remove tap highligt color --- src/app.css | 17 +++++++++++++++-- src/lib/components/HelperButton.svelte | 2 +- src/lib/components/NavigationButton.svelte | 4 ++-- src/lib/components/ScrollHome.svelte | 2 +- 4 files changed, 19 insertions(+), 6 deletions(-) diff --git a/src/app.css b/src/app.css index 18b4b86..ed8dc44 100644 --- a/src/app.css +++ b/src/app.css @@ -1,9 +1,9 @@ -@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap"); - @tailwind base; @tailwind components; @tailwind utilities; +@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap"); + html { scroll-behavior: smooth; } @@ -19,6 +19,19 @@ html { @apply text-zinc-900; @apply dark:text-zinc-100; } + + .nav-button { + -webkit-tap-highlight-color: transparent; + @apply hover:scale-125; + @apply transform; + @apply transition-all; + @apply duration-300; + @apply ease-in-out; + @apply text-zinc-500; + @apply dark:text-zinc-400; + @apply hover:text-zinc-700; + @apply hover:dark:text-zinc-200; + } } ::-webkit-scrollbar { diff --git a/src/lib/components/HelperButton.svelte b/src/lib/components/HelperButton.svelte index f180358..1a79214 100644 --- a/src/lib/components/HelperButton.svelte +++ b/src/lib/components/HelperButton.svelte @@ -31,7 +31,7 @@