diff --git a/src/routes/App.svelte b/src/routes/App.svelte index d4b71af8..94bcc44d 100644 --- a/src/routes/App.svelte +++ b/src/routes/App.svelte @@ -229,24 +229,24 @@ @@ -319,24 +319,24 @@
@@ -573,7 +573,7 @@ position: relative; } - .nav-links li a { + .nav-links li a, .nav-links li button { color: inherit; text-decoration: none; font-weight: 500; @@ -584,19 +584,33 @@ border-bottom: 2px solid transparent; } - .nav-links li a:hover { + .nav-links li a:hover, .nav-links li button:hover { color: orange; background: rgba(255, 165, 0, 0.05); box-shadow: 0 0 10px rgba(255, 165, 0, 0.1); } - .nav-links li.active a { + .nav-links li.active a, .nav-links li.active button { border-bottom: 2px solid orange; color: orange; background: rgba(255, 165, 0, 0.1); box-shadow: 0 0 15px rgba(255, 165, 0, 0.15); } + /* Make nav buttons visually match links and remove default button chrome */ + .nav-links li button, + .mobile-nav-links li button { + background: none; + border: none; + padding: 0.5rem 0.75rem; + font: inherit; + color: inherit; + display: block; + text-align: left; + cursor: pointer; + border-radius: 8px; + } + /* User Section */ .user-section { display: flex; @@ -704,7 +718,7 @@ gap: 0.5rem; } - .mobile-nav-links li a { + .mobile-nav-links li a, .mobile-nav-links li button { color: white; text-decoration: none; font-weight: 500; @@ -714,12 +728,12 @@ transition: all 0.2s ease; } - .mobile-nav-links li a:hover { + .mobile-nav-links li a:hover, .mobile-nav-links li button:hover { background-color: rgba(255, 165, 0, 0.1); box-shadow: 0 0 15px rgba(255, 165, 0, 0.1); } - .mobile-nav-links li.active a { + .mobile-nav-links li.active a, .mobile-nav-links li.active button { background-color: rgba(255, 165, 0, 0.2); color: orange; box-shadow: 0 0 15px rgba(255, 165, 0, 0.2); diff --git a/src/routes/Theme.svelte b/src/routes/Theme.svelte index d6407ed2..d9e97e93 100644 --- a/src/routes/Theme.svelte +++ b/src/routes/Theme.svelte @@ -1,27 +1,42 @@ - - - - - - setMode("light")}>Light - setMode("dark")}>Dark - resetMode()}>System - - + aria-hidden="true" + /> + Toggle theme + \ No newline at end of file