forge
Explore
Log in

Don't you dare go Hollow

forge

Clone
★ 0

0 watching0 forksRustAGPL-3.010.9 MiB8e56ffcTahinli1 month ago262 commits

_admin_rows.scss275 lines, 5.4 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.admin-rows {
12 margin: 0;
13 padding: 0;
14 list-style: none;
15}
16
17.admin-row {
18 display: grid;
19 grid-template-columns: minmax(0, 1fr) auto;
20 align-items: center;
21 column-gap: 28px;
22 padding: 12px 0;
23
24 & + .admin-row {
25 border-top: 1px solid var(--border);
26 }
27}
28
29.admin-row-main {
30 min-width: 0;
31}
32
33.admin-row-name {
34 min-width: 0;
35 overflow: hidden;
36 color: var(--text);
37 font-size: 0.9375rem;
38 font-weight: 600;
39 text-overflow: ellipsis;
40 white-space: nowrap;
41}
42
43// The status word on the right: muted, with the warning or danger colour when the copy is lagging or failing.
44.admin-row-state {
45 color: var(--muted);
46 font-size: 0.8125rem;
47 white-space: nowrap;
48
49 &.warn {
50 color: var(--warn);
51 }
52
53 &.bad {
54 color: var(--bad);
55 }
56}
57
58// The last error, under the meta line. It lines up under the name, like the meta.
59.admin-row-error {
60 margin: 4px 0 0 16px;
61 color: var(--bad);
62 font-size: 0.75rem;
63 overflow-wrap: anywhere;
64}
65
66// A status fact: the dot, then its word, on one line.
67.admin-status {
68 display: inline-flex;
69 align-items: center;
70 gap: 6px;
71}
72
73// Phone: the status word goes under the name, indented to line up with it.
74@media (max-width: 600px) {
75 .admin-row {
76 grid-template-columns: minmax(0, 1fr);
77 row-gap: 6px;
78 }
79
80 .admin-row-state {
81 padding-left: 16px;
82 }
83}
84
85// A small-range number on the server settings page steps like the runner's Max: the pill keeps its
86// own width instead of stretching across the column, at the height of the fields beside it.
87.srv-field .runner-pill {
88 align-self: flex-start;
89 height: var(--control-h);
90
91 input[type="number"] {
92 width: 52px;
93 }
94}
95
96// The runner's own log on its admin page (the logs tab), newest line first. Each line is a block
97// with a hanging indent, so a message that wraps or holds newlines of its own continues under the
98// message column (past the time and level) instead of at the left edge, where it reads as new lines.
99.runner-log-line {
100 display: block;
101 padding-left: 15ch;
102 text-indent: -15ch;
103
104 &.is-warn {
105 color: var(--warn);
106 }
107
108 &.is-error {
109 color: var(--danger);
110 }
111}
112
113.runner-log-time,
114.runner-log-level {
115 color: var(--muted);
116}
117
118.runner-log-chip:not(:empty) {
119 padding: 0 6px;
120 border-radius: var(--radius-sm);
121 background: var(--accent-soft);
122 color: var(--accent-ink);
123}
124
125// Job logs pad each numbered line; the runner log has no numbers, so the box pads instead.
126.ci-log.runner-log {
127 padding: 8px 12px;
128}
129
130// Copy all sits above the log, at its right edge.
131.runner-log-bar {
132 display: flex;
133 justify-content: flex-end;
134 margin-bottom: 6px;
135}
136
137// The metrics tab: three small graphs, one under another, each with its caption on the left. Every
138// graph is its own SVG with one y axis; colours come from tokens only. A line follows the accent, a
139// sent line is dashed in the secondary text colour so it is told apart without colour.
140.mx-stack {
141 display: grid;
142 gap: 10px;
143}
144
145.mx-row {
146 display: grid;
147 grid-template-columns: 200px minmax(0, 1fr);
148 align-items: center;
149 gap: 4px 16px;
150}
151
152.mx-caption {
153 margin: 0;
154 color: var(--text);
155 font-size: 0.875rem;
156 font-weight: 600;
157 font-variant-numeric: tabular-nums;
158 white-space: nowrap;
159}
160
161.mx-legend {
162 display: flex;
163 flex-wrap: wrap;
164 gap: 4px 12px;
165 margin: 4px 0 0;
166 padding: 0;
167 list-style: none;
168 color: var(--text-2);
169 font-size: 0.75rem;
170}
171
172// A legend swatch: a short line in the series' style. It carries the identity, the text does not.
173.mx-key {
174 display: inline-block;
175 width: 16px;
176 margin-right: 6px;
177 border-top: 2px solid var(--accent);
178 vertical-align: middle;
179}
180
181.mx-key-sent {
182 border-top-style: dashed;
183 border-top-color: var(--text-2);
184}
185
186.mx-svg {
187 display: block;
188 width: 100%;
189 height: auto;
190 overflow: visible;
191}
192
193.mx-grid {
194 stroke: var(--border);
195 stroke-width: 1;
196 opacity: 0.6;
197 vector-effect: non-scaling-stroke;
198}
199
200.mx-band {
201 fill: var(--accent-soft);
202}
203
204.mx-axis {
205 fill: var(--muted);
206 font-size: 9px;
207 font-variant-numeric: tabular-nums;
208}
209
210.mx-line {
211 fill: none;
212 stroke: var(--accent);
213 stroke-width: 2;
214 stroke-linejoin: round;
215 stroke-linecap: round;
216 vector-effect: non-scaling-stroke;
217}
218
219.mx-line-sent {
220 stroke: var(--text-2);
221 stroke-dasharray: 4 3;
222}
223
224// The hover band covers the whole plot height of one bucket and is see-through.
225.mx-hit-area {
226 fill: transparent;
227}
228
229.mx-cross {
230 stroke: var(--muted);
231 stroke-width: 1;
232 opacity: 0;
233 pointer-events: none;
234 vector-effect: non-scaling-stroke;
235}
236
237.mx-tip {
238 opacity: 0;
239 pointer-events: none;
240
241 rect {
242 fill: var(--surface);
243 stroke: var(--border-strong);
244 stroke-width: 1;
245 }
246
247 text {
248 fill: var(--text);
249 font-size: 9px;
250 font-variant-numeric: tabular-nums;
251 }
252}
253
254.mx-hit:hover .mx-tip,
255.mx-hit:hover .mx-cross {
256 opacity: 1;
257}
258
259.mx-table summary {
260 margin-top: 6px;
261 color: var(--text-2);
262 font-size: 0.8125rem;
263 cursor: pointer;
264}
265
266.mx-table-scroll {
267 max-height: 240px;
268 overflow: auto;
269}
270
271@media (max-width: 600px) {
272 .mx-row {
273 grid-template-columns: minmax(0, 1fr);
274 }
275}