Skip to content

Commit

Permalink
fix: colors
Browse files Browse the repository at this point in the history
  • Loading branch information
rxyhn committed Sep 11, 2024
1 parent f3075b1 commit 46cab64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/Drawer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const subpath = pathname.match(/[^/]+/g);
class={cn(
"flex items-center justify-center rounded-full px-3 py-1",
"text-current hover:text-black dark:hover:text-white",
"hover:bg-black/5 dark:hover:bg-white/20",
"hover:bg-black/20 dark:hover:bg-white/20",
"transition-colors duration-300 ease-in-out",
pathname === LINK.HREF || "/" + subpath?.[0] === LINK.HREF
? "pointer-events-none bg-black text-white dark:bg-white dark:text-black"
Expand Down
4 changes: 2 additions & 2 deletions src/components/Header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const subpath = pathname.match(/[^/]+/g);
"transition-colors duration-300 ease-in-out",
pathname === LINK.HREF || "/" + subpath?.[0] === LINK.HREF
? "bg-black text-white dark:bg-white dark:text-black"
: "hover:bg-black/5 hover:text-black dark:hover:bg-white/20 dark:hover:text-white",
: "hover:bg-black/20 hover:text-black dark:hover:bg-white/20 dark:hover:text-white",
)}
>
{LINK.TEXT}
Expand All @@ -52,7 +52,7 @@ const subpath = pathname.match(/[^/]+/g);
class={cn(
"flex md:hidden",
"size-9 rounded-full p-2 items-center justify-center",
"bg-transparent hover:bg-black/5 dark:hover:bg-white/20",
"bg-transparent hover:bg-black/20 dark:hover:bg-white/20",
"stroke-current hover:stroke-black hover:dark:stroke-white",
"border border-black/10 dark:border-white/25",
"transition-colors duration-300 ease-in-out",
Expand Down

0 comments on commit 46cab64

Please sign in to comment.