Migration This is my new public git source viewer. Source coming soon. Please contact with concerns/bugs. Contact me

static/css/admin.css

38fa4e6cd9bb9dbf0ae23ef02e50b1c75cd84ebb · 1.4 KB · 60 lines raw

1 /* Admin surface only. Reuses base.css tokens and components; nothing here
2 is loaded by the public pages. No literal colours -- everything comes
3 from the :root custom properties. */
4
5 .admin-table td,
6 .admin-table th { vertical-align: top; }
7
8 .admin-table select,
9 .admin-table input,
10 .admin-table textarea {
11 font: inherit;
12 font-size: .8rem;
13 color: var(--fg);
14 background: var(--bg-elev);
15 border: 1px solid var(--line);
16 border-radius: var(--r-sm);
17 padding: .25rem .45rem;
18 width: 100%;
19 min-width: 6rem;
20 }
21
22 .admin-table textarea { resize: vertical; }
23
24 .admin-table select:focus-visible,
25 .admin-table input:focus-visible,
26 .admin-table textarea:focus-visible {
27 outline: 2px solid var(--accent);
28 outline-offset: -2px;
29 }
30
31 .admin-table .admin-del,
32 .admin-table .admin-del input {
33 width: auto;
34 min-width: 0;
35 text-align: center;
36 }
37
38 .admin-save { cursor: pointer; font-size: .8rem; padding: .4rem .9rem; }
39
40 /* Progressive enhancement: the Add button is only useful with admin.js, so
41 it stays hidden until that script adds .has-js to <body>. The checkbox is
42 always visible without JS. */
43 .js-only { display: none; }
44 .has-js .js-only { display: inline-flex; }
45
46 .admin-actions {
47 display: flex;
48 gap: .5rem;
49 align-items: center;
50 margin-top: .75rem;
51 }
52
53 .row-remove { cursor: pointer; }
54
55 .notice-error,
56 .notice pre {
57 margin: .35rem 0 0;
58 white-space: pre-wrap;
59 font: inherit;
60 }