// Admin lists as rows: a status dot, the name, a muted meta line, and a status word on the right. // The dots reuse `.health-dot` (_account_admin.scss) and the row title and meta reuse the runners // list classes (`.runner-title`, `.runner-meta`); the ⋯ menu is `.row-menu`. Only the layout and the // warning dot are new here. // The warning dot: a lagging copy. `.health-dot` has the ok and bad colours already. .health-dot.warn { background: var(--warn); } .admin-rows { margin: 0; padding: 0; list-style: none; } .admin-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 28px; padding: 12px 0; & + .admin-row { border-top: 1px solid var(--border); } } .admin-row-main { min-width: 0; } .admin-row-name { min-width: 0; overflow: hidden; color: var(--text); font-size: 0.9375rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; } // The status word on the right: muted, with the warning or danger colour when the copy is lagging or failing. .admin-row-state { color: var(--muted); font-size: 0.8125rem; white-space: nowrap; &.warn { color: var(--warn); } &.bad { color: var(--bad); } } // The last error, under the meta line. It lines up under the name, like the meta. .admin-row-error { margin: 4px 0 0 16px; color: var(--bad); font-size: 0.75rem; overflow-wrap: anywhere; } // A status fact: the dot, then its word, on one line. .admin-status { display: inline-flex; align-items: center; gap: 6px; } // Phone: the status word goes under the name, indented to line up with it. @media (max-width: 600px) { .admin-row { grid-template-columns: minmax(0, 1fr); row-gap: 6px; } .admin-row-state { padding-left: 16px; } } // A small-range number on the server settings page steps like the runner's Max: the pill keeps its // own width instead of stretching across the column, at the height of the fields beside it. .srv-field .runner-pill { align-self: flex-start; height: var(--control-h); input[type="number"] { width: 52px; } } // The runner's own log on its admin page (the logs tab), newest line first. Each line is a block // with a hanging indent, so a message that wraps or holds newlines of its own continues under the // message column (past the time and level) instead of at the left edge, where it reads as new lines. .runner-log-line { display: block; padding-left: 15ch; text-indent: -15ch; &.is-warn { color: var(--warn); } &.is-error { color: var(--danger); } } .runner-log-time, .runner-log-level { color: var(--muted); } .runner-log-chip:not(:empty) { padding: 0 6px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent-ink); } // Job logs pad each numbered line; the runner log has no numbers, so the box pads instead. .ci-log.runner-log { padding: 8px 12px; } // Copy all sits above the log, at its right edge. .runner-log-bar { display: flex; justify-content: flex-end; margin-bottom: 6px; } // The metrics tab: three small graphs, one under another, each with its caption on the left. Every // graph is its own SVG with one y axis; colours come from tokens only. A line follows the accent, a // sent line is dashed in the secondary text colour so it is told apart without colour. .mx-stack { display: grid; gap: 10px; } .mx-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); align-items: center; gap: 4px 16px; } .mx-caption { margin: 0; color: var(--text); font-size: 0.875rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; } .mx-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 4px 0 0; padding: 0; list-style: none; color: var(--text-2); font-size: 0.75rem; } // A legend swatch: a short line in the series' style. It carries the identity, the text does not. .mx-key { display: inline-block; width: 16px; margin-right: 6px; border-top: 2px solid var(--accent); vertical-align: middle; } .mx-key-sent { border-top-style: dashed; border-top-color: var(--text-2); } .mx-svg { display: block; width: 100%; height: auto; overflow: visible; } .mx-grid { stroke: var(--border); stroke-width: 1; opacity: 0.6; vector-effect: non-scaling-stroke; } .mx-band { fill: var(--accent-soft); } .mx-axis { fill: var(--muted); font-size: 9px; font-variant-numeric: tabular-nums; } .mx-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; } .mx-line-sent { stroke: var(--text-2); stroke-dasharray: 4 3; } // The hover band covers the whole plot height of one bucket and is see-through. .mx-hit-area { fill: transparent; } .mx-cross { stroke: var(--muted); stroke-width: 1; opacity: 0; pointer-events: none; vector-effect: non-scaling-stroke; } .mx-tip { opacity: 0; pointer-events: none; rect { fill: var(--surface); stroke: var(--border-strong); stroke-width: 1; } text { fill: var(--text); font-size: 9px; font-variant-numeric: tabular-nums; } } .mx-hit:hover .mx-tip, .mx-hit:hover .mx-cross { opacity: 1; } .mx-table summary { margin-top: 6px; color: var(--text-2); font-size: 0.8125rem; cursor: pointer; } .mx-table-scroll { max-height: 240px; overflow: auto; } @media (max-width: 600px) { .mx-row { grid-template-columns: minmax(0, 1fr); } }