Skip to content

Commit ef13a13

Browse files
committed
fix dual color on dark theme
1 parent 503c385 commit ef13a13

1 file changed

Lines changed: 15 additions & 9 deletions

File tree

src/css/custom.css

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,12 @@ body {
417417
}
418418

419419
[data-theme="dark"] {
420+
--ifm-background-color: #000000;
421+
--ifm-background-surface-color: #0a0a0a;
422+
--ifm-navbar-background-color: #000000;
423+
--ifm-footer-background-color: #000000;
424+
--ifm-toc-border-color: #2a2a2a;
425+
--ifm-menu-color-background-active: #111111;
420426
--ifm-color-primary: #60a5fa;
421427
--ifm-color-primary-dark: #3b82f6;
422428
--ifm-color-primary-darker: #2563eb;
@@ -428,16 +434,16 @@ body {
428434

429435
/* Global dark theme tokens used across feature pages (courses, broadcasts, sponsors, etc.) */
430436
/* Backgrounds */
431-
--dark-bg-primary: #0b1220;
432-
/* base page background (deep navy) */
433-
--dark-bg-secondary: #0f172a;
437+
--dark-bg-primary: #000000;
438+
/* base page background (black) */
439+
--dark-bg-secondary: #0a0a0a;
434440
/* section alt background */
435-
--dark-bg-tertiary: #111827;
441+
--dark-bg-tertiary: #111111;
436442
/* subtle surfaces */
437443
/* Cards */
438-
--dark-card-bg: #111827;
444+
--dark-card-bg: #111111;
439445
/* card background */
440-
--dark-card-hover-bg: #0f172a;
446+
--dark-card-hover-bg: #1a1a1a;
441447
/* card hover background */
442448
/* Text */
443449
--dark-text-primary: #e5e7eb;
@@ -2099,7 +2105,7 @@ html[data-theme="dark"] {
20992105

21002106
/* TOC inner wrapper — sticky; border-left here so the vertical line
21012107
only spans the height of the TOC content, not the full page */
2102-
.blog-wrapper .col.col--2 > div {
2108+
.blog-wrapper .col.col--2>div {
21032109
position: sticky !important;
21042110
top: calc(var(--ifm-navbar-height, 60px) + 1rem) !important;
21052111
max-height: calc(100vh - var(--ifm-navbar-height, 60px) - 2rem) !important;
@@ -2108,7 +2114,7 @@ html[data-theme="dark"] {
21082114
scrollbar-width: none !important;
21092115
}
21102116

2111-
.blog-wrapper .col.col--2 > div::-webkit-scrollbar {
2117+
.blog-wrapper .col.col--2>div::-webkit-scrollbar {
21122118
display: none !important;
21132119
}
21142120

@@ -2252,7 +2258,7 @@ html[data-theme="dark"] .blog-post-page .markdown h4 {
22522258
border-left: none !important;
22532259
}
22542260

2255-
.blog-wrapper .col.col--2 > div {
2261+
.blog-wrapper .col.col--2>div {
22562262
position: static !important;
22572263
max-height: none !important;
22582264
overflow-y: visible !important;

0 commit comments

Comments
 (0)