forge
Explore
Log in

Don't you dare go Hollow

forge

Clone
★ 0

0 watching0 forksRustAGPL-3.010.9 MiBdcdcd27Tahinli1 month ago240 commits

_admin_rows.scss94 lines, 2.1 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}