@layer components { /* CI: runs, jobs, steps, checks and the log. Hue only where it carries a verdict, and every mark has its word beside it or in its label. */ .ck { display: inline-block; width: 14px; height: 14px; margin-right: var(--s1); vertical-align: -2px; border: 2px solid var(--ink-dim); border-radius: 50%; box-sizing: border-box; flex: none; } .ck-ok { background: var(--teal); border-color: var(--teal); } .ck-bad { background: var(--red); border-color: var(--red); border-radius: 3px; transform: rotate(45deg) scale(.85); } .ck-cancelled { border-style: dashed; } .ck-skipped { border-color: var(--border-strong); background: var(--bg-raised); } .ck-queued { border-style: dotted; } .ck-running { border-color: var(--teal); border-top-color: transparent; animation: ck-spin 1s linear infinite; } @keyframes ck-spin { to { transform: rotate(360deg); } } @media (prefers-reduced-motion: reduce) { .ck-running { animation: none; border-top-color: var(--teal); } } .ck-sum { display: inline-flex; align-items: center; gap: var(--s1); margin-left: var(--s2); font-size: var(--fs-xs); white-space: nowrap; } /* The lists are table-layout: fixed, where a percentage is only a sliver: the check column holds the mark, its count and the padding of the cells; the refs list has the mark next to the sha. */ .c-ck { width: 1%; white-space: nowrap; } .list .c-ck { width: 92px; } .rail .list.commits .c-ck { width: 76px; } .list.refs .c-sha { width: 150px; } /* the table is fixed: the status column is the icon, its margin and the padding of the cells (a percentage would leave a sliver) */ .runs .c-st { width: calc(14px + var(--s1) + 2 * var(--s3)); } /* the recent runs of the summary rail */ .rruns { display: grid; padding: 0; list-style: none; font-size: var(--fs-s); & li { display: flex; align-items: center; gap: var(--s1); min-width: 0; padding: 2px 0; } & .ck { margin-right: var(--s1); } & .rr-name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-hi); text-decoration: none; } & .rr-name:hover { text-decoration: underline; } & .rr-ref { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-left: var(--s1); font-family: var(--mono); color: var(--ink-dim); text-decoration: none; } & time { flex: none; margin-left: auto; padding-left: var(--s2); white-space: nowrap; } } .runs .c-dur, .runs .c-who { white-space: nowrap; } .runs tr[data-new] { background: var(--bg-raised); } .run-h { display: flex; align-items: center; gap: var(--s2); margin: 0 0 var(--s4); } .run-err, .job-err { max-width: var(--measure); padding: var(--s3) var(--s4); margin: 0 0 var(--s4); white-space: pre-wrap; overflow-wrap: anywhere; background: var(--bg-surface); border: 1px solid var(--border); border-left: 3px solid var(--red); border-radius: var(--r-s); font: inherit; font-size: var(--fs-s); } .jobs { display: grid; gap: var(--s4); padding: 0; list-style: none; } .jobs > li { padding: var(--s3) var(--s4); background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r); } .job-h { display: flex; align-items: center; gap: var(--s2); font-weight: 700; } .steps { display: grid; gap: 2px; padding: 0; margin: var(--s2) 0 0; list-style: none; font-size: var(--fs-s); } /* a long step name (a whole shell command) wraps inside the rail; the icon stays on its first line and the duration at the right */ .steps li { display: flex; align-items: flex-start; gap: var(--s1); min-width: 0; } .steps li > .ck { flex: none; margin-top: 3px; } .steps li > :is(a, span:not(.ck, .dim)) { flex: 1; min-width: 0; overflow-wrap: anywhere; } .steps li > .dim { flex: none; margin-left: auto; } .attempts { padding: 0; margin: var(--s2) 0 0; list-style: none; font-size: var(--fs-s); } .checks { display: grid; gap: var(--s1); padding: 0; margin: 0; list-style: none; font-size: var(--fs-s); } .checks li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1); } /* annotations and summaries of a run */ .annots { margin: 0 0 var(--s4); } .annots h3, .summaries h3 { display: flex; align-items: baseline; gap: var(--s2); margin: 0 0 var(--s2); font-size: var(--fs-s); } .annot-list { display: grid; gap: var(--s2); padding: 0; margin: 0; list-style: none; } .annot { display: flex; gap: var(--s2); align-items: flex-start; padding: var(--s2) var(--s3); background: var(--bg-surface); border: 1px solid var(--border); border-left: 3px solid var(--border-strong); border-radius: var(--r-s); font-size: var(--fs-s); } .annot-failure { border-left-color: var(--red); } .annot-warning { border-left-style: dashed; border-left-color: var(--ink-dim); } .annot-notice { border-left-color: var(--teal); } .annot p { margin: 0; } .annot-step { flex-basis: 100%; font-weight: 700; } .annot:has(.annot-step) { flex-wrap: wrap; } .annot-body { min-width: 0; } .annot-head { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: baseline; } .annot-level { font-weight: 700; } .annot-msg { white-space: pre-wrap; overflow-wrap: anywhere; } .annot-where { color: var(--ink-dim); font-family: var(--mono); overflow-wrap: anywhere; } .an { display: inline-block; flex: none; width: 14px; height: 14px; margin-top: 2px; border: 2px solid var(--ink-dim); box-sizing: border-box; } .an-failure { background: var(--red); border-color: var(--red); border-radius: 3px; transform: rotate(45deg) scale(.85); } .an-warning { border-radius: 50% 50% 0 0; border-style: dashed; } .an-notice { border-radius: 50%; border-color: var(--teal); } .summaries { margin: var(--s5) 0 0; } .summary { padding: var(--s3) var(--s4); background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r); } .summary + .summary { margin-top: var(--s3); } .summary-step { margin: 0 0 var(--s2); font-size: var(--fs-s); color: var(--ink-dim); } .joblog { margin-top: var(--s4); } .log { margin: 0; padding: var(--s2) 0; list-style: none; overflow-x: auto; font: var(--fs-s) / 1.5 var(--mono); background: var(--bg-inset); border: 1px solid var(--border); border-radius: var(--r-s); } .log .lg { display: flex; gap: var(--s3); padding: 0 var(--s3); white-space: pre-wrap; overflow-wrap: anywhere; } .log .lg:target { background: var(--bg-raised); } .log .lg time { flex: none; color: var(--ink-dim); user-select: none; } .log .lg .t { min-width: 0; } .log .group .t { font-weight: 700; } .log .endgroup { display: none; } .log .error .t { color: var(--red); } .joblog .more { margin: var(--s2) 0; font-size: var(--fs-s); } }