Skip to content

Commit 394e206

Browse files
committed
Fixing dark mode support
1 parent 320a4f9 commit 394e206

1 file changed

Lines changed: 87 additions & 20 deletions

File tree

ldoc-dark.css

Lines changed: 87 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,120 @@
1+
/* Dark mode styles */
12
@media (prefers-color-scheme: dark) {
23
body {
3-
background-color: #1e1e1e;
4-
color: #d4d4d4;
4+
background-color: #1e1e1e !important;
5+
color: #d4d4d4 !important;
6+
}
7+
8+
#container {
9+
background-color: #1e1e1e !important;
510
}
611

712
#content {
8-
background-color: #252526;
13+
background-color: #252526 !important;
14+
color: #d4d4d4 !important;
15+
}
16+
17+
#main {
18+
background-color: #252526 !important;
19+
color: #d4d4d4 !important;
920
}
1021

1122
#navigation {
12-
background-color: #2d2d30;
23+
background-color: #2d2d30 !important;
24+
border-right: 1px solid #3e3e42 !important;
25+
}
26+
27+
#navigation h1, #navigation h2, #navigation h3 {
28+
color: #ffffff !important;
29+
}
30+
31+
#navigation ul li {
32+
border-bottom: 1px solid #3e3e42 !important;
33+
}
34+
35+
#navigation li.selected {
36+
background-color: #094771 !important;
1337
}
1438

15-
a {
16-
color: #4fc3f7;
39+
a, a:link, a:visited {
40+
color: #4fc3f7 !important;
1741
}
1842

1943
a:hover {
20-
color: #81d4fa;
44+
color: #81d4fa !important;
2145
}
2246

2347
h1, h2, h3, h4, h5, h6 {
24-
color: #ffffff;
48+
color: #ffffff !important;
49+
border-bottom-color: #3e3e42 !important;
2550
}
2651

27-
code, pre {
28-
background-color: #1e1e1e;
29-
border: 1px solid #3e3e42;
30-
color: #d4d4d4;
52+
code {
53+
background-color: #1e1e1e !important;
54+
border: 1px solid #3e3e42 !important;
55+
color: #ce9178 !important;
56+
}
57+
58+
pre {
59+
background-color: #1e1e1e !important;
60+
border: 1px solid #3e3e42 !important;
61+
color: #d4d4d4 !important;
3162
}
3263

3364
table {
34-
border-color: #3e3e42;
65+
border-color: #3e3e42 !important;
66+
background-color: #2d2d30 !important;
3567
}
3668

3769
th {
38-
background-color: #2d2d30;
39-
color: #ffffff;
70+
background-color: #3e3e42 !important;
71+
color: #ffffff !important;
72+
border: 1px solid #3e3e42 !important;
4073
}
4174

4275
td {
43-
border-color: #3e3e42;
76+
border: 1px solid #3e3e42 !important;
77+
background-color: #2d2d30 !important;
78+
color: #d4d4d4 !important;
4479
}
4580

46-
.summary, .section {
47-
background-color: #2d2d30;
81+
tr:hover td {
82+
background-color: #383838 !important;
4883
}
4984

50-
#navigation li.selected {
51-
background-color: #094771;
85+
.summary {
86+
background-color: #2d2d30 !important;
87+
border: 1px solid #3e3e42 !important;
88+
}
89+
90+
.section {
91+
background-color: #252526 !important;
92+
}
93+
94+
dl dt {
95+
color: #4ec9b0 !important;
96+
}
97+
98+
dl dd {
99+
color: #9d9d9d !important;
100+
}
101+
102+
.function_list, .table_list {
103+
border: 1px solid #3e3e42 !important;
104+
}
105+
106+
.param, .field {
107+
color: #9cdcfe !important;
108+
}
109+
110+
.type {
111+
color: #4ec9b0 !important;
112+
}
113+
114+
/* Footer */
115+
#footer {
116+
background-color: #2d2d30 !important;
117+
color: #9d9d9d !important;
118+
border-top: 1px solid #3e3e42 !important;
52119
}
53120
}

0 commit comments

Comments
 (0)