Skip to content

Commit 78f7cd2

Browse files
committed
Update nav link styles for light and dark themes
1 parent f125b4e commit 78f7cd2

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

src/styles/custom.css

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -360,12 +360,25 @@ h1, h2, h3, h4, h5, h6 {
360360
}
361361

362362
[data-theme='light'] nav[aria-label="Main"] a:hover {
363-
color: oklch(0.5 0.3 285) !important;
364-
background-color: oklch(0.95 0.05 285) !important;
363+
color: oklch(0.15 0 0) !important;
364+
background-color: oklch(0.97 0 0) !important; /* #f5f5f5 neutral gray */
365365
}
366366

367367
[data-theme='light'] nav[aria-label="Main"] a[aria-current="page"] {
368-
color: oklch(0.45 0.22 285) !important;
368+
color: oklch(0.15 0 0) !important;
369+
background-color: oklch(0.97 0 0) !important; /* #f5f5f5 neutral gray */
370+
font-weight: 600;
371+
}
372+
373+
/* Sidebar navigation in dark mode */
374+
[data-theme='dark'] nav[aria-label="Main"] a:hover {
375+
color: oklch(0.98 0 0) !important;
376+
background-color: oklch(0.22 0 0) !important; /* lighter gray for visibility */
377+
}
378+
379+
[data-theme='dark'] nav[aria-label="Main"] a[aria-current="page"] {
380+
color: oklch(0.98 0 0) !important;
381+
background-color: oklch(0.22 0 0) !important; /* lighter gray for visibility */
369382
font-weight: 600;
370383
}
371384

0 commit comments

Comments
 (0)