@cameronsjo/artificer 0.22.1 → 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 +395 -88
- package/src/primitives.json +94 -16
- 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
|
|
|
@@ -433,7 +424,7 @@ a:focus-visible { outline: var(--focus-width) solid var(--accent); outline-offse
|
|
|
433
424
|
/* ═══ Buttons ═══════════════════════════════════════════════════════════ */
|
|
434
425
|
.btn {
|
|
435
426
|
display: inline-flex; align-items: center; justify-content: center; gap: var(--s-sm);
|
|
436
|
-
font-family: var(--font-
|
|
427
|
+
font-family: var(--font-interface); font-size: var(--t-label-md-size); font-weight: 500; line-height: 1;
|
|
437
428
|
padding: 10px 20px; border-radius: var(--radius-sm); border: 1px solid transparent;
|
|
438
429
|
cursor: pointer; white-space: nowrap; text-decoration: none;
|
|
439
430
|
transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
|
|
@@ -535,15 +526,15 @@ a:focus-visible { outline: var(--focus-width) solid var(--accent); outline-offse
|
|
|
535
526
|
.select:disabled { color: var(--fg-disabled); cursor: not-allowed; }
|
|
536
527
|
|
|
537
528
|
.field { display: flex; flex-direction: column; gap: var(--s-sm); }
|
|
538
|
-
.field > label { font-family: var(--font-
|
|
539
|
-
.field > .hint { font-family: var(--font-
|
|
540
|
-
.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); }
|
|
541
532
|
|
|
542
533
|
/* ═══ Badges ════════════════════════════════════════════════════════════ */
|
|
543
534
|
.badge {
|
|
544
535
|
display: inline-flex; align-items: center; gap: var(--s-xs);
|
|
545
536
|
padding: 2px var(--s-sm);
|
|
546
|
-
font-family: var(--font-
|
|
537
|
+
font-family: var(--font-interface); font-size: var(--t-label-sm-size); font-weight: 500; line-height: 1.3;
|
|
547
538
|
border-radius: var(--radius-sm); white-space: nowrap;
|
|
548
539
|
}
|
|
549
540
|
.badge--accent { background: var(--accent-fill); color: var(--on-accent); }
|
|
@@ -645,7 +636,7 @@ hr, .divider { border: none; border-top: 1px solid var(--border); margin: var(--
|
|
|
645
636
|
background: var(--bg-raised); color: var(--fg-secondary);
|
|
646
637
|
border: 1px solid var(--border); border-radius: var(--radius-sm);
|
|
647
638
|
padding: 6px 10px; cursor: pointer;
|
|
648
|
-
font-family: var(--font-
|
|
639
|
+
font-family: var(--font-interface); font-size: var(--t-label-xs-size); font-weight: 500;
|
|
649
640
|
letter-spacing: 0.08em; text-transform: uppercase;
|
|
650
641
|
transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
|
|
651
642
|
box-shadow: 0 1px 2px rgba(0,0,0,.18);
|
|
@@ -703,18 +694,18 @@ hr, .divider { border: none; border-top: 1px solid var(--border); margin: var(--
|
|
|
703
694
|
|
|
704
695
|
/* Colophon — page-foot document seam (#97). The band at a page's bottom for
|
|
705
696
|
attribution, links, and fine print — the one place a tool surface routinely
|
|
706
|
-
speaks in sentences, so its prose opts back into --font-
|
|
697
|
+
speaks in sentences, so its prose opts back into --font-body even inside
|
|
707
698
|
.surface-tool (this rule sits after .surface-tool, winning on source order).
|
|
708
699
|
Columns compose from .grid-auto / .stack; wrap inner content in a .container. */
|
|
709
700
|
.colophon {
|
|
710
701
|
border-top: 1px solid var(--border);
|
|
711
702
|
padding: var(--s-xl) 0;
|
|
712
703
|
color: var(--fg-secondary);
|
|
713
|
-
font-family: var(--font-
|
|
704
|
+
font-family: var(--font-body);
|
|
714
705
|
font-size: var(--t-label-sm-size);
|
|
715
706
|
line-height: 1.6;
|
|
716
707
|
}
|
|
717
|
-
.colophon :where(p, ul, ol, li, a, small, dd, dt, .btn--link) { font-family: var(--font-
|
|
708
|
+
.colophon :where(p, ul, ol, li, a, small, dd, dt, .btn--link) { font-family: var(--font-body); }
|
|
718
709
|
.colophon__label {
|
|
719
710
|
display: block; margin-bottom: var(--s-xs);
|
|
720
711
|
font-family: var(--font-mono); font-size: var(--t-label-xs-size);
|
|
@@ -799,7 +790,7 @@ hr, .divider { border: none; border-top: 1px solid var(--border); margin: var(--
|
|
|
799
790
|
border-radius: var(--radius-md); padding: var(--s-md);
|
|
800
791
|
border: 1px solid var(--border);
|
|
801
792
|
box-shadow: var(--shadow-popover);
|
|
802
|
-
font-family: var(--font-
|
|
793
|
+
font-family: var(--font-interface); font-size: var(--t-label-sm-size); line-height: 1.5;
|
|
803
794
|
z-index: var(--z-popover);
|
|
804
795
|
max-width: 280px;
|
|
805
796
|
}
|
|
@@ -808,17 +799,49 @@ hr, .divider { border: none; border-top: 1px solid var(--border); margin: var(--
|
|
|
808
799
|
position: absolute; z-index: var(--z-popover);
|
|
809
800
|
background: var(--fg); color: var(--bg);
|
|
810
801
|
padding: var(--s-xs) var(--s-sm); border-radius: var(--radius-sm);
|
|
811
|
-
font-family: var(--font-
|
|
802
|
+
font-family: var(--font-interface); font-size: var(--t-label-xs-size); line-height: 1.3;
|
|
812
803
|
pointer-events: none; white-space: nowrap;
|
|
813
804
|
box-shadow: var(--shadow-popover);
|
|
814
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); }
|
|
815
838
|
|
|
816
839
|
/* ═══ Form controls — extended ═════════════════════════════════════════ */
|
|
817
840
|
/* Checkbox & radio — custom-rendered via accent-color so the focus ring
|
|
818
841
|
stays consistent with the rest of the system. */
|
|
819
842
|
.checkbox, .radio {
|
|
820
843
|
display: inline-flex; align-items: flex-start; gap: var(--s-sm);
|
|
821
|
-
font-family: var(--font-
|
|
844
|
+
font-family: var(--font-interface); font-size: var(--t-label-md-size); line-height: 1.4;
|
|
822
845
|
cursor: pointer; user-select: none;
|
|
823
846
|
}
|
|
824
847
|
.checkbox > input, .radio > input {
|
|
@@ -844,7 +867,7 @@ hr, .divider { border: none; border-top: 1px solid var(--border); margin: var(--
|
|
|
844
867
|
/* Toggle / switch */
|
|
845
868
|
.toggle {
|
|
846
869
|
display: inline-flex; align-items: center; gap: var(--s-sm);
|
|
847
|
-
font-family: var(--font-
|
|
870
|
+
font-family: var(--font-interface); font-size: var(--t-label-md-size);
|
|
848
871
|
cursor: pointer; user-select: none;
|
|
849
872
|
}
|
|
850
873
|
.toggle > input {
|
|
@@ -890,7 +913,7 @@ hr, .divider { border: none; border-top: 1px solid var(--border); margin: var(--
|
|
|
890
913
|
display: flex; align-items: center; gap: var(--s-sm);
|
|
891
914
|
border: 1px dashed var(--border); border-radius: var(--radius-sm);
|
|
892
915
|
padding: var(--s-md); background: var(--bg);
|
|
893
|
-
font-family: var(--font-
|
|
916
|
+
font-family: var(--font-interface); font-size: var(--t-label-md-size); color: var(--fg-secondary);
|
|
894
917
|
}
|
|
895
918
|
.file-field input[type="file"] { display: none; }
|
|
896
919
|
/* Dropzone — the same field as a drag target. .file-field--drop makes it a
|
|
@@ -962,7 +985,7 @@ hr, .divider { border: none; border-top: 1px solid var(--border); margin: var(--
|
|
|
962
985
|
font-family: var(--font-mono); font-size: var(--t-body-md-size);
|
|
963
986
|
}
|
|
964
987
|
.table th, .table td { text-align: left; padding: var(--s-sm) var(--s-md); border-bottom: 1px solid var(--border); }
|
|
965
|
-
.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); }
|
|
966
989
|
.table tbody tr:hover { background: var(--bg-raised); }
|
|
967
990
|
.table--zebra tbody tr:nth-child(even) { background: var(--bg-raised); }
|
|
968
991
|
|
|
@@ -1001,6 +1024,27 @@ hr, .divider { border: none; border-top: 1px solid var(--border); margin: var(--
|
|
|
1001
1024
|
}
|
|
1002
1025
|
.progress__bar { height: 100%; background: var(--accent-fill); transition: width var(--dur-max) var(--ease); }
|
|
1003
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
|
+
|
|
1004
1048
|
/* Attention pulse — for urgent state, accessibility-aware */
|
|
1005
1049
|
@keyframes attention-pulse {
|
|
1006
1050
|
0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--urgent) 35%, transparent); }
|
|
@@ -1018,7 +1062,7 @@ hr, .divider { border: none; border-top: 1px solid var(--border); margin: var(--
|
|
|
1018
1062
|
position: absolute; top: -40px; left: var(--s-md);
|
|
1019
1063
|
background: var(--accent-fill); color: var(--on-accent);
|
|
1020
1064
|
padding: var(--s-sm) 12px; border-radius: var(--radius-sm);
|
|
1021
|
-
font-family: var(--font-
|
|
1065
|
+
font-family: var(--font-interface); font-size: var(--t-label-md-size); font-weight: 500;
|
|
1022
1066
|
text-decoration: none; z-index: var(--z-toast);
|
|
1023
1067
|
transition: top var(--dur-fast) var(--ease);
|
|
1024
1068
|
}
|
|
@@ -1075,7 +1119,7 @@ select:focus-visible,
|
|
|
1075
1119
|
.table th.num,
|
|
1076
1120
|
.table td.num { font-variant-numeric: tabular-nums; text-align: right; }
|
|
1077
1121
|
.table tr.group-row td {
|
|
1078
|
-
font-family: var(--font-
|
|
1122
|
+
font-family: var(--font-interface); font-size: var(--t-label-sm-size);
|
|
1079
1123
|
text-transform: uppercase; letter-spacing: 0.08em;
|
|
1080
1124
|
color: var(--fg-secondary); background: var(--bg-inactive);
|
|
1081
1125
|
padding: var(--s-sm) var(--row-x, var(--s-md));
|
|
@@ -1100,6 +1144,39 @@ select:focus-visible,
|
|
|
1100
1144
|
.split-pane { display: grid; gap: var(--s-lg); grid-template-columns: 280px minmax(0, 1fr); }
|
|
1101
1145
|
@media (max-width: 800px) { .split-pane { grid-template-columns: 1fr; } }
|
|
1102
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
|
+
|
|
1103
1180
|
/* ── Dashboard frame ── one shell, many bodies. Promoted v0.10.0 (was
|
|
1104
1181
|
demo-only in composition.html). .dash is the framed surface; .dash__topbar
|
|
1105
1182
|
carries the title + live/range actions; the body (1fr) is built from
|
|
@@ -1134,7 +1211,7 @@ select:focus-visible,
|
|
|
1134
1211
|
|
|
1135
1212
|
.chip {
|
|
1136
1213
|
display: inline-flex; align-items: center; gap: 6px;
|
|
1137
|
-
font-family: var(--font-
|
|
1214
|
+
font-family: var(--font-interface); font-size: var(--t-label-sm-size); font-weight: 500;
|
|
1138
1215
|
padding: var(--s-xs) 10px; border-radius: var(--radius-pill);
|
|
1139
1216
|
background: transparent; color: var(--fg-secondary);
|
|
1140
1217
|
border: 1px solid var(--border);
|
|
@@ -1169,7 +1246,7 @@ select:focus-visible,
|
|
|
1169
1246
|
/* Pulsing dot — for "this is live" indicators */
|
|
1170
1247
|
.live-tick {
|
|
1171
1248
|
display: inline-flex; align-items: center; gap: 6px;
|
|
1172
|
-
font-family: var(--font-
|
|
1249
|
+
font-family: var(--font-interface); font-size: var(--t-label-xs-size); letter-spacing: .06em;
|
|
1173
1250
|
text-transform: uppercase; color: var(--fg-secondary);
|
|
1174
1251
|
}
|
|
1175
1252
|
.live-tick::before {
|
|
@@ -1272,7 +1349,7 @@ select:focus-visible,
|
|
|
1272
1349
|
.chart__plot--square { aspect-ratio: 1 / 1; }
|
|
1273
1350
|
.chart__legend {
|
|
1274
1351
|
display: flex; flex-wrap: wrap; gap: var(--s-md);
|
|
1275
|
-
font-family: var(--font-
|
|
1352
|
+
font-family: var(--font-interface); font-size: var(--t-label-sm-size); color: var(--fg-secondary);
|
|
1276
1353
|
}
|
|
1277
1354
|
.chart__legend > span { display: inline-flex; align-items: center; gap: 6px; }
|
|
1278
1355
|
.chart__legend i {
|
|
@@ -1303,7 +1380,7 @@ select:focus-visible,
|
|
|
1303
1380
|
|
|
1304
1381
|
/* Annotation tag (for editorial mode) — text label + leader line */
|
|
1305
1382
|
.chart-annotation {
|
|
1306
|
-
font-family: var(--font-
|
|
1383
|
+
font-family: var(--font-interface); font-size: var(--t-label-xs-size); line-height: 1.3;
|
|
1307
1384
|
fill: var(--fg-secondary); font-weight: 500;
|
|
1308
1385
|
}
|
|
1309
1386
|
.chart-annotation.strong { fill: var(--fg); font-weight: 700; }
|
|
@@ -1348,8 +1425,115 @@ select:focus-visible,
|
|
|
1348
1425
|
|
|
1349
1426
|
.dia-rail { stroke: var(--dia-rail); stroke-width: 1; stroke-dasharray: 2 4; }
|
|
1350
1427
|
.dia-swimlane-label {
|
|
1351
|
-
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);
|
|
1429
|
+
letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
|
|
1430
|
+
}
|
|
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);
|
|
1352
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);
|
|
1353
1537
|
}
|
|
1354
1538
|
|
|
1355
1539
|
|
|
@@ -1370,7 +1554,7 @@ select:focus-visible,
|
|
|
1370
1554
|
|
|
1371
1555
|
/* ── Breadcrumb ── location in a hierarchy. Inline; last item is current. */
|
|
1372
1556
|
.crumb {
|
|
1373
|
-
font-family: var(--font-
|
|
1557
|
+
font-family: var(--font-interface); font-size: var(--t-label-sm-size);
|
|
1374
1558
|
letter-spacing: 0.12em; text-transform: uppercase;
|
|
1375
1559
|
color: var(--fg-secondary); margin: 0 0 var(--s-md);
|
|
1376
1560
|
}
|
|
@@ -1393,7 +1577,7 @@ select:focus-visible,
|
|
|
1393
1577
|
after the first, so the chunk boundaries are legible even unscrolled. Short,
|
|
1394
1578
|
non-scrolling navs are unaffected (nothing pins, the divider just separates). */
|
|
1395
1579
|
.sidenav__group {
|
|
1396
|
-
font-family: var(--font-
|
|
1580
|
+
font-family: var(--font-interface); font-size: var(--t-label-sm-size);
|
|
1397
1581
|
letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-secondary);
|
|
1398
1582
|
padding: var(--s-sm) var(--s-sm) var(--s-xs);
|
|
1399
1583
|
position: sticky; top: 0; z-index: var(--z-raised);
|
|
@@ -1412,7 +1596,7 @@ select:focus-visible,
|
|
|
1412
1596
|
display: flex; align-items: center; gap: var(--s-sm);
|
|
1413
1597
|
min-height: 44px; padding: 6px 10px; /* 44px nav touch target (a11y #8) */
|
|
1414
1598
|
border-radius: var(--radius-sm);
|
|
1415
|
-
color: var(--fg-secondary); font-family: var(--font-
|
|
1599
|
+
color: var(--fg-secondary); font-family: var(--font-interface);
|
|
1416
1600
|
font-size: var(--t-label-md-size); text-decoration: none;
|
|
1417
1601
|
transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
|
|
1418
1602
|
}
|
|
@@ -1430,8 +1614,13 @@ select:focus-visible,
|
|
|
1430
1614
|
margin-left: auto; font-variant-numeric: tabular-nums;
|
|
1431
1615
|
font-size: var(--t-label-sm-size); color: var(--fg-disabled);
|
|
1432
1616
|
}
|
|
1433
|
-
|
|
1434
|
-
|
|
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
|
+
}
|
|
1435
1624
|
.sidenav a:focus-visible,
|
|
1436
1625
|
.sidenav button:focus-visible { outline: var(--focus-width) solid var(--accent); outline-offset: var(--focus-offset-inset); }
|
|
1437
1626
|
.sidenav a[aria-current="page"],
|
|
@@ -1444,6 +1633,7 @@ select:focus-visible,
|
|
|
1444
1633
|
so the link keeps an accessible name. Counts → a dot. */
|
|
1445
1634
|
.sidenav--rail { width: 56px; padding: var(--s-sm) 6px; }
|
|
1446
1635
|
.sidenav--rail .sidenav__group { display: none; }
|
|
1636
|
+
.sidenav--rail .sidenav__footer { display: none; } /* text row can't collapse to icon-only */
|
|
1447
1637
|
.sidenav--rail a,
|
|
1448
1638
|
.sidenav--rail button { justify-content: center; gap: 0; padding: 0; width: 44px; margin: 0 auto; }
|
|
1449
1639
|
.sidenav--rail a > .label,
|
|
@@ -1458,6 +1648,79 @@ select:focus-visible,
|
|
|
1458
1648
|
background: var(--accent); color: transparent; overflow: hidden;
|
|
1459
1649
|
}
|
|
1460
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
|
+
|
|
1461
1724
|
/* Drawer — off-canvas sidenav for mobile. Toggle [data-nav-open] on a
|
|
1462
1725
|
shared ancestor (or <body>); a trigger sets aria-expanded + aria-controls.
|
|
1463
1726
|
Slide = modal-entry motion (pattern #05); collapses under reduced-motion. */
|
|
@@ -1475,7 +1738,7 @@ select:focus-visible,
|
|
|
1475
1738
|
transform: translateX(-100%);
|
|
1476
1739
|
transition: transform var(--dur-max) var(--ease);
|
|
1477
1740
|
}
|
|
1478
|
-
.nav-drawer > .sidenav { height: 100%; border: none; border-radius: 0; }
|
|
1741
|
+
.nav-drawer > .sidenav { min-height: 100%; border: none; border-radius: 0; }
|
|
1479
1742
|
[data-nav-open] .nav-scrim { opacity: 1; visibility: visible; }
|
|
1480
1743
|
[data-nav-open] .nav-drawer { transform: none; }
|
|
1481
1744
|
|
|
@@ -1490,14 +1753,30 @@ select:focus-visible,
|
|
|
1490
1753
|
}
|
|
1491
1754
|
.appbar__brand {
|
|
1492
1755
|
display: flex; align-items: center; gap: var(--s-sm);
|
|
1493
|
-
flex: 1; min-width: 0; /*
|
|
1494
|
-
|
|
1495
|
-
|
|
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) */
|
|
1496
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 */
|
|
1497
1762
|
font-family: var(--font-mono); font-weight: 700;
|
|
1498
1763
|
font-size: var(--t-body-lg-size); letter-spacing: -0.01em;
|
|
1499
1764
|
color: var(--fg); text-decoration: none;
|
|
1500
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
|
+
}
|
|
1501
1780
|
.appbar__search { flex: 0 1 360px; min-width: 0; }
|
|
1502
1781
|
.appbar__spacer { flex: 1; }
|
|
1503
1782
|
.appbar__actions { display: flex; align-items: center; gap: var(--s-xs); }
|
|
@@ -1529,7 +1808,7 @@ select:focus-visible,
|
|
|
1529
1808
|
appearance: none; background: none; border: none; cursor: pointer;
|
|
1530
1809
|
display: inline-flex; align-items: center; min-height: 44px;
|
|
1531
1810
|
padding: var(--s-sm) 2px; margin-bottom: -1px; flex-shrink: 0;
|
|
1532
|
-
font-family: var(--font-
|
|
1811
|
+
font-family: var(--font-interface); font-size: var(--t-label-md-size); font-weight: 500;
|
|
1533
1812
|
color: var(--fg-secondary); text-decoration: none;
|
|
1534
1813
|
border-bottom: 2px solid transparent;
|
|
1535
1814
|
transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
|
|
@@ -1597,7 +1876,12 @@ select:focus-visible,
|
|
|
1597
1876
|
padding-left: max(0px, env(safe-area-inset-left));
|
|
1598
1877
|
padding-right: max(0px, env(safe-area-inset-right));
|
|
1599
1878
|
}
|
|
1600
|
-
|
|
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)); }
|
|
1601
1885
|
|
|
1602
1886
|
/* Touch escalation — on coarse pointers (finger) interactive controls grow
|
|
1603
1887
|
to the 44×44px target (WCAG 2.5.5/2.5.8 — both dimensions).
|
|
@@ -1627,6 +1911,10 @@ select:focus-visible,
|
|
|
1627
1911
|
/* Nav targets are 44px always (a11y rule #8) — brand link + breadcrumbs get a
|
|
1628
1912
|
full-height touch area without changing their visual size. */
|
|
1629
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; }
|
|
1630
1918
|
.crumb a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }
|
|
1631
1919
|
/* Colophon spine links. Scoped to the spine, NOT to a <nav> inside it: the
|
|
1632
1920
|
spine's contract is that slots are positional and their content is the
|
|
@@ -1663,7 +1951,7 @@ select:focus-visible,
|
|
|
1663
1951
|
}
|
|
1664
1952
|
.table--responsive tbody td::before {
|
|
1665
1953
|
content: attr(data-label); text-align: left;
|
|
1666
|
-
font-family: var(--font-
|
|
1954
|
+
font-family: var(--font-interface); font-size: var(--t-label-sm-size);
|
|
1667
1955
|
letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-secondary);
|
|
1668
1956
|
}
|
|
1669
1957
|
}
|
|
@@ -1789,7 +2077,7 @@ select:focus-visible,
|
|
|
1789
2077
|
.accordion summary {
|
|
1790
2078
|
display: flex; align-items: center; justify-content: space-between; gap: var(--s-md);
|
|
1791
2079
|
min-height: 44px; padding: var(--s-sm) var(--s-md); cursor: pointer; list-style: none;
|
|
1792
|
-
font-family: var(--font-
|
|
2080
|
+
font-family: var(--font-interface); font-weight: 500; color: var(--fg);
|
|
1793
2081
|
transition: background var(--dur-fast) var(--ease);
|
|
1794
2082
|
}
|
|
1795
2083
|
.accordion summary::-webkit-details-marker { display: none; }
|
|
@@ -1839,7 +2127,7 @@ select:focus-visible,
|
|
|
1839
2127
|
.menu, .listbox {
|
|
1840
2128
|
list-style: none; margin: 0; padding: var(--s-xs);
|
|
1841
2129
|
display: flex; flex-direction: column; gap: 2px;
|
|
1842
|
-
font-family: var(--font-
|
|
2130
|
+
font-family: var(--font-interface); font-size: var(--t-label-md-size);
|
|
1843
2131
|
max-height: 320px; overflow-y: auto;
|
|
1844
2132
|
}
|
|
1845
2133
|
.menu__option, .listbox__option {
|
|
@@ -1867,7 +2155,7 @@ select:focus-visible,
|
|
|
1867
2155
|
.menu__hint, .listbox__hint { margin-left: auto; color: var(--fg-secondary); font-family: var(--font-mono); font-size: var(--t-label-xs-size); }
|
|
1868
2156
|
.menu__label, .listbox__label {
|
|
1869
2157
|
padding: 6px 10px 2px; font-size: var(--t-label-xs-size); letter-spacing: .08em; text-transform: uppercase;
|
|
1870
|
-
color: var(--fg-secondary); font-weight: 500; font-family: var(--font-
|
|
2158
|
+
color: var(--fg-secondary); font-weight: 500; font-family: var(--font-interface);
|
|
1871
2159
|
}
|
|
1872
2160
|
.menu__sep, .listbox__sep { height: 1px; background: var(--border); margin: var(--s-xs) 0; border: none; }
|
|
1873
2161
|
|
|
@@ -1953,7 +2241,7 @@ select:focus-visible,
|
|
|
1953
2241
|
/* overflow affordance — "+N more" routes to notification history */
|
|
1954
2242
|
.toast-region__more {
|
|
1955
2243
|
pointer-events: auto; align-self: center;
|
|
1956
|
-
font-family: var(--font-
|
|
2244
|
+
font-family: var(--font-interface); font-size: var(--t-label-sm-size); font-weight: 500;
|
|
1957
2245
|
color: var(--fg-secondary); background: var(--bg-raised);
|
|
1958
2246
|
border: 1px solid var(--border); border-radius: var(--radius-sm);
|
|
1959
2247
|
padding: var(--s-xs) 10px; cursor: pointer;
|
|
@@ -2052,6 +2340,25 @@ select:focus-visible,
|
|
|
2052
2340
|
.tree__row > .icon { flex: none; color: var(--fg-secondary); }
|
|
2053
2341
|
.tree__leaf > .tree__twisty { visibility: hidden; } /* files have no twisty; keep alignment */
|
|
2054
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
|
+
|
|
2055
2362
|
/* ═══ Stat card — a single KPI: label + big number + optional delta ═════
|
|
2056
2363
|
The cell of a .kpi-strip. PROMOTED to core v0.15.0 (was demo-local). Delta
|
|
2057
2364
|
keeps the .stat__delta(.down) naming; the change-direction × polarity rework
|