|
1 | | -:root { |
| 1 | +/* Change :root to target the default color scheme directly */ |
| 2 | +[data-md-color-scheme="default"] { |
2 | 3 | /* ----------------------------------------- |
3 | 4 | LIGHT MODE - Crisp, Framed, Accessible |
4 | 5 | ----------------------------------------- */ |
|
7 | 8 | --md-default-bg-color--lighter: #E2E8F0; |
8 | 9 |
|
9 | 10 | --md-primary-fg-color: #0F172A; /* Deep Navy Header */ |
10 | | - --md-primary-bg-color: #FFFFFF; /* Forces icons/text on header to be white */ |
| 11 | + --md-primary-bg-color: #FFFFFF; |
11 | 12 |
|
12 | 13 | --md-accent-fg-color: #E11D48; /* Crimson Accent */ |
13 | 14 |
|
14 | | - /* Make references/links use the red accent */ |
15 | | - --md-typeset-a-color: var(--md-accent-fg-color); |
| 15 | + /* Dedicated Blue for links/references in Light Mode */ |
| 16 | + --md-typeset-a-color: #0284C7; /* Deep Sky Blue */ |
| 17 | + |
| 18 | + /* Soften the harsh blacks in light mode */ |
| 19 | + --md-text-color: #334155; /* Readable Slate Gray for body text */ |
| 20 | + --md-typeset-color: #0F172A; /* Deep Navy for Headings and Bold text */ |
16 | 21 | } |
17 | 22 |
|
18 | 23 | [data-md-color-scheme="slate"] { |
|
23 | 28 | --md-default-bg-color--light: #1E293B; |
24 | 29 | --md-default-bg-color--lighter: #334155; |
25 | 30 |
|
26 | | - --md-primary-fg-color: #020617; /* Almost-black deep blue for the header */ |
| 31 | + --md-primary-fg-color: #020617; |
27 | 32 | --md-primary-bg-color: #FFFFFF; |
28 | 33 |
|
29 | | - --md-accent-fg-color: #FB7185; /* Glowing Crimson Accent */ |
30 | | - --md-code-bg-color: #090E1A; /* Extra dark code blocks for contrast */ |
| 34 | + --md-accent-fg-color: #FB7185; |
| 35 | + --md-code-bg-color: #090E1A; |
31 | 36 |
|
32 | | - /* Enhance readability of standard text against the midnight background */ |
33 | 37 | --md-text-color: #E2E8F0; |
34 | 38 | --md-typeset-color: #F8FAFC; |
35 | 39 |
|
36 | | - /* Make references/links use the glowing red accent */ |
| 40 | + /* Links/references use the glowing red accent in Dark Mode */ |
37 | 41 | --md-typeset-a-color: var(--md-accent-fg-color); |
38 | 42 | } |
39 | 43 |
|
|
45 | 49 | .md-header { |
46 | 50 | background-color: var(--md-primary-fg-color) !important; |
47 | 51 | box-shadow: none !important; |
48 | | - border-bottom: 0px !important; /* Connect header to tabs */ |
| 52 | + border-bottom: 0px !important; |
49 | 53 | } |
50 | 54 |
|
51 | 55 | /* 2. The Signature Gradient Border */ |
52 | 56 | .md-tabs { |
53 | 57 | background-color: var(--md-primary-fg-color) !important; |
54 | | - /* This creates a sharp Blue-to-Red line across the screen matching your logo */ |
55 | 58 | border-bottom: 2px solid transparent !important; |
56 | 59 | border-image: linear-gradient(to right, #3B82F6, #E30022) 1 !important; |
57 | 60 | } |
58 | 61 |
|
59 | | -/* 3. Sleeker Search Bar (Ensures visibility on dark header) */ |
| 62 | +/* 3. Sleeker Search Bar */ |
60 | 63 | .md-search__input { |
61 | 64 | background-color: rgba(255, 255, 255, 0.1) !important; |
62 | 65 | color: #FFFFFF !important; |
|
66 | 69 | color: rgba(255, 255, 255, 0.7) !important; |
67 | 70 | } |
68 | 71 |
|
69 | | -/* 4. Modern Code Blocks */ |
70 | | -.md-typeset pre > code { |
71 | | - border-radius: 0.5rem; |
| 72 | +/* 4. Modern Code Blocks (Fixed Corner Radius) */ |
| 73 | +.md-typeset pre { |
| 74 | + border-radius: 0.25rem !important; /* Matches the copy button corners */ |
72 | 75 | border: 1px solid var(--md-default-bg-color--lighter); |
73 | 76 | box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); |
74 | 77 | } |
|
81 | 84 | background-color: var(--md-default-bg-color--light); |
82 | 85 | } |
83 | 86 |
|
84 | | -/* 6. Enforce Red Accent on API References & Links */ |
| 87 | +/* 6. Enforce Accent Colors on API References & Links */ |
85 | 88 | .md-typeset a, |
86 | | -.md-typeset a.el { |
| 89 | +.md-typeset .el, |
| 90 | +.md-typeset a.el, |
| 91 | +.md-typeset strong .el, |
| 92 | +.md-typeset code a /* Added this just in case mkdoxy nests links inside code blocks */ { |
87 | 93 | color: var(--md-typeset-a-color) !important; |
88 | 94 | text-decoration: none; |
89 | 95 | transition: opacity 0.2s ease-in-out; |
90 | 96 | } |
91 | 97 |
|
92 | | -/* Slight fade on hover so it feels interactive */ |
93 | 98 | .md-typeset a:hover, |
94 | | -.md-typeset a.el:hover { |
| 99 | +.md-typeset .el:hover { |
95 | 100 | opacity: 0.75; |
96 | 101 | } |
0 commit comments