1
+ : root {
2
+ --gradient-begin : # 023 ;
3
+ --gradient-end : # 000 ;
4
+ --text-color : # 089 ;
5
+ --form-element-background : # 000 ;
6
+ --table-sort-field-background : # 033 ;
7
+ --progress-bar-color : # 0d0 ;
8
+ --hover-color : # 0aa ;
9
+ --border-color : # 044 ;
10
+ }
11
+
12
+ @media (prefers-color-scheme : light) {
13
+ : root {
14
+ --gradient-begin : white;
15
+ --gradient-end : silver;
16
+ --text-color : black;
17
+ --form-element-background : # FFF ;
18
+ --table-sort-field-background : # EFF ;
19
+ --progress-bar-color : # 151 ;
20
+ }
21
+ }
22
+
1
23
html {
2
24
height : 99% ;
3
25
}
@@ -10,15 +32,12 @@ body {
10
32
}
11
33
12
34
* {
13
- color : # 089 ;
35
+ color : var ( --text-color ) ;
14
36
}
15
37
16
38
body , # colorscheme-panel {
17
39
background : # 023 ;
18
- background : -webkit-linear-gradient (# 023, # 000 );
19
- background : -o-linear-gradient (# 023, # 000 );
20
- background : -moz-linear-gradient (# 023, # 000 );
21
- background : linear-gradient (# 023, # 000 );
40
+ background : linear-gradient (var (--gradient-begin ), var (--gradient-end ));
22
41
background-repeat : no-repeat;
23
42
background-attachment : fixed;
24
43
}
@@ -36,20 +55,20 @@ form#config em {
36
55
display : inline-block;
37
56
vertical-align : top;
38
57
width : 300px ;
39
- margin-left : 10px ;
40
- margin-bottom : 20px ;
58
+ margin-left : 10px ;
59
+ margin-bottom : 20px ;
41
60
}
42
61
43
62
form # config input ,
44
63
form # config textarea {
45
64
vertical-align : top;
46
- border : 1px solid # 044 ;
47
- background-color : # 000 ;
65
+ border : 1px solid var ( --border-color ) ;
66
+ background-color : var ( --form-element-background ) ;
48
67
}
49
68
50
69
form # config select {
51
70
margin-bottom : 10px ;
52
- background-color : # 000 ;
71
+ background-color : var ( --form-element-background ) ;
53
72
width : 280px ;
54
73
}
55
74
@@ -66,18 +85,18 @@ table.data_table tr {
66
85
67
86
table .data_table th ,
68
87
table .data_table td {
69
- border : 1px solid # 044 ;
88
+ border : 1px solid var ( --border-color ) ;
70
89
margin : 0 ;
71
90
padding : 3px ;
72
91
}
73
92
74
93
table .data_table th .data_table-sort ,
75
94
table .data_table th : hover {
76
- background-color : # 023 ;
95
+ background-color : var ( --table-sort-field-background ) ;
77
96
}
78
97
79
98
table .data_table tbody > tr : hover {
80
- background-color : # 033 ;
99
+ background-color : var ( --table-sort-field-background ) ;
81
100
}
82
101
83
102
table .data_table td .breakable-text {
@@ -98,8 +117,8 @@ table.data_table td > a {
98
117
position : relative;
99
118
left : -50% ;
100
119
top : 200px ;
101
- border : solid 1px # 0aa ;
102
- background-color : # 023 ;
120
+ border : solid 1px var ( --border-color ) ;
121
+ background-color : var ( --gradient-end ) ;
103
122
width : 400px ;
104
123
height : 200px ;
105
124
padding : 10px ;
@@ -111,13 +130,13 @@ table.data_table td > a {
111
130
display : none;
112
131
width : 100% ;
113
132
height : 20px ;
114
- border : solid 1px # 099 ;
133
+ border : solid 1px var ( --border-color ) ;
115
134
padding : 1px ;
116
135
}
117
136
118
137
# init-report div .progress > div {
119
138
height : 100% ;
120
- background-color : # 0d0 ;
139
+ background-color : var ( --progress-bar-color ) ;
121
140
}
122
141
123
142
# overview ,
@@ -137,7 +156,7 @@ table.data_table td > a {
137
156
}
138
157
139
158
.widget : hover {
140
- border : solid 1px # 0aa ;
159
+ border : solid 1px var ( --hover-color ) ;
141
160
}
142
161
143
162
.visualization {
@@ -150,7 +169,7 @@ table.data_table td > a {
150
169
}
151
170
152
171
# metric-selector select {
153
- background-color : # 000 ;
172
+ background-color : var ( --form-element-background ) ;
154
173
}
155
174
156
175
# colorscheme-panel {
@@ -174,7 +193,7 @@ table.data_table td > a {
174
193
# colorscheme-panel button , # colorscheme-panel input , # colorscheme-panel textarea , # search-container input {
175
194
font-family : monospace;
176
195
font-size : 12px ;
177
- background-color : # 000 ;
196
+ background-color : var ( --form-element-background ) ;
178
197
border : 1px solid # 0898 ;
179
198
}
180
199
@@ -235,7 +254,7 @@ table.data_table td > a {
235
254
236
255
# flatprofile table th ,
237
256
# flatprofile table td {
238
- border : 1px solid # 044 ;
257
+ border : 1px solid var ( --border-color ) ;
239
258
margin : 0 ;
240
259
padding-left : 2px ;
241
260
padding-right : 2px ;
@@ -247,7 +266,7 @@ table.data_table td > a {
247
266
248
267
# flatprofile table th .sort ,
249
268
# flatprofile table th .sortable : hover {
250
- background-color : # 023 ;
269
+ background-color : var ( --table-sort-field-background ) ;
251
270
}
252
271
253
272
# flatprofile table td {
0 commit comments