|
1
|
@media (prefers-color-scheme: dark) { |
|
2
|
:root { |
|
3
|
--primary: #264b5d; |
|
4
|
--primary-fg: #f7f7f7; |
|
5
|
|
|
6
|
--body-fg: #eeeeee; |
|
7
|
--body-bg: #121212; |
|
8
|
--body-quiet-color: #d0d0d0; |
|
9
|
--body-medium-color: #e0e0e0; |
|
10
|
--body-loud-color: #ffffff; |
|
11
|
|
|
12
|
--breadcrumbs-link-fg: #e0e0e0; |
|
13
|
--breadcrumbs-bg: var(--primary); |
|
14
|
|
|
15
|
--link-fg: #81d4fa; |
|
16
|
--link-hover-color: #4ac1f7; |
|
17
|
--link-selected-fg: #6f94c6; |
|
18
|
|
|
19
|
--hairline-color: #272727; |
|
20
|
--border-color: #353535; |
|
21
|
|
|
22
|
--error-fg: #e35f5f; |
|
23
|
--message-success-bg: #006b1b; |
|
24
|
--message-warning-bg: #583305; |
|
25
|
--message-error-bg: #570808; |
|
26
|
|
|
27
|
--darkened-bg: #212121; |
|
28
|
--selected-bg: #1b1b1b; |
|
29
|
--selected-row: #00363a; |
|
30
|
|
|
31
|
--close-button-bg: #333333; |
|
32
|
--close-button-hover-bg: #666666; |
|
33
|
|
|
34
|
color-scheme: dark; |
|
35
|
} |
|
36
|
} |
|
37
|
|
|
38
|
|
|
39
|
html[data-theme="dark"] { |
|
40
|
--primary: #264b5d; |
|
41
|
--primary-fg: #f7f7f7; |
|
42
|
|
|
43
|
--body-fg: #eeeeee; |
|
44
|
--body-bg: #121212; |
|
45
|
--body-quiet-color: #d0d0d0; |
|
46
|
--body-medium-color: #e0e0e0; |
|
47
|
--body-loud-color: #ffffff; |
|
48
|
|
|
49
|
--breadcrumbs-link-fg: #e0e0e0; |
|
50
|
--breadcrumbs-bg: var(--primary); |
|
51
|
|
|
52
|
--link-fg: #81d4fa; |
|
53
|
--link-hover-color: #4ac1f7; |
|
54
|
--link-selected-fg: #6f94c6; |
|
55
|
|
|
56
|
--hairline-color: #272727; |
|
57
|
--border-color: #353535; |
|
58
|
|
|
59
|
--error-fg: #e35f5f; |
|
60
|
--message-success-bg: #006b1b; |
|
61
|
--message-warning-bg: #583305; |
|
62
|
--message-error-bg: #570808; |
|
63
|
|
|
64
|
--darkened-bg: #212121; |
|
65
|
--selected-bg: #1b1b1b; |
|
66
|
--selected-row: #00363a; |
|
67
|
|
|
68
|
--close-button-bg: #333333; |
|
69
|
--close-button-hover-bg: #666666; |
|
70
|
|
|
71
|
color-scheme: dark; |
|
72
|
} |
|
73
|
|
|
74
|
/* THEME SWITCH */ |
|
75
|
.theme-toggle { |
|
76
|
cursor: pointer; |
|
77
|
border: none; |
|
78
|
padding: 0; |
|
79
|
background: transparent; |
|
80
|
vertical-align: middle; |
|
81
|
margin-inline-start: 5px; |
|
82
|
margin-top: -1px; |
|
83
|
} |
|
84
|
|
|
85
|
.theme-toggle svg { |
|
86
|
vertical-align: middle; |
|
87
|
height: 1.5rem; |
|
88
|
width: 1.5rem; |
|
89
|
display: none; |
|
90
|
} |
|
91
|
|
|
92
|
/* |
|
93
|
Fully hide screen reader text so we only show the one matching the current |
|
94
|
theme. |
|
95
|
*/ |
|
96
|
.theme-toggle .visually-hidden { |
|
97
|
display: none; |
|
98
|
} |
|
99
|
|
|
100
|
html[data-theme="auto"] .theme-toggle .theme-label-when-auto { |
|
101
|
display: block; |
|
102
|
} |
|
103
|
|
|
104
|
html[data-theme="dark"] .theme-toggle .theme-label-when-dark { |
|
105
|
display: block; |
|
106
|
} |
|
107
|
|
|
108
|
html[data-theme="light"] .theme-toggle .theme-label-when-light { |
|
109
|
display: block; |
|
110
|
} |
|
111
|
|
|
112
|
/* ICONS */ |
|
113
|
.theme-toggle svg.theme-icon-when-auto, |
|
114
|
.theme-toggle svg.theme-icon-when-dark, |
|
115
|
.theme-toggle svg.theme-icon-when-light { |
|
116
|
fill: var(--header-link-color); |
|
117
|
color: var(--header-bg); |
|
118
|
} |
|
119
|
|
|
120
|
html[data-theme="auto"] .theme-toggle svg.theme-icon-when-auto { |
|
121
|
display: block; |
|
122
|
} |
|
123
|
|
|
124
|
html[data-theme="dark"] .theme-toggle svg.theme-icon-when-dark { |
|
125
|
display: block; |
|
126
|
} |
|
127
|
|
|
128
|
html[data-theme="light"] .theme-toggle svg.theme-icon-when-light { |
|
129
|
display: block; |
|
130
|
} |
|
131
|
|