forge
Explore
Log in

Don't you dare go Hollow

forge

Clone
★ 0

0 watching0 forksRustAGPL-3.09.7 MiB37e985dTahinli1 hour ago363 commits

_admin_rows.scss219 lines, 4.6 KiBHistoryRawDownload
1// Admin lists as rows: a status dot, the name, a muted meta line, and a status word on the right.
2// The dots reuse `.health-dot` (_account_admin.scss) and the row title and meta reuse the runners
3// list classes (`.runner-title`, `.runner-meta`); the ⋯ menu is `.row-menu`. Only the layout and the
4// warning dot are new here.
5
6// The warning dot: a lagging copy. `.health-dot` has the ok and bad colours already.
7.health-dot.warn {
8 background: var(--warn);
9}
10
11// A small-range number on the server settings page steps like the runner's Max: the pill keeps its
12// own width instead of stretching across the column, at the height of the fields beside it.
13.srv-field .runner-pill {
14 align-self: flex-start;
15 height: var(--control-h);
16
17 input[type="number"] {
18 width: 52px;
19 }
20}
21
22// The runner's own log on its admin page (the logs tab), newest line first. Each line is a block
23// with a hanging indent, so a message that wraps or holds newlines of its own continues under the
24// message column (past the time and level) instead of at the left edge, where it reads as new lines.
25.runner-log-line {
26 display: block;
27 padding-left: 15ch;
28 text-indent: -15ch;
29
30 &.is-warn {
31 color: var(--warn);
32 }
33
34 &.is-error {
35 color: var(--danger);
36 }
37}
38
39.runner-log-time,
40.runner-log-level {
41 color: var(--muted);
42}
43
44.runner-log-chip:not(:empty) {
45 padding: 0 6px;
46 border-radius: var(--radius-sm);
47 background: var(--surface-2);
48 color: var(--text);
49}
50
51// The runner log is not a fit pane like a job's: it is as tall as the window leaves under the tabs and
52// scrolls inside, and its lines start on the sheet's inset like the tools row above it.
53.ci-log.runner-log {
54 flex: none;
55 min-height: 240px;
56 max-height: calc(100dvh - 350px);
57 padding: 0;
58}
59
60// The runner's metrics sit under its stats: three graphs side by side on a wide page (one column
61// below 900px), each in a panel with its caption and facts above it. Every graph is its own SVG with
62// one y axis; colours come from tokens only. A line is the secondary text colour, and a sent line is dashed so it is told apart without
63// secondary text colour so it is told apart without colour.
64// The wrapper is `.mx-panels`, not `.mx-grid`: that name is the SVG gridline class below.
65.mx-panels {
66 display: grid;
67 grid-template-columns: minmax(0, 1fr);
68 gap: 16px 24px;
69 margin-top: 16px;
70 padding-top: 16px;
71 border-top: 1px solid var(--border);
72}
73
74@media (min-width: 900px) {
75 .mx-panels {
76 grid-template-columns: repeat(4, minmax(0, 1fr));
77 }
78}
79
80.mx-panel {
81 display: grid;
82 gap: 6px;
83 align-content: start;
84 min-width: 0;
85}
86
87.mx-head {
88 min-height: 2.75rem;
89}
90
91.mx-caption {
92 margin: 0;
93 color: var(--text);
94 font-size: 1.0625rem;
95 font-weight: 600;
96 font-variant-numeric: tabular-nums;
97 white-space: nowrap;
98}
99
100.mx-facts {
101 margin: 0;
102}
103
104.mx-legend {
105 display: flex;
106 flex-wrap: wrap;
107 gap: 4px 12px;
108 margin: 4px 0 0;
109 padding: 0;
110 list-style: none;
111 color: var(--text-2);
112 font-size: 0.75rem;
113}
114
115.mx-panel .mx-legend {
116 margin-top: 0;
117}
118
119// A legend swatch: a short line in the series' style. It carries the identity, the text does not.
120.mx-key {
121 display: inline-block;
122 width: 16px;
123 margin-right: 6px;
124 border-top: 2px solid var(--text-2);
125 vertical-align: middle;
126}
127
128.mx-key-sent {
129 border-top-style: dashed;
130 border-top-color: var(--text-2);
131}
132
133.mx-svg {
134 display: block;
135 width: 100%;
136 max-width: 560px;
137 height: auto;
138 overflow: visible;
139}
140
141.mx-grid {
142 stroke: var(--border);
143 stroke-width: 1;
144 opacity: 0.6;
145 vector-effect: non-scaling-stroke;
146}
147
148.mx-band {
149 fill: var(--surface-2);
150}
151
152.mx-axis {
153 fill: var(--muted);
154 font-size: 9px;
155 font-variant-numeric: tabular-nums;
156}
157
158.mx-line {
159 fill: none;
160 stroke: var(--text-2);
161 stroke-width: 2;
162 stroke-linejoin: round;
163 stroke-linecap: round;
164 vector-effect: non-scaling-stroke;
165}
166
167.mx-line-sent {
168 stroke: var(--text-2);
169 stroke-dasharray: 4 3;
170}
171
172// The hover band covers the whole plot height of one bucket and is see-through.
173.mx-hit-area {
174 fill: transparent;
175}
176
177.mx-cross {
178 stroke: var(--muted);
179 stroke-width: 1;
180 opacity: 0;
181 pointer-events: none;
182 vector-effect: non-scaling-stroke;
183}
184
185.mx-tip {
186 opacity: 0;
187 pointer-events: none;
188
189 rect {
190 fill: var(--surface);
191 stroke: var(--border-strong);
192 stroke-width: 1;
193 }
194
195 text {
196 fill: var(--text);
197 font-size: 9px;
198 font-variant-numeric: tabular-nums;
199 }
200}
201
202.mx-hit:hover .mx-tip,
203.mx-hit:hover .mx-cross {
204 opacity: 1;
205}
206
207.mx-table > summary.act {
208 margin-left: -10px;
209 list-style: none;
210
211 &::-webkit-details-marker {
212 display: none;
213 }
214}
215
216.mx-table-scroll {
217 max-height: 240px;
218 overflow: auto;
219}