@cameronsjo/artificer 0.22.0 → 0.23.0
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 +21 -11
- package/package.json +1 -1
- package/reference/SKILL.md +23 -9
- package/src/artificer-editorial.css +4 -4
- package/src/artificer-whimsy.js +47 -9
- package/src/artificer.css +423 -90
- package/src/primitives.json +89 -3
- package/src/tokens.json +4 -2
- package/src/assets/fonts/ia-writer-quattro-400-italic.woff2 +0 -0
- package/src/assets/fonts/ia-writer-quattro-400.woff2 +0 -0
- package/src/assets/fonts/ia-writer-quattro-700-italic.woff2 +0 -0
- package/src/assets/fonts/ia-writer-quattro-700.woff2 +0 -0
package/src/artificer.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* ═══════════════════════════════════════════════════════════════════════════
|
|
2
|
-
ARTIFICER · Design tokens · v0.
|
|
2
|
+
ARTIFICER · Design tokens · v0.23.0 (apothecary × deco × speakeasy)
|
|
3
3
|
AuDHD-optimized, Ghostty-rooted, with warm Jazz-Age accents.
|
|
4
4
|
Default theme = dark. Add data-theme="light" on <html> for ivory paper mode.
|
|
5
5
|
|
|
@@ -41,9 +41,12 @@
|
|
|
41
41
|
|
|
42
42
|
/* ─── Self-hosted fonts ──────────────────────────────────────────────────
|
|
43
43
|
JetBrains Mono — code, identifiers, numerals, dense tool body
|
|
44
|
-
iA Writer Quattro —
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
iA Writer Quattro S / V — the two roles split by surface (see FONTS.md):
|
|
45
|
+
S is interface chrome (labels, controls, tabular UI numerals), V is
|
|
46
|
+
body prose. No bare 'iA Writer Quattro' face ships — it was a duplicate
|
|
47
|
+
of S/V's own glyph set with no role of its own.
|
|
48
|
+
All SIL OFL 1.1. Files live in src/assets/fonts/. See FONTS.md for the
|
|
49
|
+
rationale and the Windows faux-bold disposition. */
|
|
47
50
|
@font-face {
|
|
48
51
|
font-family: 'JetBrains Mono';
|
|
49
52
|
src: url('assets/fonts/jetbrains-mono-400.woff2') format('woff2');
|
|
@@ -59,30 +62,10 @@
|
|
|
59
62
|
src: url('assets/fonts/jetbrains-mono-700.woff2') format('woff2');
|
|
60
63
|
font-weight: 700; font-style: normal; font-display: swap;
|
|
61
64
|
}
|
|
62
|
-
@font-face {
|
|
63
|
-
font-family: 'iA Writer Quattro';
|
|
64
|
-
src: url('assets/fonts/ia-writer-quattro-400.woff2') format('woff2');
|
|
65
|
-
font-weight: 400; font-style: normal; font-display: swap;
|
|
66
|
-
}
|
|
67
|
-
@font-face {
|
|
68
|
-
font-family: 'iA Writer Quattro';
|
|
69
|
-
src: url('assets/fonts/ia-writer-quattro-400-italic.woff2') format('woff2');
|
|
70
|
-
font-weight: 400; font-style: italic; font-display: swap;
|
|
71
|
-
}
|
|
72
|
-
@font-face {
|
|
73
|
-
font-family: 'iA Writer Quattro';
|
|
74
|
-
src: url('assets/fonts/ia-writer-quattro-700.woff2') format('woff2');
|
|
75
|
-
font-weight: 700; font-style: normal; font-display: swap;
|
|
76
|
-
}
|
|
77
|
-
@font-face {
|
|
78
|
-
font-family: 'iA Writer Quattro';
|
|
79
|
-
src: url('assets/fonts/ia-writer-quattro-700-italic.woff2') format('woff2');
|
|
80
|
-
font-weight: 700; font-style: italic; font-display: swap;
|
|
81
|
-
}
|
|
82
65
|
|
|
83
|
-
/* iA Writer Quattro S — tabular-numeral variant
|
|
84
|
-
|
|
85
|
-
doesn't reflow when this variant is missing. */
|
|
66
|
+
/* iA Writer Quattro S — tabular-numeral variant. Interface chrome: labels,
|
|
67
|
+
controls, badges, dense tabular UI numerals. Same metrics as Quattro, so
|
|
68
|
+
the fallback chain doesn't reflow when this variant is missing. */
|
|
86
69
|
@font-face {
|
|
87
70
|
font-family: 'iA Writer Quattro S';
|
|
88
71
|
src: url('assets/fonts/ia-writer-quattro-s-400.woff2') format('woff2');
|
|
@@ -105,8 +88,9 @@
|
|
|
105
88
|
}
|
|
106
89
|
|
|
107
90
|
/* iA Writer Quattro V — display variant (slightly tighter, more contrast).
|
|
108
|
-
Only 400 weight ships from iA
|
|
109
|
-
|
|
91
|
+
Body prose face. Only 400 weight ships from iA — a bold body run
|
|
92
|
+
(headlines set on --font-body) synthesizes faux-bold in the browser,
|
|
93
|
+
same as any face missing a weight. */
|
|
110
94
|
@font-face {
|
|
111
95
|
font-family: 'iA Writer Quattro V';
|
|
112
96
|
src: url('assets/fonts/ia-writer-quattro-v-400.woff2') format('woff2');
|
|
@@ -175,12 +159,18 @@
|
|
|
175
159
|
|
|
176
160
|
/* Type, radii, spacing, motion — identical across themes */
|
|
177
161
|
--font-mono: 'JetBrains Mono', 'Berkeley Mono', ui-monospace, 'SF Mono', Menlo, monospace;
|
|
178
|
-
/* iA Writer Quattro —
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
--font-
|
|
182
|
-
|
|
183
|
-
|
|
162
|
+
/* iA Writer Quattro V — display/body variant. Body prose face: document
|
|
163
|
+
surfaces, .meta, headline/body type utilities. Falls back to serif →
|
|
164
|
+
system-ui. */
|
|
165
|
+
--font-body: 'iA Writer Quattro V', 'Iowan Old Style', 'Charter',
|
|
166
|
+
'Source Sans 3', system-ui, -apple-system, sans-serif;
|
|
167
|
+
/* iA Writer Quattro S — tabular-numeral variant. Interface chrome face:
|
|
168
|
+
labels, controls, badges, form fields, nav, tabular UI numerals. */
|
|
169
|
+
--font-interface: 'iA Writer Quattro S', 'Iowan Old Style', 'Charter',
|
|
170
|
+
'Source Sans 3', system-ui, -apple-system, sans-serif;
|
|
171
|
+
/* --font-sans is a legacy alias kept resolvable for public-API back-compat —
|
|
172
|
+
new rules use --font-body or --font-interface directly (see FONTS.md). */
|
|
173
|
+
--font-sans: var(--font-body);
|
|
184
174
|
|
|
185
175
|
/* Type sizes are REM (root = browser default, never overridden) so text
|
|
186
176
|
honors the user's browser font-size preference, not just zoom. 1rem = 16px
|
|
@@ -223,7 +213,7 @@
|
|
|
223
213
|
--z-toast: 3000; /* always-on-top notifications */
|
|
224
214
|
|
|
225
215
|
/* Artificer v0.10.1 — baseline contract: see CLAUDE.md § Baseline contract */
|
|
226
|
-
--art-version: "0.
|
|
216
|
+
--art-version: "0.23.0";
|
|
227
217
|
|
|
228
218
|
color-scheme: dark;
|
|
229
219
|
}
|
|
@@ -339,7 +329,7 @@ html { font-size: 100%; }
|
|
|
339
329
|
html, body {
|
|
340
330
|
background: var(--bg);
|
|
341
331
|
color: var(--fg);
|
|
342
|
-
font-family: var(--font-
|
|
332
|
+
font-family: var(--font-body);
|
|
343
333
|
line-height: var(--t-body-md-lh);
|
|
344
334
|
letter-spacing: var(--letter-spacing-body);
|
|
345
335
|
margin: 0; padding: 0;
|
|
@@ -358,39 +348,40 @@ body { font-size: var(--t-body-md-size); }
|
|
|
358
348
|
.surface-tool .field > label, .surface-tool .field > .hint, .surface-tool .field > .error,
|
|
359
349
|
.surface-tool .badge, .surface-tool .table th, .surface-tool .checkbox, .surface-tool .radio,
|
|
360
350
|
.surface-tool .toggle, .surface-tool .theme-toggle, .surface-tool .tooltip {
|
|
361
|
-
/* labels/hints/microcopy on tool surfaces stay
|
|
362
|
-
font-family: var(--font-
|
|
351
|
+
/* labels/hints/microcopy on tool surfaces stay interface-faced, per the rule */
|
|
352
|
+
font-family: var(--font-interface);
|
|
363
353
|
}
|
|
364
354
|
|
|
365
355
|
/* Document island — inverse of .surface-tool. Marks a prose region inside a
|
|
366
|
-
tool surface that opts its body face back to --font-
|
|
356
|
+
tool surface that opts its body face back to --font-body (colophons, legal
|
|
367
357
|
disclaimers, help prose). Sits after .surface-tool, so it wins at equal
|
|
368
358
|
specificity on source order; class-based components (.stat, .table cells)
|
|
369
359
|
self-declare mono and win there too. Bare-tag mono declarers (code, kbd)
|
|
370
360
|
sit at lower specificity than the universal-descendant rule above and lose
|
|
371
361
|
to it, so they're re-declared explicitly below. */
|
|
372
|
-
.surface-document, .surface-document * { font-family: var(--font-
|
|
362
|
+
.surface-document, .surface-document * { font-family: var(--font-body); }
|
|
373
363
|
/* code/kbd are bare-tag selectors ((0,0,1)) and lose to .surface-document *
|
|
374
364
|
((0,1,0)) on specificity, not source order — re-declared here to hold mono. */
|
|
375
365
|
.surface-document code, .surface-document kbd { font-family: var(--font-mono); }
|
|
376
366
|
|
|
377
367
|
/* ═══ Type utilities ════════════════════════════════════════════════════
|
|
378
|
-
Headlines and body run on --font-
|
|
368
|
+
Headlines and body run on --font-body (Quattro V) by default — document
|
|
369
|
+
mode; label utilities run on --font-interface (Quattro S).
|
|
379
370
|
On tool surfaces, wrap the surface in <… class="surface-tool"> to flip to mono.
|
|
380
371
|
.t-mono-* are explicit mono utilities for code blocks and identifier displays. */
|
|
381
|
-
.t-headline-lg { font-family: var(--font-
|
|
382
|
-
.t-headline-md { font-family: var(--font-
|
|
383
|
-
.t-body-lg { font-family: var(--font-
|
|
384
|
-
.t-body-md { font-family: var(--font-
|
|
385
|
-
.t-label-md { font-family: var(--font-
|
|
386
|
-
.t-label-sm { font-family: var(--font-
|
|
387
|
-
.t-label-xs { font-family: var(--font-
|
|
372
|
+
.t-headline-lg { font-family: var(--font-body); font-weight: 700; font-size: var(--t-headline-lg-size); line-height: var(--t-headline-lg-lh); letter-spacing: var(--t-headline-lg-ls); color: var(--fg); }
|
|
373
|
+
.t-headline-md { font-family: var(--font-body); font-weight: 700; font-size: var(--t-headline-md-size); line-height: var(--t-headline-md-lh); color: var(--fg); }
|
|
374
|
+
.t-body-lg { font-family: var(--font-body); font-weight: 400; font-size: var(--t-body-lg-size); line-height: var(--t-body-lg-lh); }
|
|
375
|
+
.t-body-md { font-family: var(--font-body); font-weight: 400; font-size: var(--t-body-md-size); line-height: var(--t-body-md-lh); }
|
|
376
|
+
.t-label-md { font-family: var(--font-interface); font-weight: 500; font-size: var(--t-label-md-size); line-height: var(--t-label-md-lh); }
|
|
377
|
+
.t-label-sm { font-family: var(--font-interface); font-weight: 400; font-size: var(--t-label-sm-size); line-height: var(--t-label-sm-lh); }
|
|
378
|
+
.t-label-xs { font-family: var(--font-interface); font-weight: 500; font-size: var(--t-label-xs-size); line-height: var(--t-label-xs-lh); } /* micro-chrome: keycaps, timestamps, dense table meta. Never body. */
|
|
388
379
|
.t-code { font-family: var(--font-mono); font-weight: 400; font-size: var(--t-code-size); line-height: var(--t-code-lh); color: var(--accent); }
|
|
389
380
|
.t-mono-headline-lg { font-family: var(--font-mono); font-weight: 700; font-size: var(--t-headline-lg-size); line-height: var(--t-headline-lg-lh); letter-spacing: var(--t-headline-lg-ls); color: var(--fg); }
|
|
390
381
|
.t-mono-body-md { font-family: var(--font-mono); font-weight: 400; font-size: var(--t-body-md-size); line-height: var(--t-body-md-lh); }
|
|
391
382
|
|
|
392
383
|
.anchor { font-weight: 700; color: var(--fg); }
|
|
393
|
-
.meta { color: var(--fg-secondary); font-family: var(--font-
|
|
384
|
+
.meta { color: var(--fg-secondary); font-family: var(--font-body); font-size: var(--t-body-md-size); max-width: 66ch; }
|
|
394
385
|
.note { color: var(--fg-secondary); font-size: var(--t-label-sm-size); } /* inherits body family — mono on tool surfaces, sans on doc surfaces. */
|
|
395
386
|
.num { font-variant-numeric: tabular-nums; }
|
|
396
387
|
|
|
@@ -424,12 +415,16 @@ a {
|
|
|
424
415
|
a:hover, a:focus-visible { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 2px; }
|
|
425
416
|
/* Tool surfaces read links by position — underline only on hover/focus (the rule above). */
|
|
426
417
|
.surface-tool a { text-decoration: none; }
|
|
418
|
+
/* .btn--link follows `a` here rather than joining its selector: widening that
|
|
419
|
+
one to :is(a, .btn--link) would lift it from (0,1,1) to (0,2,0) and could
|
|
420
|
+
out-order a rule that deliberately re-underlines an anchor. */
|
|
421
|
+
.surface-tool .btn--link { text-decoration: none; }
|
|
427
422
|
a:focus-visible { outline: var(--focus-width) solid var(--accent); outline-offset: var(--focus-offset); border-radius: 2px; }
|
|
428
423
|
|
|
429
424
|
/* ═══ Buttons ═══════════════════════════════════════════════════════════ */
|
|
430
425
|
.btn {
|
|
431
426
|
display: inline-flex; align-items: center; justify-content: center; gap: var(--s-sm);
|
|
432
|
-
font-family: var(--font-
|
|
427
|
+
font-family: var(--font-interface); font-size: var(--t-label-md-size); font-weight: 500; line-height: 1;
|
|
433
428
|
padding: 10px 20px; border-radius: var(--radius-sm); border: 1px solid transparent;
|
|
434
429
|
cursor: pointer; white-space: nowrap; text-decoration: none;
|
|
435
430
|
transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
|
|
@@ -445,6 +440,24 @@ a:focus-visible { outline: var(--focus-width) solid var(--accent); outline-offse
|
|
|
445
440
|
.btn--ghost { background: transparent; color: var(--fg-secondary); }
|
|
446
441
|
.btn--ghost:hover { background: var(--bg-raised); color: var(--fg); }
|
|
447
442
|
|
|
443
|
+
/* An action that READS as text. <button> is the correct element when a control
|
|
444
|
+
acts rather than navigates — an SPA switching views, a disclosure toggle,
|
|
445
|
+
"show more" — and this renders it as the link it reads as, instead of
|
|
446
|
+
dressing an <a> in a click handler and lying to the accessibility tree.
|
|
447
|
+
Parity with <a> is by CONSTRUCTION where it matters: this class joins `a` in
|
|
448
|
+
the two context rules (the tool-surface underline strip, the colophon's sans
|
|
449
|
+
escape), so a later retune of either carries here instead of drifting.
|
|
450
|
+
Sits after the .btn variants deliberately — it is (0,1,0) like .btn, so it
|
|
451
|
+
wins on source order alone. v0.22.1. */
|
|
452
|
+
.btn--link {
|
|
453
|
+
padding: 0; border: 0; border-radius: 0; background: none;
|
|
454
|
+
font: inherit; /* undo .btn's face, size and weight */
|
|
455
|
+
color: var(--accent);
|
|
456
|
+
text-decoration: underline; text-underline-offset: 2px;
|
|
457
|
+
white-space: normal; /* .btn's nowrap is wrong for inline text */
|
|
458
|
+
}
|
|
459
|
+
.btn--link:hover { color: var(--accent-bright); }
|
|
460
|
+
|
|
448
461
|
/* Icon-only button — square, meets the 44px nav touch floor (a11y #8).
|
|
449
462
|
Compose with any variant (.btn.btn--icon.btn--ghost). Always needs an
|
|
450
463
|
aria-label, since there's no text. v0.10.0. */
|
|
@@ -513,15 +526,15 @@ a:focus-visible { outline: var(--focus-width) solid var(--accent); outline-offse
|
|
|
513
526
|
.select:disabled { color: var(--fg-disabled); cursor: not-allowed; }
|
|
514
527
|
|
|
515
528
|
.field { display: flex; flex-direction: column; gap: var(--s-sm); }
|
|
516
|
-
.field > label { font-family: var(--font-
|
|
517
|
-
.field > .hint { font-family: var(--font-
|
|
518
|
-
.field > .error { font-family: var(--font-
|
|
529
|
+
.field > label { font-family: var(--font-interface); font-size: var(--t-label-md-size); font-weight: 500; color: var(--fg); }
|
|
530
|
+
.field > .hint { font-family: var(--font-interface); font-size: var(--t-label-sm-size); color: var(--fg-secondary); }
|
|
531
|
+
.field > .error { font-family: var(--font-interface); font-size: var(--t-label-sm-size); color: var(--urgent-text); }
|
|
519
532
|
|
|
520
533
|
/* ═══ Badges ════════════════════════════════════════════════════════════ */
|
|
521
534
|
.badge {
|
|
522
535
|
display: inline-flex; align-items: center; gap: var(--s-xs);
|
|
523
536
|
padding: 2px var(--s-sm);
|
|
524
|
-
font-family: var(--font-
|
|
537
|
+
font-family: var(--font-interface); font-size: var(--t-label-sm-size); font-weight: 500; line-height: 1.3;
|
|
525
538
|
border-radius: var(--radius-sm); white-space: nowrap;
|
|
526
539
|
}
|
|
527
540
|
.badge--accent { background: var(--accent-fill); color: var(--on-accent); }
|
|
@@ -623,7 +636,7 @@ hr, .divider { border: none; border-top: 1px solid var(--border); margin: var(--
|
|
|
623
636
|
background: var(--bg-raised); color: var(--fg-secondary);
|
|
624
637
|
border: 1px solid var(--border); border-radius: var(--radius-sm);
|
|
625
638
|
padding: 6px 10px; cursor: pointer;
|
|
626
|
-
font-family: var(--font-
|
|
639
|
+
font-family: var(--font-interface); font-size: var(--t-label-xs-size); font-weight: 500;
|
|
627
640
|
letter-spacing: 0.08em; text-transform: uppercase;
|
|
628
641
|
transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
|
|
629
642
|
box-shadow: 0 1px 2px rgba(0,0,0,.18);
|
|
@@ -681,18 +694,18 @@ hr, .divider { border: none; border-top: 1px solid var(--border); margin: var(--
|
|
|
681
694
|
|
|
682
695
|
/* Colophon — page-foot document seam (#97). The band at a page's bottom for
|
|
683
696
|
attribution, links, and fine print — the one place a tool surface routinely
|
|
684
|
-
speaks in sentences, so its prose opts back into --font-
|
|
697
|
+
speaks in sentences, so its prose opts back into --font-body even inside
|
|
685
698
|
.surface-tool (this rule sits after .surface-tool, winning on source order).
|
|
686
699
|
Columns compose from .grid-auto / .stack; wrap inner content in a .container. */
|
|
687
700
|
.colophon {
|
|
688
701
|
border-top: 1px solid var(--border);
|
|
689
702
|
padding: var(--s-xl) 0;
|
|
690
703
|
color: var(--fg-secondary);
|
|
691
|
-
font-family: var(--font-
|
|
704
|
+
font-family: var(--font-body);
|
|
692
705
|
font-size: var(--t-label-sm-size);
|
|
693
706
|
line-height: 1.6;
|
|
694
707
|
}
|
|
695
|
-
.colophon :where(p, ul, ol, li, a, small, dd, dt) { font-family: var(--font-
|
|
708
|
+
.colophon :where(p, ul, ol, li, a, small, dd, dt, .btn--link) { font-family: var(--font-body); }
|
|
696
709
|
.colophon__label {
|
|
697
710
|
display: block; margin-bottom: var(--s-xs);
|
|
698
711
|
font-family: var(--font-mono); font-size: var(--t-label-xs-size);
|
|
@@ -777,7 +790,7 @@ hr, .divider { border: none; border-top: 1px solid var(--border); margin: var(--
|
|
|
777
790
|
border-radius: var(--radius-md); padding: var(--s-md);
|
|
778
791
|
border: 1px solid var(--border);
|
|
779
792
|
box-shadow: var(--shadow-popover);
|
|
780
|
-
font-family: var(--font-
|
|
793
|
+
font-family: var(--font-interface); font-size: var(--t-label-sm-size); line-height: 1.5;
|
|
781
794
|
z-index: var(--z-popover);
|
|
782
795
|
max-width: 280px;
|
|
783
796
|
}
|
|
@@ -786,17 +799,49 @@ hr, .divider { border: none; border-top: 1px solid var(--border); margin: var(--
|
|
|
786
799
|
position: absolute; z-index: var(--z-popover);
|
|
787
800
|
background: var(--fg); color: var(--bg);
|
|
788
801
|
padding: var(--s-xs) var(--s-sm); border-radius: var(--radius-sm);
|
|
789
|
-
font-family: var(--font-
|
|
802
|
+
font-family: var(--font-interface); font-size: var(--t-label-xs-size); line-height: 1.3;
|
|
790
803
|
pointer-events: none; white-space: nowrap;
|
|
791
804
|
box-shadow: var(--shadow-popover);
|
|
792
805
|
}
|
|
806
|
+
/* Reveal wrapper (#248/#262) — makes .tooltip extractable WITHOUT breaking the
|
|
807
|
+
bare always-visible box used inline elsewhere. Wrap a trigger + .tooltip in
|
|
808
|
+
.has-tooltip; the tooltip stays hidden until hover OR keyboard focus lands on
|
|
809
|
+
the trigger (WCAG 1.4.13 — hoverable, focusable, blur-dismissable). A bare
|
|
810
|
+
.tooltip with no .has-tooltip ancestor is unchanged (still a static box). */
|
|
811
|
+
.has-tooltip { position: relative; display: inline-flex; }
|
|
812
|
+
.has-tooltip .tooltip {
|
|
813
|
+
opacity: 0; visibility: hidden;
|
|
814
|
+
transition: opacity var(--dur-fast) var(--ease), visibility var(--dur-fast) var(--ease);
|
|
815
|
+
}
|
|
816
|
+
.has-tooltip:hover .tooltip,
|
|
817
|
+
.has-tooltip:focus-within .tooltip {
|
|
818
|
+
opacity: 1; visibility: visible; pointer-events: auto;
|
|
819
|
+
}
|
|
820
|
+
/* Position modifiers — replace per-instance inline styles. Arrow via ::after,
|
|
821
|
+
a border-triangle in --fg so it matches the bubble across both themes. */
|
|
822
|
+
.tooltip--top,
|
|
823
|
+
.tooltip--bottom { left: 50%; transform: translateX(-50%); }
|
|
824
|
+
.tooltip--top { bottom: calc(100% + 6px); }
|
|
825
|
+
.tooltip--bottom { top: calc(100% + 6px); }
|
|
826
|
+
.tooltip--left,
|
|
827
|
+
.tooltip--right { top: 50%; transform: translateY(-50%); }
|
|
828
|
+
.tooltip--left { right: calc(100% + 6px); }
|
|
829
|
+
.tooltip--right { left: calc(100% + 6px); }
|
|
830
|
+
.tooltip--top::after,
|
|
831
|
+
.tooltip--bottom::after,
|
|
832
|
+
.tooltip--left::after,
|
|
833
|
+
.tooltip--right::after { content: ""; position: absolute; border: 4px solid transparent; }
|
|
834
|
+
.tooltip--top::after { top: 100%; left: 50%; transform: translateX(-50%); border-top-color: var(--fg); }
|
|
835
|
+
.tooltip--bottom::after { bottom: 100%; left: 50%; transform: translateX(-50%); border-bottom-color: var(--fg); }
|
|
836
|
+
.tooltip--left::after { left: 100%; top: 50%; transform: translateY(-50%); border-left-color: var(--fg); }
|
|
837
|
+
.tooltip--right::after { right: 100%; top: 50%; transform: translateY(-50%); border-right-color: var(--fg); }
|
|
793
838
|
|
|
794
839
|
/* ═══ Form controls — extended ═════════════════════════════════════════ */
|
|
795
840
|
/* Checkbox & radio — custom-rendered via accent-color so the focus ring
|
|
796
841
|
stays consistent with the rest of the system. */
|
|
797
842
|
.checkbox, .radio {
|
|
798
843
|
display: inline-flex; align-items: flex-start; gap: var(--s-sm);
|
|
799
|
-
font-family: var(--font-
|
|
844
|
+
font-family: var(--font-interface); font-size: var(--t-label-md-size); line-height: 1.4;
|
|
800
845
|
cursor: pointer; user-select: none;
|
|
801
846
|
}
|
|
802
847
|
.checkbox > input, .radio > input {
|
|
@@ -822,7 +867,7 @@ hr, .divider { border: none; border-top: 1px solid var(--border); margin: var(--
|
|
|
822
867
|
/* Toggle / switch */
|
|
823
868
|
.toggle {
|
|
824
869
|
display: inline-flex; align-items: center; gap: var(--s-sm);
|
|
825
|
-
font-family: var(--font-
|
|
870
|
+
font-family: var(--font-interface); font-size: var(--t-label-md-size);
|
|
826
871
|
cursor: pointer; user-select: none;
|
|
827
872
|
}
|
|
828
873
|
.toggle > input {
|
|
@@ -868,7 +913,7 @@ hr, .divider { border: none; border-top: 1px solid var(--border); margin: var(--
|
|
|
868
913
|
display: flex; align-items: center; gap: var(--s-sm);
|
|
869
914
|
border: 1px dashed var(--border); border-radius: var(--radius-sm);
|
|
870
915
|
padding: var(--s-md); background: var(--bg);
|
|
871
|
-
font-family: var(--font-
|
|
916
|
+
font-family: var(--font-interface); font-size: var(--t-label-md-size); color: var(--fg-secondary);
|
|
872
917
|
}
|
|
873
918
|
.file-field input[type="file"] { display: none; }
|
|
874
919
|
/* Dropzone — the same field as a drag target. .file-field--drop makes it a
|
|
@@ -940,7 +985,7 @@ hr, .divider { border: none; border-top: 1px solid var(--border); margin: var(--
|
|
|
940
985
|
font-family: var(--font-mono); font-size: var(--t-body-md-size);
|
|
941
986
|
}
|
|
942
987
|
.table th, .table td { text-align: left; padding: var(--s-sm) var(--s-md); border-bottom: 1px solid var(--border); }
|
|
943
|
-
.table th { font-family: var(--font-
|
|
988
|
+
.table th { font-family: var(--font-interface); font-size: var(--t-label-sm-size); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-secondary); }
|
|
944
989
|
.table tbody tr:hover { background: var(--bg-raised); }
|
|
945
990
|
.table--zebra tbody tr:nth-child(even) { background: var(--bg-raised); }
|
|
946
991
|
|
|
@@ -979,6 +1024,27 @@ hr, .divider { border: none; border-top: 1px solid var(--border); margin: var(--
|
|
|
979
1024
|
}
|
|
980
1025
|
.progress__bar { height: 100%; background: var(--accent-fill); transition: width var(--dur-max) var(--ease); }
|
|
981
1026
|
|
|
1027
|
+
/* ─── Bar — horizontal meter (row + track + fill) ──────────────────────
|
|
1028
|
+
The liftable horizontal bar the gallery lacked. BEM'd to sidestep the
|
|
1029
|
+
SVG-scoped `.gauge .track`/`.fill`. `.bar__fill` bakes in `display:block` +
|
|
1030
|
+
`height:100%` so a bare fill never silently collapses to zero width (#248);
|
|
1031
|
+
width is driven inline, background from ANY semantic token (`--accent-fill`
|
|
1032
|
+
like `.progress__bar`, or `--series-N` / `--diverge-*` for categorical or
|
|
1033
|
+
valenced data — the consumer picks). `.bar` is a flex row so an optional
|
|
1034
|
+
label sits inline before the track. */
|
|
1035
|
+
.bar { display: flex; align-items: center; gap: var(--s-sm); }
|
|
1036
|
+
.bar__track {
|
|
1037
|
+
display: block; flex: 1;
|
|
1038
|
+
height: 8px; background: var(--bg-raised);
|
|
1039
|
+
border-radius: var(--radius-pill); overflow: hidden;
|
|
1040
|
+
}
|
|
1041
|
+
.bar__fill {
|
|
1042
|
+
display: block; height: 100%;
|
|
1043
|
+
background: var(--accent-fill);
|
|
1044
|
+
border-radius: inherit;
|
|
1045
|
+
transition: width var(--dur-max) var(--ease);
|
|
1046
|
+
}
|
|
1047
|
+
|
|
982
1048
|
/* Attention pulse — for urgent state, accessibility-aware */
|
|
983
1049
|
@keyframes attention-pulse {
|
|
984
1050
|
0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--urgent) 35%, transparent); }
|
|
@@ -996,7 +1062,7 @@ hr, .divider { border: none; border-top: 1px solid var(--border); margin: var(--
|
|
|
996
1062
|
position: absolute; top: -40px; left: var(--s-md);
|
|
997
1063
|
background: var(--accent-fill); color: var(--on-accent);
|
|
998
1064
|
padding: var(--s-sm) 12px; border-radius: var(--radius-sm);
|
|
999
|
-
font-family: var(--font-
|
|
1065
|
+
font-family: var(--font-interface); font-size: var(--t-label-md-size); font-weight: 500;
|
|
1000
1066
|
text-decoration: none; z-index: var(--z-toast);
|
|
1001
1067
|
transition: top var(--dur-fast) var(--ease);
|
|
1002
1068
|
}
|
|
@@ -1053,7 +1119,7 @@ select:focus-visible,
|
|
|
1053
1119
|
.table th.num,
|
|
1054
1120
|
.table td.num { font-variant-numeric: tabular-nums; text-align: right; }
|
|
1055
1121
|
.table tr.group-row td {
|
|
1056
|
-
font-family: var(--font-
|
|
1122
|
+
font-family: var(--font-interface); font-size: var(--t-label-sm-size);
|
|
1057
1123
|
text-transform: uppercase; letter-spacing: 0.08em;
|
|
1058
1124
|
color: var(--fg-secondary); background: var(--bg-inactive);
|
|
1059
1125
|
padding: var(--s-sm) var(--row-x, var(--s-md));
|
|
@@ -1078,6 +1144,39 @@ select:focus-visible,
|
|
|
1078
1144
|
.split-pane { display: grid; gap: var(--s-lg); grid-template-columns: 280px minmax(0, 1fr); }
|
|
1079
1145
|
@media (max-width: 800px) { .split-pane { grid-template-columns: 1fr; } }
|
|
1080
1146
|
|
|
1147
|
+
/* Workbench — a row of equal-width editor/text panes, side by side; a
|
|
1148
|
+
work surface, not a sixth dash recipe (it's a valid .dash BODY, same
|
|
1149
|
+
tier as .split-pane / .table). Collapses to a stack below --bp-tablet
|
|
1150
|
+
(800px), same threshold as .split-pane. */
|
|
1151
|
+
.workbench {
|
|
1152
|
+
display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
|
|
1153
|
+
gap: var(--s-md); min-height: 0;
|
|
1154
|
+
}
|
|
1155
|
+
@media (max-width: 800px) { .workbench { grid-auto-flow: row; } }
|
|
1156
|
+
|
|
1157
|
+
.workbench__pane {
|
|
1158
|
+
background: var(--bg-raised); border: 1px solid var(--border);
|
|
1159
|
+
border-radius: var(--radius-md);
|
|
1160
|
+
display: grid; grid-template-rows: auto 1fr; min-height: 0;
|
|
1161
|
+
overflow: hidden;
|
|
1162
|
+
}
|
|
1163
|
+
.workbench__pane:focus-within { border-color: var(--accent); }
|
|
1164
|
+
|
|
1165
|
+
.workbench__header {
|
|
1166
|
+
display: flex; align-items: center; justify-content: space-between;
|
|
1167
|
+
gap: var(--s-md);
|
|
1168
|
+
padding: var(--s-sm) var(--s-md);
|
|
1169
|
+
border-bottom: 1px solid var(--border);
|
|
1170
|
+
font-family: var(--font-mono); font-size: var(--t-label-sm-size);
|
|
1171
|
+
color: var(--fg-secondary);
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
.workbench__editor {
|
|
1175
|
+
height: 100%; resize: none;
|
|
1176
|
+
border: none; border-radius: 0; background: transparent;
|
|
1177
|
+
padding: var(--s-md); line-height: 1.6;
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1081
1180
|
/* ── Dashboard frame ── one shell, many bodies. Promoted v0.10.0 (was
|
|
1082
1181
|
demo-only in composition.html). .dash is the framed surface; .dash__topbar
|
|
1083
1182
|
carries the title + live/range actions; the body (1fr) is built from
|
|
@@ -1112,7 +1211,7 @@ select:focus-visible,
|
|
|
1112
1211
|
|
|
1113
1212
|
.chip {
|
|
1114
1213
|
display: inline-flex; align-items: center; gap: 6px;
|
|
1115
|
-
font-family: var(--font-
|
|
1214
|
+
font-family: var(--font-interface); font-size: var(--t-label-sm-size); font-weight: 500;
|
|
1116
1215
|
padding: var(--s-xs) 10px; border-radius: var(--radius-pill);
|
|
1117
1216
|
background: transparent; color: var(--fg-secondary);
|
|
1118
1217
|
border: 1px solid var(--border);
|
|
@@ -1147,7 +1246,7 @@ select:focus-visible,
|
|
|
1147
1246
|
/* Pulsing dot — for "this is live" indicators */
|
|
1148
1247
|
.live-tick {
|
|
1149
1248
|
display: inline-flex; align-items: center; gap: 6px;
|
|
1150
|
-
font-family: var(--font-
|
|
1249
|
+
font-family: var(--font-interface); font-size: var(--t-label-xs-size); letter-spacing: .06em;
|
|
1151
1250
|
text-transform: uppercase; color: var(--fg-secondary);
|
|
1152
1251
|
}
|
|
1153
1252
|
.live-tick::before {
|
|
@@ -1250,7 +1349,7 @@ select:focus-visible,
|
|
|
1250
1349
|
.chart__plot--square { aspect-ratio: 1 / 1; }
|
|
1251
1350
|
.chart__legend {
|
|
1252
1351
|
display: flex; flex-wrap: wrap; gap: var(--s-md);
|
|
1253
|
-
font-family: var(--font-
|
|
1352
|
+
font-family: var(--font-interface); font-size: var(--t-label-sm-size); color: var(--fg-secondary);
|
|
1254
1353
|
}
|
|
1255
1354
|
.chart__legend > span { display: inline-flex; align-items: center; gap: 6px; }
|
|
1256
1355
|
.chart__legend i {
|
|
@@ -1281,7 +1380,7 @@ select:focus-visible,
|
|
|
1281
1380
|
|
|
1282
1381
|
/* Annotation tag (for editorial mode) — text label + leader line */
|
|
1283
1382
|
.chart-annotation {
|
|
1284
|
-
font-family: var(--font-
|
|
1383
|
+
font-family: var(--font-interface); font-size: var(--t-label-xs-size); line-height: 1.3;
|
|
1285
1384
|
fill: var(--fg-secondary); font-weight: 500;
|
|
1286
1385
|
}
|
|
1287
1386
|
.chart-annotation.strong { fill: var(--fg); font-weight: 700; }
|
|
@@ -1326,10 +1425,117 @@ select:focus-visible,
|
|
|
1326
1425
|
|
|
1327
1426
|
.dia-rail { stroke: var(--dia-rail); stroke-width: 1; stroke-dasharray: 2 4; }
|
|
1328
1427
|
.dia-swimlane-label {
|
|
1329
|
-
fill: var(--fg-secondary); font-family: var(--font-
|
|
1428
|
+
fill: var(--fg-secondary); font-family: var(--font-interface); font-size: var(--t-label-xs-size);
|
|
1330
1429
|
letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
|
|
1331
1430
|
}
|
|
1332
1431
|
|
|
1432
|
+
/* ─── HTML diagram node — the CSS twin of the SVG .dia-node ─────────────
|
|
1433
|
+
A div card reading the same --dia-* tokens, for HTML/CSS diagrams
|
|
1434
|
+
(React Flow, hand-built flows) where inline SVG is overkill. Mirrors the
|
|
1435
|
+
.rf-artificer .react-flow__node snippet documented in diagrams.html. */
|
|
1436
|
+
.dia-box {
|
|
1437
|
+
display: inline-block;
|
|
1438
|
+
background: var(--dia-node-bg);
|
|
1439
|
+
color: var(--dia-node-fg);
|
|
1440
|
+
border: 1px solid var(--dia-node-border);
|
|
1441
|
+
border-radius: var(--radius-sm);
|
|
1442
|
+
font-family: var(--font-mono);
|
|
1443
|
+
font-size: var(--t-label-sm-size);
|
|
1444
|
+
padding: var(--s-sm) var(--s-md);
|
|
1445
|
+
}
|
|
1446
|
+
.dia-box--accent { border-color: var(--accent); }
|
|
1447
|
+
.dia-box--ghost { background: transparent; border-style: dashed; }
|
|
1448
|
+
/* Colored type-tab down the left edge; family tint driven by a series token:
|
|
1449
|
+
<div class="dia-box dia-box--tab" style="--dia-tab: var(--series-3)"> */
|
|
1450
|
+
.dia-box--tab { border-left: 3px solid var(--dia-tab, var(--series-1)); }
|
|
1451
|
+
|
|
1452
|
+
/* ─── Flow / pipeline — horizontal step-chains with connectors ──────────
|
|
1453
|
+
Left-to-right chain of steps joined by drawn connectors, with optional
|
|
1454
|
+
dashed phase-group frames. A .flow__step IS a .dia-box; the connector
|
|
1455
|
+
mirrors the SVG .dia-edge doctrine (solid line + arrowhead; --dashed
|
|
1456
|
+
flips border-style for async/return). Distinct from the vertical,
|
|
1457
|
+
numbered, grouped .spine timeline. */
|
|
1458
|
+
.flow {
|
|
1459
|
+
display: flex;
|
|
1460
|
+
flex-wrap: wrap;
|
|
1461
|
+
align-items: center;
|
|
1462
|
+
gap: var(--s-md);
|
|
1463
|
+
}
|
|
1464
|
+
.flow__step { position: relative; }
|
|
1465
|
+
.flow__link {
|
|
1466
|
+
flex: 0 0 auto;
|
|
1467
|
+
align-self: center;
|
|
1468
|
+
width: var(--s-lg);
|
|
1469
|
+
border-top: 1.25px solid var(--dia-edge);
|
|
1470
|
+
position: relative;
|
|
1471
|
+
}
|
|
1472
|
+
.flow__link::after {
|
|
1473
|
+
content: "";
|
|
1474
|
+
position: absolute;
|
|
1475
|
+
right: -1px; top: 50%;
|
|
1476
|
+
width: 5px; height: 5px;
|
|
1477
|
+
border-top: 1.25px solid var(--dia-edge);
|
|
1478
|
+
border-right: 1.25px solid var(--dia-edge);
|
|
1479
|
+
transform: translateY(-50%) rotate(45deg);
|
|
1480
|
+
}
|
|
1481
|
+
.flow__link--dashed { border-top-style: dashed; }
|
|
1482
|
+
.flow-frame {
|
|
1483
|
+
border: 1px dashed var(--border);
|
|
1484
|
+
border-radius: var(--radius-md);
|
|
1485
|
+
padding: var(--s-md);
|
|
1486
|
+
}
|
|
1487
|
+
.flow-frame__label {
|
|
1488
|
+
font-family: var(--font-interface); font-size: var(--t-label-xs-size);
|
|
1489
|
+
letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
|
|
1490
|
+
color: var(--fg-secondary); margin-bottom: var(--s-sm);
|
|
1491
|
+
}
|
|
1492
|
+
|
|
1493
|
+
/* ─── Phased timeline — .spine / .phase ─────────────────────────────────
|
|
1494
|
+
A vertical, NUMBERED timeline where each phase holds a GROUP of nodes —
|
|
1495
|
+
"what happens in sequence, where each step is a set." The rail runs down
|
|
1496
|
+
the marker gutter; each .phase is a numbered station whose .phase__body
|
|
1497
|
+
holds a .stack of .dia-box nodes (composes the HTML node above). Distinct
|
|
1498
|
+
from the horizontal single-node .flow chain. */
|
|
1499
|
+
.spine {
|
|
1500
|
+
--spine-gutter: 32px;
|
|
1501
|
+
display: flex; flex-direction: column; gap: var(--s-lg);
|
|
1502
|
+
}
|
|
1503
|
+
.phase {
|
|
1504
|
+
position: relative;
|
|
1505
|
+
display: grid;
|
|
1506
|
+
grid-template-columns: var(--spine-gutter) 1fr;
|
|
1507
|
+
gap: var(--s-md);
|
|
1508
|
+
align-items: start;
|
|
1509
|
+
}
|
|
1510
|
+
/* the connecting rail: a segment per station, from this marker's center down
|
|
1511
|
+
into the gap to the next marker; suppressed on the last station. */
|
|
1512
|
+
.phase::before {
|
|
1513
|
+
content: "";
|
|
1514
|
+
position: absolute;
|
|
1515
|
+
left: calc(var(--spine-gutter) / 2);
|
|
1516
|
+
top: calc(var(--spine-gutter) / 2);
|
|
1517
|
+
bottom: calc(-1 * var(--s-lg));
|
|
1518
|
+
width: 1px; margin-left: -0.5px;
|
|
1519
|
+
background: var(--dia-rail);
|
|
1520
|
+
}
|
|
1521
|
+
.phase:last-child::before { display: none; }
|
|
1522
|
+
.phase__marker {
|
|
1523
|
+
position: relative; z-index: var(--z-raised);
|
|
1524
|
+
width: var(--spine-gutter); height: var(--spine-gutter);
|
|
1525
|
+
display: grid; place-items: center;
|
|
1526
|
+
border-radius: var(--radius-pill);
|
|
1527
|
+
background: var(--bg-raised); border: 1px solid var(--border);
|
|
1528
|
+
color: var(--fg-secondary);
|
|
1529
|
+
font-family: var(--font-mono); font-variant-numeric: tabular-nums;
|
|
1530
|
+
font-size: var(--t-label-sm-size); font-weight: 600;
|
|
1531
|
+
}
|
|
1532
|
+
.phase__body { min-width: 0; }
|
|
1533
|
+
/* the one phase that breaks off the rail — accent marker + ring, one per timeline */
|
|
1534
|
+
.phase--accent .phase__marker {
|
|
1535
|
+
border-color: var(--accent); color: var(--accent);
|
|
1536
|
+
box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 20%, transparent);
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1333
1539
|
|
|
1334
1540
|
/* ═══════════════════════════════════════════════════════════════════════
|
|
1335
1541
|
NAVIGATION — the spine. Promoted v0.10.0 from orphan demos (.crumb was
|
|
@@ -1348,7 +1554,7 @@ select:focus-visible,
|
|
|
1348
1554
|
|
|
1349
1555
|
/* ── Breadcrumb ── location in a hierarchy. Inline; last item is current. */
|
|
1350
1556
|
.crumb {
|
|
1351
|
-
font-family: var(--font-
|
|
1557
|
+
font-family: var(--font-interface); font-size: var(--t-label-sm-size);
|
|
1352
1558
|
letter-spacing: 0.12em; text-transform: uppercase;
|
|
1353
1559
|
color: var(--fg-secondary); margin: 0 0 var(--s-md);
|
|
1354
1560
|
}
|
|
@@ -1371,7 +1577,7 @@ select:focus-visible,
|
|
|
1371
1577
|
after the first, so the chunk boundaries are legible even unscrolled. Short,
|
|
1372
1578
|
non-scrolling navs are unaffected (nothing pins, the divider just separates). */
|
|
1373
1579
|
.sidenav__group {
|
|
1374
|
-
font-family: var(--font-
|
|
1580
|
+
font-family: var(--font-interface); font-size: var(--t-label-sm-size);
|
|
1375
1581
|
letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-secondary);
|
|
1376
1582
|
padding: var(--s-sm) var(--s-sm) var(--s-xs);
|
|
1377
1583
|
position: sticky; top: 0; z-index: var(--z-raised);
|
|
@@ -1390,7 +1596,7 @@ select:focus-visible,
|
|
|
1390
1596
|
display: flex; align-items: center; gap: var(--s-sm);
|
|
1391
1597
|
min-height: 44px; padding: 6px 10px; /* 44px nav touch target (a11y #8) */
|
|
1392
1598
|
border-radius: var(--radius-sm);
|
|
1393
|
-
color: var(--fg-secondary); font-family: var(--font-
|
|
1599
|
+
color: var(--fg-secondary); font-family: var(--font-interface);
|
|
1394
1600
|
font-size: var(--t-label-md-size); text-decoration: none;
|
|
1395
1601
|
transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
|
|
1396
1602
|
}
|
|
@@ -1408,8 +1614,13 @@ select:focus-visible,
|
|
|
1408
1614
|
margin-left: auto; font-variant-numeric: tabular-nums;
|
|
1409
1615
|
font-size: var(--t-label-sm-size); color: var(--fg-disabled);
|
|
1410
1616
|
}
|
|
1411
|
-
|
|
1412
|
-
|
|
1617
|
+
/* Hover only where hover exists — a touch tap latches :hover on the tapped
|
|
1618
|
+
row until the next tap lands elsewhere, leaving a stuck highlight that
|
|
1619
|
+
reads as a phantom active state. */
|
|
1620
|
+
@media (hover: hover) {
|
|
1621
|
+
.sidenav a:hover,
|
|
1622
|
+
.sidenav button:hover { background: var(--bg); color: var(--fg); }
|
|
1623
|
+
}
|
|
1413
1624
|
.sidenav a:focus-visible,
|
|
1414
1625
|
.sidenav button:focus-visible { outline: var(--focus-width) solid var(--accent); outline-offset: var(--focus-offset-inset); }
|
|
1415
1626
|
.sidenav a[aria-current="page"],
|
|
@@ -1422,6 +1633,7 @@ select:focus-visible,
|
|
|
1422
1633
|
so the link keeps an accessible name. Counts → a dot. */
|
|
1423
1634
|
.sidenav--rail { width: 56px; padding: var(--s-sm) 6px; }
|
|
1424
1635
|
.sidenav--rail .sidenav__group { display: none; }
|
|
1636
|
+
.sidenav--rail .sidenav__footer { display: none; } /* text row can't collapse to icon-only */
|
|
1425
1637
|
.sidenav--rail a,
|
|
1426
1638
|
.sidenav--rail button { justify-content: center; gap: 0; padding: 0; width: 44px; margin: 0 auto; }
|
|
1427
1639
|
.sidenav--rail a > .label,
|
|
@@ -1436,6 +1648,79 @@ select:focus-visible,
|
|
|
1436
1648
|
background: var(--accent); color: transparent; overflow: hidden;
|
|
1437
1649
|
}
|
|
1438
1650
|
|
|
1651
|
+
/* Collapsible section — drawer-scale density (issue: 20+ rows read as a wall).
|
|
1652
|
+
A <details class="sidenav__section"> wraps a group; its <summary> carries the
|
|
1653
|
+
.sidenav__group label treatment plus a twisty. Mechanism borrowed from
|
|
1654
|
+
.tree--static / .accordion (list-style + details-marker suppression) with
|
|
1655
|
+
sidenav rows kept intact — rail, counts, aria-current all still apply.
|
|
1656
|
+
Deliberate trade-offs: inside <details> the sticky group label no longer
|
|
1657
|
+
pins (position:sticky scopes to the details box), and a collapsed section
|
|
1658
|
+
hides its rows — so the section holding [aria-current="page"] MUST be
|
|
1659
|
+
rendered open. `open` is an HTML attribute; the consumer's router/JS owns
|
|
1660
|
+
it (default-open the active section; there is no CSS for this).
|
|
1661
|
+
Drawer/full-width sidenavs only — NOT rail-compatible: .sidenav--rail is
|
|
1662
|
+
icon-only and has no affordance for a summary toggle, so don't compose
|
|
1663
|
+
them (the footer is force-hidden in rail below; sections are on the
|
|
1664
|
+
consumer to avoid). */
|
|
1665
|
+
.sidenav__section { border: none; }
|
|
1666
|
+
.sidenav__section > summary {
|
|
1667
|
+
display: flex; align-items: center; gap: var(--s-sm);
|
|
1668
|
+
list-style: none; cursor: pointer;
|
|
1669
|
+
min-height: 44px; /* interactive nav row — a11y #8 touch floor */
|
|
1670
|
+
font-family: var(--font-interface); font-size: var(--t-label-sm-size);
|
|
1671
|
+
letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-secondary);
|
|
1672
|
+
padding: var(--s-xs) var(--s-sm);
|
|
1673
|
+
border-radius: var(--radius-sm);
|
|
1674
|
+
transition: color var(--dur-fast) var(--ease);
|
|
1675
|
+
}
|
|
1676
|
+
.sidenav__section > summary::-webkit-details-marker { display: none; }
|
|
1677
|
+
.sidenav__section > summary::after {
|
|
1678
|
+
content: ""; width: 6px; height: 6px; margin-left: auto; flex: none;
|
|
1679
|
+
border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
|
|
1680
|
+
transform: rotate(-45deg); /* points right when closed */
|
|
1681
|
+
transition: transform var(--dur-fast) var(--ease);
|
|
1682
|
+
}
|
|
1683
|
+
.sidenav__section[open] > summary::after { transform: rotate(45deg); }
|
|
1684
|
+
@media (hover: hover) {
|
|
1685
|
+
.sidenav__section > summary:hover { color: var(--fg); }
|
|
1686
|
+
}
|
|
1687
|
+
.sidenav__section > summary:focus-visible {
|
|
1688
|
+
outline: var(--focus-width) solid var(--accent);
|
|
1689
|
+
outline-offset: var(--focus-offset-inset);
|
|
1690
|
+
}
|
|
1691
|
+
/* Divider between sections — mirrors .sidenav__group:not(:first-child). */
|
|
1692
|
+
.sidenav__section + .sidenav__section {
|
|
1693
|
+
margin-top: var(--s-sm); padding-top: var(--s-sm);
|
|
1694
|
+
border-top: 1px solid var(--border);
|
|
1695
|
+
}
|
|
1696
|
+
|
|
1697
|
+
/* Footer row — bottom-anchored settings-class home (the theme toggle's
|
|
1698
|
+
drawer seat, #17's pattern). The drawer's .sidenav is a min-height:100%
|
|
1699
|
+
flex column, so margin-top:auto pins this to the bottom, above the
|
|
1700
|
+
safe-area padding. Compose: <span>Theme</span> + a canonical
|
|
1701
|
+
.theme-toggle--inline (empty [data-theme-toggle] button). This also
|
|
1702
|
+
resolves the z-index collision where the open drawer (--z-modal + 1)
|
|
1703
|
+
covers a fixed .theme-toggle (--z-overlay). */
|
|
1704
|
+
.sidenav__footer {
|
|
1705
|
+
margin-top: auto;
|
|
1706
|
+
display: flex; align-items: center; justify-content: space-between; gap: var(--s-sm);
|
|
1707
|
+
min-height: 44px; padding: var(--s-sm) var(--s-sm) 0;
|
|
1708
|
+
border-top: 1px solid var(--border);
|
|
1709
|
+
font-family: var(--font-interface); font-size: var(--t-label-md-size);
|
|
1710
|
+
color: var(--fg-secondary);
|
|
1711
|
+
}
|
|
1712
|
+
/* The nav-row reset (.sidenav button: width 100%, background none, border 0,
|
|
1713
|
+
font inherit) hits ANY button in the sidenav — including this footer's
|
|
1714
|
+
toggle, which it strips of its pill and stretches full-width. Restore the
|
|
1715
|
+
toggle's own presentation at higher specificity. */
|
|
1716
|
+
.sidenav__footer .theme-toggle {
|
|
1717
|
+
width: auto; flex: none;
|
|
1718
|
+
background: var(--bg-raised);
|
|
1719
|
+
border: 1px solid var(--border);
|
|
1720
|
+
padding: 6px 10px;
|
|
1721
|
+
font-family: var(--font-interface); font-size: var(--t-label-xs-size); font-weight: 500;
|
|
1722
|
+
}
|
|
1723
|
+
|
|
1439
1724
|
/* Drawer — off-canvas sidenav for mobile. Toggle [data-nav-open] on a
|
|
1440
1725
|
shared ancestor (or <body>); a trigger sets aria-expanded + aria-controls.
|
|
1441
1726
|
Slide = modal-entry motion (pattern #05); collapses under reduced-motion. */
|
|
@@ -1453,7 +1738,7 @@ select:focus-visible,
|
|
|
1453
1738
|
transform: translateX(-100%);
|
|
1454
1739
|
transition: transform var(--dur-max) var(--ease);
|
|
1455
1740
|
}
|
|
1456
|
-
.nav-drawer > .sidenav { height: 100%; border: none; border-radius: 0; }
|
|
1741
|
+
.nav-drawer > .sidenav { min-height: 100%; border: none; border-radius: 0; }
|
|
1457
1742
|
[data-nav-open] .nav-scrim { opacity: 1; visibility: visible; }
|
|
1458
1743
|
[data-nav-open] .nav-drawer { transform: none; }
|
|
1459
1744
|
|
|
@@ -1468,14 +1753,30 @@ select:focus-visible,
|
|
|
1468
1753
|
}
|
|
1469
1754
|
.appbar__brand {
|
|
1470
1755
|
display: flex; align-items: center; gap: var(--s-sm);
|
|
1471
|
-
flex: 1; min-width: 0; /*
|
|
1472
|
-
|
|
1473
|
-
|
|
1756
|
+
flex: 1 1 auto; min-width: 0; /* content basis, shrink allowed: basis 0 gave
|
|
1757
|
+
the brand only its grow-share (the spacer claims the rest), ellipsizing a
|
|
1758
|
+
child .wordmark carrier even with free room; min-width:0 still lets it
|
|
1759
|
+
shrink below min-content on narrow viewports (#127) */
|
|
1474
1760
|
overflow: hidden; /* clip any brand text that exceeds the shrunk container */
|
|
1761
|
+
white-space: nowrap; /* a brand never wraps; pairs with the ellipsis carriers below */
|
|
1475
1762
|
font-family: var(--font-mono); font-weight: 700;
|
|
1476
1763
|
font-size: var(--t-body-lg-size); letter-spacing: -0.01em;
|
|
1477
1764
|
color: var(--fg); text-decoration: none;
|
|
1478
1765
|
}
|
|
1766
|
+
/* Ellipsis carriers — text-overflow is inert on a flex container, so the
|
|
1767
|
+
truncation lives on a block-level carrier: the brand element itself when it
|
|
1768
|
+
IS the wordmark (one element, two classes — the extra specificity also beats
|
|
1769
|
+
the coarse-pointer `display: inline-flex` escalation below), or a .wordmark
|
|
1770
|
+
child inside a composed brand (icon + mark). Either way the mark yields its
|
|
1771
|
+
trailing content — including the ::after stop — to the ellipsis when space
|
|
1772
|
+
runs out; an intact mark always keeps its stop. */
|
|
1773
|
+
.appbar__brand.wordmark,
|
|
1774
|
+
.appbar__brand > .wordmark {
|
|
1775
|
+
display: block; width: auto; min-width: 0;
|
|
1776
|
+
overflow: hidden; text-overflow: ellipsis;
|
|
1777
|
+
align-content: center; /* keeps the mark vertically centred when the
|
|
1778
|
+
coarse-pointer 44px min-height applies to a block carrier */
|
|
1779
|
+
}
|
|
1479
1780
|
.appbar__search { flex: 0 1 360px; min-width: 0; }
|
|
1480
1781
|
.appbar__spacer { flex: 1; }
|
|
1481
1782
|
.appbar__actions { display: flex; align-items: center; gap: var(--s-xs); }
|
|
@@ -1507,7 +1808,7 @@ select:focus-visible,
|
|
|
1507
1808
|
appearance: none; background: none; border: none; cursor: pointer;
|
|
1508
1809
|
display: inline-flex; align-items: center; min-height: 44px;
|
|
1509
1810
|
padding: var(--s-sm) 2px; margin-bottom: -1px; flex-shrink: 0;
|
|
1510
|
-
font-family: var(--font-
|
|
1811
|
+
font-family: var(--font-interface); font-size: var(--t-label-md-size); font-weight: 500;
|
|
1511
1812
|
color: var(--fg-secondary); text-decoration: none;
|
|
1512
1813
|
border-bottom: 2px solid transparent;
|
|
1513
1814
|
transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
|
|
@@ -1575,7 +1876,12 @@ select:focus-visible,
|
|
|
1575
1876
|
padding-left: max(0px, env(safe-area-inset-left));
|
|
1576
1877
|
padding-right: max(0px, env(safe-area-inset-right));
|
|
1577
1878
|
}
|
|
1578
|
-
|
|
1879
|
+
/* The drawer scrolls, so the bottom inset must live INSIDE the scroll content
|
|
1880
|
+
(on the full-height inner .sidenav) — padding-bottom on the scroll container
|
|
1881
|
+
itself sits outside the 100%-tall child, pushing the last row under the home
|
|
1882
|
+
indicator and collapsing at scroll-end in some engines. */
|
|
1883
|
+
.nav-drawer { padding-top: env(safe-area-inset-top); }
|
|
1884
|
+
.nav-drawer > .sidenav { padding-bottom: calc(var(--s-md) + env(safe-area-inset-bottom, 0px)); }
|
|
1579
1885
|
|
|
1580
1886
|
/* Touch escalation — on coarse pointers (finger) interactive controls grow
|
|
1581
1887
|
to the 44×44px target (WCAG 2.5.5/2.5.8 — both dimensions).
|
|
@@ -1605,17 +1911,25 @@ select:focus-visible,
|
|
|
1605
1911
|
/* Nav targets are 44px always (a11y rule #8) — brand link + breadcrumbs get a
|
|
1606
1912
|
full-height touch area without changing their visual size. */
|
|
1607
1913
|
.appbar__brand { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }
|
|
1914
|
+
/* The ellipsis carriers set min-width: 0 at higher specificity so the mark
|
|
1915
|
+
can shrink to truncation — re-floor them here so the tap target never
|
|
1916
|
+
drops below 44px on a finger (the ellipsis engages above the floor). */
|
|
1917
|
+
.appbar__brand.wordmark, .appbar__brand > .wordmark { min-width: 44px; }
|
|
1608
1918
|
.crumb a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }
|
|
1609
1919
|
/* Colophon spine links. Scoped to the spine, NOT to a <nav> inside it: the
|
|
1610
1920
|
spine's contract is that slots are positional and their content is the
|
|
1611
1921
|
consumer's choice, so a links slot written as <div class="cluster">, a
|
|
1612
|
-
<nav>,
|
|
1613
|
-
for
|
|
1922
|
+
<nav>, bare <a>s, or an SPA's view-switching <button>s are all conforming
|
|
1923
|
+
— and a floor that only fired for some of them would advertise a
|
|
1924
|
+
guarantee it doesn't keep. Prose links
|
|
1614
1925
|
in .colophon__fine are deliberately NOT covered: those are inline text
|
|
1615
1926
|
links, exempt under WCAG 2.5.8.
|
|
1616
1927
|
`justify-content` (not needed by the two rules above, whose content fills
|
|
1617
1928
|
the box) centres a short label like "RSS" inside its square minimum. */
|
|
1618
1929
|
.colophon__spine a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
|
|
1930
|
+
/* .btn--link strips .btn's padding, so it needs the floor in its own right
|
|
1931
|
+
— anywhere it is used, not only in a colophon. */
|
|
1932
|
+
.btn--link { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
|
|
1619
1933
|
}
|
|
1620
1934
|
|
|
1621
1935
|
/* Table -> cards reflow. Below --bp-mobile (640px) a wide data table
|
|
@@ -1637,7 +1951,7 @@ select:focus-visible,
|
|
|
1637
1951
|
}
|
|
1638
1952
|
.table--responsive tbody td::before {
|
|
1639
1953
|
content: attr(data-label); text-align: left;
|
|
1640
|
-
font-family: var(--font-
|
|
1954
|
+
font-family: var(--font-interface); font-size: var(--t-label-sm-size);
|
|
1641
1955
|
letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-secondary);
|
|
1642
1956
|
}
|
|
1643
1957
|
}
|
|
@@ -1763,7 +2077,7 @@ select:focus-visible,
|
|
|
1763
2077
|
.accordion summary {
|
|
1764
2078
|
display: flex; align-items: center; justify-content: space-between; gap: var(--s-md);
|
|
1765
2079
|
min-height: 44px; padding: var(--s-sm) var(--s-md); cursor: pointer; list-style: none;
|
|
1766
|
-
font-family: var(--font-
|
|
2080
|
+
font-family: var(--font-interface); font-weight: 500; color: var(--fg);
|
|
1767
2081
|
transition: background var(--dur-fast) var(--ease);
|
|
1768
2082
|
}
|
|
1769
2083
|
.accordion summary::-webkit-details-marker { display: none; }
|
|
@@ -1813,7 +2127,7 @@ select:focus-visible,
|
|
|
1813
2127
|
.menu, .listbox {
|
|
1814
2128
|
list-style: none; margin: 0; padding: var(--s-xs);
|
|
1815
2129
|
display: flex; flex-direction: column; gap: 2px;
|
|
1816
|
-
font-family: var(--font-
|
|
2130
|
+
font-family: var(--font-interface); font-size: var(--t-label-md-size);
|
|
1817
2131
|
max-height: 320px; overflow-y: auto;
|
|
1818
2132
|
}
|
|
1819
2133
|
.menu__option, .listbox__option {
|
|
@@ -1841,7 +2155,7 @@ select:focus-visible,
|
|
|
1841
2155
|
.menu__hint, .listbox__hint { margin-left: auto; color: var(--fg-secondary); font-family: var(--font-mono); font-size: var(--t-label-xs-size); }
|
|
1842
2156
|
.menu__label, .listbox__label {
|
|
1843
2157
|
padding: 6px 10px 2px; font-size: var(--t-label-xs-size); letter-spacing: .08em; text-transform: uppercase;
|
|
1844
|
-
color: var(--fg-secondary); font-weight: 500; font-family: var(--font-
|
|
2158
|
+
color: var(--fg-secondary); font-weight: 500; font-family: var(--font-interface);
|
|
1845
2159
|
}
|
|
1846
2160
|
.menu__sep, .listbox__sep { height: 1px; background: var(--border); margin: var(--s-xs) 0; border: none; }
|
|
1847
2161
|
|
|
@@ -1927,7 +2241,7 @@ select:focus-visible,
|
|
|
1927
2241
|
/* overflow affordance — "+N more" routes to notification history */
|
|
1928
2242
|
.toast-region__more {
|
|
1929
2243
|
pointer-events: auto; align-self: center;
|
|
1930
|
-
font-family: var(--font-
|
|
2244
|
+
font-family: var(--font-interface); font-size: var(--t-label-sm-size); font-weight: 500;
|
|
1931
2245
|
color: var(--fg-secondary); background: var(--bg-raised);
|
|
1932
2246
|
border: 1px solid var(--border); border-radius: var(--radius-sm);
|
|
1933
2247
|
padding: var(--s-xs) 10px; cursor: pointer;
|
|
@@ -2026,6 +2340,25 @@ select:focus-visible,
|
|
|
2026
2340
|
.tree__row > .icon { flex: none; color: var(--fg-secondary); }
|
|
2027
2341
|
.tree__leaf > .tree__twisty { visibility: hidden; } /* files have no twisty; keep alignment */
|
|
2028
2342
|
|
|
2343
|
+
/* ═══ Static tree — native <details> disclosure, no-JS contexts ═════════
|
|
2344
|
+
Deliberately NOT role="tree" — nested <details><summary> IS the honest
|
|
2345
|
+
a11y model here (browser-native disclosure semantics), not an APG tree
|
|
2346
|
+
emulation. ArtificerTree.enhance() is inert on this variant by design.
|
|
2347
|
+
Reuse .tree__row on the <summary>; twisty rotation keys off details[open]
|
|
2348
|
+
instead of aria-expanded. Mechanism lifted from .accordion (list-style
|
|
2349
|
+
+ ::-webkit-details-marker suppression). Issue 317. */
|
|
2350
|
+
.tree--static details { border: none; }
|
|
2351
|
+
.tree--static summary { list-style: none; cursor: pointer; }
|
|
2352
|
+
.tree--static summary::-webkit-details-marker { display: none; }
|
|
2353
|
+
.tree--static details[open] > .tree__row > .tree__twisty { transform: rotate(90deg); }
|
|
2354
|
+
.tree--static .tree__row:focus-visible {
|
|
2355
|
+
outline: var(--focus-width) solid var(--accent);
|
|
2356
|
+
outline-offset: var(--focus-offset-inset);
|
|
2357
|
+
}
|
|
2358
|
+
@media (pointer: coarse) {
|
|
2359
|
+
.tree--static .tree__row { min-height: 44px; }
|
|
2360
|
+
}
|
|
2361
|
+
|
|
2029
2362
|
/* ═══ Stat card — a single KPI: label + big number + optional delta ═════
|
|
2030
2363
|
The cell of a .kpi-strip. PROMOTED to core v0.15.0 (was demo-local). Delta
|
|
2031
2364
|
keeps the .stat__delta(.down) naming; the change-direction × polarity rework
|