forge
Explore
Log in

Don't you dare go Hollow

forge

Clone
★ 0

0 watching0 forksRustAGPL-3.010.7 MiBc8ea10cTahinli27 days ago292 commits

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