Skip to content

Commit

Permalink
fix(navigation): remove tap highligt color
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMissx committed Sep 14, 2023
1 parent 582b624 commit e4cd8e5
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
17 changes: 15 additions & 2 deletions src/app.css
Original file line number Diff line number Diff line change
@@ -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;
}
Expand All @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/HelperButton.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<button
use:clickOutside={() => (helperActive = false)}
on:click|preventDefault={() => (helperActive = !helperActive)}
class="fixed bottom-5 right-5 text-zinc-500 dark:text-zinc-400 hover:scale-125 transform transition-all duration-200 ease-in-out"
class="fixed bottom-5 right-5 nav-button"
aria-label="more info"
>
<svg xmlns="http://www.w3.org/2000/svg" width="2.5rem" height="2.5rem" viewBox="0 0 24 24">
Expand Down
4 changes: 2 additions & 2 deletions src/lib/components/NavigationButton.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<button
disabled={navButtonDisabled[0]}
id="prev"
class="text-zinc-500 dark:text-zinc-400 hover:text-zinc-700 hover:dark:text-zinc-200 w-7 h-w-7 hover:scale-125 transform transition-all duration-300 ease-in-out"
class="w-7 h-w-7 nav-button"
aria-label="back to top"
on:click={() => scrollTo("prev")}
>
Expand All @@ -54,7 +54,7 @@
<button
disabled={navButtonDisabled[1]}
id="next"
class="text-zinc-500 dark:text-zinc-400 hover:text-zinc-700 hover:dark:text-zinc-200 w-7 h-w-7 hover:scale-125 transform transition-all duration-300 ease-in-out"
class="w-7 h-w-7 nav-button"
aria-label="back to top"
on:click={() => scrollTo("next")}
>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/ScrollHome.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<button
class:hidden
class="fixed z-50 left-5 bottom-8 w-8 md:w-10 h-8 md:h-10 text-zinc-500 dark:text-zinc-400 hover:scale-125 transform transition-all duration-300 ease-in-out"
class="fixed z-50 left-5 bottom-5 w-8 md:w-10 h-8 md:h-10 nav-button"
aria-label="back to top"
on:click={redirectHome}
>
Expand Down

0 comments on commit e4cd8e5

Please sign in to comment.