23
23
* THE POSSIBILITY OF SUCH DAMAGE.
24
24
*/
25
25
26
- html {
26
+ : root {
27
+ --color-primary : # 34AADC ;
28
+ --color-secondary : # 86D9FF ;
29
+ --text-color-inverse : white;
30
+ --text-color-primary : black;
31
+ --text-color-secondary : # 555555 ;
32
+ --text-color-tertiary : # 444444 ;
33
+ --text-color-subtle : # 6c6c71 ;
34
+ --text-color-very-subtle : # 8E8E93 ;
35
+ --heading-color : # 2C98D1 ;
36
+ --link-hover-color : # 0086BF ;
37
+ --button-color-primary : rgb (52 , 170 , 220 );
38
+ --error-text-color : # d24a59 ;
39
+ --benchmark-heading-color : rgb (183 , 183 , 183 );
40
+ --benchmark-error-text-color : # ff8686 ;
41
+ --benchmark-done-result-color : # 4A4A4A ;
42
+ }
43
+
44
+ html , svg text {
27
45
font-family : "Helvetica Neue" , Helvetica, Verdana, sans-serif;
28
46
font-size : 62.5% ;
29
47
font-synthesis : none;
42
60
}
43
61
44
62
::selection {
45
- background-color : # 34AADC ;
46
- color : white ;
63
+ background-color : var ( --color-primary ) ;
64
+ color : var ( --text-color-inverse ) ;
47
65
}
48
66
49
67
main {
@@ -126,13 +144,13 @@ article, .summary {
126
144
}
127
145
128
146
h1 {
129
- color : black ;
147
+ color : var ( --text-color-primary ) ;
130
148
text-align : center;
131
149
}
132
150
133
151
134
152
h2 , h3 , h4 , h5 , h6 {
135
- color : # 2C98D1 ;
153
+ color : var ( --heading-color ) ;
136
154
text-align : left;
137
155
}
138
156
@@ -143,7 +161,7 @@ h4, h5, h6 {
143
161
144
162
p {
145
163
text-align : left;
146
- color : # 555555 ;
164
+ color : var ( --text-color-secondary ) ;
147
165
margin : 0 0 3rem 0 ;
148
166
}
149
167
@@ -152,7 +170,7 @@ h5, h6 {
152
170
}
153
171
154
172
h6 {
155
- color : # 444444 ;
173
+ color : var ( --text-color-tertiary ) ;
156
174
}
157
175
158
176
dt {
@@ -169,12 +187,12 @@ dd {
169
187
170
188
a : link ,
171
189
a : visited {
172
- color : # 34AADC ;
190
+ color : var ( --color-primary ) ;
173
191
}
174
192
175
193
a : hover ,
176
194
a : active {
177
- color : # 0086BF ;
195
+ color : var ( --link-hover-color ) ;
178
196
}
179
197
180
198
# status {
@@ -187,10 +205,10 @@ a.button {
187
205
font-weight : 500 ;
188
206
text-decoration : none;
189
207
font-size : 2rem ;
190
- background-color : rgb ( 52 , 170 , 220 );
191
- background-image : linear-gradient (180deg , rgba (134 , 217 , 255 , 1 ) -80% , rgba (52 , 170 , 220 , 1 ) 100% );
192
- color : rgb ( 255 , 255 , 255 );
193
- border : 1px solid rgb ( 52 , 170 , 220 );
208
+ background-color : var ( --button-color-primary );
209
+ background-image : linear-gradient (180deg , rgba (134 , 217 , 255 , 1 ) -80% , rgb (52 , 170 , 220 ) 100% );
210
+ color : var ( --text-color-inverse );
211
+ border : 1px solid var ( --button-color-primary );
194
212
border-radius : 2px ;
195
213
padding : 0.3rem 9rem 0.5rem ;
196
214
-webkit-touch-callout : none;
@@ -238,7 +256,7 @@ a.button {
238
256
}
239
257
240
258
.error h2 , .error p {
241
- color : # d24a59 ;
259
+ color : var ( --error-text-color ) ;
242
260
margin-bottom : 0 ;
243
261
text-align : center;
244
262
font-weight : 500 ;
@@ -259,17 +277,22 @@ a.button {
259
277
}
260
278
261
279
# result-summary label {
262
- color : # 6c6c71 ;
280
+ color : var ( --text-color-subtle ) ;
263
281
}
264
282
265
283
# result-summary .score {
266
284
font-weight : bold;
267
285
font-size : 4rem ;
268
286
line-height : 1 ;
269
- color : # 34AADC ;
287
+ color : var ( --color-primary ) ;
270
288
font-weight : 500 ;
271
289
}
272
290
291
+ .benchmark .plot svg {
292
+ display : inline-block;
293
+ vertical-align : middle;
294
+ }
295
+
273
296
# result-summary .score .interval {
274
297
display : block;
275
298
font-weight : normal;
@@ -289,30 +312,30 @@ a.button {
289
312
max-width : 20% ;
290
313
min-width : 200px ;
291
314
text-align : left;
292
- color : # 8E8E93 ;
315
+ color : var ( --text-color-very-subtle ) ;
293
316
font-size : 1.6rem ;
294
317
margin : 0 1.6rem 3rem 0 ;
295
318
296
319
}
297
320
298
- .benchmark h4 , .benchmark .result , .benchmark label {
321
+ .benchmark h4 , .benchmark .result , .benchmark label , . benchmark . plot {
299
322
color : transparent;
300
323
background : linear-gradient (160deg , rgba (249 , 249 , 249 , 1 ) 0% , rgba (238 , 238 , 238 , 1 ) 100% );
301
324
border-radius : 3px ;
302
325
}
303
326
304
327
.benchmark h3 {
305
- color : rgb ( 183 , 183 , 183 );
328
+ color : var ( --benchmark-heading-color );
306
329
}
307
330
308
- .benchmark-running h4 , .benchmark-running .result , .benchmark-running label {
309
- color : # 86D9FF ;
310
- background-color : # 86D9FF ;
331
+ .benchmark-running h4 , .benchmark-running .result , .benchmark-running label , . benchmark-running . plot {
332
+ color : var ( --color-secondary ) ;
333
+ background-color : var ( --color-secondary ) ;
311
334
background-image : none;
312
335
}
313
336
314
337
315
- .benchmark-done h3 , .benchmark-done h4 , .benchmark-done .result , .benchmark-done label {
338
+ .benchmark-done h3 , .benchmark-done h4 , .benchmark-done .result , .benchmark-done label , . benchmark-done . plot {
316
339
background-color : transparent;
317
340
background-image : none;
318
341
-webkit-touch-callout : revert;
@@ -322,14 +345,14 @@ a.button {
322
345
user-select : text;
323
346
}
324
347
325
- .benchmark-error h4 , .benchmark-error .result , .benchmark-error label {
326
- color : # ff8686 ;
327
- background-color : # ff8686 ;
348
+ .benchmark-error h4 , .benchmark-error .result , .benchmark-error label , . benchmark-error . plot {
349
+ color : var ( --benchmark-error-text-color ) ;
350
+ background-color : var ( --benchmark-error-text-color ) ;
328
351
background-image : none;
329
352
}
330
353
331
354
.benchmark-error h3 {
332
- color : # ff8686 ;
355
+ color : var ( --benchmark-error-text-color ) ;
333
356
}
334
357
335
358
.benchmark h3 {
@@ -341,11 +364,11 @@ a.button {
341
364
.benchmark-running h3 {
342
365
background-color : transparent;
343
366
background-image : none;
344
- color : # 34AADC ;
367
+ color : var ( --color-primary ) ;
345
368
}
346
369
347
370
.benchmark-done h3 {
348
- color : # 6c6c71 ;
371
+ color : var ( --text-color-subtle ) ;
349
372
}
350
373
351
374
.benchmark h3 a ,
@@ -358,7 +381,7 @@ a.button {
358
381
}
359
382
360
383
.benchmark-done h3 a : hover {
361
- color : # 34AADC ;
384
+ color : var ( --color-primary ) ;
362
385
text-decoration : underline;
363
386
}
364
387
@@ -370,7 +393,7 @@ a.button {
370
393
}
371
394
372
395
.benchmark-done h4 {
373
- color : # 34AADC ;
396
+ color : var ( --color-primary ) ;
374
397
background-color : none;
375
398
}
376
399
@@ -387,19 +410,31 @@ a.button {
387
410
font-weight : bold;
388
411
}
389
412
413
+ # result-summary .benchmark {
414
+ text-align : center;
415
+ max-width : 100% ;
416
+ margin : 0 ;
417
+ margin-left : 1.6rem ;
418
+ }
419
+
390
420
.benchmark-done .result {
391
- color : # 4A4A4A ;
421
+ color : var ( --benchmark-done-result-color ) ;
392
422
}
393
423
394
424
.benchmark label {
395
425
display : block;
396
426
}
397
427
398
428
.benchmark-done label {
399
- color : # 8E8E93 ;
429
+ color : var ( --text-color-very-subtle ) ;
400
430
font-weight : 400 ;
401
431
}
402
432
433
+ .plot svg circle {
434
+ fill : var (--color-primary );
435
+ opacity : 0.8 ;
436
+ }
437
+
403
438
@keyframes fadein {
404
439
from {
405
440
opacity : 0 ;
0 commit comments