Repository navigation
Expand file tree
/
Copy pathmain.css
More file actions
591 lines (540 loc) · 18.8 KB
/
Copy pathmain.css
File metadata and controls
591 lines (540 loc) · 18.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
/* Codespeed stylesheet.
*
* Selectors are kept stable because the templates and the JavaScript in
* changes.js, timeline.js and comparison.js rely on them (for example
* #content and #plotwrapper are measured to size loading messages).
* Visual values live in the custom properties below; change the look there.
*/
:root {
--font-sans: "Fira Sans", Helvetica, Arial, sans-serif;
--font-mono: "Menlo", "ProFont", "Inconsolata", "Lucida Sans Console", monospace;
--page-bg: #f3f4f6;
--surface: #ffffff;
--surface-alt: #f7f8fa;
--border: #e1e4e8;
--border-strong: #c9ced6;
--text: #1f2328;
--text-muted: #636c76;
--text-faint: #8b949e;
--accent: #2563eb;
--accent-hover: #1d4ed8;
--accent-soft: #e8efff;
--status-red: #FF5640;
--status-red-text: #1f2328;
--status-green: #9FD54D;
--status-green-text: #1f2328;
--status-lightgreen: #c2e927;
--status-lightgreen-text: #1f2328;
--status-yellow: #FFD843;
--status-yellow-text: #1f2328;
--radius: 8px;
--radius-sm: 4px;
--shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
--sidebar-width: 14em;
--gap: 1em;
}
/* Global styles */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body {
font-family: var(--font-sans);
font-size: 16px;
margin: 0;
padding: 0;
color: var(--text);
background-color: var(--page-bg);
}
a:link, a:visited { color: var(--accent); text-decoration: none; }
a:hover, a:focus { color: var(--accent-hover); text-decoration: underline; }
.float-right { float: right; }
.float-left { float: left; }
/* Structural */
div#container {
max-width: 1600px;
margin: 0 auto;
padding: 0 var(--gap);
}
/* Header */
div#title {
display: flex;
align-items: center;
gap: 0.6em;
min-height: 56px;
margin: var(--gap) 0 1.2em;
padding: 0.4em var(--gap);
background-color: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
box-shadow: var(--shadow);
}
div#title a { display: inline-flex; align-items: center; }
div#title img { display: block; height: 40px; padding: 0; margin: 0; }
div#title h2 {
margin: 0;
font-size: 1.3em;
font-weight: 700;
font-style: normal;
letter-spacing: 0.01em;
color: var(--text);
}
ul.inline { margin: 0; padding: 0; }
ul.inline li { display: inline-block; list-style: none; }
ul#links {
margin: 0 0 0 auto;
font-size: 1.1em;
}
ul#links li { margin-left: 0.25em; }
ul#links li a:link, ul#links li a:visited {
display: inline-block;
padding: 0.35em 0.75em;
color: var(--text-muted);
border-radius: var(--radius-sm);
text-decoration: none;
}
ul#links li a:hover, ul#links li a:focus {
color: var(--text);
background-color: var(--surface-alt);
text-decoration: none;
}
div#wrapper { margin: 0; }
/* Section tabs */
div#nav ul {
display: flex;
gap: 0.25em;
padding: 0 0 0 calc(var(--sidebar-width) + 0.8em);
margin-bottom: 0.6em;
border-bottom: 1px solid var(--border);
}
div#nav ul li { background: none; }
div#nav ul li a {
display: block;
padding: 0.5em 1.1em;
margin-bottom: -1px;
color: var(--text-muted);
font-weight: 500;
text-decoration: none;
text-align: center;
border-bottom: 2px solid transparent;
border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
div#nav ul li a:hover { color: var(--text); background-color: var(--surface-alt); }
div#nav ul li.current a {
color: var(--accent);
border-bottom-color: var(--accent);
font-weight: 600;
}
div#workarea { padding: 0; background: none; }
/* Cards */
div#configbar,
div#content,
div.about_content,
.sidebox {
background-color: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
box-shadow: var(--shadow);
}
/* Home page: a centred column with three menu boxes in a row and the
results below them at the same width */
div#presentation {
max-width: 900px;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: var(--gap);
text-align: center;
}
div#presentation > a { display: flex; }
div#presentation div#reports, div#presentation div#historical { grid-column: 1 / -1; }
div#presentation h2, div#presentation h4 { margin-top: 0.2em; margin-bottom: 0.2em; }
div#presentation > a { text-decoration: none; color: inherit; }
div#presentation div {
position: relative;
display: inline-block;
vertical-align: top;
}
div#presentation div.menubox {
flex: 1;
display: block;
margin: 0;
padding: 1em 1em 0.8em;
color: var(--text);
text-align: center;
font-size: 0.95em;
cursor: pointer;
background-color: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
box-shadow: var(--shadow);
transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
div#presentation div.menubox:hover {
border-color: var(--accent);
box-shadow: 0 6px 16px rgba(16, 24, 40, 0.12);
transform: translateY(-2px);
}
div#presentation div.menubox h2 { font-size: 1.1em; font-weight: 600; }
div#presentation div.menubox p { color: var(--text-muted); }
/* The three icons differ in size (98 to 147px wide); scale them to one height */
div#presentation div.menubox p {
min-height: 4.6em;
margin: 0.6em 0 0;
padding-left: 122px;
text-align: left;
background-repeat: no-repeat;
background-position: 0 0.2em;
background-size: auto 65px;
}
div#presentation div#changes p { background-image: url(../images/changes.png); }
div#presentation div#timeline p { background-image: url(../images/timeline.png); }
div#presentation div#comparison p { background-image: url(../images/comparison.png); }
/* Sidebar and content columns */
div#sidebar { width: var(--sidebar-width); float: left; }
div#configbar {
position: relative;
display: flex;
flex-wrap: wrap;
align-items: center;
row-gap: 0.3em;
margin-left: calc(var(--sidebar-width) + 0.8em);
margin-bottom: 0.8em;
padding: 0.7em 1em;
}
div#configbar span { padding: 2px 0; }
div#configbar span.options { padding-right: 1.8em; font-size: 0.9em; white-space: nowrap; }
div#configbar input { margin-right: 0; vertical-align: middle; }
div#configbar select { margin: 0 0.3em; }
div#contentnav { display: flex; gap: 1em; margin-bottom: 0.5em; }
div#contentnav a {
display: inline-flex;
align-items: center;
gap: 0.3em;
font-size: 0.9em;
}
div#contentnav a svg { width: 1.1em; height: 1.1em; }
div#contentnav #next { margin-left: auto; }
div#content, div.about_content {
margin-left: calc(var(--sidebar-width) + 0.8em);
text-align: center;
padding: 1em;
}
div.about_content { text-align: left; max-width: calc(100ch + 2em); }
/* Keep prose readable: wrap paragraphs at roughly 100 characters */
div.about_content p, div.about_content li, div.about_content h2, div.about_content h3 {
max-width: 100ch;
}
.sidebox {
overflow: hidden;
text-overflow: ellipsis;
margin: 0 0 0.8em;
font-size: 0.9em;
}
.boxhead {
margin: 0;
padding: 0;
text-align: left;
background: none;
border-bottom: 1px solid var(--border);
}
.boxhead h2 {
margin: 0;
padding: 0.55em 0.9em;
font-size: 1em;
font-weight: 600;
color: var(--text);
line-height: 1.2;
}
.boxbody { margin: 0; padding: 0.6em 0.9em 0.7em; }
.boxbody ul { list-style: none; margin: 0 0 0.5em; padding: 0 0 0.2em; }
.boxbody ul li { padding: 0.1em 0 0.1em 0.3em; }
.boxbody label { cursor: pointer; }
.boxbody input { margin-left: 0; vertical-align: top; }
#options li { margin-bottom: 0.8em; }
.seriescolor { float: right; margin-top: 3px; height: 12px; width: 12px; border-radius: 2px; }
.compplot-wrap { display: inline-block; }
a.togglefold { color: var(--text); font-weight: 500; }
a.togglefold:hover { text-decoration: none; }
a.togglefold::before {
/* Bootstrap Icons chevron-right (MIT, twbs/icons), coloured via mask */
content: '';
display: inline-block;
width: 0.8em;
height: 0.8em;
margin-right: 0.35em;
vertical-align: -0.05em;
background-color: var(--text-muted);
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' stroke='%23000' stroke-width='1.2' stroke-linejoin='round' d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708'/%3E%3C/svg%3E") no-repeat center / contain;
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' stroke='%23000' stroke-width='1.2' stroke-linejoin='round' d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708'/%3E%3C/svg%3E") no-repeat center / contain;
transition: transform 0.15s ease;
transform: rotate(90deg);
}
a.togglefold.folded::before { transform: rotate(0deg); }
a.togglefold:hover::before { background-color: var(--text); }
.checklinks { font-size: 0.85em; color: var(--text-faint); }
a.checkall, a.uncheckall { color: var(--text-faint); }
a.checkall:hover, a.uncheckall:hover { color: var(--accent); }
p.errormessage { line-height: 10em; margin-bottom: 10em; }
/* Home page history section */
div#historical { max-width: 800px; margin: 0 auto; padding-bottom: 3em; text-align: left; }
div#baseline-comparison-plot { width: 750px; height: 400px; margin: 0 auto; }
div#historical-plot { width: 600px; height: 400px; margin: 0 auto; }
div#historical p { padding-left: 0; }
div#historical p.plot-caption { font-size: 0.9em; color: var(--text-muted); }
/* Changes page layout: previous/next navigation across the top, the
results table on the left and the revision details on the right */
div#contentwrap {
display: grid;
grid-template-columns: minmax(0, 65fr) minmax(0, 35fr);
column-gap: 0.8em;
align-items: start;
}
div#contentwrap > div { grid-column: 1 / -1; }
div#contentwrap > div.leftcolumn { grid-column: 1; }
div#contentwrap > div.rightcolumn { grid-column: 2; }
/* Tables */
table.tablesorter, table.info, table.revision, table.reports {
width: 100%;
font-size: 0.93em;
text-align: left;
border-collapse: separate;
border-spacing: 0;
border: 1px solid var(--border);
border-radius: var(--radius-sm);
overflow: hidden;
background-color: var(--surface);
}
table.reports { margin-bottom: 1.5em; }
a.feed { text-decoration: underline; }
table.reports caption {
font-size: 1em;
font-weight: 600;
margin-bottom: 0.4em;
text-align: center;
}
table.reports caption a { color: var(--text); }
table.reports caption a img { border: 0; vertical-align: middle; height: 14px; margin-bottom: 1px; }
table.reports td { padding: 0.45em 0.6em; border-top: 1px solid var(--border); }
table.reports tr:first-child td { border-top: 0; }
/* Only the commit column wraps; keep the executable and summary on one line */
table.reports td:not(:first-child) { white-space: nowrap; }
table.reports tr.status-none td.summary { opacity: 0.5; }
table.tablesorter { margin-bottom: 0.8em; }
table.tablesorter thead tr th {
padding: 0.5em 14px 0.5em 0.5em;
width: 5em;
text-align: center;
font-size: 0.9em;
font-weight: 600;
color: var(--text);
background-color: var(--surface-alt);
border-bottom: 1px solid var(--border);
border-right: 1px solid var(--border);
}
table.tablesorter thead tr th:last-child { border-right: 0; }
table.tablesorter thead tr th.header {
background-image: url(../images/bg.gif);
background-repeat: no-repeat;
background-position: center right;
cursor: pointer;
}
table.tablesorter tfoot tr td {
padding: 0.4em 0.5em;
vertical-align: top;
text-align: right;
font-weight: 600;
border-top: 2px solid var(--border-strong);
border-right: 1px solid var(--border);
}
table.tablesorter tbody td {
color: var(--text);
padding: 0.35em 0.5em;
background-color: var(--surface);
border-bottom: 1px solid var(--border);
border-right: 1px solid var(--border);
vertical-align: top;
text-align: right;
white-space: nowrap;
}
table.tablesorter tbody td:last-child, table.tablesorter tfoot td:last-child { border-right: 0; }
table.tablesorter tbody tr.odd td { background-color: var(--surface-alt); }
table.tablesorter thead tr .headerSortUp { background-image: url(../images/asc.gif); }
table.tablesorter thead tr .headerSortDown { background-image: url(../images/desc.gif); }
table.tablesorter thead tr .headerSortDown, table.tablesorter thead tr .headerSortUp {
background-color: var(--accent-soft);
color: var(--accent);
}
table.tablesorter tbody td:not(:first-child),
table.tablesorter tfoot td:not(:first-child) {
font-family: var(--font-mono);
font-size: 14px;
}
table.tablesorter tbody td:first-child,
table.tablesorter tfoot td:first-child { text-align: left; }
table.tablesorter tbody tr td.status-red, td.status-red {
background-color: var(--status-red); color: var(--status-red-text); }
.reports tr.status-red td.summary { color: var(--status-red); font-weight: 600; }
table.tablesorter tbody tr td.status-green, td.status-green {
background-color: var(--status-green); color: var(--status-green-text); }
tr.status-green td.summary { color: #5c9a1b; font-weight: 600; }
table.tablesorter tbody tr td.status-yellow, td.status-yellow {
background-color: var(--status-yellow); color: var(--status-yellow-text); }
tr.status-yellow td.summary { color: #c9a000; font-weight: 600; }
table.tablesorter tbody tr td.status-lightgreen, td.status-lightgreen {
background-color: var(--status-lightgreen); color: var(--status-lightgreen-text); }
tr.status-lightgreen td.summary { color: #8bb000; font-weight: 600; }
table.tablesorter tbody tr.highlight td, tr.highlight td {
background-color: var(--accent-soft) !important;
cursor: pointer;
}
table.revision { table-layout: fixed; }
table.revision col:first-child, table.info col:first-child { width: 5.3em; }
table.info, table.revision { margin-bottom: 1em; }
table.info th, table.revision th {
background-color: var(--surface-alt);
vertical-align: top;
font-weight: 600;
text-align: left;
}
table.info th, table.info td, table.revision th, table.revision td {
padding: 0.4em 0.6em;
border-bottom: 1px solid var(--border);
}
table.info tr:last-child th, table.info tr:last-child td,
table.revision tr:last-child th, table.revision tr:last-child td { border-bottom: 0; }
table.info tbody .infofirst { width: 10em; text-align: left; }
.repo-path td, .commit-id td {
font-family: monospace;
white-space: pre;
overflow: hidden;
text-overflow: ellipsis;
}
tbody.commits tr td { border-bottom: 1px solid var(--border); vertical-align: top; }
tbody.commits tr > td:first-child { padding-right: 20px; }
tbody.commits tr td.date, table.revision tr .infofirst, div.author, span.note, table.info tbody .infofirst {
font-size: 0.92em;
color: var(--text-muted);
}
.revision tbody th { font-weight: inherit; font: inherit; }
tbody.commits tr td.date { padding: 0.3em; width: 5em; text-align: right; }
.commits pre {
display: block;
margin: 2px;
white-space: pre-wrap;
overflow: auto;
}
a#permalink, a#exportcsv {
margin-left: auto;
display: inline-flex;
align-items: center;
gap: 0.25em;
font-size: 0.9em;
}
a#permalink svg, a#exportcsv svg { width: 1.1em; height: 1.1em; }
/* The download glyph fills its 16px grid, the link glyph does not;
shrink it slightly so the two look the same size. */
a#exportcsv svg { width: 0.95em; height: 0.95em; }
a#exportcsv + a#permalink { margin-left: 1em; }
/* Plot styles */
div#plot { text-align: left; height: 500px; width: 100%; }
div.miniplot {
cursor: pointer;
margin: 0.5em;
text-align: left;
float: left;
height: 130px;
width: 23%;
border: 1px solid var(--border);
border-radius: var(--radius-sm);
background-color: var(--surface);
}
div.miniplot:hover { border-color: var(--accent); background-color: var(--surface-alt); }
#dygraph-tooltip {
display: none;
position: absolute;
background: rgba(255, 255, 255, 0.96);
color: var(--text);
border: 1px solid var(--border-strong);
border-radius: var(--radius-sm);
padding: 6px 10px;
font-size: 12px;
pointer-events: none;
z-index: 100;
white-space: nowrap;
box-shadow: 0 4px 12px rgba(16, 24, 40, 0.14);
}
div.compplot {
text-align: left;
height: 450px;
float: left;
margin-right: 0.8em;
margin-bottom: 2em;
}
/* Form controls */
select, input[type="text"], input[type="number"] {
font: inherit;
font-size: 0.93em;
color: var(--text);
padding: 0.2em 0.4em;
background-color: var(--surface);
border: 1px solid var(--border-strong);
border-radius: var(--radius-sm);
}
select:focus, input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }
/* Messages */
p.note, p.warning {
margin-top: 0;
padding: 1em 1.2em;
text-align: left;
font-size: 0.93em;
background-color: var(--surface-alt);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
}
p.warning { margin-left: 10px; border-left: 3px solid #d9480f; }
p.warning::before { content: '⚠ '; color: #d9480f; }
p.note {
margin: 20px 2.4em 0;
padding-left: 55px;
background-image: url(../images/note.png);
background-repeat: no-repeat;
background-position: 8px center;
}
/* Footer */
div.footer {
color: var(--text-faint);
font-size: 0.85em;
margin: 1.5em auto 1em;
text-align: center;
}
div.footer a { color: var(--text-muted); font-weight: 500; text-decoration: none; }
div.footer a:hover { color: var(--accent); text-decoration: underline; }
/* Clearfix */
.clearfix::after { content: ""; display: table; clear: both; }
/* Responsive */
@media only screen and (max-width: 1100px) {
:root { --sidebar-width: 12.5em; }
div#container { padding: 0 0.5em; }
}
@media only screen and (max-width: 1090px) {
div#plot { height: 450px; }
div.miniplot { height: 120px; }
}
@media only screen and (max-width: 1005px) {
div#contentwrap { grid-template-columns: minmax(0, 1fr); }
div#contentwrap > div.leftcolumn, div#contentwrap > div.rightcolumn { grid-column: 1; }
div#title { min-height: 48px; margin-bottom: 0.6em; }
div#title img { height: 32px; }
div#title h2 { font-size: 1em; }
div#nav ul { padding-left: 0; }
div#presentation { grid-template-columns: 1fr; }
div#plot { height: 400px; }
div.miniplot { height: 100px; }
div.compplot { height: 400px; }
}
@media only screen and (max-width: 760px) {
div#sidebar { float: none; width: auto; display: flex; flex-wrap: wrap; gap: 0.6em; }
div#sidebar .sidebox { flex: 1 1 14em; }
div#configbar, div#content, div.about_content { margin-left: 0; }
div#historical-plot, div#baseline-comparison-plot { width: 100%; }
}