Oregami
Repositories/oxedyne/daimond

oxedyne/daimond/www/css/autoreload.css

4.8 KiB, 1 run

created by r2519314175:1093, which is this file's identity for as long as the history lasts, whatever it is later renamed to

download · who wrote it · its history

1/* autoreload.css — the standing instruction to buy your own credits.
2 *
3 * Note the scoping. `.settings-section button` in app.css is accent-filled and outguns a plain
4 * class selector, so every button in here is scoped under `#autoreload` or it comes out as a wall
5 * of red. app.css:547 already documents the same collision for the credit packs, and the Tools
6 * panel hit it a third time. */
7
8#autoreload { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
9
10.ar-title { font-size: var(--fs-sm); font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
11
12/* The card on file. */
13.ar-card { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 0 14px; }
14.ar-card-has { font-size: var(--fs-sm); color: var(--text-primary); }
15.ar-card-none { font-size: var(--fs-sm); color: var(--text-muted); }
16#autoreload .ar-card-btn {
17 background: var(--bg-tertiary);
18 border: 1px solid var(--border-strong);
19 color: var(--text-secondary);
20 border-radius: var(--radius-sm);
21 font-size: var(--fs-xs);
22 padding: 4px 10px;
23}
24#autoreload .ar-card-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
25#autoreload .ar-card-btn.accent { background: var(--accent); border-color: var(--accent); color: var(--on-fill, #fff); }
26#autoreload .ar-card-btn.accent:hover { background: var(--accent-hover); }
27
28/* The switch. Disabled without a card, and dimmed so it reads as unavailable rather than off. */
29.ar-switch { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--text-primary); margin-bottom: 14px; }
30.ar-switch input { accent-color: var(--accent); width: 15px; height: 15px; }
31.ar-switch input:disabled { opacity: 0.5; }
32.ar-switch input:disabled + span { color: var(--text-muted); }
33
34/* The three numbers. When auto-reload is off they are greyed, because they configure a thing
35 that is not running -- but they stay editable, so it can be set up and then switched on. */
36.ar-field { margin-bottom: 12px; }
37.ar-label { display: block; font-size: var(--fs-xs); color: var(--text-secondary); margin-bottom: 4px; }
38/* The currency and the number are drawn as one control -- the prefix drops its
39 right border and its right corners so the seam disappears -- and `stretch` is
40 the only thing that makes that true. A span takes the page's 1.5 line-height
41 and an input takes the UA's `normal`, so at identical padding the prefix
42 stands about 4px taller than the box it is joined to; centred, that came out
43 as a step above AND below the seam. Stretched, the two are the same height by
44 construction, whatever line-height the browser gives a form control. The same
45 fix, for the same reason, as .models-credit-form in models.css. */
46.ar-input-row { display: flex; align-items: stretch; gap: 0; }
47.ar-ccy {
48 background: var(--bg-tertiary);
49 border: 1px solid var(--border-strong);
50 border-right: none;
51 border-radius: var(--radius-sm) 0 0 var(--radius-sm);
52 color: var(--text-muted);
53 font-size: var(--fs-sm);
54 padding: 7px 9px;
55}
56#autoreload .ar-input {
57 flex: 1;
58 min-width: 0;
59 background: var(--bg-tertiary);
60 border: 1px solid var(--border-strong);
61 border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
62 color: var(--text-primary);
63 font-size: var(--fs-sm);
64 padding: 7px 10px;
65 font-family: var(--font-mono);
66}
67#autoreload .ar-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
68.ar-hint { font-size: var(--fs-2xs); color: var(--text-muted); margin-top: 3px; line-height: 1.45; }
69/* The billing note is a direct child of the panel, not of a field. */
70#autoreload > .ar-hint { margin-top: 8px; }
71
72#autoreload.ar-off .ar-field { opacity: 0.55; }
73
74/* What it has spent against the ceiling this month — the number that answers
75 "is this running away with my money". */
76.ar-spent { margin: 14px 0 4px; }
77.ar-bar { height: 4px; background: var(--bg-tertiary); border-radius: 2px; overflow: hidden; margin-bottom: 5px; }
78.ar-bar-fill { height: 100%; background: var(--accent); transition: width 0.2s; }
79.ar-spent-txt { font-size: var(--fs-2xs); color: var(--text-secondary); font-family: var(--font-mono); }
80
81/* A card that has expired or been declined must be said out loud, BEFORE the balance runs out. */
82.ar-last-error {
83 margin-top: 10px;
84 padding: 8px 10px;
85 border: 1px solid var(--danger);
86 border-radius: var(--radius-sm);
87 color: var(--danger);
88 font-size: var(--fs-xs);
89 line-height: 1.45;
90}
91
92.ar-actions { margin-top: 14px; }
93#autoreload .ar-save {
94 background: var(--accent);
95 border: none;
96 color: var(--on-fill, #fff);
97 border-radius: var(--radius-sm);
98 font-size: var(--fs-sm);
99 padding: 7px 16px;
100}
101#autoreload .ar-save:hover { background: var(--accent-hover); }
102#autoreload .ar-save:disabled { opacity: 0.5; }
103
104.ar-note { margin-top: 8px; font-size: var(--fs-xs); color: var(--text-secondary); line-height: 1.45; }
105.ar-note.bad { color: var(--danger); }