forge
Explore
Log in

Don't you dare go Hollow

forge

Clone
★ 0

0 watching0 forksRustAGPL-3.07.1 MiB490f099Tahinli7 hours ago322 commits

_timeline_ci.scss735 lines, 13.0 KiBHistoryRawDownload
1// The CI run and job pages, as TimelineCi in the Layout Study: a 64 px head, a 300 px jobs pane beside
2// the log pane, and the history dock under them. The panes fill the window and scroll inside
3// themselves; the page does not scroll. Panes are --surface with a 1 px --border, no shadow.
4
5.ci-run.fit-pane,
6.ci-job.fit-pane {
7 box-sizing: border-box;
8 display: flex;
9 flex-direction: column;
10 gap: 12px;
11 height: max(480px, calc(100dvh - 190px));
12 padding: 0;
13 overflow: hidden;
14}
15
16.ci-pane {
17 display: flex;
18 flex-direction: column;
19 min-width: 0;
20 min-height: 0;
21 overflow: hidden;
22 padding: 0;
23 background: var(--surface);
24 border: 1px solid var(--border);
25 border-radius: 10px;
26 box-shadow: none;
27}
28
29// Head: `Run #N` in mono, the title in Archivo at 24 px at most, the full message on demand; the meta
30// line below it; one or two actions at the right.
31.ci-tl-head {
32 position: relative;
33 flex: none;
34 height: 64px;
35 display: flex;
36 align-items: center;
37 justify-content: space-between;
38 gap: 16px;
39 min-width: 0;
40 margin: 0;
41}
42
43.ci-tl-headmain {
44 flex: 1 1 auto;
45 min-width: 0;
46 display: flex;
47 flex-direction: column;
48 gap: 4px;
49}
50
51.ci-tl-line {
52 display: flex;
53 align-items: baseline;
54 gap: 12px;
55 min-width: 0;
56}
57
58.ci-tl-no {
59 flex: none;
60 font-family: var(--mono);
61 font-size: 11px;
62 font-weight: 500;
63 letter-spacing: 0.12em;
64 text-transform: uppercase;
65 color: var(--muted);
66 white-space: nowrap;
67
68 a {
69 color: inherit;
70 }
71}
72
73.ci-tl-title {
74 flex: 0 1 auto;
75 min-width: 0;
76 margin: 0;
77 font-family: var(--display, var(--font));
78 font-size: 24px;
79 font-weight: 700;
80 line-height: 1.2;
81 white-space: nowrap;
82 overflow: hidden;
83 text-overflow: ellipsis;
84}
85
86.ci-tl-more {
87 flex: none;
88 font-size: 13px;
89 color: var(--text-2);
90
91 summary {
92 cursor: pointer;
93 text-decoration: underline;
94 text-underline-offset: 3px;
95 }
96
97 p {
98 position: absolute;
99 z-index: 5;
100 margin-top: 6px;
101 max-width: 560px;
102 padding: 10px 12px;
103 background: var(--surface-2);
104 border: 1px solid var(--border);
105 border-radius: 8px;
106 }
107}
108
109.ci-tl-meta {
110 display: flex;
111 align-items: center;
112 gap: 12px;
113 min-width: 0;
114 font-size: 13px;
115 white-space: nowrap;
116 overflow: hidden;
117
118 .ci-state {
119 color: var(--text-2);
120 }
121
122 // The state is accent only while the run is live.
123 .ci-state.ci-running,
124 .ci-state.ci-queued,
125 .ci-state.ci-waiting_approval {
126 color: var(--accent-ink);
127 font-weight: 600;
128 }
129
130 .ci-tl-dur {
131 font-family: var(--mono);
132 font-size: 12px;
133 color: var(--text-2);
134 }
135}
136
137.ci-tl-actions {
138 flex: none;
139 display: flex;
140 align-items: center;
141 gap: 8px;
142 margin: 0;
143}
144
145// The progress of a running run: a hairline at the foot of the head.
146.ci-tl-head .ci-est-run {
147 position: absolute;
148 left: 0;
149 right: 0;
150 bottom: 0;
151 width: 100%;
152 height: 2px;
153}
154
155// Main: the jobs (300 px) and the log, both the height the page leaves them.
156.ci-tl-main {
157 flex: 1 1 0;
158 min-height: 0;
159 display: grid;
160 grid-template-columns: 300px minmax(0, 1fr);
161 gap: 12px;
162}
163
164.ci-tl-label {
165 display: block;
166 flex: none;
167 margin: 0;
168 font-family: var(--mono);
169 font-size: 11px;
170 font-weight: 500;
171 letter-spacing: 0.12em;
172 text-transform: uppercase;
173 color: var(--muted);
174}
175
176.ci-tl-pad {
177 padding: 0 14px;
178}
179
180// Jobs pane: a 36 px title row, then one 36 px row per job.
181.ci-tl-jobs {
182 overflow-y: auto;
183 overscroll-behavior: contain;
184
185 > .ci-tl-label {
186 height: 36px;
187 line-height: 36px;
188 padding: 0 14px;
189 box-shadow: inset 0 -1px var(--border);
190 }
191
192 .ci-tl-facts {
193 padding-top: 12px;
194 padding-bottom: 8px;
195 font-size: 13px;
196
197 p {
198 margin: 0 0 4px;
199 }
200 }
201
202 .ci-art-list,
203 .ci-artifacts {
204 margin: 0;
205 padding: 0 14px 12px;
206 list-style: none;
207 font-size: 13px;
208 }
209}
210
211.ci-tl-list {
212 flex: none;
213 margin: 0;
214 padding: 0;
215 list-style: none;
216}
217
218.ci-tl-group {
219 height: 26px;
220 line-height: 26px;
221 padding: 0 14px;
222 font-family: var(--mono);
223 font-size: 11px;
224 color: var(--muted);
225}
226
227.ci-tl-job {
228 position: relative;
229 display: flex;
230 align-items: center;
231 gap: 10px;
232 height: 36px;
233 min-width: 0;
234 padding: 0 14px;
235 box-shadow: inset 0 -1px var(--border);
236 color: var(--text);
237 text-decoration: none;
238 font-size: 13px;
239
240 &:hover {
241 background: var(--surface-2);
242 }
243
244 &[aria-current="true"] {
245 background: var(--surface-2);
246 }
247
248 .ci-tl-dur {
249 margin-left: auto;
250 flex: none;
251 font-family: var(--mono);
252 font-size: 12px;
253 color: var(--text-2);
254 }
255}
256
257.ci-tl-sub .ci-tl-job {
258 padding-left: 28px;
259}
260
261// The job's bar: a 3 px band along the bottom of its row, one segment per step. It sits over the row's
262// hairline and takes no room, so the row keeps its height.
263.ci-tl-stepbar {
264 position: absolute;
265 left: 0;
266 bottom: 0;
267 display: block;
268 width: 100%;
269 height: 3px;
270 pointer-events: none;
271
272 .ci-sbar-pass {
273 fill: var(--border-strong);
274 }
275
276 .ci-sbar-fail {
277 fill: var(--bad);
278 }
279
280 .ci-sbar-off,
281 .ci-sbar-track {
282 fill: var(--border);
283 }
284
285 .ci-sbar-run {
286 fill: var(--accent);
287 }
288}
289
290// A job's steps: a dropdown under its row. The row keeps room for the toggle at its right end, and while
291// the dropdown is open the row's bar gives way to the step lines (the bar is the summary when shut).
292.ci-tl-hassteps {
293 position: relative;
294
295 > .ci-tl-job {
296 padding-right: 40px;
297 }
298
299 &:has(> details[open]) .ci-tl-stepbar {
300 display: none;
301 }
302}
303
304.ci-tl-steps {
305 margin: 0;
306}
307
308.ci-tl-steplist {
309 margin: 0;
310 padding: 0;
311 list-style: none;
312}
313
314// The toggle sits over the job row's right end, a 28 px target (36 px on a phone). Its chevron turns
315// when the dropdown is open; the browser's marker is gone.
316.ci-tl-steptoggle {
317 position: absolute;
318 top: 0;
319 right: 6px;
320 z-index: 1;
321 display: flex;
322 align-items: center;
323 justify-content: center;
324 width: 28px;
325 height: 36px;
326 list-style: none;
327 cursor: pointer;
328
329 &::-webkit-details-marker {
330 display: none;
331 }
332
333 &::marker {
334 content: "";
335 }
336
337 .ci-chev {
338 margin: 0;
339 }
340
341 &:hover .ci-chev {
342 border-color: var(--text);
343 }
344}
345
346.ci-tl-steps[open] > .ci-tl-steptoggle .ci-chev {
347 transform: rotate(45deg);
348}
349
350// A step under its job: a 30 px line with a 6 px mark, its name and its duration at the right.
351// Indented past the job's dot, one level more for a matrix combination. The selected step has an
352// accent edge on the left, and a failed step's name reads in --text. Its progress bar is along the foot.
353.ci-tl-step {
354 position: relative;
355 display: flex;
356 align-items: center;
357 gap: 8px;
358 height: 30px;
359 min-width: 0;
360 padding: 0 14px 0 34px;
361 box-shadow: inset 0 -1px var(--border);
362 color: var(--text-2);
363 text-decoration: none;
364 font-size: 12px;
365
366 &.ci-tl-step-sub {
367 padding-left: 48px;
368 }
369
370 &:hover {
371 background: var(--surface-2);
372 text-decoration: none;
373 }
374
375 &[aria-current="true"] {
376 color: var(--text);
377 background: var(--surface-2);
378 box-shadow: inset 2px 0 var(--accent), inset 0 -1px var(--border);
379 }
380
381 .ci-tl-dur {
382 margin-left: auto;
383 flex: none;
384 font-family: var(--mono);
385 font-size: 11px;
386 color: var(--text-2);
387 }
388}
389
390.ci-tl-stepmark {
391 flex: none;
392 width: 6px;
393 height: 6px;
394 border-radius: 50%;
395 background: var(--muted);
396
397 &.ci-st-run {
398 background: var(--accent);
399 }
400
401 &.ci-st-fail {
402 background: var(--bad);
403 }
404
405 &.ci-st-off {
406 background: transparent;
407 border: 1px solid var(--muted);
408 box-sizing: border-box;
409 }
410}
411
412.ci-tl-stepname {
413 flex: 1 1 auto;
414 min-width: 0;
415 overflow: hidden;
416 text-overflow: ellipsis;
417 white-space: nowrap;
418}
419
420.ci-st-fail ~ .ci-tl-stepname {
421 color: var(--text);
422}
423
424.ci-tl-stepexp {
425 flex: none;
426 font-family: var(--mono);
427 font-size: 11px;
428 color: var(--muted);
429}
430
431.ci-tl-name {
432 flex: 1 1 auto;
433 min-width: 0;
434 overflow: hidden;
435 text-overflow: ellipsis;
436 white-space: nowrap;
437}
438
439// The image, as a mono tag.
440.ci-tl-tag {
441 flex: none;
442 font-family: var(--mono);
443 font-size: 11px;
444 padding: 1px 7px;
445 border-radius: 5px;
446 background: var(--surface-2);
447 color: var(--text-2);
448}
449
450.ci-tl-artline {
451 display: flex;
452 align-items: center;
453 justify-content: space-between;
454 gap: 8px;
455 height: 36px;
456 padding: 0 14px;
457 margin-top: 8px;
458 box-shadow: inset 0 -1px var(--border);
459}
460
461// Log pane: the 48 px bar (the tabs, then the log's tools), the code area, and the timeline tab.
462.ci-tl-log {
463 position: relative;
464}
465
466.ci-tl-radio {
467 position: absolute;
468 width: 1px;
469 height: 1px;
470 opacity: 0;
471 pointer-events: none;
472}
473
474.ci-tl-logbar {
475 flex: none;
476 height: 48px;
477 margin: 0;
478 display: flex;
479 align-items: center;
480 gap: 12px;
481 padding: 0 14px;
482 min-width: 0;
483 background: transparent;
484 box-shadow: inset 0 -1px var(--border);
485 border: 0;
486 border-radius: 0;
487}
488
489.ci-tl-tabs {
490 flex: none;
491 display: flex;
492 align-items: stretch;
493 gap: 18px;
494 height: 100%;
495}
496
497.ci-tl-tab {
498 display: flex;
499 align-items: center;
500 padding: 0;
501 font-family: var(--mono);
502 font-size: 11px;
503 font-weight: 500;
504 letter-spacing: 0.12em;
505 text-transform: uppercase;
506 color: var(--muted);
507 cursor: pointer;
508 box-shadow: inset 0 0 0 0 transparent;
509}
510
511#ci-view-log:checked ~ .ci-tl-logbar .ci-tl-tab-log,
512#ci-view-timeline:checked ~ .ci-tl-logbar .ci-tl-tab-timeline {
513 color: var(--text);
514 box-shadow: inset 0 -2px var(--accent);
515}
516
517// The log's tools share the bar's right side; they scroll sideways rather than wrap.
518.ci-tl-tools {
519 margin-left: auto;
520 min-width: 0;
521 display: flex;
522 align-items: center;
523 gap: 6px;
524 overflow-x: auto;
525 scrollbar-width: none;
526 white-space: nowrap;
527
528 .ci-logsearch {
529 width: 140px;
530 flex: none;
531 height: 30px;
532 }
533
534 .ci-job-rerun {
535 display: inline-flex;
536 }
537}
538
539#ci-view-timeline:checked ~ .ci-tl-logbar .ci-tl-tools {
540 display: none;
541}
542
543.ci-tl-panel-log {
544 flex: 1 1 0;
545 min-height: 0;
546 display: flex;
547 flex-direction: column;
548 overflow: hidden;
549
550 > :not(.ci-tl-code) {
551 flex: none;
552 }
553
554 .ci-warnings,
555 .ci-config-error {
556 max-height: 30%;
557 overflow: auto;
558 margin: 0;
559 }
560}
561
562.ci-tl-panel-timeline {
563 display: none;
564 flex: 1 1 0;
565 min-height: 0;
566 padding: 12px 14px;
567 overflow: auto;
568 overscroll-behavior: contain;
569}
570
571#ci-view-timeline:checked ~ .ci-tl-panel-log {
572 display: none;
573}
574
575#ci-view-timeline:checked ~ .ci-tl-panel-timeline {
576 display: block;
577}
578
579// The code area: --bg, mono 12.5 px on a 1.7 line, numbers right aligned in their own column.
580// A group's name sticks to the pane's edge, not inside its padding, or lines show above it.
581.ci-tl-code details.lg > summary {
582 top: -14px;
583}
584
585.ci-tl-code {
586 flex: 1 1 0;
587 min-height: 0;
588 margin: 0;
589 padding: 14px 16px;
590 overflow: auto;
591 overscroll-behavior: contain;
592 background: var(--bg);
593 border-radius: 0 0 10px 10px;
594 font-family: var(--mono);
595 font-size: 12.5px;
596 line-height: 1.7;
597 color: var(--text);
598
599 .ll {
600 display: flex;
601 gap: 14px;
602 white-space: pre;
603 }
604
605 .ln {
606 flex: none;
607 width: 2.6em;
608 text-align: right;
609 color: var(--muted);
610 text-decoration: none;
611 }
612
613 .lt {
614 min-width: 0;
615 }
616}
617
618// The dock: the last commits as bars, their height the lines changed. The note sits at the top right.
619.ci-dock {
620 position: relative;
621 flex: none;
622 height: 184px;
623 box-sizing: border-box;
624 padding: 12px 14px;
625}
626
627.ci-dock-note {
628 position: absolute;
629 top: 12px;
630 right: 14px;
631 margin: 0;
632 font-size: 12px;
633 color: var(--muted);
634}
635
636.ci-dock .dock-history {
637 flex: 1 1 0;
638 min-height: 0;
639 height: auto;
640 display: flex;
641 order: 0;
642}
643
644.ci-dock .history-strip {
645 flex: 1 1 auto;
646 height: 100%;
647 min-width: 0;
648 display: grid;
649 grid-template-columns: 254px minmax(0, 1fr);
650}
651
652.ci-dock .history-label {
653 position: static;
654 width: auto;
655 height: 18px;
656 overflow: visible;
657 clip-path: none;
658 font-family: var(--mono);
659 font-size: 11px;
660 font-weight: 500;
661 letter-spacing: 0.12em;
662 text-transform: uppercase;
663 line-height: 18px;
664 color: var(--muted);
665}
666
667.ci-dock .history-bars {
668 flex: 1 1 0;
669 min-height: 0;
670 height: auto;
671 align-items: flex-end;
672 gap: 3px;
673 padding-bottom: 0;
674}
675
676@media (prefers-reduced-motion: reduce) {
677 .ci-tl-job,
678 .ci-tl-tab {
679 }
680}
681
682// Below 900 px the panes stack and the page scrolls, as the rest of the site does.
683@media (max-width: 899px) {
684 .ci-run.fit-pane,
685 .ci-job.fit-pane {
686 height: auto;
687 overflow: visible;
688 }
689
690 .ci-tl-main {
691 grid-template-columns: minmax(0, 1fr);
692 }
693
694 .ci-tl-head {
695 height: auto;
696 flex-wrap: wrap;
697 }
698
699 .ci-tl-jobs,
700 .ci-tl-log,
701 .ci-tl-panel-timeline {
702 overflow: visible;
703 }
704
705 // A thumb-sized toggle, and the job's duration keeps clear of it.
706 .ci-tl-steptoggle {
707 width: 36px;
708 }
709
710 .ci-tl-hassteps > .ci-tl-job {
711 padding-right: 46px;
712 }
713
714 // These panels share out a fixed height on a wide window; here there is none to share.
715 .ci-tl-panel {
716 flex: none;
717 }
718
719 .ci-tl-panel-log > .ci-log.ci-tl-code {
720 flex: none;
721 max-height: 60vh;
722 }
723
724 .ci-dock {
725 height: auto;
726 min-height: 140px;
727 }
728}
729
730// The commits page: the list scrolls inside a pane that fills the window under the tabs, and the pager
731// stays under it. Below 900px the list grows with its rows, as the page stacks.
732@media (min-width: 900px) {
733
734}
735