Skip to content

Commit 7c3e346

Browse files
committed
almost perfect
1 parent fe6415b commit 7c3e346

1 file changed

Lines changed: 24 additions & 19 deletions

File tree

docs/style/theme.css

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
:root {
1+
/* Change :root to target the default color scheme directly */
2+
[data-md-color-scheme="default"] {
23
/* -----------------------------------------
34
LIGHT MODE - Crisp, Framed, Accessible
45
----------------------------------------- */
@@ -7,12 +8,16 @@
78
--md-default-bg-color--lighter: #E2E8F0;
89

910
--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;
1112

1213
--md-accent-fg-color: #E11D48; /* Crimson Accent */
1314

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 */
1621
}
1722

1823
[data-md-color-scheme="slate"] {
@@ -23,17 +28,16 @@
2328
--md-default-bg-color--light: #1E293B;
2429
--md-default-bg-color--lighter: #334155;
2530

26-
--md-primary-fg-color: #020617; /* Almost-black deep blue for the header */
31+
--md-primary-fg-color: #020617;
2732
--md-primary-bg-color: #FFFFFF;
2833

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;
3136

32-
/* Enhance readability of standard text against the midnight background */
3337
--md-text-color: #E2E8F0;
3438
--md-typeset-color: #F8FAFC;
3539

36-
/* Make references/links use the glowing red accent */
40+
/* Links/references use the glowing red accent in Dark Mode */
3741
--md-typeset-a-color: var(--md-accent-fg-color);
3842
}
3943

@@ -45,18 +49,17 @@
4549
.md-header {
4650
background-color: var(--md-primary-fg-color) !important;
4751
box-shadow: none !important;
48-
border-bottom: 0px !important; /* Connect header to tabs */
52+
border-bottom: 0px !important;
4953
}
5054

5155
/* 2. The Signature Gradient Border */
5256
.md-tabs {
5357
background-color: var(--md-primary-fg-color) !important;
54-
/* This creates a sharp Blue-to-Red line across the screen matching your logo */
5558
border-bottom: 2px solid transparent !important;
5659
border-image: linear-gradient(to right, #3B82F6, #E30022) 1 !important;
5760
}
5861

59-
/* 3. Sleeker Search Bar (Ensures visibility on dark header) */
62+
/* 3. Sleeker Search Bar */
6063
.md-search__input {
6164
background-color: rgba(255, 255, 255, 0.1) !important;
6265
color: #FFFFFF !important;
@@ -66,9 +69,9 @@
6669
color: rgba(255, 255, 255, 0.7) !important;
6770
}
6871

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 */
7275
border: 1px solid var(--md-default-bg-color--lighter);
7376
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
7477
}
@@ -81,16 +84,18 @@
8184
background-color: var(--md-default-bg-color--light);
8285
}
8386

84-
/* 6. Enforce Red Accent on API References & Links */
87+
/* 6. Enforce Accent Colors on API References & Links */
8588
.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 */ {
8793
color: var(--md-typeset-a-color) !important;
8894
text-decoration: none;
8995
transition: opacity 0.2s ease-in-out;
9096
}
9197

92-
/* Slight fade on hover so it feels interactive */
9398
.md-typeset a:hover,
94-
.md-typeset a.el:hover {
99+
.md-typeset .el:hover {
95100
opacity: 0.75;
96101
}

0 commit comments

Comments
 (0)