@dqa-ai-solutions/ui-runtime 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -2
- package/dist/_types/ui-kit/primitives/component-css.d.ts +10 -0
- package/dist/_types/ui-kit/primitives/index.d.ts +3 -0
- package/dist/_types/ui-kit/primitives/spec.d.ts +102 -0
- package/dist/_types/ui-kit/primitives/stylesheet.d.ts +37 -0
- package/dist/_types/ui-kit/tokens/emit.d.ts +70 -0
- package/dist/_types/ui-kit/tokens/index.d.ts +5 -0
- package/dist/_types/ui-kit/tokens/oklch.d.ts +53 -0
- package/dist/_types/ui-kit/tokens/resolve.d.ts +4 -0
- package/dist/_types/ui-kit/tokens/scales.d.ts +325 -0
- package/dist/_types/ui-kit/tokens/theme.dqa.d.ts +2 -0
- package/dist/chunks/chunk-5NTG4J62.js +11 -0
- package/dist/chunks/chunk-66DQVLFK.js +5 -0
- package/dist/chunks/chunk-JOIDPECM.js +3 -0
- package/dist/chunks/{chunk-VS5FCRGY.js → chunk-MS2W22ER.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/kit.css +2291 -0
- package/dist/lens.js +1 -1
- package/dist/primitives.js +1 -1
- package/dist/react.js +1 -1
- package/dist/tokens.js +1 -1
- package/package.json +2 -1
- package/dist/chunks/chunk-4LX2HZJU.js +0 -0
- package/dist/chunks/chunk-X6SR5UHK.js +0 -1
package/dist/kit.css
ADDED
|
@@ -0,0 +1,2291 @@
|
|
|
1
|
+
/* @dqa-ai-solutions/ui-runtime — the whole kit. Generated; edit the theme, not this file.
|
|
2
|
+
* Load BEFORE your own stylesheet. Element defaults are zero-specificity,
|
|
3
|
+
* so anything you write wins without !important. */
|
|
4
|
+
/* GENERATED by @dqa-ai-solutions/ui-runtime — do not edit.
|
|
5
|
+
* Change the theme declaration and regenerate. Every colour below was computed from
|
|
6
|
+
* a hue and checked for contrast against every ground it can land on. */
|
|
7
|
+
:root {
|
|
8
|
+
color-scheme: light;
|
|
9
|
+
|
|
10
|
+
/* ── colour ─────────────────────────────────────────────── */
|
|
11
|
+
--fos-bg: #f5f6f8;
|
|
12
|
+
--fos-surface: #ffffff;
|
|
13
|
+
--fos-surface-2: #fafbfc;
|
|
14
|
+
--fos-ink: #191f29;
|
|
15
|
+
--fos-ink-2: #555d6b;
|
|
16
|
+
--fos-ink-3: #667182;
|
|
17
|
+
--fos-line: #e3e6eb;
|
|
18
|
+
--fos-line-2: #eef0f4;
|
|
19
|
+
--fos-primary: #0047ab;
|
|
20
|
+
--fos-primary-bg: #e7eef8;
|
|
21
|
+
--fos-steel: #285193;
|
|
22
|
+
--fos-accent-hover: #1c5dc2;
|
|
23
|
+
--fos-accent-press: #003b91;
|
|
24
|
+
--fos-focus: #0047ab;
|
|
25
|
+
--fos-hover: rgb(25 31 41 / 0.05);
|
|
26
|
+
--fos-press: rgb(25 31 41 / 0.1);
|
|
27
|
+
--fos-primary-contrast: #fafcff;
|
|
28
|
+
--fos-accent: #00bfff;
|
|
29
|
+
--fos-accent-2: #01ced1;
|
|
30
|
+
--fos-gradient-brand: linear-gradient(135deg, #0047ab 0%, #00bfff 55%, #01ced1 100%);
|
|
31
|
+
--fos-tone-plain: #626873;
|
|
32
|
+
--fos-tone-plain-bg: #eeeff1;
|
|
33
|
+
--fos-muted: #626873;
|
|
34
|
+
--fos-muted-bg: #eeeff1;
|
|
35
|
+
--fos-tone-wait: #78671a;
|
|
36
|
+
--fos-tone-wait-bg: #f2efe4;
|
|
37
|
+
--fos-tone-doing: #2262c8;
|
|
38
|
+
--fos-tone-doing-bg: #e6f0ff;
|
|
39
|
+
--fos-info: #2262c8;
|
|
40
|
+
--fos-info-bg: #e6f0ff;
|
|
41
|
+
--fos-tone-done: #117b4e;
|
|
42
|
+
--fos-tone-done-bg: #e6f3ea;
|
|
43
|
+
--fos-ok: #117b4e;
|
|
44
|
+
--fos-ok-bg: #e6f3ea;
|
|
45
|
+
--fos-tone-warn: #945700;
|
|
46
|
+
--fos-tone-warn-bg: #f9ede2;
|
|
47
|
+
--fos-warn: #945700;
|
|
48
|
+
--fos-warn-bg: #f9ede2;
|
|
49
|
+
--fos-tone-stop: #b92a21;
|
|
50
|
+
--fos-tone-stop-bg: #ffe9e6;
|
|
51
|
+
--fos-bad: #b92a21;
|
|
52
|
+
--fos-bad-bg: #ffe9e6;
|
|
53
|
+
|
|
54
|
+
/* ── chart: categories rotate hue AND alternate lightness ─ */
|
|
55
|
+
--fos-series-1: #2f66be;
|
|
56
|
+
--fos-series-2: #c077d2;
|
|
57
|
+
--fos-series-3: #ae3b44;
|
|
58
|
+
--fos-series-4: #c68c00;
|
|
59
|
+
--fos-series-5: #317c1a;
|
|
60
|
+
--fos-series-6: #00adb4;
|
|
61
|
+
|
|
62
|
+
/* ── chart: one ordered scale, one hue, low → high ──────── */
|
|
63
|
+
--fos-level-1: #dbe9ff;
|
|
64
|
+
--fos-level-2: #9cc2ff;
|
|
65
|
+
--fos-level-3: #729cdf;
|
|
66
|
+
--fos-level-4: #4f77b8;
|
|
67
|
+
--fos-level-5: #2e5491;
|
|
68
|
+
|
|
69
|
+
/* ── rhythm ─────────────────────────────────────────────── */
|
|
70
|
+
--fos-s1: 4px; /* icon to its label; inside a badge */
|
|
71
|
+
--fos-s2: 8px; /* control to its hint; between list rows */
|
|
72
|
+
--fos-s3: 12px; /* inside a chip; tight stack */
|
|
73
|
+
--fos-s4: 16px; /* between fields; dense card padding */
|
|
74
|
+
--fos-s5: 24px; /* card padding; heading to its body */
|
|
75
|
+
--fos-s6: 32px; /* between blocks in one section */
|
|
76
|
+
--fos-s7: 48px; /* between top-level sections */
|
|
77
|
+
|
|
78
|
+
/* ── type — four numbers per step, always together ──────── */
|
|
79
|
+
--fos-t-micro: 10px;
|
|
80
|
+
--fos-t-micro-line: 1.35;
|
|
81
|
+
--fos-t-micro-weight: 400;
|
|
82
|
+
--fos-t-micro-tracking: 0.1px;
|
|
83
|
+
--fos-t-meta: 11px;
|
|
84
|
+
--fos-t-meta-line: 1.4;
|
|
85
|
+
--fos-t-meta-weight: 400;
|
|
86
|
+
--fos-t-meta-tracking: 0.05px;
|
|
87
|
+
--fos-t-caption: 12px;
|
|
88
|
+
--fos-t-caption-line: 1.4;
|
|
89
|
+
--fos-t-caption-weight: 400;
|
|
90
|
+
--fos-t-caption-tracking: 0px;
|
|
91
|
+
--fos-t-body: 14px;
|
|
92
|
+
--fos-t-body-line: 1.5;
|
|
93
|
+
--fos-t-body-weight: 400;
|
|
94
|
+
--fos-t-body-tracking: 0px;
|
|
95
|
+
--fos-t-body-lg: 16px;
|
|
96
|
+
--fos-t-body-lg-line: 1.5;
|
|
97
|
+
--fos-t-body-lg-weight: 400;
|
|
98
|
+
--fos-t-body-lg-tracking: -0.05px;
|
|
99
|
+
--fos-t-h3: 20px;
|
|
100
|
+
--fos-t-h3-line: 1.3;
|
|
101
|
+
--fos-t-h3-weight: 600;
|
|
102
|
+
--fos-t-h3-tracking: -0.2px;
|
|
103
|
+
--fos-t-h2: 24px;
|
|
104
|
+
--fos-t-h2-line: 1.25;
|
|
105
|
+
--fos-t-h2-weight: 600;
|
|
106
|
+
--fos-t-h2-tracking: -0.4px;
|
|
107
|
+
--fos-t-h1: 28px;
|
|
108
|
+
--fos-t-h1-line: 1.2;
|
|
109
|
+
--fos-t-h1-weight: 600;
|
|
110
|
+
--fos-t-h1-tracking: -0.6px;
|
|
111
|
+
|
|
112
|
+
/* ── table row: density reaches the surface it matters most on ─ */
|
|
113
|
+
--fos-row-h: 40px;
|
|
114
|
+
--fos-cell-x: 12px;
|
|
115
|
+
--fos-cell-y: 8px;
|
|
116
|
+
--fos-control-h: 36px; /* how tall a control is DRAWN */
|
|
117
|
+
--fos-target: 24px; /* ⛔ the FLOOR any target may shrink to — WCAG 2.2 §2.5.8 */
|
|
118
|
+
--fos-touch: 44px; /* how big a FINGER target must be */
|
|
119
|
+
|
|
120
|
+
/* ── radius ─────────────────────────────────────────────── */
|
|
121
|
+
--fos-r-sm: 6px; /* badge, inline tag */
|
|
122
|
+
--fos-r: 8px; /* button, input, card */
|
|
123
|
+
--fos-r-lg: 12px; /* dialog, sheet, panel */
|
|
124
|
+
--fos-r-pill: 9999px; /* chip, avatar, segmented control */
|
|
125
|
+
|
|
126
|
+
/* ── shadow, motion, type family — passed through ───────── */
|
|
127
|
+
--fos-sh-1: 0 1px 2px rgba(19, 23, 34, .04);
|
|
128
|
+
--fos-sh-2: 0 1px 3px rgba(19, 23, 34, .07), 0 1px 2px rgba(19, 23, 34, .04);
|
|
129
|
+
--fos-sh-3: 0 12px 28px -10px rgba(19, 23, 34, .16);
|
|
130
|
+
--fos-dur-fast: 120ms;
|
|
131
|
+
--fos-dur-base: 180ms;
|
|
132
|
+
--fos-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
|
|
133
|
+
--fos-ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
|
|
134
|
+
--fos-font: 'Inter Variable', Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
|
|
135
|
+
--fos-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/* density: compact — only what density governs. No --fos-touch. */
|
|
139
|
+
:root[data-density="compact"] {
|
|
140
|
+
--fos-s1: 2px;
|
|
141
|
+
--fos-s2: 6px;
|
|
142
|
+
--fos-s3: 8px;
|
|
143
|
+
--fos-s4: 12px;
|
|
144
|
+
--fos-s5: 18px;
|
|
145
|
+
--fos-s6: 24px;
|
|
146
|
+
--fos-s7: 36px;
|
|
147
|
+
--fos-row-h: 32px;
|
|
148
|
+
--fos-control-h: 30px;
|
|
149
|
+
--fos-cell-x: 8px;
|
|
150
|
+
--fos-cell-y: 4px;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/* density: roomy — only what density governs. No --fos-touch. */
|
|
154
|
+
:root[data-density="roomy"] {
|
|
155
|
+
--fos-s1: 4px;
|
|
156
|
+
--fos-s2: 10px;
|
|
157
|
+
--fos-s3: 16px;
|
|
158
|
+
--fos-s4: 24px;
|
|
159
|
+
--fos-s5: 32px;
|
|
160
|
+
--fos-s6: 48px;
|
|
161
|
+
--fos-s7: 72px;
|
|
162
|
+
--fos-row-h: 48px;
|
|
163
|
+
--fos-control-h: 42px;
|
|
164
|
+
--fos-cell-x: 16px;
|
|
165
|
+
--fos-cell-y: 12px;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/* density: cosy — only what density governs. No --fos-touch. */
|
|
169
|
+
:root[data-density="cosy"] {
|
|
170
|
+
--fos-s1: 4px;
|
|
171
|
+
--fos-s2: 8px;
|
|
172
|
+
--fos-s3: 12px;
|
|
173
|
+
--fos-s4: 16px;
|
|
174
|
+
--fos-s5: 24px;
|
|
175
|
+
--fos-s6: 32px;
|
|
176
|
+
--fos-s7: 48px;
|
|
177
|
+
--fos-row-h: 40px;
|
|
178
|
+
--fos-control-h: 36px;
|
|
179
|
+
--fos-cell-x: 12px;
|
|
180
|
+
--fos-cell-y: 8px;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/* base — element defaults at ZERO specificity: override freely. */
|
|
184
|
+
:where(*, *::before, *::after) {
|
|
185
|
+
box-sizing: border-box;
|
|
186
|
+
}
|
|
187
|
+
:where(html) {
|
|
188
|
+
-webkit-text-size-adjust: 100%;
|
|
189
|
+
}
|
|
190
|
+
:where(body) {
|
|
191
|
+
margin: 0;
|
|
192
|
+
background: var(--fos-bg);
|
|
193
|
+
color: var(--fos-ink);
|
|
194
|
+
font: var(--fos-t-body-weight) var(--fos-t-body)/var(--fos-t-body-line) var(--fos-font);
|
|
195
|
+
letter-spacing: var(--fos-t-body-tracking);
|
|
196
|
+
-webkit-font-smoothing: antialiased;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/* headings take the ladder; nothing is left at a browser default */
|
|
200
|
+
:where(h1) {
|
|
201
|
+
margin: 0;
|
|
202
|
+
font: var(--fos-t-h1-weight) var(--fos-t-h1)/var(--fos-t-h1-line) var(--fos-font);
|
|
203
|
+
letter-spacing: var(--fos-t-h1-tracking);
|
|
204
|
+
color: var(--fos-ink);
|
|
205
|
+
}
|
|
206
|
+
:where(h2) {
|
|
207
|
+
margin: 0;
|
|
208
|
+
font: var(--fos-t-h2-weight) var(--fos-t-h2)/var(--fos-t-h2-line) var(--fos-font);
|
|
209
|
+
letter-spacing: var(--fos-t-h2-tracking);
|
|
210
|
+
color: var(--fos-ink);
|
|
211
|
+
}
|
|
212
|
+
:where(h3) {
|
|
213
|
+
margin: 0;
|
|
214
|
+
font: var(--fos-t-h3-weight) var(--fos-t-h3)/var(--fos-t-h3-line) var(--fos-font);
|
|
215
|
+
letter-spacing: var(--fos-t-h3-tracking);
|
|
216
|
+
color: var(--fos-ink);
|
|
217
|
+
}
|
|
218
|
+
:where(h4) {
|
|
219
|
+
margin: 0;
|
|
220
|
+
font: var(--fos-t-body-lg-weight) var(--fos-t-body-lg)/var(--fos-t-body-lg-line) var(--fos-font);
|
|
221
|
+
letter-spacing: var(--fos-t-body-lg-tracking);
|
|
222
|
+
color: var(--fos-ink);
|
|
223
|
+
}
|
|
224
|
+
:where(p, ul, ol, dl) {
|
|
225
|
+
margin: 0;
|
|
226
|
+
}
|
|
227
|
+
:where(ul, ol) {
|
|
228
|
+
padding-left: var(--fos-s5);
|
|
229
|
+
}
|
|
230
|
+
:where(a) {
|
|
231
|
+
color: var(--fos-primary);
|
|
232
|
+
text-underline-offset: 2px;
|
|
233
|
+
}
|
|
234
|
+
:where(code, kbd, samp, pre) {
|
|
235
|
+
font-family: var(--fos-mono);
|
|
236
|
+
font-size: 0.92em;
|
|
237
|
+
}
|
|
238
|
+
:where(hr) {
|
|
239
|
+
border: 0;
|
|
240
|
+
border-top: 1px solid var(--fos-line);
|
|
241
|
+
margin: 0;
|
|
242
|
+
}
|
|
243
|
+
:where(img, svg, video) {
|
|
244
|
+
max-width: 100%;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/* ⛔ a bare control must be QUIET. See the header for what happens otherwise. */
|
|
248
|
+
:where(button) {
|
|
249
|
+
font: inherit;
|
|
250
|
+
color: var(--fos-ink);
|
|
251
|
+
background: var(--fos-surface);
|
|
252
|
+
border: 1px solid var(--fos-line);
|
|
253
|
+
border-radius: var(--fos-r);
|
|
254
|
+
min-height: var(--fos-control-h);
|
|
255
|
+
padding: 0 var(--fos-s4);
|
|
256
|
+
cursor: pointer;
|
|
257
|
+
}
|
|
258
|
+
:where(input, select, textarea) {
|
|
259
|
+
font: inherit;
|
|
260
|
+
color: var(--fos-ink);
|
|
261
|
+
background: var(--fos-surface);
|
|
262
|
+
border: 1px solid var(--fos-line);
|
|
263
|
+
border-radius: var(--fos-r);
|
|
264
|
+
min-height: var(--fos-control-h);
|
|
265
|
+
padding: 0 var(--fos-s3);
|
|
266
|
+
}
|
|
267
|
+
:where(textarea) {
|
|
268
|
+
padding: var(--fos-s3);
|
|
269
|
+
min-height: var(--fos-s7);
|
|
270
|
+
}
|
|
271
|
+
:where(label) {
|
|
272
|
+
font: 500 var(--fos-t-caption)/var(--fos-t-caption-line) var(--fos-font);
|
|
273
|
+
color: var(--fos-ink-2);
|
|
274
|
+
}
|
|
275
|
+
:where(:focus-visible) {
|
|
276
|
+
outline: 2px solid var(--fos-focus);
|
|
277
|
+
outline-offset: 2px;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/* ⭐ tables read right with no class at all — the commonest surface in an
|
|
281
|
+
* operational product should not be the one that needs remembering. */
|
|
282
|
+
:where(table) {
|
|
283
|
+
width: 100%;
|
|
284
|
+
border-collapse: collapse;
|
|
285
|
+
}
|
|
286
|
+
:where(th) {
|
|
287
|
+
text-align: left;
|
|
288
|
+
padding: var(--fos-cell-y) var(--fos-cell-x);
|
|
289
|
+
height: var(--fos-row-h);
|
|
290
|
+
border-bottom: 1px solid var(--fos-line);
|
|
291
|
+
font: 500 var(--fos-t-meta)/var(--fos-t-meta-line) var(--fos-font);
|
|
292
|
+
color: var(--fos-ink-3);
|
|
293
|
+
white-space: nowrap;
|
|
294
|
+
}
|
|
295
|
+
:where(td) {
|
|
296
|
+
padding: var(--fos-cell-y) var(--fos-cell-x);
|
|
297
|
+
height: var(--fos-row-h);
|
|
298
|
+
border-bottom: 1px solid var(--fos-line-2);
|
|
299
|
+
vertical-align: middle;
|
|
300
|
+
font: var(--fos-t-body-weight) var(--fos-t-body)/var(--fos-t-body-line) var(--fos-font);
|
|
301
|
+
}
|
|
302
|
+
/* ⛔ FIXED IN 0.16.0 — PAST, NOT PRESENT. The rule below is the fix.
|
|
303
|
+
* The base layer had the same `th`/`td` swap the component layer had:
|
|
304
|
+
* `rowHeaderKey` makes one cell of every row a `th`, and a bare table
|
|
305
|
+
* gave that cell the COLUMN HEADER's size, colour and rule.
|
|
306
|
+
* Weight is the one thing it keeps — it names the record. */
|
|
307
|
+
:where(th[scope="row"]) {
|
|
308
|
+
white-space: normal;
|
|
309
|
+
vertical-align: middle;
|
|
310
|
+
border-bottom: 1px solid var(--fos-line-2);
|
|
311
|
+
font: var(--fos-t-body-weight) var(--fos-t-body)/var(--fos-t-body-line) var(--fos-font);
|
|
312
|
+
font-weight: 500;
|
|
313
|
+
color: var(--fos-ink);
|
|
314
|
+
}
|
|
315
|
+
:where(tbody tr:hover td, tbody tr:hover th) {
|
|
316
|
+
background-image: linear-gradient(var(--fos-hover), var(--fos-hover));
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/* someone who turned motion off meant it */
|
|
320
|
+
@media (prefers-reduced-motion: reduce) {
|
|
321
|
+
:where(*) { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
/* GENERATED by @dqa-ai-solutions/ui-runtime — one class per type step, all four numbers. */
|
|
325
|
+
.fos-t-micro {
|
|
326
|
+
font: 400 10px/1.35 var(--fos-font);
|
|
327
|
+
letter-spacing: 0.1px;
|
|
328
|
+
}
|
|
329
|
+
.fos-t-meta {
|
|
330
|
+
font: 400 11px/1.4 var(--fos-font);
|
|
331
|
+
letter-spacing: 0.05px;
|
|
332
|
+
}
|
|
333
|
+
.fos-t-caption {
|
|
334
|
+
font: 400 12px/1.4 var(--fos-font);
|
|
335
|
+
letter-spacing: 0px;
|
|
336
|
+
}
|
|
337
|
+
.fos-t-body {
|
|
338
|
+
font: 400 14px/1.5 var(--fos-font);
|
|
339
|
+
letter-spacing: 0px;
|
|
340
|
+
}
|
|
341
|
+
.fos-t-body-lg {
|
|
342
|
+
font: 400 16px/1.5 var(--fos-font);
|
|
343
|
+
letter-spacing: -0.05px;
|
|
344
|
+
}
|
|
345
|
+
.fos-t-h3 {
|
|
346
|
+
font: 600 20px/1.3 var(--fos-font);
|
|
347
|
+
letter-spacing: -0.2px;
|
|
348
|
+
}
|
|
349
|
+
.fos-t-h2 {
|
|
350
|
+
font: 600 24px/1.25 var(--fos-font);
|
|
351
|
+
letter-spacing: -0.4px;
|
|
352
|
+
}
|
|
353
|
+
.fos-t-h1 {
|
|
354
|
+
font: 600 28px/1.2 var(--fos-font);
|
|
355
|
+
letter-spacing: -0.6px;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
/* GENERATED by @dqa-ai-solutions/ui-runtime — the component standard.
|
|
359
|
+
* Every element, every state its kind obliges. Every value a token
|
|
360
|
+
* reference: change the theme and this follows. Context is expressed by
|
|
361
|
+
* nesting, so nobody has to remember a modifier. */
|
|
362
|
+
|
|
363
|
+
/* text — named by the JOB it does, never by its size */
|
|
364
|
+
.fos-page-title {
|
|
365
|
+
font: var(--fos-t-h1-weight) var(--fos-t-h1)/var(--fos-t-h1-line) var(--fos-font);
|
|
366
|
+
letter-spacing: var(--fos-t-h1-tracking);
|
|
367
|
+
color: var(--fos-ink);
|
|
368
|
+
}
|
|
369
|
+
.fos-section-title {
|
|
370
|
+
font: var(--fos-t-h3-weight) var(--fos-t-h3)/var(--fos-t-h3-line) var(--fos-font);
|
|
371
|
+
letter-spacing: var(--fos-t-h3-tracking);
|
|
372
|
+
color: var(--fos-ink);
|
|
373
|
+
}
|
|
374
|
+
.fos-card-title {
|
|
375
|
+
font: var(--fos-t-body-lg-weight) var(--fos-t-body-lg)/var(--fos-t-body-lg-line) var(--fos-font);
|
|
376
|
+
letter-spacing: var(--fos-t-body-lg-tracking);
|
|
377
|
+
color: var(--fos-ink);
|
|
378
|
+
font-weight: 600;
|
|
379
|
+
}
|
|
380
|
+
.fos-lead {
|
|
381
|
+
font: var(--fos-t-body-lg-weight) var(--fos-t-body-lg)/var(--fos-t-body-lg-line) var(--fos-font);
|
|
382
|
+
letter-spacing: var(--fos-t-body-lg-tracking);
|
|
383
|
+
color: var(--fos-ink-2);
|
|
384
|
+
}
|
|
385
|
+
.fos-body {
|
|
386
|
+
font: var(--fos-t-body-weight) var(--fos-t-body)/var(--fos-t-body-line) var(--fos-font);
|
|
387
|
+
letter-spacing: var(--fos-t-body-tracking);
|
|
388
|
+
color: var(--fos-ink);
|
|
389
|
+
}
|
|
390
|
+
.fos-label {
|
|
391
|
+
font: var(--fos-t-caption-weight) var(--fos-t-caption)/var(--fos-t-caption-line) var(--fos-font);
|
|
392
|
+
letter-spacing: var(--fos-t-caption-tracking);
|
|
393
|
+
color: var(--fos-ink-2);
|
|
394
|
+
font-weight: 500;
|
|
395
|
+
}
|
|
396
|
+
.fos-hint {
|
|
397
|
+
font: var(--fos-t-caption-weight) var(--fos-t-caption)/var(--fos-t-caption-line) var(--fos-font);
|
|
398
|
+
letter-spacing: var(--fos-t-caption-tracking);
|
|
399
|
+
color: var(--fos-ink-3);
|
|
400
|
+
}
|
|
401
|
+
.fos-error {
|
|
402
|
+
font: var(--fos-t-caption-weight) var(--fos-t-caption)/var(--fos-t-caption-line) var(--fos-font);
|
|
403
|
+
letter-spacing: var(--fos-t-caption-tracking);
|
|
404
|
+
color: var(--fos-tone-stop);
|
|
405
|
+
font-weight: 500;
|
|
406
|
+
}
|
|
407
|
+
.fos-table-header {
|
|
408
|
+
font: var(--fos-t-meta-weight) var(--fos-t-meta)/var(--fos-t-meta-line) var(--fos-font);
|
|
409
|
+
letter-spacing: var(--fos-t-meta-tracking);
|
|
410
|
+
color: var(--fos-ink-3);
|
|
411
|
+
font-weight: 500;
|
|
412
|
+
}
|
|
413
|
+
.fos-table-cell {
|
|
414
|
+
font: var(--fos-t-body-weight) var(--fos-t-body)/var(--fos-t-body-line) var(--fos-font);
|
|
415
|
+
letter-spacing: var(--fos-t-body-tracking);
|
|
416
|
+
color: var(--fos-ink);
|
|
417
|
+
}
|
|
418
|
+
.fos-table-cell-sub {
|
|
419
|
+
font: var(--fos-t-meta-weight) var(--fos-t-meta)/var(--fos-t-meta-line) var(--fos-font);
|
|
420
|
+
letter-spacing: var(--fos-t-meta-tracking);
|
|
421
|
+
color: var(--fos-ink-3);
|
|
422
|
+
}
|
|
423
|
+
.fos-note {
|
|
424
|
+
font: var(--fos-t-caption-weight) var(--fos-t-caption)/var(--fos-t-caption-line) var(--fos-font);
|
|
425
|
+
letter-spacing: var(--fos-t-caption-tracking);
|
|
426
|
+
color: var(--fos-ink-3);
|
|
427
|
+
}
|
|
428
|
+
.fos-delta {
|
|
429
|
+
font: var(--fos-t-body-weight) var(--fos-t-body)/var(--fos-t-body-line) var(--fos-font);
|
|
430
|
+
letter-spacing: var(--fos-t-body-tracking);
|
|
431
|
+
color: var(--fos-ink);
|
|
432
|
+
font-weight: 500;
|
|
433
|
+
font-variant-numeric: tabular-nums;
|
|
434
|
+
}
|
|
435
|
+
.fos-empty-title {
|
|
436
|
+
font: var(--fos-t-body-lg-weight) var(--fos-t-body-lg)/var(--fos-t-body-lg-line) var(--fos-font);
|
|
437
|
+
letter-spacing: var(--fos-t-body-lg-tracking);
|
|
438
|
+
color: var(--fos-ink);
|
|
439
|
+
font-weight: 600;
|
|
440
|
+
}
|
|
441
|
+
.fos-empty-body {
|
|
442
|
+
font: var(--fos-t-body-weight) var(--fos-t-body)/var(--fos-t-body-line) var(--fos-font);
|
|
443
|
+
letter-spacing: var(--fos-t-body-tracking);
|
|
444
|
+
color: var(--fos-ink-2);
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
/*
|
|
448
|
+
* ⛔ DELTA — the SIGN carries the meaning, the colour only echoes it.
|
|
449
|
+
* A column of differences read by colour alone is unreadable to roughly one
|
|
450
|
+
* man in twelve, and to everyone on a photocopy. Default ink is neutral.
|
|
451
|
+
*/
|
|
452
|
+
.fos-delta--short {
|
|
453
|
+
color: var(--fos-tone-stop);
|
|
454
|
+
}
|
|
455
|
+
.fos-delta--over {
|
|
456
|
+
color: var(--fos-tone-done);
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
/* button — the box comes from WHERE it stands, the paint from WHAT it does */
|
|
460
|
+
.fos-btn {
|
|
461
|
+
display: inline-flex;
|
|
462
|
+
align-items: center;
|
|
463
|
+
min-height: var(--fos-control-h);
|
|
464
|
+
border-radius: var(--fos-r);
|
|
465
|
+
cursor: pointer;
|
|
466
|
+
text-decoration: none;
|
|
467
|
+
position: relative;
|
|
468
|
+
justify-content: center;
|
|
469
|
+
gap: var(--fos-s2);
|
|
470
|
+
padding: 0 var(--fos-s5);
|
|
471
|
+
border: 1px solid transparent;
|
|
472
|
+
white-space: nowrap;
|
|
473
|
+
font: var(--fos-t-body-weight) var(--fos-t-body)/var(--fos-t-body-line) var(--fos-font);
|
|
474
|
+
letter-spacing: var(--fos-t-body-tracking);
|
|
475
|
+
color: var(--fos-ink);
|
|
476
|
+
}
|
|
477
|
+
.fos-btn--key {
|
|
478
|
+
background: var(--fos-primary);
|
|
479
|
+
color: var(--fos-primary-contrast);
|
|
480
|
+
}
|
|
481
|
+
.fos-btn--normal {
|
|
482
|
+
background: var(--fos-surface);
|
|
483
|
+
color: var(--fos-ink);
|
|
484
|
+
border-color: var(--fos-line);
|
|
485
|
+
}
|
|
486
|
+
.fos-btn--quiet {
|
|
487
|
+
background: transparent;
|
|
488
|
+
color: var(--fos-ink-2);
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
/*
|
|
492
|
+
* ⛔ DANGER IS OUTLINED, NEVER FILLED — and this is not a taste.
|
|
493
|
+
* A filled dark-red block standing next to a filled brand-red block is TWO
|
|
494
|
+
* solid reds on one screen: the eye reads two primaries and picks neither.
|
|
495
|
+
* The reference app hit this three times — 21/8, 28/8 and 8/9/2026 — and each
|
|
496
|
+
* time a user reported it in the same words: "two active buttons".
|
|
497
|
+
* Ink and border carry `tone-stop` perfectly well; `error` text already
|
|
498
|
+
* proves that pairing readable on `surface`. The fill added nothing but
|
|
499
|
+
* weight, and weight is exactly what a destructive action must not have.
|
|
500
|
+
*/
|
|
501
|
+
.fos-btn--danger {
|
|
502
|
+
background: transparent;
|
|
503
|
+
color: var(--fos-tone-stop);
|
|
504
|
+
border-color: var(--fos-tone-stop);
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
/*
|
|
508
|
+
* ⛔ FIXED IN 0.11.0 — PAST, NOT PRESENT. The hover and press colours exist
|
|
509
|
+
* and are checked; what follows is why the check is there.
|
|
510
|
+
* They did NOT exist until this grammar asked for them: a silent replacement
|
|
511
|
+
* had dropped them from the resolver, and no test noticed because tests
|
|
512
|
+
* checked the tokens present, never the tokens required. Every button in
|
|
513
|
+
* every app had no hover state.
|
|
514
|
+
*/
|
|
515
|
+
.fos-btn--key:hover {
|
|
516
|
+
background: var(--fos-accent-hover);
|
|
517
|
+
}
|
|
518
|
+
.fos-btn--key:active {
|
|
519
|
+
background: var(--fos-accent-press);
|
|
520
|
+
}
|
|
521
|
+
.fos-btn:hover {
|
|
522
|
+
background-image: linear-gradient(var(--fos-hover), var(--fos-hover));
|
|
523
|
+
}
|
|
524
|
+
.fos-btn:active {
|
|
525
|
+
background-image: linear-gradient(var(--fos-press), var(--fos-press));
|
|
526
|
+
transform: translateY(1px);
|
|
527
|
+
}
|
|
528
|
+
.fos-btn:focus-visible {
|
|
529
|
+
outline: 2px solid var(--fos-focus);
|
|
530
|
+
outline-offset: 2px;
|
|
531
|
+
}
|
|
532
|
+
.fos-btn[disabled], .fos-btn[aria-disabled="true"] {
|
|
533
|
+
opacity: 0.55;
|
|
534
|
+
cursor: not-allowed;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
/*
|
|
538
|
+
* ⭐ ICON-ONLY IS THE DEFAULT SHAPE, and the label lives on as the
|
|
539
|
+
* accessible name and the tooltip. A square box, because a wide box with
|
|
540
|
+
* one glyph floating in it reads as a button missing its word.
|
|
541
|
+
*/
|
|
542
|
+
.fos-btn--icon {
|
|
543
|
+
padding: 0;
|
|
544
|
+
width: var(--fos-control-h);
|
|
545
|
+
min-width: var(--fos-control-h);
|
|
546
|
+
gap: 0;
|
|
547
|
+
}
|
|
548
|
+
.fos-btn--icon .fos-icon {
|
|
549
|
+
width: var(--fos-t-body-lg);
|
|
550
|
+
height: var(--fos-t-body-lg);
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
/* the overflow trigger — one control standing for several */
|
|
554
|
+
.fos-btn--menu {
|
|
555
|
+
padding: 0;
|
|
556
|
+
width: var(--fos-control-h);
|
|
557
|
+
min-width: var(--fos-control-h);
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
/*
|
|
561
|
+
* ⭐ ON A FINGER, THE HIT AREA GROWS BACK TO THE FULL TARGET.
|
|
562
|
+
* The control is DRAWN at --fos-control-h, so a dense screen is not pushed
|
|
563
|
+
* down the page by a row of 44px boxes. On a coarse pointer a transparent
|
|
564
|
+
* ::after expands the area back out to --fos-touch: the eye gets 36px, the
|
|
565
|
+
* finger keeps 44, and nothing was traded away. The inset is computed FROM
|
|
566
|
+
* the two tokens, so it cannot drift out of step with either.
|
|
567
|
+
*/
|
|
568
|
+
@media (pointer: coarse) {
|
|
569
|
+
.fos-btn::after, .fos-menu-item::after {
|
|
570
|
+
content: "";
|
|
571
|
+
position: absolute;
|
|
572
|
+
inset: calc((var(--fos-touch) - var(--fos-control-h)) / -2);
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
/* inside a table the row sets the height — WCAG 2.2 §2.5.8 is why it may */
|
|
577
|
+
.fos-table .fos-btn {
|
|
578
|
+
min-height: var(--fos-row-h);
|
|
579
|
+
padding: 0 var(--fos-s3);
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
/*
|
|
583
|
+
* ⛔ and in a table a button is ALWAYS square and wordless: a word in a row
|
|
584
|
+
* competes with the data for the same glance, on every one of forty rows.
|
|
585
|
+
*/
|
|
586
|
+
.fos-table .fos-btn--icon, .fos-table .fos-btn--menu {
|
|
587
|
+
width: var(--fos-row-h);
|
|
588
|
+
min-width: var(--fos-row-h);
|
|
589
|
+
padding: 0;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
/*
|
|
593
|
+
* ⛔ AND IT WEARS NO BOX — added 6/9/2026, after a user looked at forty rows.
|
|
594
|
+
* A square outline repeated down every row draws a column of empty boxes that
|
|
595
|
+
* is heavier on the page than the data beside it, and the box says nothing the
|
|
596
|
+
* glyph did not already say. Reported as: "it should show like the icon only,
|
|
597
|
+
* no border — that is what makes it professional."
|
|
598
|
+
* ⭐ The affordance does not disappear; it moves to the pointer. Hover and
|
|
599
|
+
* press keep their wash, and focus keeps its ring, so the control is still
|
|
600
|
+
* discoverable by mouse and reachable by keyboard. What is dropped is the
|
|
601
|
+
* ink that was standing there when nobody was pointing at it.
|
|
602
|
+
* ⚠️ TIER-BLIND ON PURPOSE. A key/danger button carries meaning in its FILL,
|
|
603
|
+
* not in its outline, so this strips the border and the surface but leaves
|
|
604
|
+
* the paint of a tier that has one.
|
|
605
|
+
*/
|
|
606
|
+
.fos-table .fos-btn--icon:not(.fos-btn--key):not(.fos-btn--danger), .fos-table .fos-btn--menu:not(.fos-btn--key):not(.fos-btn--danger) {
|
|
607
|
+
background: transparent;
|
|
608
|
+
border-color: transparent;
|
|
609
|
+
color: var(--fos-ink-2);
|
|
610
|
+
}
|
|
611
|
+
.fos-table .fos-btn--icon:hover, .fos-table .fos-btn--menu:hover {
|
|
612
|
+
color: var(--fos-ink);
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
/*
|
|
616
|
+
* ⛔ AND THE GLYPH GETS A FLOOR — added 6/9/2026, after a user could barely
|
|
617
|
+
* see it: "the icon and the ... button look too small, users can hardly see
|
|
618
|
+
* them at all."
|
|
619
|
+
* ⭐ Stripping the border (above) took away the box that used to advertise the
|
|
620
|
+
* control, so the mark left standing has to carry the weight on its own. An
|
|
621
|
+
* icon drawn for a 13px table CELL is not the same thing as an icon that IS
|
|
622
|
+
* the whole control.
|
|
623
|
+
* ⚠️ SET HERE, NOT AT EACH CALL SITE. The size an app passes is right for the
|
|
624
|
+
* place it was written for; what makes it wrong is standing alone in a row.
|
|
625
|
+
* The kit already decides the BOX from where it stands — the mark inside it
|
|
626
|
+
* follows the same rule.
|
|
627
|
+
* ⚠️ AND `s4`, NOT `s5`. The first try used `s5` (24px at the middle density)
|
|
628
|
+
* and the same user called it back: "too big now, bring it down a bit — it
|
|
629
|
+
* is too different from the text and the icon on the row." A row control
|
|
630
|
+
* has to be findable, not louder than the data it sits beside; `s4` (16px)
|
|
631
|
+
* lands next to the 14px mark that leads the row instead of towering over it.
|
|
632
|
+
*/
|
|
633
|
+
.fos-table .fos-btn--icon > svg, .fos-table .fos-btn--menu > svg {
|
|
634
|
+
width: var(--fos-s4);
|
|
635
|
+
height: var(--fos-s4);
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
/*
|
|
639
|
+
* row header — the identity cell of a row, and the one place a mark may stand
|
|
640
|
+
* IN FRONT OF the name: a tree toggle, an icon for what kind of row this is.
|
|
641
|
+
* ⛔ THREE SLOTS, NOT AN INLINE RUN. A mark placed inline is dodged by the
|
|
642
|
+
* FIRST line only; the second line of a wrapped name starts at the cell
|
|
643
|
+
* edge and falls outside the tree's own alignment. Measured on a real
|
|
644
|
+
* screen 6/9/2026 and reported by a user twice.
|
|
645
|
+
* ⚠️ AND NOT `display: flex` ON THE CELL ITSELF. A table cell usually carries
|
|
646
|
+
* width and an overflow rule; a flex box inside a pinned width squeezes the
|
|
647
|
+
* text down to two words and then spills. The box goes INSIDE the cell.
|
|
648
|
+
*/
|
|
649
|
+
.fos-row-head {
|
|
650
|
+
display: flex;
|
|
651
|
+
align-items: flex-start;
|
|
652
|
+
gap: var(--fos-s2);
|
|
653
|
+
}
|
|
654
|
+
.fos-row-head-lead {
|
|
655
|
+
flex: 0 0 auto;
|
|
656
|
+
display: inline-flex;
|
|
657
|
+
align-items: center;
|
|
658
|
+
gap: var(--fos-s2);
|
|
659
|
+
color: var(--fos-ink-3);
|
|
660
|
+
}
|
|
661
|
+
.fos-row-head-text {
|
|
662
|
+
flex: 1 1 auto;
|
|
663
|
+
min-width: 0;
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
/*
|
|
667
|
+
* action row — WRAPS when it does not fit, and a button icon never shrinks.
|
|
668
|
+
* ⛔ Found 27/9/2026 drawing the rules at every level: a dialog foot with
|
|
669
|
+
* "Đóng" + two secondaries + the primary, in a 34rem box, ran OUT of the
|
|
670
|
+
* dialog, and each icon was squeezed to a dot — `:where(svg)` carries
|
|
671
|
+
* `max-width: 100%`, so inside a shrinking flex button the mark gives way
|
|
672
|
+
* first and the button looks icon-less. Wrap the row; pin the mark.
|
|
673
|
+
* ⚠️ A TABLE ROW does not wrap: one line per row, it scrolls in its own box.
|
|
674
|
+
*/
|
|
675
|
+
.fos-actions {
|
|
676
|
+
display: flex;
|
|
677
|
+
align-items: center;
|
|
678
|
+
gap: var(--fos-s2);
|
|
679
|
+
flex-wrap: wrap;
|
|
680
|
+
}
|
|
681
|
+
.fos-table .fos-actions {
|
|
682
|
+
justify-content: flex-end;
|
|
683
|
+
flex-wrap: nowrap;
|
|
684
|
+
}
|
|
685
|
+
.fos-btn > svg {
|
|
686
|
+
flex: none;
|
|
687
|
+
}
|
|
688
|
+
.fos-rail .fos-btn {
|
|
689
|
+
width: 100%;
|
|
690
|
+
justify-content: flex-start;
|
|
691
|
+
}
|
|
692
|
+
.fos-dialog .fos-btn {
|
|
693
|
+
min-width: var(--fos-s7);
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
/*
|
|
697
|
+
* dialog head — the name on the left, the way out (✕) in the top corner.
|
|
698
|
+
* ⭐ Added 27/9/2026: the exit left the foot for the head, so a foot holds
|
|
699
|
+
* only work and never reaches four buttons (see `DialogHead`). The ✕ is an
|
|
700
|
+
* icon button — it keeps its square, not the wide minimum of a worded one.
|
|
701
|
+
*/
|
|
702
|
+
.fos-dialog .fos-btn--icon {
|
|
703
|
+
min-width: var(--fos-control-h);
|
|
704
|
+
}
|
|
705
|
+
.fos-dialog-head {
|
|
706
|
+
display: flex;
|
|
707
|
+
align-items: center;
|
|
708
|
+
gap: var(--fos-s3);
|
|
709
|
+
}
|
|
710
|
+
.fos-dialog-title {
|
|
711
|
+
margin: 0;
|
|
712
|
+
flex: 1 1 auto;
|
|
713
|
+
min-width: 0;
|
|
714
|
+
font: var(--fos-t-h3-weight) var(--fos-t-h3)/var(--fos-t-h3-line) var(--fos-font);
|
|
715
|
+
letter-spacing: var(--fos-t-h3-tracking);
|
|
716
|
+
color: var(--fos-ink);
|
|
717
|
+
}
|
|
718
|
+
.fos-dialog-close {
|
|
719
|
+
flex: none;
|
|
720
|
+
margin-inline-end: calc(-1 * var(--fos-s2));
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
/*
|
|
724
|
+
* dialog frame — ONE scroll, and it is the body. The dialog itself never scrolls.
|
|
725
|
+
* ⛔ Found 27/9/2026 on "Tiếp đón": two columns each scrolling, inside a dialog
|
|
726
|
+
* that ALSO scrolled — scroll to the end and a blank band sat under the
|
|
727
|
+
* buttons. The user: "mọi dialog chỉ được có duy nhất 1 scroll content, view
|
|
728
|
+
* của nó phải là cố định". So: the dialog is a fixed frame no taller than
|
|
729
|
+
* the screen; the head and the foot stand still; `DialogBody` is the one
|
|
730
|
+
* region that scrolls. Every wrapper between the dialog and its body (a
|
|
731
|
+
* <form>, a sheet) becomes a column that may shrink, found with `:has()`.
|
|
732
|
+
* ⚠️ `position: relative` on the body: an `absolute` child (a native radio
|
|
733
|
+
* hidden under its chip) must be clipped BY the body — with no positioned
|
|
734
|
+
* ancestor it takes the dialog as its box and stretches the dialog.
|
|
735
|
+
*/
|
|
736
|
+
.fos-dialog[open] {
|
|
737
|
+
display: flex;
|
|
738
|
+
flex-direction: column;
|
|
739
|
+
overflow: hidden;
|
|
740
|
+
max-height: calc(100dvh - 2 * var(--fos-s5));
|
|
741
|
+
box-sizing: border-box;
|
|
742
|
+
}
|
|
743
|
+
.fos-dialog:focus {
|
|
744
|
+
outline: none;
|
|
745
|
+
}
|
|
746
|
+
.fos-dialog :has(.fos-dialog-body) {
|
|
747
|
+
display: flex;
|
|
748
|
+
flex-direction: column;
|
|
749
|
+
min-height: 0;
|
|
750
|
+
}
|
|
751
|
+
.fos-dialog > *, .fos-dialog :has(.fos-dialog-body) > * {
|
|
752
|
+
flex: none;
|
|
753
|
+
min-height: 0;
|
|
754
|
+
}
|
|
755
|
+
.fos-dialog :is(.fos-dialog-body, :has(.fos-dialog-body)) {
|
|
756
|
+
flex: 1 1 auto;
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
/*
|
|
760
|
+
* ⚠️ ROOM FOR THE FOCUS RING. The ring is `outline: 2px` + `outline-offset: 2px`,
|
|
761
|
+
* i.e. 4px OUTSIDE the control — and a scrolling box clips it. A field flush
|
|
762
|
+
* with the body edge lost its left ring on focus ("textbox bám quá sát lề
|
|
763
|
+
* trái… nhìn như bị cắt", 27/9/2026). The body pads by `s2` on every side and
|
|
764
|
+
* pulls itself out by the same amount, so content still lines up with the head.
|
|
765
|
+
*/
|
|
766
|
+
.fos-dialog-body {
|
|
767
|
+
position: relative;
|
|
768
|
+
overflow-y: auto;
|
|
769
|
+
min-height: 0;
|
|
770
|
+
overscroll-behavior: contain;
|
|
771
|
+
padding: var(--fos-s2);
|
|
772
|
+
margin: 0 calc(-1 * var(--fos-s2));
|
|
773
|
+
display: grid;
|
|
774
|
+
gap: var(--fos-s4);
|
|
775
|
+
align-content: start;
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
/*
|
|
779
|
+
* ⚠️ a link GOES somewhere; it never commits. Drawn as a button, a reader
|
|
780
|
+
* cannot tell which one is safe to press twice.
|
|
781
|
+
*/
|
|
782
|
+
.fos-link {
|
|
783
|
+
color: var(--fos-primary);
|
|
784
|
+
text-decoration: underline;
|
|
785
|
+
text-underline-offset: 2px;
|
|
786
|
+
cursor: pointer;
|
|
787
|
+
}
|
|
788
|
+
.fos-link:hover {
|
|
789
|
+
color: var(--fos-accent-hover);
|
|
790
|
+
}
|
|
791
|
+
.fos-link:active {
|
|
792
|
+
color: var(--fos-accent-press);
|
|
793
|
+
}
|
|
794
|
+
.fos-link:focus-visible {
|
|
795
|
+
outline: 2px solid var(--fos-focus);
|
|
796
|
+
outline-offset: 2px;
|
|
797
|
+
}
|
|
798
|
+
.fos-link[disabled], .fos-link[aria-disabled="true"] {
|
|
799
|
+
opacity: 0.55;
|
|
800
|
+
cursor: not-allowed;
|
|
801
|
+
color: var(--fos-ink-3);
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
/* disclosure — shows more of what is already here; never navigates */
|
|
805
|
+
.fos-disclosure {
|
|
806
|
+
display: inline-flex;
|
|
807
|
+
align-items: center;
|
|
808
|
+
min-height: var(--fos-control-h);
|
|
809
|
+
border-radius: var(--fos-r);
|
|
810
|
+
cursor: pointer;
|
|
811
|
+
text-decoration: none;
|
|
812
|
+
position: relative;
|
|
813
|
+
gap: var(--fos-s2);
|
|
814
|
+
padding: 0 var(--fos-s3);
|
|
815
|
+
background: transparent;
|
|
816
|
+
border: 0;
|
|
817
|
+
list-style: none;
|
|
818
|
+
font: var(--fos-t-body-weight) var(--fos-t-body)/var(--fos-t-body-line) var(--fos-font);
|
|
819
|
+
letter-spacing: var(--fos-t-body-tracking);
|
|
820
|
+
color: var(--fos-ink);
|
|
821
|
+
}
|
|
822
|
+
.fos-disclosure:hover {
|
|
823
|
+
background-image: linear-gradient(var(--fos-hover), var(--fos-hover));
|
|
824
|
+
}
|
|
825
|
+
.fos-disclosure:active {
|
|
826
|
+
background-image: linear-gradient(var(--fos-press), var(--fos-press));
|
|
827
|
+
}
|
|
828
|
+
.fos-disclosure:focus-visible {
|
|
829
|
+
outline: 2px solid var(--fos-focus);
|
|
830
|
+
outline-offset: 2px;
|
|
831
|
+
}
|
|
832
|
+
.fos-disclosure[disabled], .fos-disclosure[aria-disabled="true"] {
|
|
833
|
+
opacity: 0.55;
|
|
834
|
+
cursor: not-allowed;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
/*
|
|
838
|
+
* ⭐ two levels, drawn differently on purpose: page tabs change WHAT the
|
|
839
|
+
* screen is; nested tabs change a slice of one thing.
|
|
840
|
+
*/
|
|
841
|
+
.fos-tabs {
|
|
842
|
+
display: flex;
|
|
843
|
+
gap: var(--fos-s3);
|
|
844
|
+
border-bottom: 1px solid var(--fos-line);
|
|
845
|
+
}
|
|
846
|
+
.fos-tab {
|
|
847
|
+
display: inline-flex;
|
|
848
|
+
align-items: center;
|
|
849
|
+
min-height: var(--fos-control-h);
|
|
850
|
+
border-radius: 0;
|
|
851
|
+
cursor: pointer;
|
|
852
|
+
text-decoration: none;
|
|
853
|
+
position: relative;
|
|
854
|
+
padding: 0 var(--fos-s4);
|
|
855
|
+
background: transparent;
|
|
856
|
+
border: 0;
|
|
857
|
+
border-bottom: 2px solid transparent;
|
|
858
|
+
font: var(--fos-t-body-weight) var(--fos-t-body)/var(--fos-t-body-line) var(--fos-font);
|
|
859
|
+
letter-spacing: var(--fos-t-body-tracking);
|
|
860
|
+
color: var(--fos-ink-2);
|
|
861
|
+
font-weight: 500;
|
|
862
|
+
}
|
|
863
|
+
.fos-tab:hover {
|
|
864
|
+
color: var(--fos-ink);
|
|
865
|
+
}
|
|
866
|
+
.fos-tab:focus-visible {
|
|
867
|
+
outline: 2px solid var(--fos-focus);
|
|
868
|
+
outline-offset: 2px;
|
|
869
|
+
}
|
|
870
|
+
.fos-tab[aria-selected="true"] {
|
|
871
|
+
color: var(--fos-primary);
|
|
872
|
+
border-bottom-color: var(--fos-primary);
|
|
873
|
+
}
|
|
874
|
+
.fos-tab[aria-current="page"] {
|
|
875
|
+
color: var(--fos-primary);
|
|
876
|
+
}
|
|
877
|
+
.fos-tab[disabled], .fos-tab[aria-disabled="true"] {
|
|
878
|
+
opacity: 0.55;
|
|
879
|
+
cursor: not-allowed;
|
|
880
|
+
}
|
|
881
|
+
.fos-tabs--nested {
|
|
882
|
+
border-bottom: 0;
|
|
883
|
+
gap: var(--fos-s2);
|
|
884
|
+
}
|
|
885
|
+
.fos-tabs--nested .fos-tab {
|
|
886
|
+
min-height: var(--fos-s6);
|
|
887
|
+
border-bottom: 0;
|
|
888
|
+
border-radius: var(--fos-r-pill);
|
|
889
|
+
}
|
|
890
|
+
.fos-tabs--nested .fos-tab[aria-selected="true"] {
|
|
891
|
+
background: var(--fos-primary-bg);
|
|
892
|
+
color: var(--fos-ink);
|
|
893
|
+
border-bottom-color: transparent;
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
/* rail */
|
|
897
|
+
.fos-rail-item {
|
|
898
|
+
display: flex;
|
|
899
|
+
align-items: center;
|
|
900
|
+
gap: var(--fos-s2);
|
|
901
|
+
min-height: var(--fos-touch);
|
|
902
|
+
padding: 0 var(--fos-s4);
|
|
903
|
+
border-radius: var(--fos-r);
|
|
904
|
+
text-decoration: none;
|
|
905
|
+
font: var(--fos-t-body-weight) var(--fos-t-body)/var(--fos-t-body-line) var(--fos-font);
|
|
906
|
+
letter-spacing: var(--fos-t-body-tracking);
|
|
907
|
+
color: var(--fos-ink-2);
|
|
908
|
+
}
|
|
909
|
+
.fos-rail-item:hover {
|
|
910
|
+
background-image: linear-gradient(var(--fos-hover), var(--fos-hover));
|
|
911
|
+
}
|
|
912
|
+
.fos-rail-item:focus-visible {
|
|
913
|
+
outline: 2px solid var(--fos-focus);
|
|
914
|
+
outline-offset: 2px;
|
|
915
|
+
}
|
|
916
|
+
.fos-rail-item[aria-current="page"] {
|
|
917
|
+
background: var(--fos-primary-bg);
|
|
918
|
+
color: var(--fos-primary);
|
|
919
|
+
font-weight: 500;
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
/*
|
|
923
|
+
* ⛔ declared scope with no screen yet — dimmed, inert, still listed. Not the
|
|
924
|
+
* same as hidden-for-lack-of-role, which never renders at all.
|
|
925
|
+
*/
|
|
926
|
+
.fos-rail-item[data-state="unbuilt"], .fos-rail-item[aria-disabled="true"] {
|
|
927
|
+
color: var(--fos-ink-3);
|
|
928
|
+
cursor: default;
|
|
929
|
+
}
|
|
930
|
+
.fos-rail-item--dense {
|
|
931
|
+
min-height: var(--fos-control-h);
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
/* menu — an opened list of choices */
|
|
935
|
+
.fos-menu {
|
|
936
|
+
background: var(--fos-surface);
|
|
937
|
+
border: 1px solid var(--fos-line);
|
|
938
|
+
border-radius: var(--fos-r);
|
|
939
|
+
padding: var(--fos-s2);
|
|
940
|
+
box-shadow: var(--fos-sh-3);
|
|
941
|
+
min-width: var(--fos-s7);
|
|
942
|
+
margin: 0;
|
|
943
|
+
list-style: none;
|
|
944
|
+
}
|
|
945
|
+
.fos-menu-item {
|
|
946
|
+
display: flex;
|
|
947
|
+
align-items: center;
|
|
948
|
+
gap: var(--fos-s2);
|
|
949
|
+
width: 100%;
|
|
950
|
+
min-height: var(--fos-touch);
|
|
951
|
+
padding: 0 var(--fos-s3);
|
|
952
|
+
border-radius: var(--fos-r-sm);
|
|
953
|
+
background: transparent;
|
|
954
|
+
border: 0;
|
|
955
|
+
cursor: pointer;
|
|
956
|
+
text-align: left;
|
|
957
|
+
text-decoration: none;
|
|
958
|
+
font: var(--fos-t-body-weight) var(--fos-t-body)/var(--fos-t-body-line) var(--fos-font);
|
|
959
|
+
letter-spacing: var(--fos-t-body-tracking);
|
|
960
|
+
color: var(--fos-ink);
|
|
961
|
+
}
|
|
962
|
+
.fos-menu-item:hover {
|
|
963
|
+
background-image: linear-gradient(var(--fos-hover), var(--fos-hover));
|
|
964
|
+
}
|
|
965
|
+
.fos-menu-item:focus-visible {
|
|
966
|
+
outline: 2px solid var(--fos-focus);
|
|
967
|
+
outline-offset: 2px;
|
|
968
|
+
}
|
|
969
|
+
.fos-menu-item[aria-current="page"], .fos-menu-item[aria-selected="true"] {
|
|
970
|
+
background: var(--fos-primary-bg);
|
|
971
|
+
color: var(--fos-primary);
|
|
972
|
+
}
|
|
973
|
+
.fos-menu-item[disabled], .fos-menu-item[aria-disabled="true"] {
|
|
974
|
+
opacity: 0.55;
|
|
975
|
+
cursor: not-allowed;
|
|
976
|
+
}
|
|
977
|
+
.fos-menu-item[data-tier="danger"] {
|
|
978
|
+
color: var(--fos-tone-stop);
|
|
979
|
+
}
|
|
980
|
+
.fos-menu--pop {
|
|
981
|
+
position: absolute;
|
|
982
|
+
top: calc(100% + var(--fos-s1));
|
|
983
|
+
left: 0;
|
|
984
|
+
z-index: 60;
|
|
985
|
+
max-height: 60vh;
|
|
986
|
+
overflow-y: auto;
|
|
987
|
+
width: max-content;
|
|
988
|
+
max-width: 90vw;
|
|
989
|
+
}
|
|
990
|
+
.fos-menu--pop-up {
|
|
991
|
+
top: auto;
|
|
992
|
+
bottom: calc(100% + var(--fos-s1));
|
|
993
|
+
}
|
|
994
|
+
.fos-menu--pop-end {
|
|
995
|
+
left: auto;
|
|
996
|
+
right: 0;
|
|
997
|
+
}
|
|
998
|
+
.fos-menu-anchor {
|
|
999
|
+
position: relative;
|
|
1000
|
+
display: inline-flex;
|
|
1001
|
+
}
|
|
1002
|
+
.fos-suggest {
|
|
1003
|
+
position: relative;
|
|
1004
|
+
display: block;
|
|
1005
|
+
}
|
|
1006
|
+
.fos-suggest > .fos-menu--pop {
|
|
1007
|
+
width: 100%;
|
|
1008
|
+
max-width: none;
|
|
1009
|
+
max-height: 40vh;
|
|
1010
|
+
box-sizing: border-box;
|
|
1011
|
+
}
|
|
1012
|
+
.fos-menu > [role="separator"] {
|
|
1013
|
+
height: 1px;
|
|
1014
|
+
margin: var(--fos-s2) 0;
|
|
1015
|
+
background: var(--fos-line-2);
|
|
1016
|
+
border: 0;
|
|
1017
|
+
list-style: none;
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
/* ⚠️ every input shares ONE box, so a form does not step as the eye goes down */
|
|
1021
|
+
.fos-field-row {
|
|
1022
|
+
display: grid;
|
|
1023
|
+
gap: var(--fos-s2);
|
|
1024
|
+
}
|
|
1025
|
+
.fos-field {
|
|
1026
|
+
min-height: var(--fos-control-h);
|
|
1027
|
+
padding: 0 var(--fos-s3);
|
|
1028
|
+
width: 100%;
|
|
1029
|
+
border-radius: var(--fos-r);
|
|
1030
|
+
border: 1px solid var(--fos-line);
|
|
1031
|
+
background-color: var(--fos-surface);
|
|
1032
|
+
font: var(--fos-t-body-weight) var(--fos-t-body)/var(--fos-t-body-line) var(--fos-font);
|
|
1033
|
+
letter-spacing: var(--fos-t-body-tracking);
|
|
1034
|
+
color: var(--fos-ink);
|
|
1035
|
+
}
|
|
1036
|
+
.fos-field:focus-visible {
|
|
1037
|
+
outline: 2px solid var(--fos-focus);
|
|
1038
|
+
outline-offset: 2px;
|
|
1039
|
+
}
|
|
1040
|
+
.fos-field[aria-invalid="true"] {
|
|
1041
|
+
border-color: var(--fos-tone-stop);
|
|
1042
|
+
}
|
|
1043
|
+
.fos-field[disabled] {
|
|
1044
|
+
opacity: 0.55;
|
|
1045
|
+
cursor: not-allowed;
|
|
1046
|
+
background: var(--fos-surface-2);
|
|
1047
|
+
color: var(--fos-ink-3);
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
/* readonly is NOT disabled — the value is still readable, selectable, copyable */
|
|
1051
|
+
.fos-field[readonly] {
|
|
1052
|
+
background: var(--fos-surface-2);
|
|
1053
|
+
border-style: dashed;
|
|
1054
|
+
}
|
|
1055
|
+
.fos-select {
|
|
1056
|
+
min-height: var(--fos-control-h);
|
|
1057
|
+
padding: 0 var(--fos-s3);
|
|
1058
|
+
width: 100%;
|
|
1059
|
+
border-radius: var(--fos-r);
|
|
1060
|
+
border: 1px solid var(--fos-line);
|
|
1061
|
+
background-color: var(--fos-surface);
|
|
1062
|
+
font: var(--fos-t-body-weight) var(--fos-t-body)/var(--fos-t-body-line) var(--fos-font);
|
|
1063
|
+
letter-spacing: var(--fos-t-body-tracking);
|
|
1064
|
+
color: var(--fos-ink);
|
|
1065
|
+
padding-right: var(--fos-s6);
|
|
1066
|
+
appearance: none;
|
|
1067
|
+
}
|
|
1068
|
+
.fos-select:focus-visible {
|
|
1069
|
+
outline: 2px solid var(--fos-focus);
|
|
1070
|
+
outline-offset: 2px;
|
|
1071
|
+
}
|
|
1072
|
+
.fos-select[aria-invalid="true"] {
|
|
1073
|
+
border-color: var(--fos-tone-stop);
|
|
1074
|
+
}
|
|
1075
|
+
.fos-select[disabled] {
|
|
1076
|
+
opacity: 0.55;
|
|
1077
|
+
cursor: not-allowed;
|
|
1078
|
+
background: var(--fos-surface-2);
|
|
1079
|
+
color: var(--fos-ink-3);
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
/* readonly is NOT disabled — the value is still readable, selectable, copyable */
|
|
1083
|
+
.fos-select[readonly] {
|
|
1084
|
+
background: var(--fos-surface-2);
|
|
1085
|
+
border-style: dashed;
|
|
1086
|
+
}
|
|
1087
|
+
.fos-textarea {
|
|
1088
|
+
min-height: var(--fos-s7);
|
|
1089
|
+
padding: var(--fos-s3);
|
|
1090
|
+
width: 100%;
|
|
1091
|
+
border-radius: var(--fos-r);
|
|
1092
|
+
border: 1px solid var(--fos-line);
|
|
1093
|
+
background-color: var(--fos-surface);
|
|
1094
|
+
font: var(--fos-t-body-weight) var(--fos-t-body)/var(--fos-t-body-line) var(--fos-font);
|
|
1095
|
+
letter-spacing: var(--fos-t-body-tracking);
|
|
1096
|
+
color: var(--fos-ink);
|
|
1097
|
+
line-height: var(--fos-t-body-line);
|
|
1098
|
+
}
|
|
1099
|
+
.fos-textarea:focus-visible {
|
|
1100
|
+
outline: 2px solid var(--fos-focus);
|
|
1101
|
+
outline-offset: 2px;
|
|
1102
|
+
}
|
|
1103
|
+
.fos-textarea[aria-invalid="true"] {
|
|
1104
|
+
border-color: var(--fos-tone-stop);
|
|
1105
|
+
}
|
|
1106
|
+
.fos-textarea[disabled] {
|
|
1107
|
+
opacity: 0.55;
|
|
1108
|
+
cursor: not-allowed;
|
|
1109
|
+
background: var(--fos-surface-2);
|
|
1110
|
+
color: var(--fos-ink-3);
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
/* readonly is NOT disabled — the value is still readable, selectable, copyable */
|
|
1114
|
+
.fos-textarea[readonly] {
|
|
1115
|
+
background: var(--fos-surface-2);
|
|
1116
|
+
border-style: dashed;
|
|
1117
|
+
}
|
|
1118
|
+
.fos-table .fos-field, .fos-table .fos-select {
|
|
1119
|
+
min-height: var(--fos-row-h);
|
|
1120
|
+
padding: 0 var(--fos-s2);
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
/*
|
|
1124
|
+
* ⛔ `<input type="file">` trần vẽ nhãn của TRÌNH DUYỆT — "Choose File / No
|
|
1125
|
+
* file chosen" — không đổi được bằng thuộc tính, và nó là tiếng Anh giữa một
|
|
1126
|
+
* biểu mẫu tiếng khác. Nên ô thật bị che, cả vùng là nhãn.
|
|
1127
|
+
*/
|
|
1128
|
+
|
|
1129
|
+
/*
|
|
1130
|
+
* ⚠️ CẢ VÙNG bấm được, không phải một cái nút nằm trong khung nét đứt. Khung
|
|
1131
|
+
* nét đứt là quy ước "bấm hoặc thả tệp vào đây"; vẽ khung mà chỉ cái nút bên
|
|
1132
|
+
* trong mới ăn thì người dùng bấm vào khoảng trống, không thấy gì xảy ra, và
|
|
1133
|
+
* kết luận màn hình hỏng. Khung hứa một đằng, làm một nẻo.
|
|
1134
|
+
*/
|
|
1135
|
+
.fos-file {
|
|
1136
|
+
position: relative;
|
|
1137
|
+
display: grid;
|
|
1138
|
+
align-items: center;
|
|
1139
|
+
cursor: pointer;
|
|
1140
|
+
grid-template-columns: auto 1fr auto;
|
|
1141
|
+
grid-template-areas: 'mark main clear' 'mark hint clear';
|
|
1142
|
+
gap: var(--fos-s1) var(--fos-s4);
|
|
1143
|
+
padding: var(--fos-s4) var(--fos-s4);
|
|
1144
|
+
border: 1px dashed var(--fos-line);
|
|
1145
|
+
border-radius: var(--fos-r);
|
|
1146
|
+
background-color: var(--fos-surface-2);
|
|
1147
|
+
margin: 0;
|
|
1148
|
+
transition: border-color var(--fos-dur-fast) var(--fos-ease-out);
|
|
1149
|
+
}
|
|
1150
|
+
.fos-file:hover {
|
|
1151
|
+
border-color: var(--fos-ink-3);
|
|
1152
|
+
background-image: linear-gradient(var(--fos-hover), var(--fos-hover));
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
/*
|
|
1156
|
+
* ô tệp THẬT vẫn ở trong DOM và vẫn nhận tiêu điểm bàn phím — che bằng kỹ
|
|
1157
|
+
* thuật che-nhưng-vẫn-đọc-được, không phải `display: none`
|
|
1158
|
+
*/
|
|
1159
|
+
.fos-file > input {
|
|
1160
|
+
position: absolute;
|
|
1161
|
+
width: 1px;
|
|
1162
|
+
height: 1px;
|
|
1163
|
+
padding: 0;
|
|
1164
|
+
margin: -1px;
|
|
1165
|
+
overflow: hidden;
|
|
1166
|
+
clip: rect(0 0 0 0);
|
|
1167
|
+
white-space: nowrap;
|
|
1168
|
+
border: 0;
|
|
1169
|
+
}
|
|
1170
|
+
.fos-file:focus-visible, .fos-file:has(:focus-visible) {
|
|
1171
|
+
outline: 2px solid var(--fos-focus);
|
|
1172
|
+
outline-offset: 2px;
|
|
1173
|
+
}
|
|
1174
|
+
.fos-file[aria-invalid="true"], .fos-file:has([aria-invalid="true"]), .fos-file:has(:user-invalid) {
|
|
1175
|
+
border-color: var(--fos-tone-stop);
|
|
1176
|
+
border-style: solid;
|
|
1177
|
+
}
|
|
1178
|
+
.fos-file[disabled], .fos-file[aria-disabled="true"], .fos-file:has(:disabled) {
|
|
1179
|
+
opacity: 0.55;
|
|
1180
|
+
cursor: not-allowed;
|
|
1181
|
+
background-color: var(--fos-surface-2);
|
|
1182
|
+
}
|
|
1183
|
+
.fos-file[readonly], .fos-file:has([readonly]) {
|
|
1184
|
+
background-color: var(--fos-surface-2);
|
|
1185
|
+
border-style: solid;
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
/* đã chọn được tệp — nét liền và sắc "xong", không còn nét đứt "còn trống" */
|
|
1189
|
+
.fos-file--has {
|
|
1190
|
+
border-style: solid;
|
|
1191
|
+
border-color: var(--fos-tone-done);
|
|
1192
|
+
background-color: var(--fos-tone-done-bg);
|
|
1193
|
+
}
|
|
1194
|
+
.fos-file--has .fos-file-mark {
|
|
1195
|
+
color: var(--fos-tone-done);
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
/*
|
|
1199
|
+
* đang kéo tệp lơ lửng bên trên: phải phản hồi, không thì người dùng không
|
|
1200
|
+
* biết thả xuống có ăn hay không
|
|
1201
|
+
*/
|
|
1202
|
+
.fos-file--over {
|
|
1203
|
+
border-style: solid;
|
|
1204
|
+
border-color: var(--fos-ink-2);
|
|
1205
|
+
background-color: var(--fos-surface-2);
|
|
1206
|
+
}
|
|
1207
|
+
.fos-file-mark {
|
|
1208
|
+
grid-area: mark;
|
|
1209
|
+
display: grid;
|
|
1210
|
+
place-items: center;
|
|
1211
|
+
color: var(--fos-ink-3);
|
|
1212
|
+
}
|
|
1213
|
+
.fos-file-main {
|
|
1214
|
+
grid-area: main;
|
|
1215
|
+
font: var(--fos-t-caption-weight) var(--fos-t-caption)/var(--fos-t-caption-line) var(--fos-font);
|
|
1216
|
+
letter-spacing: var(--fos-t-caption-tracking);
|
|
1217
|
+
color: var(--fos-ink);
|
|
1218
|
+
font-weight: 500;
|
|
1219
|
+
}
|
|
1220
|
+
.fos-file-hint {
|
|
1221
|
+
grid-area: hint;
|
|
1222
|
+
font: var(--fos-t-caption-weight) var(--fos-t-caption)/var(--fos-t-caption-line) var(--fos-font);
|
|
1223
|
+
letter-spacing: var(--fos-t-caption-tracking);
|
|
1224
|
+
color: var(--fos-ink-3);
|
|
1225
|
+
}
|
|
1226
|
+
.fos-file-clear {
|
|
1227
|
+
grid-area: clear;
|
|
1228
|
+
align-self: center;
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
/*
|
|
1232
|
+
* ⛔ a checkbox is a few pixels of ink inside a full-size target — shrinking
|
|
1233
|
+
* the target to match the ink is the commonest tap failure in a form.
|
|
1234
|
+
*/
|
|
1235
|
+
.fos-check {
|
|
1236
|
+
display: inline-flex;
|
|
1237
|
+
align-items: center;
|
|
1238
|
+
gap: var(--fos-s2);
|
|
1239
|
+
min-height: var(--fos-control-h);
|
|
1240
|
+
cursor: pointer;
|
|
1241
|
+
font: var(--fos-t-body-weight) var(--fos-t-body)/var(--fos-t-body-line) var(--fos-font);
|
|
1242
|
+
letter-spacing: var(--fos-t-body-tracking);
|
|
1243
|
+
color: var(--fos-ink);
|
|
1244
|
+
}
|
|
1245
|
+
.fos-check:hover {
|
|
1246
|
+
color: var(--fos-ink);
|
|
1247
|
+
}
|
|
1248
|
+
.fos-check:focus-visible, .fos-check:has(:focus-visible) {
|
|
1249
|
+
outline: 2px solid var(--fos-focus);
|
|
1250
|
+
outline-offset: 2px;
|
|
1251
|
+
}
|
|
1252
|
+
.fos-check[aria-selected="true"], .fos-check:has(:checked) {
|
|
1253
|
+
color: var(--fos-primary);
|
|
1254
|
+
}
|
|
1255
|
+
.fos-check[disabled], .fos-check[aria-disabled="true"], .fos-check:has(:disabled) {
|
|
1256
|
+
opacity: 0.55;
|
|
1257
|
+
cursor: not-allowed;
|
|
1258
|
+
}
|
|
1259
|
+
.fos-radio {
|
|
1260
|
+
display: inline-flex;
|
|
1261
|
+
align-items: center;
|
|
1262
|
+
gap: var(--fos-s2);
|
|
1263
|
+
min-height: var(--fos-control-h);
|
|
1264
|
+
cursor: pointer;
|
|
1265
|
+
font: var(--fos-t-body-weight) var(--fos-t-body)/var(--fos-t-body-line) var(--fos-font);
|
|
1266
|
+
letter-spacing: var(--fos-t-body-tracking);
|
|
1267
|
+
color: var(--fos-ink);
|
|
1268
|
+
}
|
|
1269
|
+
.fos-radio:hover {
|
|
1270
|
+
color: var(--fos-ink);
|
|
1271
|
+
}
|
|
1272
|
+
.fos-radio:focus-visible, .fos-radio:has(:focus-visible) {
|
|
1273
|
+
outline: 2px solid var(--fos-focus);
|
|
1274
|
+
outline-offset: 2px;
|
|
1275
|
+
}
|
|
1276
|
+
.fos-radio[aria-selected="true"], .fos-radio:has(:checked) {
|
|
1277
|
+
color: var(--fos-primary);
|
|
1278
|
+
}
|
|
1279
|
+
.fos-radio[disabled], .fos-radio[aria-disabled="true"], .fos-radio:has(:disabled) {
|
|
1280
|
+
opacity: 0.55;
|
|
1281
|
+
cursor: not-allowed;
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
/* table */
|
|
1285
|
+
.fos-table {
|
|
1286
|
+
width: 100%;
|
|
1287
|
+
border-collapse: collapse;
|
|
1288
|
+
}
|
|
1289
|
+
.fos-table th {
|
|
1290
|
+
text-align: left;
|
|
1291
|
+
padding: var(--fos-cell-y) var(--fos-cell-x);
|
|
1292
|
+
height: var(--fos-row-h);
|
|
1293
|
+
border-bottom: 1px solid var(--fos-line);
|
|
1294
|
+
white-space: nowrap;
|
|
1295
|
+
font: var(--fos-t-meta-weight) var(--fos-t-meta)/var(--fos-t-meta-line) var(--fos-font);
|
|
1296
|
+
letter-spacing: var(--fos-t-meta-tracking);
|
|
1297
|
+
color: var(--fos-ink-3);
|
|
1298
|
+
font-weight: 500;
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
/* a long table without a rule between rows lets the eye slip a line */
|
|
1302
|
+
|
|
1303
|
+
/*
|
|
1304
|
+
* ⛔ `middle`, NOT `top` — AND THE GRAMMAR CONTRADICTED ITSELF ON THIS.
|
|
1305
|
+
* A cell here declares `height: var(--row-h)`: the row HAS a height, chosen
|
|
1306
|
+
* by density. Then top-aligning inside it pins the text to the ceiling of a
|
|
1307
|
+
* box deliberately taller than the text, leaving the same slack under every
|
|
1308
|
+
* line of every table where all cells are one line — which is most of them.
|
|
1309
|
+
* Declaring a height and then refusing to sit in it is incoherent, and it is
|
|
1310
|
+
* visible: the first app to notice described the rows as "pushed up", wrote
|
|
1311
|
+
* its own override, and dated the decision.
|
|
1312
|
+
* A row that really does need `top` says so, and says so in the kit's own
|
|
1313
|
+
* vocabulary: `table-cell-sub` is the second line under a name.
|
|
1314
|
+
* ⚠️ A name that merely WRAPS carries no sub-line, so its row centres. That
|
|
1315
|
+
* is the honest limit of asking a class instead of measuring a height.
|
|
1316
|
+
*/
|
|
1317
|
+
.fos-table td {
|
|
1318
|
+
padding: var(--fos-cell-y) var(--fos-cell-x);
|
|
1319
|
+
height: var(--fos-row-h);
|
|
1320
|
+
border-bottom: 1px solid var(--fos-line-2);
|
|
1321
|
+
vertical-align: middle;
|
|
1322
|
+
font: var(--fos-t-body-weight) var(--fos-t-body)/var(--fos-t-body-line) var(--fos-font);
|
|
1323
|
+
letter-spacing: var(--fos-t-body-tracking);
|
|
1324
|
+
color: var(--fos-ink);
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1327
|
+
/*
|
|
1328
|
+
* ⛔ THE CELL THAT NAMES THE RECORD IS A `th`, AND IT WEARS THE ROW'S SHAPE,
|
|
1329
|
+
* NOT THE COLUMN HEADER'S.
|
|
1330
|
+
* `rowHeaderKey` asks for `<th scope="row">`, which is right for a screen
|
|
1331
|
+
* reader — and which then inherits everything from the rule above, because
|
|
1332
|
+
* that rule says `th`. Four defects shipped that way, all of them silent:
|
|
1333
|
+
* the name rendered at META size, 0.8×, the smallest text in its own row;
|
|
1334
|
+
* it carried the header's heavier bottom rule, so one cell of every row was
|
|
1335
|
+
* underlined darker than the rest of that row; it never got `vertical-align:
|
|
1336
|
+
* top`, so in a two-line row the name sat on a different baseline; and a
|
|
1337
|
+
* selected row's highlight had a hole in it, at exactly that column.
|
|
1338
|
+
* Found by `tagSwapGaps`, which is now a test — see `reach.ts`.
|
|
1339
|
+
* What it keeps from being a header is the WEIGHT: heavier says "this names
|
|
1340
|
+
* the record", and that is the one difference that was ever intended.
|
|
1341
|
+
*/
|
|
1342
|
+
.fos-table th[scope="row"] {
|
|
1343
|
+
white-space: normal;
|
|
1344
|
+
vertical-align: middle;
|
|
1345
|
+
border-bottom: 1px solid var(--fos-line-2);
|
|
1346
|
+
font: var(--fos-t-body-weight) var(--fos-t-body)/var(--fos-t-body-line) var(--fos-font);
|
|
1347
|
+
letter-spacing: var(--fos-t-body-tracking);
|
|
1348
|
+
color: var(--fos-ink);
|
|
1349
|
+
font-weight: 500;
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1352
|
+
/*
|
|
1353
|
+
* ⛔ THE WASH, NOT A LADDER RUNG — FIXED IN 0.20.0, reported by a person
|
|
1354
|
+
* looking at a screen: "hovering a button or a table turns everything white".
|
|
1355
|
+
* It did. `--surface-2` is an absolute lightness, so on the page ground it
|
|
1356
|
+
* was LIGHTER than what it covered. A state must move away from what is
|
|
1357
|
+
* under it, and only a translucent wash knows what that is.
|
|
1358
|
+
*/
|
|
1359
|
+
.fos-table tbody tr:hover td, .fos-table tbody tr:hover th {
|
|
1360
|
+
background-image: linear-gradient(var(--fos-hover), var(--fos-hover));
|
|
1361
|
+
}
|
|
1362
|
+
.fos-table tbody tr[aria-selected="true"] td, .fos-table tbody tr[aria-selected="true"] th {
|
|
1363
|
+
background: var(--fos-primary-bg);
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
/* a row with a second line under the name is the row that needs the top */
|
|
1367
|
+
.fos-table tr:has(.fos-table-cell-sub) td, .fos-table tr:has(.fos-table-cell-sub) th[scope="row"] {
|
|
1368
|
+
vertical-align: top;
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
/*
|
|
1372
|
+
* ⭐ PICK-CELL — the column that selects a row.
|
|
1373
|
+
* The missing half of a grammar that already owns the table and already
|
|
1374
|
+
* knows about selection: `listModel` produces the selected state, and until
|
|
1375
|
+
* now nothing said what the column that sets it looks like.
|
|
1376
|
+
* ⛔ THE HIT AREA WAS PROPOSED AT 17px AND THAT IS BELOW THIS PACKAGE'S OWN
|
|
1377
|
+
* FLOOR. `TARGET_FLOOR` is 24 — WCAG 2.2 §2.5.8 — and the reason given for 17
|
|
1378
|
+
* is the reason FOR the floor, not an exception to it: in a dense table a
|
|
1379
|
+
* small tremor lands on the neighbouring row. Taking the rule as offered
|
|
1380
|
+
* would have shipped a target this package already forbids elsewhere.
|
|
1381
|
+
* So the box stays small and the target is grown back around it — and the
|
|
1382
|
+
* floor is `--fos-target`, not a number, because a floor written as a literal
|
|
1383
|
+
* in one rule is a floor the next rule does not know about.
|
|
1384
|
+
*/
|
|
1385
|
+
.fos-pick-cell {
|
|
1386
|
+
width: 1%;
|
|
1387
|
+
text-align: center;
|
|
1388
|
+
vertical-align: middle;
|
|
1389
|
+
padding: 0 var(--fos-cell-x);
|
|
1390
|
+
}
|
|
1391
|
+
.fos-pick {
|
|
1392
|
+
display: inline-grid;
|
|
1393
|
+
place-items: center;
|
|
1394
|
+
cursor: pointer;
|
|
1395
|
+
min-width: var(--fos-target);
|
|
1396
|
+
min-height: var(--fos-target);
|
|
1397
|
+
border-radius: var(--fos-r-sm);
|
|
1398
|
+
color: var(--fos-ink-3);
|
|
1399
|
+
}
|
|
1400
|
+
.fos-pick:hover {
|
|
1401
|
+
background-image: linear-gradient(var(--fos-hover), var(--fos-hover));
|
|
1402
|
+
color: var(--fos-ink);
|
|
1403
|
+
}
|
|
1404
|
+
.fos-pick:focus-visible, .fos-pick:has(:focus-visible) {
|
|
1405
|
+
outline: 2px solid var(--fos-focus);
|
|
1406
|
+
outline-offset: 2px;
|
|
1407
|
+
}
|
|
1408
|
+
.fos-pick[aria-selected="true"], .fos-pick:has(:checked) {
|
|
1409
|
+
color: var(--fos-primary);
|
|
1410
|
+
}
|
|
1411
|
+
.fos-pick[disabled], .fos-pick[aria-disabled="true"] {
|
|
1412
|
+
opacity: 0.55;
|
|
1413
|
+
cursor: not-allowed;
|
|
1414
|
+
}
|
|
1415
|
+
.fos-table--empty {
|
|
1416
|
+
min-height: var(--fos-s7);
|
|
1417
|
+
}
|
|
1418
|
+
.fos-table .fos-num {
|
|
1419
|
+
text-align: right;
|
|
1420
|
+
font-variant-numeric: tabular-nums;
|
|
1421
|
+
}
|
|
1422
|
+
.fos-table .fos-table-cell-sub {
|
|
1423
|
+
display: block;
|
|
1424
|
+
}
|
|
1425
|
+
|
|
1426
|
+
/* a header that scrolls away makes the reader scroll back to name a column */
|
|
1427
|
+
.fos-table--sticky thead th {
|
|
1428
|
+
position: sticky;
|
|
1429
|
+
top: 0;
|
|
1430
|
+
z-index: 1;
|
|
1431
|
+
background: var(--fos-surface);
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1434
|
+
/* surfaces */
|
|
1435
|
+
|
|
1436
|
+
/*
|
|
1437
|
+
* ⭐ FACTS — a record's own values, name beside value.
|
|
1438
|
+
* The shape `recordModel` has been producing data for since it existed, with
|
|
1439
|
+
* nowhere to pour it. The package was shipping content and no mould.
|
|
1440
|
+
* Two columns by default: a name column that takes what it needs and a value
|
|
1441
|
+
* column that takes the rest — so names align down the page and the eye can
|
|
1442
|
+
* run the list without reading it.
|
|
1443
|
+
*/
|
|
1444
|
+
.fos-facts {
|
|
1445
|
+
display: grid;
|
|
1446
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
1447
|
+
gap: var(--fos-s3) var(--fos-s5);
|
|
1448
|
+
margin: 0;
|
|
1449
|
+
}
|
|
1450
|
+
.fos-facts > dt {
|
|
1451
|
+
font: var(--fos-t-caption-weight) var(--fos-t-caption)/var(--fos-t-caption-line) var(--fos-font);
|
|
1452
|
+
letter-spacing: var(--fos-t-caption-tracking);
|
|
1453
|
+
color: var(--fos-ink-2);
|
|
1454
|
+
font-weight: 500;
|
|
1455
|
+
}
|
|
1456
|
+
.fos-facts > dd {
|
|
1457
|
+
margin: 0;
|
|
1458
|
+
min-width: 0;
|
|
1459
|
+
font: var(--fos-t-body-weight) var(--fos-t-body)/var(--fos-t-body-line) var(--fos-font);
|
|
1460
|
+
letter-spacing: var(--fos-t-body-tracking);
|
|
1461
|
+
color: var(--fos-ink);
|
|
1462
|
+
}
|
|
1463
|
+
|
|
1464
|
+
/* a long value reads better stacked than squeezed into a second column */
|
|
1465
|
+
.fos-facts--stacked {
|
|
1466
|
+
grid-template-columns: minmax(0, 1fr);
|
|
1467
|
+
gap: var(--fos-s2);
|
|
1468
|
+
}
|
|
1469
|
+
.fos-facts--stacked > dt {
|
|
1470
|
+
margin-top: var(--fos-s3);
|
|
1471
|
+
}
|
|
1472
|
+
.fos-facts--stacked > dt:first-child {
|
|
1473
|
+
margin-top: 0;
|
|
1474
|
+
}
|
|
1475
|
+
|
|
1476
|
+
/*
|
|
1477
|
+
* ⭐ CARD, HEAD and BODY — parts, the way `th` and `td` are parts.
|
|
1478
|
+
* A bare card leaves every screen to divide it into a heading strip and a
|
|
1479
|
+
* content area on its own; measured on one application, 378 places had done
|
|
1480
|
+
* exactly that. `:has()` lets the card drop its own padding once it is given
|
|
1481
|
+
* a head, so a plain card still works with no parts at all.
|
|
1482
|
+
*/
|
|
1483
|
+
.fos-card {
|
|
1484
|
+
background: var(--fos-surface);
|
|
1485
|
+
border: 1px solid var(--fos-line);
|
|
1486
|
+
border-radius: var(--fos-r-lg);
|
|
1487
|
+
padding: var(--fos-s5);
|
|
1488
|
+
min-width: 0;
|
|
1489
|
+
}
|
|
1490
|
+
.fos-card:has(> .fos-card-head) {
|
|
1491
|
+
padding: 0;
|
|
1492
|
+
}
|
|
1493
|
+
.fos-card-head {
|
|
1494
|
+
display: flex;
|
|
1495
|
+
align-items: center;
|
|
1496
|
+
gap: var(--fos-s3);
|
|
1497
|
+
padding: var(--fos-s3) var(--fos-s5);
|
|
1498
|
+
border-bottom: 1px solid var(--fos-line-2);
|
|
1499
|
+
}
|
|
1500
|
+
|
|
1501
|
+
/* the trailing slot — a count, a state, an action; never the title */
|
|
1502
|
+
.fos-card-head > :last-child:not(:only-child) {
|
|
1503
|
+
margin-left: auto;
|
|
1504
|
+
}
|
|
1505
|
+
.fos-card-body {
|
|
1506
|
+
padding: var(--fos-s5);
|
|
1507
|
+
min-width: 0;
|
|
1508
|
+
}
|
|
1509
|
+
.fos-dialog {
|
|
1510
|
+
background: var(--fos-surface);
|
|
1511
|
+
border: 0;
|
|
1512
|
+
border-radius: var(--fos-r-lg);
|
|
1513
|
+
padding: var(--fos-s5);
|
|
1514
|
+
box-shadow: var(--fos-sh-3);
|
|
1515
|
+
max-width: 100%;
|
|
1516
|
+
}
|
|
1517
|
+
.fos-notice {
|
|
1518
|
+
display: flex;
|
|
1519
|
+
gap: var(--fos-s3);
|
|
1520
|
+
padding: var(--fos-s4);
|
|
1521
|
+
border-radius: var(--fos-r);
|
|
1522
|
+
border-left: 2px solid var(--fos-tone-doing);
|
|
1523
|
+
background: var(--fos-tone-doing-bg);
|
|
1524
|
+
font: var(--fos-t-body-weight) var(--fos-t-body)/var(--fos-t-body-line) var(--fos-font);
|
|
1525
|
+
letter-spacing: var(--fos-t-body-tracking);
|
|
1526
|
+
color: var(--fos-ink);
|
|
1527
|
+
}
|
|
1528
|
+
.fos-notice--wait {
|
|
1529
|
+
border-left-color: var(--fos-tone-wait);
|
|
1530
|
+
background: var(--fos-tone-wait-bg);
|
|
1531
|
+
}
|
|
1532
|
+
.fos-notice--doing {
|
|
1533
|
+
border-left-color: var(--fos-tone-doing);
|
|
1534
|
+
background: var(--fos-tone-doing-bg);
|
|
1535
|
+
}
|
|
1536
|
+
.fos-notice--done {
|
|
1537
|
+
border-left-color: var(--fos-tone-done);
|
|
1538
|
+
background: var(--fos-tone-done-bg);
|
|
1539
|
+
}
|
|
1540
|
+
.fos-notice--warn {
|
|
1541
|
+
border-left-color: var(--fos-tone-warn);
|
|
1542
|
+
background: var(--fos-tone-warn-bg);
|
|
1543
|
+
}
|
|
1544
|
+
.fos-notice--stop {
|
|
1545
|
+
border-left-color: var(--fos-tone-stop);
|
|
1546
|
+
background: var(--fos-tone-stop-bg);
|
|
1547
|
+
}
|
|
1548
|
+
|
|
1549
|
+
/*
|
|
1550
|
+
* ⭐ AN ACTION'S OUTCOME COMES TO A CORNER, NOT INTO THE PAGE.
|
|
1551
|
+
* Told in place, an error sat wherever the form happened to end — below the
|
|
1552
|
+
* fold, behind a dialog's scroll — and the person, eyes on the button they
|
|
1553
|
+
* had pressed, did not see it. One fixed corner, bottom right, the same on
|
|
1554
|
+
* every screen: the eye learns where to look once.
|
|
1555
|
+
* ⚠️ The stack is `position: fixed` and carries no background of its own; the
|
|
1556
|
+
* UA styles of `[popover]`/`<dialog>` it may sit in are reset here.
|
|
1557
|
+
*/
|
|
1558
|
+
.fos-toasts {
|
|
1559
|
+
position: fixed;
|
|
1560
|
+
inset: auto var(--fos-s5) var(--fos-s5) auto;
|
|
1561
|
+
z-index: 70;
|
|
1562
|
+
display: grid;
|
|
1563
|
+
gap: var(--fos-s2);
|
|
1564
|
+
width: min(26rem, calc(100vw - 2 * var(--fos-s5)));
|
|
1565
|
+
margin: 0;
|
|
1566
|
+
padding: 0;
|
|
1567
|
+
border: 0;
|
|
1568
|
+
background: transparent;
|
|
1569
|
+
overflow: visible;
|
|
1570
|
+
pointer-events: none;
|
|
1571
|
+
}
|
|
1572
|
+
.fos-toast {
|
|
1573
|
+
display: flex;
|
|
1574
|
+
align-items: flex-start;
|
|
1575
|
+
gap: var(--fos-s3);
|
|
1576
|
+
padding: var(--fos-s3) var(--fos-s3) var(--fos-s3) var(--fos-s4);
|
|
1577
|
+
background: var(--fos-surface);
|
|
1578
|
+
border: 1px solid var(--fos-line);
|
|
1579
|
+
border-left: 2px solid var(--fos-tone-doing);
|
|
1580
|
+
border-radius: var(--fos-r);
|
|
1581
|
+
box-shadow: var(--fos-sh-3);
|
|
1582
|
+
pointer-events: auto;
|
|
1583
|
+
font: var(--fos-t-body-weight) var(--fos-t-body)/var(--fos-t-body-line) var(--fos-font);
|
|
1584
|
+
letter-spacing: var(--fos-t-body-tracking);
|
|
1585
|
+
color: var(--fos-ink);
|
|
1586
|
+
}
|
|
1587
|
+
.fos-toast-body {
|
|
1588
|
+
display: grid;
|
|
1589
|
+
gap: 2px;
|
|
1590
|
+
flex: 1 1 auto;
|
|
1591
|
+
min-width: 0;
|
|
1592
|
+
padding-top: 2px;
|
|
1593
|
+
}
|
|
1594
|
+
.fos-toast--wait {
|
|
1595
|
+
border-left-color: var(--fos-tone-wait);
|
|
1596
|
+
}
|
|
1597
|
+
.fos-toast--doing {
|
|
1598
|
+
border-left-color: var(--fos-tone-doing);
|
|
1599
|
+
}
|
|
1600
|
+
.fos-toast--done {
|
|
1601
|
+
border-left-color: var(--fos-tone-done);
|
|
1602
|
+
}
|
|
1603
|
+
.fos-toast--warn {
|
|
1604
|
+
border-left-color: var(--fos-tone-warn);
|
|
1605
|
+
}
|
|
1606
|
+
.fos-toast--stop {
|
|
1607
|
+
border-left-color: var(--fos-tone-stop);
|
|
1608
|
+
}
|
|
1609
|
+
|
|
1610
|
+
/*
|
|
1611
|
+
* ⭐ A STATE IS A DOT, NOT A PILL WRAPPED ROUND A WORD.
|
|
1612
|
+
* A filled pill puts a block of colour behind text, so on a list of forty
|
|
1613
|
+
* rows the eye lands on the blocks instead of the names — the decoration
|
|
1614
|
+
* outranks the data. A dot carries the same information in a tenth of the
|
|
1615
|
+
* area and leaves the word in ordinary ink, where it stays readable.
|
|
1616
|
+
* ⚠️ The dot is sized in `em`, so it belongs to whatever text it sits
|
|
1617
|
+
* beside instead of needing a token that would drift from it.
|
|
1618
|
+
*/
|
|
1619
|
+
.fos-badge {
|
|
1620
|
+
display: inline-flex;
|
|
1621
|
+
align-items: baseline;
|
|
1622
|
+
gap: var(--fos-s2);
|
|
1623
|
+
font: var(--fos-t-micro-weight) var(--fos-t-micro)/var(--fos-t-micro-line) var(--fos-font);
|
|
1624
|
+
letter-spacing: var(--fos-t-micro-tracking);
|
|
1625
|
+
color: var(--fos-ink);
|
|
1626
|
+
font-weight: 500;
|
|
1627
|
+
}
|
|
1628
|
+
.fos-badge::before {
|
|
1629
|
+
content: "";
|
|
1630
|
+
width: 0.55em;
|
|
1631
|
+
height: 0.55em;
|
|
1632
|
+
border-radius: var(--fos-r-pill);
|
|
1633
|
+
background: var(--fos-tone-plain);
|
|
1634
|
+
flex: 0 0 auto;
|
|
1635
|
+
transform: translateY(-0.05em);
|
|
1636
|
+
}
|
|
1637
|
+
.fos-badge--plain::before {
|
|
1638
|
+
background: var(--fos-tone-plain);
|
|
1639
|
+
}
|
|
1640
|
+
.fos-badge--wait::before {
|
|
1641
|
+
background: var(--fos-tone-wait);
|
|
1642
|
+
}
|
|
1643
|
+
.fos-badge--doing::before {
|
|
1644
|
+
background: var(--fos-tone-doing);
|
|
1645
|
+
}
|
|
1646
|
+
.fos-badge--done::before {
|
|
1647
|
+
background: var(--fos-tone-done);
|
|
1648
|
+
}
|
|
1649
|
+
.fos-badge--warn::before {
|
|
1650
|
+
background: var(--fos-tone-warn);
|
|
1651
|
+
}
|
|
1652
|
+
.fos-badge--stop::before {
|
|
1653
|
+
background: var(--fos-tone-stop);
|
|
1654
|
+
}
|
|
1655
|
+
|
|
1656
|
+
/*
|
|
1657
|
+
* ⛔ a dot with no word needs a legend, and an accessible name — colour on
|
|
1658
|
+
* its own is a channel roughly one man in twelve cannot read.
|
|
1659
|
+
*/
|
|
1660
|
+
.fos-badge--bare {
|
|
1661
|
+
gap: 0;
|
|
1662
|
+
}
|
|
1663
|
+
.fos-legend {
|
|
1664
|
+
display: flex;
|
|
1665
|
+
flex-wrap: wrap;
|
|
1666
|
+
gap: var(--fos-s2) var(--fos-s4);
|
|
1667
|
+
font: var(--fos-t-caption-weight) var(--fos-t-caption)/var(--fos-t-caption-line) var(--fos-font);
|
|
1668
|
+
letter-spacing: var(--fos-t-caption-tracking);
|
|
1669
|
+
color: var(--fos-ink-3);
|
|
1670
|
+
}
|
|
1671
|
+
.fos-legend .fos-badge {
|
|
1672
|
+
font: var(--fos-t-caption-weight) var(--fos-t-caption)/var(--fos-t-caption-line) var(--fos-font);
|
|
1673
|
+
letter-spacing: var(--fos-t-caption-tracking);
|
|
1674
|
+
color: var(--fos-ink-3);
|
|
1675
|
+
}
|
|
1676
|
+
|
|
1677
|
+
/* ⚠️ a skeleton stands in for DATA, never for a control — see `skeletonFor` */
|
|
1678
|
+
.fos-skeleton {
|
|
1679
|
+
background: var(--fos-surface-2);
|
|
1680
|
+
border-radius: var(--fos-r-sm);
|
|
1681
|
+
min-height: var(--fos-t-body);
|
|
1682
|
+
animation: fos-pulse 1.4s ease-in-out infinite;
|
|
1683
|
+
}
|
|
1684
|
+
@keyframes fos-pulse { 50% { opacity: 0.55; } }
|
|
1685
|
+
@media (prefers-reduced-motion: reduce) { .fos-skeleton {
|
|
1686
|
+
animation: none;
|
|
1687
|
+
}
|
|
1688
|
+
}
|
|
1689
|
+
.fos-empty {
|
|
1690
|
+
display: grid;
|
|
1691
|
+
gap: var(--fos-s3);
|
|
1692
|
+
justify-items: center;
|
|
1693
|
+
padding: var(--fos-s7);
|
|
1694
|
+
text-align: center;
|
|
1695
|
+
}
|
|
1696
|
+
.fos-empty--compact {
|
|
1697
|
+
justify-items: start;
|
|
1698
|
+
text-align: left;
|
|
1699
|
+
padding: var(--fos-s3) 0;
|
|
1700
|
+
gap: var(--fos-s1);
|
|
1701
|
+
font: var(--fos-t-caption-weight) var(--fos-t-caption)/var(--fos-t-caption-line) var(--fos-font);
|
|
1702
|
+
letter-spacing: var(--fos-t-caption-tracking);
|
|
1703
|
+
color: var(--fos-ink-3);
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1706
|
+
/*
|
|
1707
|
+
* ⭐ SEGMENTED — switches a MODE, not a place.
|
|
1708
|
+
* Drawn unlike a tab on purpose: a tab changes what you are looking at, a
|
|
1709
|
+
* segmented control changes how you are looking at it, and a reader who
|
|
1710
|
+
* cannot tell them apart does not know whether a click loses their place.
|
|
1711
|
+
*/
|
|
1712
|
+
.fos-segmented {
|
|
1713
|
+
display: flex;
|
|
1714
|
+
flex-wrap: wrap;
|
|
1715
|
+
gap: var(--fos-s2);
|
|
1716
|
+
}
|
|
1717
|
+
.fos-segmented-item {
|
|
1718
|
+
display: inline-flex;
|
|
1719
|
+
align-items: center;
|
|
1720
|
+
min-height: calc(var(--fos-control-h) - var(--fos-s1));
|
|
1721
|
+
border-radius: var(--fos-r-pill);
|
|
1722
|
+
cursor: pointer;
|
|
1723
|
+
text-decoration: none;
|
|
1724
|
+
position: relative;
|
|
1725
|
+
gap: var(--fos-s2);
|
|
1726
|
+
padding: 0 var(--fos-s3);
|
|
1727
|
+
background: var(--fos-surface);
|
|
1728
|
+
border: 1px solid var(--fos-line);
|
|
1729
|
+
font: var(--fos-t-body-weight) var(--fos-t-body)/var(--fos-t-body-line) var(--fos-font);
|
|
1730
|
+
letter-spacing: var(--fos-t-body-tracking);
|
|
1731
|
+
color: var(--fos-ink-2);
|
|
1732
|
+
font-weight: 500;
|
|
1733
|
+
}
|
|
1734
|
+
.fos-segmented-item:hover {
|
|
1735
|
+
color: var(--fos-ink);
|
|
1736
|
+
border-color: var(--fos-ink-3);
|
|
1737
|
+
}
|
|
1738
|
+
.fos-segmented-item:focus-visible {
|
|
1739
|
+
outline: 2px solid var(--fos-focus);
|
|
1740
|
+
outline-offset: 2px;
|
|
1741
|
+
}
|
|
1742
|
+
.fos-segmented-item[aria-current]:not([aria-current="false"]), .fos-segmented-item[aria-selected="true"] {
|
|
1743
|
+
background: var(--fos-primary);
|
|
1744
|
+
border-color: var(--fos-primary);
|
|
1745
|
+
color: var(--fos-primary-contrast);
|
|
1746
|
+
}
|
|
1747
|
+
.fos-segmented-item .fos-count {
|
|
1748
|
+
min-width: 0;
|
|
1749
|
+
min-height: 0;
|
|
1750
|
+
padding: 0;
|
|
1751
|
+
background: transparent;
|
|
1752
|
+
color: var(--fos-ink-3);
|
|
1753
|
+
}
|
|
1754
|
+
.fos-segmented-item[aria-current]:not([aria-current="false"]) .fos-count, .fos-segmented-item[aria-selected="true"] .fos-count {
|
|
1755
|
+
color: inherit;
|
|
1756
|
+
opacity: 0.8;
|
|
1757
|
+
}
|
|
1758
|
+
.fos-segmented-item[disabled], .fos-segmented-item[aria-disabled="true"] {
|
|
1759
|
+
opacity: 0.55;
|
|
1760
|
+
cursor: not-allowed;
|
|
1761
|
+
}
|
|
1762
|
+
|
|
1763
|
+
/*
|
|
1764
|
+
* ⚠️ COUNT and TAG are NOT states, and must not borrow the state dot.
|
|
1765
|
+
* A count answers "how many"; a tag answers "what kind". Drawing either
|
|
1766
|
+
* with a tone makes a reader look for a meaning that is not there — which
|
|
1767
|
+
* is how a screen ends up with fourteen coloured things and no signal.
|
|
1768
|
+
*/
|
|
1769
|
+
.fos-count {
|
|
1770
|
+
display: inline-flex;
|
|
1771
|
+
align-items: center;
|
|
1772
|
+
justify-content: center;
|
|
1773
|
+
min-width: var(--fos-s5);
|
|
1774
|
+
min-height: var(--fos-s5);
|
|
1775
|
+
padding: 0 var(--fos-s1);
|
|
1776
|
+
border-radius: var(--fos-r-pill);
|
|
1777
|
+
background: var(--fos-surface-2);
|
|
1778
|
+
font-variant-numeric: tabular-nums;
|
|
1779
|
+
font: var(--fos-t-micro-weight) var(--fos-t-micro)/var(--fos-t-micro-line) var(--fos-font);
|
|
1780
|
+
letter-spacing: var(--fos-t-micro-tracking);
|
|
1781
|
+
color: var(--fos-ink-2);
|
|
1782
|
+
font-weight: 500;
|
|
1783
|
+
}
|
|
1784
|
+
.fos-tag {
|
|
1785
|
+
display: inline-flex;
|
|
1786
|
+
align-items: center;
|
|
1787
|
+
min-height: var(--fos-s5);
|
|
1788
|
+
padding: 0 var(--fos-s2);
|
|
1789
|
+
border-radius: var(--fos-r-sm);
|
|
1790
|
+
border: 1px solid var(--fos-line);
|
|
1791
|
+
font: var(--fos-t-micro-weight) var(--fos-t-micro)/var(--fos-t-micro-line) var(--fos-font);
|
|
1792
|
+
letter-spacing: var(--fos-t-micro-tracking);
|
|
1793
|
+
color: var(--fos-ink-2);
|
|
1794
|
+
font-weight: 500;
|
|
1795
|
+
}
|
|
1796
|
+
|
|
1797
|
+
/*
|
|
1798
|
+
* ⭐ METER — how far along, against a target.
|
|
1799
|
+
* A bare number cannot say "0 of 240" at a glance across forty rows; a bar
|
|
1800
|
+
* can. It carries `role="meter"` with the real numbers, so the value is
|
|
1801
|
+
* available to anyone who cannot see the bar at all.
|
|
1802
|
+
*/
|
|
1803
|
+
.fos-meter {
|
|
1804
|
+
display: block;
|
|
1805
|
+
width: 100%;
|
|
1806
|
+
min-width: var(--fos-s7);
|
|
1807
|
+
max-width: var(--fos-s7);
|
|
1808
|
+
height: var(--fos-s2);
|
|
1809
|
+
border-radius: var(--fos-r-pill);
|
|
1810
|
+
background: var(--fos-surface-2);
|
|
1811
|
+
overflow: hidden;
|
|
1812
|
+
}
|
|
1813
|
+
.fos-meter > * {
|
|
1814
|
+
display: block;
|
|
1815
|
+
height: 100%;
|
|
1816
|
+
background: var(--fos-primary);
|
|
1817
|
+
}
|
|
1818
|
+
.fos-meter--wait > * {
|
|
1819
|
+
background: var(--fos-tone-wait);
|
|
1820
|
+
}
|
|
1821
|
+
.fos-meter--doing > * {
|
|
1822
|
+
background: var(--fos-tone-doing);
|
|
1823
|
+
}
|
|
1824
|
+
.fos-meter--done > * {
|
|
1825
|
+
background: var(--fos-tone-done);
|
|
1826
|
+
}
|
|
1827
|
+
.fos-meter--warn > * {
|
|
1828
|
+
background: var(--fos-tone-warn);
|
|
1829
|
+
}
|
|
1830
|
+
.fos-meter--stop > * {
|
|
1831
|
+
background: var(--fos-tone-stop);
|
|
1832
|
+
}
|
|
1833
|
+
|
|
1834
|
+
/*
|
|
1835
|
+
* ⭐ SR-ONLY — out of sight, still heard.
|
|
1836
|
+
* Carries no business word, and no design system is without it. It is also
|
|
1837
|
+
* the condition for this grammar's OWN icon-only button: `--icon` hides the
|
|
1838
|
+
* label with `aria-label`, but a label that must stay IN THE DOM without
|
|
1839
|
+
* taking pixels had no name here until now.
|
|
1840
|
+
* ⚠️ Both `clip` and `clip-path`, and `white-space: nowrap`, on purpose.
|
|
1841
|
+
* The legacy `clip` is what old assistive stacks read; `nowrap` stops a
|
|
1842
|
+
* one-pixel box wrapping every word onto its own line, which some screen
|
|
1843
|
+
* readers then announce letter by letter. Writing five of the six lines is
|
|
1844
|
+
* the common mistake, and the sixth is invisible to whoever wrote it.
|
|
1845
|
+
*/
|
|
1846
|
+
.fos-sr-only {
|
|
1847
|
+
position: absolute;
|
|
1848
|
+
width: 1px;
|
|
1849
|
+
height: 1px;
|
|
1850
|
+
padding: 0;
|
|
1851
|
+
margin: -1px;
|
|
1852
|
+
overflow: hidden;
|
|
1853
|
+
clip: rect(0 0 0 0);
|
|
1854
|
+
clip-path: inset(50%);
|
|
1855
|
+
white-space: nowrap;
|
|
1856
|
+
border: 0;
|
|
1857
|
+
}
|
|
1858
|
+
|
|
1859
|
+
/* and it comes BACK when focused, or a keyboard skip-link is invisible */
|
|
1860
|
+
.fos-sr-only--focusable:focus, .fos-sr-only--focusable:focus-within {
|
|
1861
|
+
position: static;
|
|
1862
|
+
width: auto;
|
|
1863
|
+
height: auto;
|
|
1864
|
+
margin: 0;
|
|
1865
|
+
overflow: visible;
|
|
1866
|
+
clip: auto;
|
|
1867
|
+
clip-path: none;
|
|
1868
|
+
white-space: normal;
|
|
1869
|
+
}
|
|
1870
|
+
|
|
1871
|
+
/*
|
|
1872
|
+
* ⭐ PROVENANCE — where this number came from.
|
|
1873
|
+
* A footer under a record or a figure: a tinted ground, a rule above, smaller
|
|
1874
|
+
* type, and a `code` run that does not break in the middle of an identifier.
|
|
1875
|
+
* ⚠️ THE CONTRACT DOES NOT CARRY THIS, and the proposal said it did. What
|
|
1876
|
+
* `@dqa-ai-solutions/app-runtime` carries is `notes` / `ResolvedField.note` — the
|
|
1877
|
+
* authority behind ONE FIELD, per property. This is the RECORD-level block,
|
|
1878
|
+
* and it has no contract behind it today. The mould is here because the shape
|
|
1879
|
+
* is general; the day a contract grows a record-level provenance, it has
|
|
1880
|
+
* somewhere to pour.
|
|
1881
|
+
*/
|
|
1882
|
+
.fos-provenance {
|
|
1883
|
+
display: grid;
|
|
1884
|
+
gap: var(--fos-s2);
|
|
1885
|
+
margin-top: var(--fos-s5);
|
|
1886
|
+
padding-top: var(--fos-s4);
|
|
1887
|
+
border-top: 1px solid var(--fos-line-2);
|
|
1888
|
+
font: var(--fos-t-caption-weight) var(--fos-t-caption)/var(--fos-t-caption-line) var(--fos-font);
|
|
1889
|
+
letter-spacing: var(--fos-t-caption-tracking);
|
|
1890
|
+
color: var(--fos-ink-3);
|
|
1891
|
+
}
|
|
1892
|
+
.fos-provenance code, .fos-provenance kbd {
|
|
1893
|
+
font: var(--fos-t-meta-weight) var(--fos-t-meta)/var(--fos-t-meta-line) var(--fos-mono);
|
|
1894
|
+
background: var(--fos-surface-2);
|
|
1895
|
+
border-radius: var(--fos-r-sm);
|
|
1896
|
+
padding: 0 var(--fos-s1);
|
|
1897
|
+
overflow-wrap: anywhere;
|
|
1898
|
+
}
|
|
1899
|
+
|
|
1900
|
+
/*
|
|
1901
|
+
* ⭐ AVATAR — who: a face, or the initials standing for one.
|
|
1902
|
+
* ⚠️ The proposal called it `chip`, and that name is taken: everywhere else a
|
|
1903
|
+
* chip is a small text token, which is `fos-tag` here. A name that means
|
|
1904
|
+
* something else in every other system is a name that will be reached for by
|
|
1905
|
+
* mistake.
|
|
1906
|
+
* ⚠️ SIZED FROM DENSITY, not from the 30–34px it was measured at. Every other
|
|
1907
|
+
* control in this grammar moves with `--fos-control-h`; an avatar that does
|
|
1908
|
+
* not is the one round thing that stays put while its row changes height.
|
|
1909
|
+
*/
|
|
1910
|
+
.fos-avatar {
|
|
1911
|
+
display: inline-grid;
|
|
1912
|
+
place-items: center;
|
|
1913
|
+
flex-shrink: 0;
|
|
1914
|
+
width: var(--fos-control-h);
|
|
1915
|
+
height: var(--fos-control-h);
|
|
1916
|
+
border-radius: var(--fos-r-pill);
|
|
1917
|
+
overflow: hidden;
|
|
1918
|
+
background: var(--fos-primary-bg);
|
|
1919
|
+
font: var(--fos-t-meta-weight) var(--fos-t-meta)/var(--fos-t-meta-line) var(--fos-font);
|
|
1920
|
+
letter-spacing: var(--fos-t-meta-tracking);
|
|
1921
|
+
color: var(--fos-primary);
|
|
1922
|
+
font-weight: 600;
|
|
1923
|
+
text-transform: uppercase;
|
|
1924
|
+
user-select: none;
|
|
1925
|
+
}
|
|
1926
|
+
.fos-avatar > img {
|
|
1927
|
+
width: 100%;
|
|
1928
|
+
height: 100%;
|
|
1929
|
+
object-fit: cover;
|
|
1930
|
+
}
|
|
1931
|
+
|
|
1932
|
+
/*
|
|
1933
|
+
* ⭐ TREE ROW — depth as a number, not as a pile of spacer cells.
|
|
1934
|
+
* Indentation comes from --fos-depth on the row, so a renderer never emits
|
|
1935
|
+
* padding it computed itself, and a row can never disagree with its own
|
|
1936
|
+
* nesting.
|
|
1937
|
+
*/
|
|
1938
|
+
.fos-tree-toggle {
|
|
1939
|
+
display: inline-flex;
|
|
1940
|
+
align-items: center;
|
|
1941
|
+
min-height: var(--fos-s5);
|
|
1942
|
+
border-radius: var(--fos-r);
|
|
1943
|
+
cursor: pointer;
|
|
1944
|
+
text-decoration: none;
|
|
1945
|
+
position: relative;
|
|
1946
|
+
justify-content: center;
|
|
1947
|
+
width: var(--fos-s5);
|
|
1948
|
+
min-width: var(--fos-s5);
|
|
1949
|
+
padding: 0;
|
|
1950
|
+
background: transparent;
|
|
1951
|
+
border: 0;
|
|
1952
|
+
color: var(--fos-ink-3);
|
|
1953
|
+
}
|
|
1954
|
+
.fos-tree-toggle:hover {
|
|
1955
|
+
color: var(--fos-ink);
|
|
1956
|
+
}
|
|
1957
|
+
.fos-tree-toggle:active {
|
|
1958
|
+
color: var(--fos-primary);
|
|
1959
|
+
}
|
|
1960
|
+
.fos-tree-toggle:focus-visible {
|
|
1961
|
+
outline: 2px solid var(--fos-focus);
|
|
1962
|
+
outline-offset: 2px;
|
|
1963
|
+
}
|
|
1964
|
+
.fos-tree-toggle[disabled], .fos-tree-toggle[aria-disabled="true"] {
|
|
1965
|
+
opacity: 0.55;
|
|
1966
|
+
cursor: not-allowed;
|
|
1967
|
+
}
|
|
1968
|
+
.fos-table [data-depth] th[scope="row"], .fos-table [data-depth] td:first-child {
|
|
1969
|
+
padding-left: calc(var(--fos-cell-x) + var(--fos-depth, 0) * var(--fos-s5));
|
|
1970
|
+
}
|
|
1971
|
+
|
|
1972
|
+
/*
|
|
1973
|
+
* ⭐ MILESTONES — how far along a route, and what stands between here and next.
|
|
1974
|
+
* A rail of points with a line drawn through them: the ones behind, the one
|
|
1975
|
+
* the record is on, the ones ahead. Its parts carry the weight — the rail
|
|
1976
|
+
* itself is a scroller and a connector, like `table` to its `th` and `td`.
|
|
1977
|
+
* ⚠️ THE CONNECTOR IS DRAWN BY THE POINT, NOT BY THE RAIL. A single line
|
|
1978
|
+
* under the whole rail cannot change colour partway, and the colour IS the
|
|
1979
|
+
* information: solid behind the record, dashed ahead of it. Each point draws
|
|
1980
|
+
* the segment arriving at itself, so the break falls exactly where the record
|
|
1981
|
+
* stands, with no element counting how many points there are.
|
|
1982
|
+
* ⛔ AND IT SCROLLS SIDEWAYS RATHER THAN WRAPPING. A route that wraps to a
|
|
1983
|
+
* second row reads as a second stage; a route that scrolls reads as one long
|
|
1984
|
+
* route, which is what it is. Measured: routes run to 12 points.
|
|
1985
|
+
*/
|
|
1986
|
+
.fos-milestones {
|
|
1987
|
+
display: flex;
|
|
1988
|
+
align-items: stretch;
|
|
1989
|
+
overflow-x: auto;
|
|
1990
|
+
gap: 0;
|
|
1991
|
+
padding-bottom: var(--fos-s1);
|
|
1992
|
+
}
|
|
1993
|
+
.fos-milestone {
|
|
1994
|
+
flex: 1 1 0;
|
|
1995
|
+
min-width: var(--fos-s7);
|
|
1996
|
+
position: relative;
|
|
1997
|
+
display: flex;
|
|
1998
|
+
flex-direction: column;
|
|
1999
|
+
align-items: center;
|
|
2000
|
+
text-align: center;
|
|
2001
|
+
padding: 0 var(--fos-s1);
|
|
2002
|
+
}
|
|
2003
|
+
.fos-milestone::before {
|
|
2004
|
+
content: "";
|
|
2005
|
+
position: absolute;
|
|
2006
|
+
top: calc(var(--fos-s4) / 2);
|
|
2007
|
+
left: -50%;
|
|
2008
|
+
right: 50%;
|
|
2009
|
+
height: 2px;
|
|
2010
|
+
background: var(--fos-line);
|
|
2011
|
+
z-index: 0;
|
|
2012
|
+
}
|
|
2013
|
+
.fos-milestone:first-child::before {
|
|
2014
|
+
display: none;
|
|
2015
|
+
}
|
|
2016
|
+
.fos-milestone--past::before, .fos-milestone--current::before {
|
|
2017
|
+
background: var(--fos-tone-done);
|
|
2018
|
+
}
|
|
2019
|
+
.fos-milestone--ahead::before {
|
|
2020
|
+
background-image: repeating-linear-gradient(90deg, var(--fos-line) 0 var(--fos-s1), transparent var(--fos-s1) var(--fos-s2));
|
|
2021
|
+
background-color: transparent;
|
|
2022
|
+
}
|
|
2023
|
+
.fos-milestone-dot {
|
|
2024
|
+
display: flex;
|
|
2025
|
+
align-items: center;
|
|
2026
|
+
justify-content: center;
|
|
2027
|
+
width: var(--fos-s4);
|
|
2028
|
+
height: var(--fos-s4);
|
|
2029
|
+
border-radius: var(--fos-r-pill);
|
|
2030
|
+
background: var(--fos-surface);
|
|
2031
|
+
border: 2px solid var(--fos-line);
|
|
2032
|
+
flex: 0 0 auto;
|
|
2033
|
+
z-index: 1;
|
|
2034
|
+
font: var(--fos-t-micro-weight) var(--fos-t-micro)/var(--fos-t-micro-line) var(--fos-font);
|
|
2035
|
+
letter-spacing: var(--fos-t-micro-tracking);
|
|
2036
|
+
color: var(--fos-ink-3);
|
|
2037
|
+
font-weight: 500;
|
|
2038
|
+
}
|
|
2039
|
+
.fos-milestone--past > .fos-milestone-dot {
|
|
2040
|
+
background: var(--fos-tone-done);
|
|
2041
|
+
border-color: var(--fos-tone-done);
|
|
2042
|
+
color: var(--fos-surface);
|
|
2043
|
+
}
|
|
2044
|
+
.fos-milestone--current > .fos-milestone-dot {
|
|
2045
|
+
background: var(--fos-tone-doing);
|
|
2046
|
+
border-color: var(--fos-tone-doing);
|
|
2047
|
+
color: var(--fos-surface);
|
|
2048
|
+
}
|
|
2049
|
+
.fos-milestone--gate > .fos-milestone-dot {
|
|
2050
|
+
border-style: dashed;
|
|
2051
|
+
border-color: var(--fos-tone-warn);
|
|
2052
|
+
background: var(--fos-tone-warn-bg);
|
|
2053
|
+
color: var(--fos-tone-warn);
|
|
2054
|
+
}
|
|
2055
|
+
|
|
2056
|
+
/*
|
|
2057
|
+
* ⭐ A SETTLED GATE IS NO LONGER A WAIT, AND THE RING MUST STOP SAYING IT IS.
|
|
2058
|
+
* The dash stays — it is still a gate, and shape is what tells a gate from a
|
|
2059
|
+
* state. What changes is the tone: `tone-warn` means "somebody still has to
|
|
2060
|
+
* act", and on a gate that has been ruled on, nobody does.
|
|
2061
|
+
* ⛔ AND IT IS TWO TONES, NOT ONE. Settled says the level above HAS ruled;
|
|
2062
|
+
* it does not say which way. Painting a refusal the same green as an approval
|
|
2063
|
+
* would put the strip's only picture at odds with the words beneath it —
|
|
2064
|
+
* exactly the fault this rule was written to end, one step further along.
|
|
2065
|
+
* ⚠️ THE CALLER CANNOT TELL US WHICH: the lens carries the verdict as the
|
|
2066
|
+
* application's own word (`approve`, `RETURNED`, whatever the domain says).
|
|
2067
|
+
* So the React layer takes a two-valued `settled` and the app maps its own
|
|
2068
|
+
* vocabulary onto it. Two classes here, no strings.
|
|
2069
|
+
*/
|
|
2070
|
+
.fos-milestone--gate.fos-milestone--passed > .fos-milestone-dot {
|
|
2071
|
+
border-color: var(--fos-tone-done);
|
|
2072
|
+
background: var(--fos-tone-done-bg);
|
|
2073
|
+
color: var(--fos-tone-done);
|
|
2074
|
+
}
|
|
2075
|
+
.fos-milestone--gate.fos-milestone--refused > .fos-milestone-dot {
|
|
2076
|
+
border-color: var(--fos-tone-stop);
|
|
2077
|
+
background: var(--fos-tone-stop-bg);
|
|
2078
|
+
color: var(--fos-tone-stop);
|
|
2079
|
+
}
|
|
2080
|
+
|
|
2081
|
+
/* the one thing the record is actually waiting on — the only ring on the rail */
|
|
2082
|
+
.fos-milestone--awaiting > .fos-milestone-dot {
|
|
2083
|
+
box-shadow: 0 0 0 var(--fos-s1) var(--fos-tone-warn-bg);
|
|
2084
|
+
}
|
|
2085
|
+
.fos-milestone-label {
|
|
2086
|
+
margin-top: var(--fos-s2);
|
|
2087
|
+
font: var(--fos-t-body-weight) var(--fos-t-body)/var(--fos-t-body-line) var(--fos-font);
|
|
2088
|
+
letter-spacing: var(--fos-t-body-tracking);
|
|
2089
|
+
color: var(--fos-ink);
|
|
2090
|
+
font-weight: 600;
|
|
2091
|
+
}
|
|
2092
|
+
.fos-milestone--ahead > .fos-milestone-label {
|
|
2093
|
+
color: var(--fos-ink-2);
|
|
2094
|
+
font-weight: 400;
|
|
2095
|
+
}
|
|
2096
|
+
.fos-milestone-who {
|
|
2097
|
+
margin-top: 2px;
|
|
2098
|
+
font: var(--fos-t-meta-weight) var(--fos-t-meta)/var(--fos-t-meta-line) var(--fos-font);
|
|
2099
|
+
letter-spacing: var(--fos-t-meta-tracking);
|
|
2100
|
+
color: var(--fos-ink-3);
|
|
2101
|
+
}
|
|
2102
|
+
.fos-milestone--awaiting > .fos-milestone-who {
|
|
2103
|
+
color: var(--fos-tone-warn);
|
|
2104
|
+
}
|
|
2105
|
+
|
|
2106
|
+
/*
|
|
2107
|
+
* ⛔ WHAT IS NOT A POSITION ON THE ROUTE SITS BELOW THE RAIL, NEVER ON IT.
|
|
2108
|
+
* Three kinds of work fail to be a point on a route, and all three are
|
|
2109
|
+
* ordinary rather than exceptional:
|
|
2110
|
+
* · a RETURN — walks the record backward. 22 of 54 processes have one.
|
|
2111
|
+
* · PARALLEL work — another role's, running alongside, blocking nobody.
|
|
2112
|
+
* · work done ON DEMAND — outside the sequence, taken only if needed.
|
|
2113
|
+
* Drawn as another point, each asserts a place in the order it does not hold:
|
|
2114
|
+
* a return would read as coming AFTER the state it returns to, and parallel
|
|
2115
|
+
* work would read as a step everyone must pass through.
|
|
2116
|
+
* ⚠️ THE FOOT OWNS THE RULE ABOVE IT, not each line. Three lines each drawing
|
|
2117
|
+
* their own divider stack into three dividers for one seam.
|
|
2118
|
+
*/
|
|
2119
|
+
.fos-milestones-foot {
|
|
2120
|
+
display: flex;
|
|
2121
|
+
flex-direction: column;
|
|
2122
|
+
gap: var(--fos-s2);
|
|
2123
|
+
margin-top: var(--fos-s3);
|
|
2124
|
+
padding-top: var(--fos-s2);
|
|
2125
|
+
border-top: 1px dashed var(--fos-line);
|
|
2126
|
+
}
|
|
2127
|
+
.fos-milestone-note {
|
|
2128
|
+
display: flex;
|
|
2129
|
+
align-items: flex-start;
|
|
2130
|
+
gap: var(--fos-s2);
|
|
2131
|
+
font: var(--fos-t-meta-weight) var(--fos-t-meta)/var(--fos-t-meta-line) var(--fos-font);
|
|
2132
|
+
letter-spacing: var(--fos-t-meta-tracking);
|
|
2133
|
+
color: var(--fos-ink-3);
|
|
2134
|
+
}
|
|
2135
|
+
.fos-milestone-note > :first-child {
|
|
2136
|
+
flex: 0 0 auto;
|
|
2137
|
+
align-self: flex-start;
|
|
2138
|
+
line-height: inherit;
|
|
2139
|
+
}
|
|
2140
|
+
.fos-milestone-note > :first-child > svg {
|
|
2141
|
+
vertical-align: middle;
|
|
2142
|
+
}
|
|
2143
|
+
|
|
2144
|
+
/* ⛔ an icon alone is a guess unless it is labelled — see `check-icon-only-aria` */
|
|
2145
|
+
.fos-icon {
|
|
2146
|
+
width: var(--fos-t-body);
|
|
2147
|
+
height: var(--fos-t-body);
|
|
2148
|
+
flex: 0 0 auto;
|
|
2149
|
+
vertical-align: middle;
|
|
2150
|
+
}
|
|
2151
|
+
|
|
2152
|
+
/* layout — the mould a screen is poured into */
|
|
2153
|
+
.fos-app {
|
|
2154
|
+
display: grid;
|
|
2155
|
+
grid-template-columns: auto 1fr;
|
|
2156
|
+
min-height: 100vh;
|
|
2157
|
+
}
|
|
2158
|
+
.fos-rail {
|
|
2159
|
+
display: flex;
|
|
2160
|
+
flex-direction: column;
|
|
2161
|
+
gap: var(--fos-s1);
|
|
2162
|
+
padding: var(--fos-s3);
|
|
2163
|
+
border-right: 1px solid var(--fos-line);
|
|
2164
|
+
background: var(--fos-surface);
|
|
2165
|
+
min-width: var(--fos-s7);
|
|
2166
|
+
position: sticky;
|
|
2167
|
+
top: 0;
|
|
2168
|
+
height: 100vh;
|
|
2169
|
+
overflow-y: auto;
|
|
2170
|
+
box-sizing: border-box;
|
|
2171
|
+
}
|
|
2172
|
+
.fos-main {
|
|
2173
|
+
min-width: 0;
|
|
2174
|
+
padding: var(--fos-s6);
|
|
2175
|
+
display: grid;
|
|
2176
|
+
gap: var(--fos-s6);
|
|
2177
|
+
align-content: start;
|
|
2178
|
+
}
|
|
2179
|
+
|
|
2180
|
+
/* one rhythm between sections, so no screen invents its own */
|
|
2181
|
+
.fos-page-head {
|
|
2182
|
+
display: grid;
|
|
2183
|
+
gap: var(--fos-s2);
|
|
2184
|
+
}
|
|
2185
|
+
.fos-page-head .fos-actions {
|
|
2186
|
+
display: flex;
|
|
2187
|
+
gap: var(--fos-s3);
|
|
2188
|
+
flex-wrap: wrap;
|
|
2189
|
+
}
|
|
2190
|
+
.fos-section {
|
|
2191
|
+
display: grid;
|
|
2192
|
+
gap: var(--fos-s4);
|
|
2193
|
+
align-content: start;
|
|
2194
|
+
}
|
|
2195
|
+
|
|
2196
|
+
/* ⭐ a form is one column of equal rows — a grid of mixed widths is how a
|
|
2197
|
+
* form starts looking like a spreadsheet nobody can scan. */
|
|
2198
|
+
.fos-form {
|
|
2199
|
+
display: grid;
|
|
2200
|
+
gap: var(--fos-s5);
|
|
2201
|
+
max-width: 42rem;
|
|
2202
|
+
}
|
|
2203
|
+
.fos-form-actions {
|
|
2204
|
+
display: flex;
|
|
2205
|
+
flex-wrap: wrap;
|
|
2206
|
+
gap: var(--fos-s3);
|
|
2207
|
+
justify-content: flex-end;
|
|
2208
|
+
padding-top: var(--fos-s4);
|
|
2209
|
+
border-top: 1px solid var(--fos-line-2);
|
|
2210
|
+
}
|
|
2211
|
+
|
|
2212
|
+
/* ⭐ A NOTE THAT BELONGS TO THE ACTION ROW, AND RE-ALIGNS WHEN THE ROW
|
|
2213
|
+
* IS EMPTY. Proposed as `handoff` — "the process has not stopped, here is
|
|
2214
|
+
* who is next" — which is a WORKFLOW word, not a shape. The shape is
|
|
2215
|
+
* general and the shape is what a kernel may carry: a note sits beside the
|
|
2216
|
+
* buttons and is a caption FOR them, so it goes right; with no buttons it
|
|
2217
|
+
* is a sentence of its own, so it goes left.
|
|
2218
|
+
* ⭐ Worth taking for the sibling rule alone: its alignment depends on what
|
|
2219
|
+
* is NEXT TO IT, which no single screen can state and only a grammar can.
|
|
2220
|
+
* ⚠️ Layout, not an element — the type comes from `.fos-note`, the position
|
|
2221
|
+
* from here, and what is left is arrangement. Same ruling as `badge-group`. */
|
|
2222
|
+
.fos-actions-note {
|
|
2223
|
+
text-align: right;
|
|
2224
|
+
margin-left: auto;
|
|
2225
|
+
}
|
|
2226
|
+
.fos-form-actions:empty ~ .fos-actions-note, .fos-actions:empty ~ .fos-actions-note {
|
|
2227
|
+
text-align: left;
|
|
2228
|
+
margin-left: 0;
|
|
2229
|
+
}
|
|
2230
|
+
|
|
2231
|
+
/* ⭐ WHY A BUTTON IS LOCKED — UNDER THE ROW, ONE LINE PER BUTTON. Added 27/9/2026.
|
|
2232
|
+
* Each reason standing beside its own button squeezed words BETWEEN the
|
|
2233
|
+
* buttons ("[Lưu] Chưa có thay đổi… [Submit] Còn thiếu…"); one run-on caption
|
|
2234
|
+
* after the row was not better. The user: "các text báo trạng thái cho các
|
|
2235
|
+
* button nên hiển thị phía dưới, nhiều text thì show lần lượt theo cột".
|
|
2236
|
+
* ⚠️ Layout only — each line is a `.fos-hint`; what is added is where it goes:
|
|
2237
|
+
* the row wraps only when it carries reasons, and the list takes a line of its
|
|
2238
|
+
* own; in a bar whose buttons sit right (a dialog or form foot, a page head)
|
|
2239
|
+
* the lines sit right under them. */
|
|
2240
|
+
.fos-actions--noted {
|
|
2241
|
+
flex-wrap: wrap;
|
|
2242
|
+
}
|
|
2243
|
+
.fos-actions-why {
|
|
2244
|
+
flex-basis: 100%;
|
|
2245
|
+
margin: 0;
|
|
2246
|
+
padding: 0;
|
|
2247
|
+
list-style: none;
|
|
2248
|
+
display: grid;
|
|
2249
|
+
gap: var(--fos-s1);
|
|
2250
|
+
}
|
|
2251
|
+
.fos-form-actions .fos-actions, .fos-page-head .fos-actions--noted {
|
|
2252
|
+
justify-content: flex-end;
|
|
2253
|
+
}
|
|
2254
|
+
.fos-form-actions .fos-actions-why, .fos-page-head .fos-actions-why {
|
|
2255
|
+
text-align: right;
|
|
2256
|
+
}
|
|
2257
|
+
|
|
2258
|
+
/* ⛔ a wide table scrolls INSIDE its own box. A page that scrolls sideways
|
|
2259
|
+
* takes the navigation off screen with it. */
|
|
2260
|
+
.fos-table-wrap {
|
|
2261
|
+
overflow-x: auto;
|
|
2262
|
+
border: 1px solid var(--fos-line);
|
|
2263
|
+
border-radius: var(--fos-r-lg);
|
|
2264
|
+
background: var(--fos-surface);
|
|
2265
|
+
}
|
|
2266
|
+
.fos-badge-group {
|
|
2267
|
+
display: inline-flex;
|
|
2268
|
+
align-items: center;
|
|
2269
|
+
gap: var(--fos-s3);
|
|
2270
|
+
}
|
|
2271
|
+
.fos-grid {
|
|
2272
|
+
display: grid;
|
|
2273
|
+
gap: var(--fos-s4);
|
|
2274
|
+
grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
|
|
2275
|
+
}
|
|
2276
|
+
.fos-backdrop {
|
|
2277
|
+
position: fixed;
|
|
2278
|
+
inset: 0;
|
|
2279
|
+
display: grid;
|
|
2280
|
+
place-items: center;
|
|
2281
|
+
padding: var(--fos-s5);
|
|
2282
|
+
background: rgb(0 0 0 / 45%);
|
|
2283
|
+
}
|
|
2284
|
+
|
|
2285
|
+
/* a narrow screen drops the rail rather than squeezing the work */
|
|
2286
|
+
@media (max-width: 52rem) {
|
|
2287
|
+
.fos-app { grid-template-columns: 1fr; }
|
|
2288
|
+
.fos-rail { border-right: 0; border-bottom: 1px solid var(--fos-line); position: static; height: auto; overflow-y: visible; }
|
|
2289
|
+
.fos-main { padding: var(--fos-s4); }
|
|
2290
|
+
}
|
|
2291
|
+
|