@cameronsjo/artificer 0.12.0 → 0.18.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 +47 -4
- package/package.json +5 -2
- package/src/artificer-icons.js +4 -1
- package/src/artificer-options.js +353 -0
- package/src/artificer-texture.css +153 -0
- package/src/artificer-theme.js +4 -1
- package/src/artificer-tree.js +227 -0
- package/src/artificer-whimsy.css +82 -0
- package/src/artificer-whimsy.js +88 -7
- package/src/artificer.css +506 -46
- package/src/assets/favicon.svg +4 -8
- package/src/assets/og-image.svg +19 -20
- package/src/print.css +1 -1
- package/src/tokens.json +4 -2
package/src/artificer.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* ═══════════════════════════════════════════════════════════════════════════
|
|
2
|
-
ARTIFICER · Design tokens · v0.
|
|
2
|
+
ARTIFICER · Design tokens · v0.18.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
|
|
|
@@ -129,6 +129,7 @@
|
|
|
129
129
|
/* Foreground — bone, not chrome. Softer than #fff but still AAA. */
|
|
130
130
|
--fg: #e8e6e1; /* warm off-white, 11.2:1 on --bg */
|
|
131
131
|
--fg-secondary: #c5c8c6;
|
|
132
|
+
--fg-muted: #5a7a8a; /* steel-blue muted — meta/comment text, between secondary and disabled */
|
|
132
133
|
--fg-disabled: #666666;
|
|
133
134
|
|
|
134
135
|
/* Structure */
|
|
@@ -195,7 +196,7 @@
|
|
|
195
196
|
--letter-spacing-body: 0.01em;
|
|
196
197
|
--word-spacing-body: 0.16em;
|
|
197
198
|
|
|
198
|
-
--radius-sm: 4px; --radius-md: 8px; --radius-lg: 12px;
|
|
199
|
+
--radius-sm: 4px; --radius-md: 8px; --radius-lg: 12px; --radius-pill: 999px; /* fully-rounded pills: toggle track, chip */
|
|
199
200
|
|
|
200
201
|
--s-xs: 4px; --s-sm: 8px; --s-md: 16px; --s-lg: 24px; --s-xl: 32px; --s-2xl: 48px; --s-3xl: 96px;
|
|
201
202
|
|
|
@@ -221,7 +222,7 @@
|
|
|
221
222
|
--z-toast: 3000; /* always-on-top notifications */
|
|
222
223
|
|
|
223
224
|
/* Artificer v0.10.1 — baseline contract: see CLAUDE.md § Baseline contract */
|
|
224
|
-
--art-version: "0.
|
|
225
|
+
--art-version: "0.18.0";
|
|
225
226
|
|
|
226
227
|
color-scheme: dark;
|
|
227
228
|
}
|
|
@@ -235,6 +236,7 @@
|
|
|
235
236
|
|
|
236
237
|
--fg: #20203e; /* midnight indigo */
|
|
237
238
|
--fg-secondary: #4a3f2a; /* warm muted */
|
|
239
|
+
--fg-muted: #5a7a8a;
|
|
238
240
|
--fg-disabled: #8a8070;
|
|
239
241
|
|
|
240
242
|
--border: #cbb88a;
|
|
@@ -284,6 +286,7 @@
|
|
|
284
286
|
--bg-inactive: #dcc99c;
|
|
285
287
|
--fg: #20203e;
|
|
286
288
|
--fg-secondary: #4a3f2a;
|
|
289
|
+
--fg-muted: #5a7a8a;
|
|
287
290
|
--fg-disabled: #8a8070;
|
|
288
291
|
--border: #cbb88a;
|
|
289
292
|
--border-lifted: #b8a674;
|
|
@@ -322,11 +325,18 @@
|
|
|
322
325
|
/* ═══ Base ══════════════════════════════════════════════════════════════ */
|
|
323
326
|
*, *::before, *::after { box-sizing: border-box; }
|
|
324
327
|
|
|
328
|
+
/* The root is NEVER overridden (#211). html stays at the browser preference
|
|
329
|
+
(100% of the user's setting; 16px by default) so every rem-bound --t-*-size
|
|
330
|
+
renders at its labeled px and the whole system scales with the preference.
|
|
331
|
+
The old shared `html, body` font-size silently made the root 14px (every
|
|
332
|
+
token rendered at 87.5% of its label) and double-applied on body (12.25px).
|
|
333
|
+
Body takes the body-md default exactly once, here. */
|
|
334
|
+
html { font-size: 100%; }
|
|
335
|
+
|
|
325
336
|
html, body {
|
|
326
337
|
background: var(--bg);
|
|
327
338
|
color: var(--fg);
|
|
328
339
|
font-family: var(--font-sans);
|
|
329
|
-
font-size: var(--t-body-md-size);
|
|
330
340
|
line-height: var(--t-body-md-lh);
|
|
331
341
|
letter-spacing: var(--letter-spacing-body);
|
|
332
342
|
margin: 0; padding: 0;
|
|
@@ -335,6 +345,8 @@ html, body {
|
|
|
335
345
|
transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
|
|
336
346
|
}
|
|
337
347
|
|
|
348
|
+
body { font-size: var(--t-body-md-size); }
|
|
349
|
+
|
|
338
350
|
/* Tool-surface override: dashboards, terminals, data tables, settings.
|
|
339
351
|
Apply <body class="surface-tool"> (or to a top-level container) to flip the
|
|
340
352
|
body face to mono. Documents inherit the sans default. */
|
|
@@ -363,7 +375,20 @@ html, body {
|
|
|
363
375
|
.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); }
|
|
364
376
|
|
|
365
377
|
.anchor { font-weight: 700; color: var(--fg); }
|
|
366
|
-
.meta { color: var(--fg-secondary); }
|
|
378
|
+
.meta { color: var(--fg-secondary); font-family: var(--font-sans); font-size: var(--t-body-md-size); max-width: 66ch; }
|
|
379
|
+
.note { color: var(--fg-secondary); font-size: var(--t-label-sm-size); } /* inherits body family — mono on tool surfaces, sans on doc surfaces. */
|
|
380
|
+
.num { font-variant-numeric: tabular-nums; }
|
|
381
|
+
|
|
382
|
+
/* Doc-page chrome — section header convention promoted from live-spec
|
|
383
|
+
(10+ identical instances; same shape as the .crumb-at-14 promotion). */
|
|
384
|
+
.section-title {
|
|
385
|
+
font-family: var(--font-mono); font-weight: 700; font-size: var(--t-headline-md-size);
|
|
386
|
+
letter-spacing: .04em; text-transform: uppercase;
|
|
387
|
+
color: var(--fg-secondary);
|
|
388
|
+
margin: var(--s-2xl) 0 var(--s-md);
|
|
389
|
+
padding-bottom: var(--s-sm);
|
|
390
|
+
border-bottom: 1px solid var(--border);
|
|
391
|
+
}
|
|
367
392
|
|
|
368
393
|
code, .code {
|
|
369
394
|
font-family: var(--font-mono);
|
|
@@ -440,6 +465,26 @@ a:focus-visible { outline: var(--focus-width) solid var(--accent); outline-offse
|
|
|
440
465
|
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--accent); }
|
|
441
466
|
.input::placeholder { color: var(--fg-disabled); }
|
|
442
467
|
.input[aria-invalid="true"] { border-color: var(--urgent); }
|
|
468
|
+
/* Custom indicator for .select — appearance:none lets iOS WebKit honour
|
|
469
|
+
author min-height (fixes the touch-target floor, #123). Two linear
|
|
470
|
+
gradients form a downward chevron using --fg-secondary only; no hex,
|
|
471
|
+
no SVG, no wrapper element.
|
|
472
|
+
Layer 1 (135deg): lower-right triangle = left arm of the ∨
|
|
473
|
+
Layer 2 ( 45deg): lower-left triangle = right arm of the ∨
|
|
474
|
+
Together they tile into a ▽ at the element's right edge. */
|
|
475
|
+
.select {
|
|
476
|
+
appearance: none;
|
|
477
|
+
-webkit-appearance: none;
|
|
478
|
+
background-image:
|
|
479
|
+
linear-gradient(135deg, transparent 50%, var(--fg-secondary) 50%),
|
|
480
|
+
linear-gradient(45deg, var(--fg-secondary) 50%, transparent 50%);
|
|
481
|
+
background-position: calc(100% - 26px) center, calc(100% - 21px) center;
|
|
482
|
+
background-size: 5px 5px, 5px 5px;
|
|
483
|
+
background-repeat: no-repeat, no-repeat;
|
|
484
|
+
padding-right: var(--s-xl); /* 32px — clears the 10px indicator at 16px from right */
|
|
485
|
+
cursor: pointer;
|
|
486
|
+
}
|
|
487
|
+
.select:disabled { color: var(--fg-disabled); cursor: not-allowed; }
|
|
443
488
|
|
|
444
489
|
.field { display: flex; flex-direction: column; gap: var(--s-sm); }
|
|
445
490
|
.field > label { font-family: var(--font-sans); font-size: var(--t-label-md-size); font-weight: 500; color: var(--fg); }
|
|
@@ -449,7 +494,7 @@ a:focus-visible { outline: var(--focus-width) solid var(--accent); outline-offse
|
|
|
449
494
|
/* ═══ Badges ════════════════════════════════════════════════════════════ */
|
|
450
495
|
.badge {
|
|
451
496
|
display: inline-flex; align-items: center; gap: var(--s-xs);
|
|
452
|
-
padding: 2px
|
|
497
|
+
padding: 2px var(--s-sm);
|
|
453
498
|
font-family: var(--font-sans); font-size: var(--t-label-sm-size); font-weight: 500; line-height: 1.3;
|
|
454
499
|
border-radius: var(--radius-sm); white-space: nowrap;
|
|
455
500
|
}
|
|
@@ -465,9 +510,41 @@ a:focus-visible { outline: var(--focus-width) solid var(--accent); outline-offse
|
|
|
465
510
|
.dot--urgent { background: var(--urgent-fill); }
|
|
466
511
|
.dot--success { background: var(--success-fill); }
|
|
467
512
|
|
|
513
|
+
/* ═══ Notification ══════════════════════════════════════════════════════ */
|
|
514
|
+
/*
|
|
515
|
+
* Tier by ACTION REQUIRED, not severity.
|
|
516
|
+
* --urgent Blocking. Errors, failed builds. role="alert"; persists until dismissed.
|
|
517
|
+
* --attention Look when you can. Agent waiting, review needed. role="status"; persists.
|
|
518
|
+
* --info Task complete. Auto-dismiss after 5 s, subtle badge. role="status".
|
|
519
|
+
* --background Silent badge. Progress, status. NO role — never announced, never a toast.
|
|
520
|
+
*
|
|
521
|
+
* Anatomy: .notif > .dot.dot--{tier} .notif__body > .notif__title + .notif__msg
|
|
522
|
+
* A11y: dot + text always — never color alone. Roles are the CONSUMER's job at
|
|
523
|
+
* insert time: urgent → "alert", attention/info → "status", background → none.
|
|
524
|
+
* One contract with .toast-region (see that block + notifications.html).
|
|
525
|
+
*/
|
|
526
|
+
.notif {
|
|
527
|
+
display: flex; align-items: flex-start; gap: var(--s-sm);
|
|
528
|
+
padding: 10px 14px; /* tuned */
|
|
529
|
+
border-radius: var(--radius-sm);
|
|
530
|
+
border: 1px solid var(--border); background: var(--bg);
|
|
531
|
+
font-family: var(--font-mono); font-size: var(--t-label-md-size); line-height: var(--t-body-md-lh);
|
|
532
|
+
color: var(--fg);
|
|
533
|
+
}
|
|
534
|
+
.notif--urgent { border-color: var(--urgent); }
|
|
535
|
+
.notif--attention { border-color: var(--attention); }
|
|
536
|
+
.notif--info { border-color: var(--accent); }
|
|
537
|
+
.notif--background { color: var(--fg-secondary); }
|
|
538
|
+
.notif--background .dot { background: var(--border); }
|
|
539
|
+
|
|
540
|
+
.notif__body { display: flex; flex-direction: column; gap: var(--s-xs); flex: 1; min-width: 0; }
|
|
541
|
+
.notif__title { margin: 0; font-weight: 700; color: var(--fg); }
|
|
542
|
+
.notif--background .notif__title { color: var(--fg-secondary); }
|
|
543
|
+
.notif__msg { margin: 0; color: var(--fg-secondary); }
|
|
544
|
+
|
|
468
545
|
/* ═══ Kbd ══════════════════════════════════════════════════════════════ */
|
|
469
546
|
kbd, .kbd {
|
|
470
|
-
font-family: var(--font-mono); font-size:
|
|
547
|
+
font-family: var(--font-mono); font-size: var(--t-label-xs-size); font-weight: 500;
|
|
471
548
|
padding: 2px 6px; background: var(--bg); color: var(--fg-secondary);
|
|
472
549
|
border: 1px solid var(--border); border-radius: 3px; line-height: 1.2; white-space: nowrap;
|
|
473
550
|
}
|
|
@@ -489,21 +566,31 @@ hr, .divider { border: none; border-top: 1px solid var(--border); margin: var(--
|
|
|
489
566
|
* { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
|
|
490
567
|
*::-webkit-scrollbar { width: 10px; height: 10px; }
|
|
491
568
|
*::-webkit-scrollbar-track { background: transparent; }
|
|
492
|
-
*::-webkit-scrollbar-thumb { background: var(--border); border-radius:
|
|
569
|
+
*::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--radius-sm); border: 2px solid transparent; background-clip: padding-box; }
|
|
493
570
|
*::-webkit-scrollbar-thumb:hover { background: var(--fg-disabled); background-clip: padding-box; border: 2px solid transparent; }
|
|
494
571
|
|
|
495
|
-
/* ═══ Theme toggle — shared across pages ═══════════════════════════════
|
|
572
|
+
/* ═══ Theme toggle — shared across pages ═══════════════════════════════
|
|
573
|
+
Pins to the top-right of the viewport on every page that drops the
|
|
574
|
+
button into the document. Sits on the overlay rung so it survives
|
|
575
|
+
over a sticky .appbar or sidenav. Opt out with .theme-toggle--inline
|
|
576
|
+
when a page wants the control to live in a specific row instead. */
|
|
496
577
|
.theme-toggle {
|
|
578
|
+
position: fixed; top: var(--s-md); right: var(--s-md); z-index: var(--z-overlay);
|
|
497
579
|
display: inline-flex; align-items: center; gap: 6px;
|
|
498
580
|
background: var(--bg-raised); color: var(--fg-secondary);
|
|
499
581
|
border: 1px solid var(--border); border-radius: var(--radius-sm);
|
|
500
582
|
padding: 6px 10px; cursor: pointer;
|
|
501
|
-
font-family: var(--font-sans); font-size:
|
|
583
|
+
font-family: var(--font-sans); font-size: var(--t-label-xs-size); font-weight: 500;
|
|
502
584
|
letter-spacing: 0.08em; text-transform: uppercase;
|
|
503
|
-
transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
|
|
585
|
+
transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
|
|
586
|
+
box-shadow: 0 1px 2px rgba(0,0,0,.18);
|
|
504
587
|
}
|
|
505
|
-
.theme-toggle:hover { color: var(--fg); border-color: var(--accent); }
|
|
588
|
+
.theme-toggle:hover { color: var(--fg); border-color: var(--accent); box-shadow: 0 2px 6px rgba(0,0,0,.22); }
|
|
506
589
|
.theme-toggle .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent-fill); }
|
|
590
|
+
.theme-toggle--inline { position: static; top: auto; right: auto; z-index: auto; box-shadow: none; }
|
|
591
|
+
@media (max-width: 640px) {
|
|
592
|
+
.theme-toggle { top: var(--s-sm); right: var(--s-sm); }
|
|
593
|
+
}
|
|
507
594
|
|
|
508
595
|
/* ═══ Layout primitives ════════════════════════════════════════════════ */
|
|
509
596
|
/* Stack: vertical rhythm. --gap defaults to --s-md. */
|
|
@@ -585,8 +672,8 @@ hr, .divider { border: none; border-top: 1px solid var(--border); margin: var(--
|
|
|
585
672
|
.tooltip {
|
|
586
673
|
position: absolute; z-index: var(--z-popover);
|
|
587
674
|
background: var(--fg); color: var(--bg);
|
|
588
|
-
padding:
|
|
589
|
-
font-family: var(--font-sans); font-size:
|
|
675
|
+
padding: var(--s-xs) var(--s-sm); border-radius: var(--radius-sm);
|
|
676
|
+
font-family: var(--font-sans); font-size: var(--t-label-xs-size); line-height: 1.3;
|
|
590
677
|
pointer-events: none; white-space: nowrap;
|
|
591
678
|
box-shadow: var(--shadow-popover);
|
|
592
679
|
}
|
|
@@ -614,7 +701,7 @@ hr, .divider { border: none; border-top: 1px solid var(--border); margin: var(--
|
|
|
614
701
|
}
|
|
615
702
|
.radio > input:checked::after {
|
|
616
703
|
content: ""; display: block; width: 6px; height: 6px; border-radius: 50%;
|
|
617
|
-
background: var(--on-accent); margin:
|
|
704
|
+
background: var(--on-accent); margin: var(--s-xs) auto 0;
|
|
618
705
|
}
|
|
619
706
|
.checkbox > input:focus-visible, .radio > input:focus-visible { outline: var(--focus-width) solid var(--accent); outline-offset: var(--focus-offset); }
|
|
620
707
|
.checkbox > input:disabled + *, .radio > input:disabled + * { color: var(--fg-disabled); cursor: not-allowed; }
|
|
@@ -627,7 +714,7 @@ hr, .divider { border: none; border-top: 1px solid var(--border); margin: var(--
|
|
|
627
714
|
}
|
|
628
715
|
.toggle > input {
|
|
629
716
|
appearance: none; -webkit-appearance: none;
|
|
630
|
-
width: 32px; height: 18px; border-radius:
|
|
717
|
+
width: 32px; height: 18px; border-radius: var(--radius-pill);
|
|
631
718
|
background: var(--border); border: none; position: relative;
|
|
632
719
|
cursor: pointer; transition: background var(--dur-fast) var(--ease);
|
|
633
720
|
flex-shrink: 0;
|
|
@@ -671,10 +758,27 @@ hr, .divider { border: none; border-top: 1px solid var(--border); margin: var(--
|
|
|
671
758
|
font-family: var(--font-sans); font-size: var(--t-label-md-size); color: var(--fg-secondary);
|
|
672
759
|
}
|
|
673
760
|
.file-field input[type="file"] { display: none; }
|
|
761
|
+
/* Dropzone — the same field as a drag target. .file-field--drop makes it a
|
|
762
|
+
taller centered well; .is-dragover (consumer toggles on dragenter/dragover,
|
|
763
|
+
clears on dragleave/drop) lights the accent. Texture never encodes the drag
|
|
764
|
+
state — color does. v0.15.0. */
|
|
765
|
+
.file-field--drop { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: var(--s-xs); padding: var(--s-xl); min-height: 120px; }
|
|
766
|
+
.file-field.is-dragover { border-color: var(--accent); color: var(--fg); background: color-mix(in oklch, var(--accent) 8%, var(--bg)); }
|
|
674
767
|
|
|
675
768
|
/* ═══ Data display ═════════════════════════════════════════════════════ */
|
|
769
|
+
/* Wide-content escape hatch — the content scrolls inside it, never the page.
|
|
770
|
+
Generalizes the .code-block precedent for tables, diffs, and any block whose
|
|
771
|
+
natural width can exceed the container (the #116 bug class). Wrap, don't fight:
|
|
772
|
+
<div class="scroll-x" tabindex="0"><table class="table">…</table></div>
|
|
773
|
+
The tabindex="0" is load-bearing: a scrollable region must be keyboard-
|
|
774
|
+
reachable so keyboard users can scroll it (axe scrollable-region-focusable). */
|
|
775
|
+
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
|
|
776
|
+
.scroll-x:focus-visible, .code-block:focus-visible {
|
|
777
|
+
outline: var(--focus-width) solid var(--accent); outline-offset: var(--focus-offset);
|
|
778
|
+
}
|
|
779
|
+
|
|
676
780
|
.code-block {
|
|
677
|
-
font-family: var(--font-mono); font-size:
|
|
781
|
+
font-family: var(--font-mono); font-size: var(--t-label-md-size); line-height: 1.6;
|
|
678
782
|
background: var(--bg-inactive); color: var(--fg);
|
|
679
783
|
padding: var(--s-md) var(--s-lg);
|
|
680
784
|
border-radius: var(--radius-md); border: 1px solid var(--border);
|
|
@@ -682,11 +786,41 @@ hr, .divider { border: none; border-top: 1px solid var(--border); margin: var(--
|
|
|
682
786
|
white-space: pre;
|
|
683
787
|
margin: 0;
|
|
684
788
|
}
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
.
|
|
689
|
-
|
|
789
|
+
/* Syntax — the full 12-role $roles.syntax map surfaced into the WEB layer
|
|
790
|
+
(the same map that drives the editor themes; this is the web bridge).
|
|
791
|
+
Existing class names (.tok-comment/keyword/string/number/fn) are kept as
|
|
792
|
+
aliases. Four roles bind to canonical tokens not yet surfaced as web vars
|
|
793
|
+
(successBright · attentionAlt · cyan · urgentBright) — they fall back to
|
|
794
|
+
the nearest existing token via var(…, …) until those 4 are minted (a
|
|
795
|
+
flagged palette-surface decision; values in _palette.json). No new tokens,
|
|
796
|
+
no hardcoded hex here. comment/operator = --fg-muted (v0.7.2 reroute). */
|
|
797
|
+
.code-block .tok-comment,
|
|
798
|
+
.code-block .tok-operator { color: var(--fg-muted); }
|
|
799
|
+
.code-block .tok-comment { font-style: italic; }
|
|
800
|
+
.code-block .tok-keyword { color: var(--brand-purple-bright); }
|
|
801
|
+
.code-block .tok-string { color: var(--success-bright, var(--success)); }
|
|
802
|
+
.code-block .tok-type { color: var(--accent-bright); }
|
|
803
|
+
.code-block .tok-number,
|
|
804
|
+
.code-block .tok-constant { color: var(--attention-alt, var(--attention)); }
|
|
805
|
+
.code-block .tok-fn,
|
|
806
|
+
.code-block .tok-function { color: var(--accent); }
|
|
807
|
+
.code-block .tok-namespace { color: var(--cyan, var(--steel)); }
|
|
808
|
+
.code-block .tok-param { color: var(--steel); }
|
|
809
|
+
.code-block .tok-variable { color: var(--fg); }
|
|
810
|
+
.code-block .tok-tag { color: var(--urgent-bright, var(--urgent)); }
|
|
811
|
+
.code-block .tok-invalid { color: var(--urgent-bright, var(--urgent)); text-decoration: wavy underline; } /* reinforced — AA-L floor */
|
|
812
|
+
|
|
813
|
+
/* Doc-page example container — promoted from live-spec .demo (15 pages).
|
|
814
|
+
Pulls markup toward semantic <figure> + <figcaption class="meta">. */
|
|
815
|
+
.figure {
|
|
816
|
+
background: var(--bg-raised);
|
|
817
|
+
border: 1px solid var(--border);
|
|
818
|
+
border-radius: var(--radius-md);
|
|
819
|
+
padding: var(--s-lg);
|
|
820
|
+
margin-top: var(--s-sm);
|
|
821
|
+
}
|
|
822
|
+
.figure--frame { padding: 0; overflow: hidden; position: relative; }
|
|
823
|
+
.figure--flush { padding: 0; overflow: hidden; }
|
|
690
824
|
|
|
691
825
|
.table {
|
|
692
826
|
width: 100%; border-collapse: collapse;
|
|
@@ -748,7 +882,7 @@ hr, .divider { border: none; border-top: 1px solid var(--border); margin: var(--
|
|
|
748
882
|
.skip-link {
|
|
749
883
|
position: absolute; top: -40px; left: var(--s-md);
|
|
750
884
|
background: var(--accent-fill); color: var(--on-accent);
|
|
751
|
-
padding:
|
|
885
|
+
padding: var(--s-sm) 12px; border-radius: var(--radius-sm);
|
|
752
886
|
font-family: var(--font-sans); font-size: var(--t-label-md-size); font-weight: 500;
|
|
753
887
|
text-decoration: none; z-index: var(--z-toast);
|
|
754
888
|
transition: top var(--dur-fast) var(--ease);
|
|
@@ -865,8 +999,8 @@ select:focus-visible,
|
|
|
865
999
|
|
|
866
1000
|
.chip {
|
|
867
1001
|
display: inline-flex; align-items: center; gap: 6px;
|
|
868
|
-
font-family: var(--font-sans); font-size:
|
|
869
|
-
padding:
|
|
1002
|
+
font-family: var(--font-sans); font-size: var(--t-label-sm-size); font-weight: 500;
|
|
1003
|
+
padding: var(--s-xs) 10px; border-radius: var(--radius-pill);
|
|
870
1004
|
background: transparent; color: var(--fg-secondary);
|
|
871
1005
|
border: 1px solid var(--border);
|
|
872
1006
|
cursor: pointer; white-space: nowrap;
|
|
@@ -883,7 +1017,7 @@ select:focus-visible,
|
|
|
883
1017
|
.timerange { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
|
|
884
1018
|
.timerange button {
|
|
885
1019
|
background: transparent; color: var(--fg-secondary);
|
|
886
|
-
font-family: var(--font-mono); font-size:
|
|
1020
|
+
font-family: var(--font-mono); font-size: var(--t-label-sm-size); font-weight: 500;
|
|
887
1021
|
padding: 6px 12px; border: none; cursor: pointer;
|
|
888
1022
|
border-right: 1px solid var(--border);
|
|
889
1023
|
transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
|
|
@@ -900,7 +1034,7 @@ select:focus-visible,
|
|
|
900
1034
|
/* Pulsing dot — for "this is live" indicators */
|
|
901
1035
|
.live-tick {
|
|
902
1036
|
display: inline-flex; align-items: center; gap: 6px;
|
|
903
|
-
font-family: var(--font-sans); font-size:
|
|
1037
|
+
font-family: var(--font-sans); font-size: var(--t-label-xs-size); letter-spacing: .06em;
|
|
904
1038
|
text-transform: uppercase; color: var(--fg-secondary);
|
|
905
1039
|
}
|
|
906
1040
|
.live-tick::before {
|
|
@@ -916,7 +1050,7 @@ select:focus-visible,
|
|
|
916
1050
|
@media (prefers-reduced-motion: reduce) { .live-tick::before { animation: none; } }
|
|
917
1051
|
|
|
918
1052
|
.last-updated {
|
|
919
|
-
font-family: var(--font-mono); font-size:
|
|
1053
|
+
font-family: var(--font-mono); font-size: var(--t-label-xs-size);
|
|
920
1054
|
color: var(--fg-secondary); font-variant-numeric: tabular-nums;
|
|
921
1055
|
}
|
|
922
1056
|
|
|
@@ -924,6 +1058,29 @@ select:focus-visible,
|
|
|
924
1058
|
.live-value { transition: color var(--dur-max) var(--ease); }
|
|
925
1059
|
.live-value.flash { color: var(--accent); }
|
|
926
1060
|
|
|
1061
|
+
/* Refreshing-value pattern (D1) — the re-fetch gap. A value already on screen
|
|
1062
|
+
that you re-fetch sits static ~800ms while the user expects change. Skeleton
|
|
1063
|
+
would blank it (flicker, lost context); .progress doesn't fit (nothing to
|
|
1064
|
+
count); the disabled label sits on the button, not the value. Recede the
|
|
1065
|
+
stale value — the same 55% instinct as .pane--inactive — and pulse a neutral
|
|
1066
|
+
dot beside it; the fresh value fades in via .live-value's existing color
|
|
1067
|
+
transition, the dot stops. Drive [data-refreshing] from the fetch lifecycle.
|
|
1068
|
+
Give the consuming element aria-live="polite" (+ aria-atomic="true") — the
|
|
1069
|
+
visual tick is otherwise silent to assistive tech (the dot is decoration;
|
|
1070
|
+
the VALUE is the announcement). Zero new tokens; a mint, not a carve.
|
|
1071
|
+
v0.15.0; ARIA guidance #193. */
|
|
1072
|
+
.live-value[data-refreshing] { opacity: .55; }
|
|
1073
|
+
.live-value__dot { display: none; width: 6px; height: 6px; border-radius: 50%; background: var(--fg-secondary); vertical-align: baseline; flex: none; }
|
|
1074
|
+
.live-value[data-refreshing] + .live-value__dot {
|
|
1075
|
+
display: inline-block;
|
|
1076
|
+
animation: refresh-pulse 2s var(--ease) infinite;
|
|
1077
|
+
}
|
|
1078
|
+
@keyframes refresh-pulse {
|
|
1079
|
+
0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--fg-secondary) 50%, transparent); }
|
|
1080
|
+
50% { box-shadow: 0 0 0 5px color-mix(in oklch, var(--fg-secondary) 0%, transparent); }
|
|
1081
|
+
}
|
|
1082
|
+
@media (prefers-reduced-motion: reduce) { .live-value[data-refreshing] + .live-value__dot { animation: none; } }
|
|
1083
|
+
|
|
927
1084
|
/* ═══════════════════════════════════════════════════════════════════════
|
|
928
1085
|
CHARTS · tokens + primitives
|
|
929
1086
|
Platform-agnostic: any library that lets you set stroke/axis/grid colors
|
|
@@ -971,16 +1128,16 @@ select:focus-visible,
|
|
|
971
1128
|
display: flex; flex-direction: column; gap: var(--s-sm);
|
|
972
1129
|
}
|
|
973
1130
|
.chart__header { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-md); }
|
|
974
|
-
.chart__title { font-family: var(--font-mono); font-size:
|
|
1131
|
+
.chart__title { font-family: var(--font-mono); font-size: var(--t-label-sm-size); font-weight: 700;
|
|
975
1132
|
letter-spacing: .08em; text-transform: uppercase; color: var(--fg-secondary); margin: 0; }
|
|
976
|
-
.chart__value { font-family: var(--font-mono); font-size:
|
|
1133
|
+
.chart__value { font-family: var(--font-mono); font-size: var(--t-headline-lg-size); font-weight: 700;
|
|
977
1134
|
color: var(--fg); font-variant-numeric: tabular-nums; line-height: 1; }
|
|
978
1135
|
.chart__plot { width: 100%; aspect-ratio: 16 / 7; position: relative; }
|
|
979
1136
|
.chart__plot--tall { aspect-ratio: 16 / 9; }
|
|
980
1137
|
.chart__plot--square { aspect-ratio: 1 / 1; }
|
|
981
1138
|
.chart__legend {
|
|
982
1139
|
display: flex; flex-wrap: wrap; gap: var(--s-md);
|
|
983
|
-
font-family: var(--font-sans); font-size:
|
|
1140
|
+
font-family: var(--font-sans); font-size: var(--t-label-sm-size); color: var(--fg-secondary);
|
|
984
1141
|
}
|
|
985
1142
|
.chart__legend > span { display: inline-flex; align-items: center; gap: 6px; }
|
|
986
1143
|
.chart__legend i {
|
|
@@ -1011,7 +1168,7 @@ select:focus-visible,
|
|
|
1011
1168
|
|
|
1012
1169
|
/* Annotation tag (for editorial mode) — text label + leader line */
|
|
1013
1170
|
.chart-annotation {
|
|
1014
|
-
font-family: var(--font-sans); font-size:
|
|
1171
|
+
font-family: var(--font-sans); font-size: var(--t-label-xs-size); line-height: 1.3;
|
|
1015
1172
|
fill: var(--fg-secondary); font-weight: 500;
|
|
1016
1173
|
}
|
|
1017
1174
|
.chart-annotation.strong { fill: var(--fg); font-weight: 700; }
|
|
@@ -1043,20 +1200,20 @@ select:focus-visible,
|
|
|
1043
1200
|
}
|
|
1044
1201
|
.dia-node--accent { stroke: var(--accent); stroke-width: 1.5; }
|
|
1045
1202
|
.dia-node--ghost { fill: transparent; stroke-dasharray: 4 3; }
|
|
1046
|
-
.dia-node-label { fill: var(--dia-node-fg); font-family: var(--font-mono); font-size:
|
|
1047
|
-
.dia-node-meta { fill: var(--fg-secondary); font-family: var(--font-mono); font-size: 10px; }
|
|
1203
|
+
.dia-node-label { fill: var(--dia-node-fg); font-family: var(--font-mono); font-size: var(--t-label-sm-size); font-weight: 500; }
|
|
1204
|
+
.dia-node-meta { fill: var(--fg-secondary); font-family: var(--font-mono); font-size: 10px; /* tuned */ }
|
|
1048
1205
|
|
|
1049
1206
|
.dia-edge {
|
|
1050
1207
|
stroke: var(--dia-edge); stroke-width: 1.25; fill: none;
|
|
1051
1208
|
}
|
|
1052
1209
|
.dia-edge--strong { stroke: var(--dia-edge-strong); stroke-width: 1.5; }
|
|
1053
1210
|
.dia-edge--dashed { stroke-dasharray: 4 3; }
|
|
1054
|
-
.dia-edge-label { fill: var(--fg-secondary); font-family: var(--font-mono); font-size: 10px;
|
|
1211
|
+
.dia-edge-label { fill: var(--fg-secondary); font-family: var(--font-mono); font-size: 10px; /* tuned */
|
|
1055
1212
|
paint-order: stroke; stroke: var(--bg); stroke-width: 4; }
|
|
1056
1213
|
|
|
1057
1214
|
.dia-rail { stroke: var(--dia-rail); stroke-width: 1; stroke-dasharray: 2 4; }
|
|
1058
1215
|
.dia-swimlane-label {
|
|
1059
|
-
fill: var(--fg-secondary); font-family: var(--font-sans); font-size:
|
|
1216
|
+
fill: var(--fg-secondary); font-family: var(--font-sans); font-size: var(--t-label-xs-size);
|
|
1060
1217
|
letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
|
|
1061
1218
|
}
|
|
1062
1219
|
|
|
@@ -1198,6 +1355,10 @@ select:focus-visible,
|
|
|
1198
1355
|
}
|
|
1199
1356
|
.appbar__brand {
|
|
1200
1357
|
display: flex; align-items: center; gap: var(--s-sm);
|
|
1358
|
+
flex: 1; min-width: 0; /* allow brand to shrink on narrow viewports; without
|
|
1359
|
+
min-width:0 a flex child cannot shrink below min-content, which causes long
|
|
1360
|
+
wordmarks to push the appbar past the viewport edge (#127) */
|
|
1361
|
+
overflow: hidden; /* clip any brand text that exceeds the shrunk container */
|
|
1201
1362
|
font-family: var(--font-mono); font-weight: 700;
|
|
1202
1363
|
font-size: var(--t-body-lg-size); letter-spacing: -0.01em;
|
|
1203
1364
|
color: var(--fg); text-decoration: none;
|
|
@@ -1223,13 +1384,16 @@ select:focus-visible,
|
|
|
1223
1384
|
aria-selected) or links (aria-current). Underline marks the active view.
|
|
1224
1385
|
NOT for filtering one view's parameters — that's .timerange. */
|
|
1225
1386
|
.tabs {
|
|
1226
|
-
display: flex; gap: var(--s-md); align-items: stretch;
|
|
1387
|
+
display: flex; flex-wrap: nowrap; gap: var(--s-md); align-items: stretch;
|
|
1388
|
+
overflow-x: auto;
|
|
1389
|
+
/* Thin, token-colored scrollbar — hidden until tabs overflow the container. */
|
|
1390
|
+
scrollbar-width: thin; scrollbar-color: var(--border) transparent;
|
|
1227
1391
|
border-bottom: 1px solid var(--border);
|
|
1228
1392
|
}
|
|
1229
1393
|
.tabs button, .tabs a {
|
|
1230
1394
|
appearance: none; background: none; border: none; cursor: pointer;
|
|
1231
1395
|
display: inline-flex; align-items: center; min-height: 44px;
|
|
1232
|
-
padding: var(--s-sm) 2px; margin-bottom: -1px;
|
|
1396
|
+
padding: var(--s-sm) 2px; margin-bottom: -1px; flex-shrink: 0;
|
|
1233
1397
|
font-family: var(--font-sans); font-size: var(--t-label-md-size); font-weight: 500;
|
|
1234
1398
|
color: var(--fg-secondary); text-decoration: none;
|
|
1235
1399
|
border-bottom: 2px solid transparent;
|
|
@@ -1239,7 +1403,11 @@ select:focus-visible,
|
|
|
1239
1403
|
.tabs [aria-selected="true"], .tabs [aria-current="page"] {
|
|
1240
1404
|
color: var(--accent); border-bottom-color: var(--accent);
|
|
1241
1405
|
}
|
|
1242
|
-
|
|
1406
|
+
/* Inset focus ring (--focus-offset-inset: -2px) — the correct token for tabs
|
|
1407
|
+
(see token cheatsheet "nav items, table rows, tabs"). Drawn inside the
|
|
1408
|
+
button's border-box so it is never clipped by the overflow-x: auto scroll
|
|
1409
|
+
container. Matches the pattern used by .sidenav and .table rows. */
|
|
1410
|
+
.tabs button:focus-visible, .tabs a:focus-visible { outline: var(--focus-width) solid var(--accent); outline-offset: var(--focus-offset-inset); }
|
|
1243
1411
|
|
|
1244
1412
|
|
|
1245
1413
|
/* ═══════════════════════════════════════════════════════════════════════
|
|
@@ -1257,6 +1425,10 @@ select:focus-visible,
|
|
|
1257
1425
|
color: var(--fg); text-decoration: none; white-space: nowrap;
|
|
1258
1426
|
}
|
|
1259
1427
|
.wordmark::after { content: "."; color: var(--accent); }
|
|
1428
|
+
/* Period-bearing marks (e.g. "blog.") add the stop as real text and should
|
|
1429
|
+
suppress the pseudo to avoid a double-stop. `.whimsy` in artificer-whimsy.css
|
|
1430
|
+
also checks this modifier before re-establishing the gradient on ::after. */
|
|
1431
|
+
.wordmark--stop-none::after { content: none; }
|
|
1260
1432
|
|
|
1261
1433
|
|
|
1262
1434
|
/* ═══════════════════════════════════════════════════════════════════════
|
|
@@ -1293,21 +1465,34 @@ select:focus-visible,
|
|
|
1293
1465
|
.nav-drawer { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
|
|
1294
1466
|
|
|
1295
1467
|
/* Touch escalation — on coarse pointers (finger) interactive controls grow
|
|
1296
|
-
to the 44px target
|
|
1468
|
+
to the 44×44px target (WCAG 2.5.5/2.5.8 — both dimensions).
|
|
1469
|
+
Fine-pointer (mouse) desktops keep Artificer density. */
|
|
1297
1470
|
@media (pointer: coarse) {
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
.
|
|
1471
|
+
/* Every button is a touch target, classed or not — demo buttons, page-local
|
|
1472
|
+
buttons, and library buttons all get the floor. Both dimensions per WCAG 2.5.5. */
|
|
1473
|
+
button, .btn, .theme-toggle { min-height: 44px; min-width: 44px; }
|
|
1474
|
+
/* All text-like inputs (text/search/email/number/password/date/url/tel...).
|
|
1475
|
+
Width left to the layout (inputs fill their container; min-width here
|
|
1476
|
+
would fight flex/grid shrink and break compact search bars). */
|
|
1477
|
+
.input, .textarea, .select,
|
|
1478
|
+
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
|
|
1479
|
+
textarea { min-height: 44px; }
|
|
1480
|
+
.checkbox, .radio { min-height: 44px; min-width: 44px; align-items: center; }
|
|
1301
1481
|
.checkbox > input, .radio > input { width: 22px; height: 22px; }
|
|
1302
1482
|
.checkbox > input:checked::after { width: 5px; height: 10px; margin-top: 2px; }
|
|
1303
1483
|
.radio > input:checked::after { width: 8px; height: 8px; margin-top: 6px; }
|
|
1484
|
+
.toggle { min-height: 44px; min-width: 44px; align-items: center; }
|
|
1304
1485
|
.toggle > input { width: 44px; height: 26px; }
|
|
1305
1486
|
.toggle > input::after { width: 22px; height: 22px; }
|
|
1306
1487
|
.toggle > input:checked::after { transform: translateX(18px); }
|
|
1307
1488
|
.slider { height: 6px; }
|
|
1308
1489
|
.slider::-webkit-slider-thumb { width: 24px; height: 24px; }
|
|
1309
1490
|
.slider::-moz-range-thumb { width: 24px; height: 24px; }
|
|
1310
|
-
.chip {
|
|
1491
|
+
.chip { min-height: 44px; min-width: 44px; }
|
|
1492
|
+
/* Nav targets are 44px always (a11y rule #8) — brand link + breadcrumbs get a
|
|
1493
|
+
full-height touch area without changing their visual size. */
|
|
1494
|
+
.appbar__brand { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }
|
|
1495
|
+
.crumb a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }
|
|
1311
1496
|
}
|
|
1312
1497
|
|
|
1313
1498
|
/* Table -> cards reflow. Below --bp-mobile (640px) a wide data table
|
|
@@ -1383,8 +1568,15 @@ select:focus-visible,
|
|
|
1383
1568
|
genuinely wide viewport (the single min-width step, == --bp-wide). Content
|
|
1384
1569
|
track is minmax(0,1fr), never bare 1fr — overflow-safe (#116). */
|
|
1385
1570
|
.split-pane--inspector { display: grid; gap: var(--s-lg); grid-template-columns: 280px minmax(0, 1fr); }
|
|
1571
|
+
/* The inspector (third) pane exists only at the wide tier — below it, the pane
|
|
1572
|
+
is hidden, NOT re-gridded into an implicit row. "Reveals at --bp-wide" means
|
|
1573
|
+
exactly that. (Caught by regressions/wide-screen.spec.mjs.) */
|
|
1574
|
+
.split-pane--inspector > :nth-child(3) { display: none; }
|
|
1386
1575
|
@media (max-width: 800px) { .split-pane--inspector { grid-template-columns: 1fr; } }
|
|
1387
|
-
@media (min-width: 1200px) {
|
|
1576
|
+
@media (min-width: 1200px) {
|
|
1577
|
+
.split-pane--inspector { grid-template-columns: 280px minmax(0, 1fr) 320px; }
|
|
1578
|
+
.split-pane--inspector > :nth-child(3) { display: block; }
|
|
1579
|
+
}
|
|
1388
1580
|
|
|
1389
1581
|
/* App-shell — the responsive page scaffold (#116). Composes the existing chrome
|
|
1390
1582
|
(.appbar / .sidenav / .nav-drawer) into a page that survives a phone: a
|
|
@@ -1435,7 +1627,7 @@ select:focus-visible,
|
|
|
1435
1627
|
letter-spacing: 0.02em; user-select: none;
|
|
1436
1628
|
}
|
|
1437
1629
|
.avatar > img { width: 100%; height: 100%; object-fit: cover; }
|
|
1438
|
-
.avatar--sm { width: 24px; height: 24px; font-size: 10px; }
|
|
1630
|
+
.avatar--sm { width: 24px; height: 24px; font-size: 10px; /* tuned */ }
|
|
1439
1631
|
.avatar--lg { width: 48px; height: 48px; font-size: var(--t-label-md-size); }
|
|
1440
1632
|
.avatar--xl { width: 64px; height: 64px; font-size: var(--t-body-lg-size); }
|
|
1441
1633
|
.avatar--square { border-radius: var(--radius-sm); }
|
|
@@ -1476,3 +1668,271 @@ select:focus-visible,
|
|
|
1476
1668
|
}
|
|
1477
1669
|
.input::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 0.6; }
|
|
1478
1670
|
.input::-webkit-calendar-picker-indicator:hover { opacity: 1; }
|
|
1671
|
+
|
|
1672
|
+
/* ═══════════════════════════════════════════════════════════════════════
|
|
1673
|
+
v0.15.0 · component mints (Workstream E + D)
|
|
1674
|
+
Adopted from Lane 1's v0.15.0 round, cherry-picked onto current repo CSS
|
|
1675
|
+
(the sandbox base lagged the repo — additive only, never wholesale).
|
|
1676
|
+
All mints, zero new tokens, zero hardcoded hex.
|
|
1677
|
+
═══════════════════════════════════════════════════════════════════════ */
|
|
1678
|
+
|
|
1679
|
+
/* ═══ Option-popover — .menu (actions) / .listbox (selection) ═══════════
|
|
1680
|
+
The ONE floating option list. Don't hand-roll a dropdown. Two roles share
|
|
1681
|
+
one look:
|
|
1682
|
+
.menu = a command/action list → role="menu", children role="menuitem"
|
|
1683
|
+
.listbox = a selectable list → role="listbox", children role="option" + aria-selected
|
|
1684
|
+
Both use __option rows. Drop inside .popover (or .palette) for the floating
|
|
1685
|
+
surface. Keyboard + ARIA ride artificer-options.js (enhance = roving
|
|
1686
|
+
tabindex on a standalone list; combobox = aria-activedescendant for the
|
|
1687
|
+
palette recipe); open/close stays consumer-side. Composes into: command
|
|
1688
|
+
palette, enhanced select, combobox, multiselect, tag-input.
|
|
1689
|
+
v0.15.0 (Workstream E keystone). */
|
|
1690
|
+
.menu, .listbox {
|
|
1691
|
+
list-style: none; margin: 0; padding: var(--s-xs);
|
|
1692
|
+
display: flex; flex-direction: column; gap: 2px;
|
|
1693
|
+
font-family: var(--font-sans); font-size: var(--t-label-md-size);
|
|
1694
|
+
max-height: 320px; overflow-y: auto;
|
|
1695
|
+
}
|
|
1696
|
+
.menu__option, .listbox__option {
|
|
1697
|
+
display: flex; align-items: center; gap: var(--s-sm);
|
|
1698
|
+
padding: var(--s-sm) 10px; border-radius: var(--radius-sm);
|
|
1699
|
+
color: var(--fg); cursor: pointer; white-space: nowrap;
|
|
1700
|
+
border: none; background: transparent; width: 100%; text-align: left;
|
|
1701
|
+
font: inherit;
|
|
1702
|
+
transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
|
|
1703
|
+
}
|
|
1704
|
+
/* hover AND the roving keyboard cursor are one visual — .is-active is the cursor */
|
|
1705
|
+
.menu__option:hover, .listbox__option:hover,
|
|
1706
|
+
.menu__option.is-active, .listbox__option.is-active { background: var(--bg-raised); }
|
|
1707
|
+
.menu__option:focus-visible, .listbox__option:focus-visible {
|
|
1708
|
+
outline: var(--focus-width) solid var(--accent); outline-offset: var(--focus-offset-inset);
|
|
1709
|
+
}
|
|
1710
|
+
.listbox__option[aria-selected="true"] { color: var(--accent); }
|
|
1711
|
+
.listbox__option[aria-selected="true"]::after { content: "✓"; margin-left: auto; color: var(--accent); }
|
|
1712
|
+
.menu__option[aria-disabled="true"], .listbox__option[aria-disabled="true"] { color: var(--fg-disabled); cursor: not-allowed; }
|
|
1713
|
+
.menu__option[aria-disabled="true"]:hover, .listbox__option[aria-disabled="true"]:hover { background: transparent; }
|
|
1714
|
+
.menu__option--danger, .listbox__option--danger { color: var(--urgent); }
|
|
1715
|
+
.menu__option--danger:hover, .menu__option--danger.is-active,
|
|
1716
|
+
.listbox__option--danger:hover, .listbox__option--danger.is-active { background: color-mix(in oklch, var(--urgent) 14%, transparent); }
|
|
1717
|
+
.menu__option > .icon, .listbox__option > .icon { color: var(--fg-secondary); flex: none; }
|
|
1718
|
+
.menu__hint, .listbox__hint { margin-left: auto; color: var(--fg-secondary); font-family: var(--font-mono); font-size: var(--t-label-xs-size); }
|
|
1719
|
+
.menu__label, .listbox__label {
|
|
1720
|
+
padding: 6px 10px 2px; font-size: var(--t-label-xs-size); letter-spacing: .08em; text-transform: uppercase;
|
|
1721
|
+
color: var(--fg-secondary); font-weight: 500; font-family: var(--font-sans);
|
|
1722
|
+
}
|
|
1723
|
+
.menu__sep, .listbox__sep { height: 1px; background: var(--border); margin: var(--s-xs) 0; border: none; }
|
|
1724
|
+
|
|
1725
|
+
/* ═══ Command palette — the signature tool surface (recipe) ═════════════
|
|
1726
|
+
A centered overlay = .palette__search header + a .listbox body, focus-trapped
|
|
1727
|
+
(ArtificerFocus.trap, Esc to close) on a .scrim. Opened on ⌘K. Surface is
|
|
1728
|
+
--bg-overlay (the token reserved for "modals, command palette"). The body
|
|
1729
|
+
is just the .listbox above — palette is composition, not a new primitive.
|
|
1730
|
+
Why .listbox, not .menu: the search input is a combobox, and ARIA permits a
|
|
1731
|
+
combobox popup of listbox / tree / grid / dialog — never menu (#174). */
|
|
1732
|
+
.palette {
|
|
1733
|
+
position: fixed; top: 12vh; left: 50%; transform: translateX(-50%);
|
|
1734
|
+
width: min(560px, 92vw); z-index: var(--z-modal);
|
|
1735
|
+
background: var(--bg-overlay); border: 1px solid var(--border);
|
|
1736
|
+
border-radius: var(--radius-lg); box-shadow: var(--shadow-overlay);
|
|
1737
|
+
overflow: hidden; animation: palette-in var(--dur-fast) var(--ease);
|
|
1738
|
+
}
|
|
1739
|
+
@keyframes palette-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
|
|
1740
|
+
@media (prefers-reduced-motion: reduce) { .palette { animation: none; } }
|
|
1741
|
+
.palette__search { display: flex; align-items: center; gap: var(--s-sm); padding: 2px 14px; border-bottom: 1px solid var(--border); }
|
|
1742
|
+
.palette__search > .icon { color: var(--fg-secondary); flex: none; }
|
|
1743
|
+
/* compensating focus ring (#175): the row's existing 1px bottom border flips to
|
|
1744
|
+
accent — the .input border-color-flip model, sized to the composed control */
|
|
1745
|
+
.palette__search:focus-within { border-bottom-color: var(--accent); }
|
|
1746
|
+
.palette__search > input {
|
|
1747
|
+
flex: 1; background: transparent; border: none; outline: none; padding: 13px 0;
|
|
1748
|
+
color: var(--fg); font-family: var(--font-mono); font-size: var(--t-body-lg-size);
|
|
1749
|
+
}
|
|
1750
|
+
.palette__search > input::placeholder { color: var(--fg-disabled); }
|
|
1751
|
+
/* The bare input outline is suppressed AND compensated (#175): the
|
|
1752
|
+
.palette__search:focus-within border-flip above carries the visible focus
|
|
1753
|
+
signal for the composed control (out-specifies input:focus-visible). */
|
|
1754
|
+
.palette__search > input:focus-visible { outline: none; }
|
|
1755
|
+
.palette .menu, .palette .listbox { max-height: 52vh; padding: var(--s-sm); }
|
|
1756
|
+
.palette__empty { padding: var(--s-lg); color: var(--fg-secondary); font-family: var(--font-mono); font-size: var(--t-body-md-size); }
|
|
1757
|
+
|
|
1758
|
+
/* ═══ Toast region — transient .notif placement layer ══════════════════
|
|
1759
|
+
The fixed, corner-anchored, stacking host where .notif cards appear
|
|
1760
|
+
TRANSIENTLY. Consumes --z-toast (the reserved top rung). The .notif is
|
|
1761
|
+
the atom; this is only WHERE it appears. ARIA is the CONSUMER'S job at
|
|
1762
|
+
insert time — CSS cannot set roles: urgent → role="alert" (assertive),
|
|
1763
|
+
attention/info → role="status" (polite), background → NO role (silent
|
|
1764
|
+
badge, never announced — it never enters the region). Lifecycle is
|
|
1765
|
+
consumer-owned JS too: info auto-dismisses (5s, pause on hover/focus);
|
|
1766
|
+
urgent + attention persist until acted on. Cap: 3 visible — overflow
|
|
1767
|
+
collapses to .toast-region__more ("+N more"), which routes to
|
|
1768
|
+
notification history; info is the only evictable tier.
|
|
1769
|
+
Spec: the Lane 1 toast-region ruling (workshop). Live demo with
|
|
1770
|
+
the correct role wiring: notifications.html. v0.15.0, contract issue 177. */
|
|
1771
|
+
.toast-region {
|
|
1772
|
+
position: fixed; z-index: var(--z-toast);
|
|
1773
|
+
display: flex; flex-direction: column; gap: var(--s-sm);
|
|
1774
|
+
width: min(380px, calc(100vw - 2 * var(--s-lg)));
|
|
1775
|
+
pointer-events: none; /* gaps don't eat clicks… */
|
|
1776
|
+
/* default: bottom-right, clearing the notch (responsive doctrine) */
|
|
1777
|
+
inset: auto max(var(--s-lg), env(safe-area-inset-right))
|
|
1778
|
+
max(var(--s-lg), env(safe-area-inset-bottom)) auto;
|
|
1779
|
+
}
|
|
1780
|
+
.toast-region > * { pointer-events: auto; } /* …the notifs do */
|
|
1781
|
+
.toast-region > .notif { box-shadow: var(--shadow-popover); }
|
|
1782
|
+
|
|
1783
|
+
.toast-region--top-right {
|
|
1784
|
+
inset: max(var(--s-lg), env(safe-area-inset-top))
|
|
1785
|
+
max(var(--s-lg), env(safe-area-inset-right)) auto auto;
|
|
1786
|
+
}
|
|
1787
|
+
.toast-region--top-left {
|
|
1788
|
+
inset: max(var(--s-lg), env(safe-area-inset-top)) auto auto
|
|
1789
|
+
max(var(--s-lg), env(safe-area-inset-left));
|
|
1790
|
+
}
|
|
1791
|
+
.toast-region--bottom-left {
|
|
1792
|
+
inset: auto auto max(var(--s-lg), env(safe-area-inset-bottom))
|
|
1793
|
+
max(var(--s-lg), env(safe-area-inset-left));
|
|
1794
|
+
}
|
|
1795
|
+
.toast-region--top-center,
|
|
1796
|
+
.toast-region--bottom-center { left: 50%; transform: translateX(-50%); }
|
|
1797
|
+
.toast-region--top-center { top: max(var(--s-lg), env(safe-area-inset-top)); bottom: auto; }
|
|
1798
|
+
.toast-region--bottom-center { bottom: max(var(--s-lg), env(safe-area-inset-bottom)); top: auto; }
|
|
1799
|
+
|
|
1800
|
+
/* entry = modal-entry motion (pattern #05): slide 8px + fade, ≤160ms */
|
|
1801
|
+
.toast-region > .notif { animation: toast-in var(--dur-fast) var(--ease); }
|
|
1802
|
+
@keyframes toast-in { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }
|
|
1803
|
+
|
|
1804
|
+
/* overflow affordance — "+N more" routes to notification history */
|
|
1805
|
+
.toast-region__more {
|
|
1806
|
+
pointer-events: auto; align-self: center;
|
|
1807
|
+
font-family: var(--font-sans); font-size: var(--t-label-sm-size); font-weight: 500;
|
|
1808
|
+
color: var(--fg-secondary); background: var(--bg-raised);
|
|
1809
|
+
border: 1px solid var(--border); border-radius: var(--radius-sm);
|
|
1810
|
+
padding: var(--s-xs) 10px; cursor: pointer;
|
|
1811
|
+
transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
|
|
1812
|
+
}
|
|
1813
|
+
.toast-region__more:hover { color: var(--fg); border-color: var(--accent); }
|
|
1814
|
+
|
|
1815
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1816
|
+
.toast-region > .notif { animation: none; }
|
|
1817
|
+
}
|
|
1818
|
+
|
|
1819
|
+
/* ═══ Pagination — jump within a counted range ═════════════════════════
|
|
1820
|
+
For ranges you can count and jump; disable at the ends. For unbounded sets
|
|
1821
|
+
prefer "load more" or cursor paging. v0.15.0. */
|
|
1822
|
+
.pagination { display: flex; align-items: center; gap: var(--s-xs); font-family: var(--font-mono); }
|
|
1823
|
+
.pagination button, .pagination a {
|
|
1824
|
+
display: inline-flex; align-items: center; justify-content: center;
|
|
1825
|
+
min-width: 32px; height: 32px; padding: 0 var(--s-sm);
|
|
1826
|
+
background: transparent; border: 1px solid transparent; border-radius: var(--radius-sm);
|
|
1827
|
+
color: var(--fg-secondary); font: inherit; font-size: var(--t-label-md-size);
|
|
1828
|
+
text-decoration: none; cursor: pointer;
|
|
1829
|
+
transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
|
|
1830
|
+
}
|
|
1831
|
+
.pagination button:hover, .pagination a:hover { color: var(--fg); background: var(--bg-raised); }
|
|
1832
|
+
.pagination button:focus-visible, .pagination a:focus-visible { outline: var(--focus-width) solid var(--accent); outline-offset: var(--focus-offset); }
|
|
1833
|
+
.pagination [aria-current="page"] { color: var(--accent); border-color: var(--accent); }
|
|
1834
|
+
.pagination button[disabled] { color: var(--fg-disabled); cursor: not-allowed; background: transparent; }
|
|
1835
|
+
.pagination__gap { color: var(--fg-disabled); padding: 0 var(--s-xs); user-select: none; } /* ellipsis between ranges */
|
|
1836
|
+
/* Pagination is nav (a11y #8): on a coarse pointer the cells take the 44px touch
|
|
1837
|
+
floor. Declared here (after the 32px base) so it out-orders the generic button
|
|
1838
|
+
escalation, which the page-earlier `.pagination button` base would otherwise win. */
|
|
1839
|
+
@media (pointer: coarse) {
|
|
1840
|
+
.pagination button, .pagination a { min-width: 44px; min-height: 44px; }
|
|
1841
|
+
}
|
|
1842
|
+
|
|
1843
|
+
/* ═══ Banner — persistent, page-level inline notice ═════════════════════
|
|
1844
|
+
A full-width band pinned in the LAYOUT (top of a page/section), NOT the
|
|
1845
|
+
transient toast-tier .notif. Use for standing conditions: "Read-only —
|
|
1846
|
+
viewing a snapshot", "2 nodes degraded", a maintenance window. Persists
|
|
1847
|
+
until the condition clears (or the user dismisses, if dismissible). Tiers
|
|
1848
|
+
reuse the status quartet — COLOR encodes the tier; texture never does.
|
|
1849
|
+
DELIBERATE divergence from the toast tier (#189): banner--info is STEEL
|
|
1850
|
+
where notif--info is accent — a persistent structural state should read
|
|
1851
|
+
calmer than a transient toast; "--info" does not imply accent here.
|
|
1852
|
+
v0.15.0. */
|
|
1853
|
+
.banner {
|
|
1854
|
+
display: flex; align-items: center; gap: var(--s-md);
|
|
1855
|
+
padding: 10px var(--s-lg);
|
|
1856
|
+
background: var(--bg-raised); border: 1px solid var(--border); border-left-width: 2px;
|
|
1857
|
+
font-family: var(--font-mono); font-size: var(--t-label-md-size); color: var(--fg); line-height: 1.5;
|
|
1858
|
+
}
|
|
1859
|
+
.banner__body { flex: 1; min-width: 0; }
|
|
1860
|
+
.banner__actions { display: flex; align-items: center; gap: var(--s-sm); flex: none; }
|
|
1861
|
+
.banner--info { border-left-color: var(--steel); background: color-mix(in oklch, var(--steel) 8%, var(--bg-raised)); }
|
|
1862
|
+
.banner--attention { border-left-color: var(--attention); background: color-mix(in oklch, var(--attention) 8%, var(--bg-raised)); }
|
|
1863
|
+
.banner--urgent { border-left-color: var(--urgent); background: color-mix(in oklch, var(--urgent) 8%, var(--bg-raised)); }
|
|
1864
|
+
.banner--success { border-left-color: var(--success); background: color-mix(in oklch, var(--success) 8%, var(--bg-raised)); }
|
|
1865
|
+
|
|
1866
|
+
/* ═══ Tree view — nested disclosure (file explorer / nested nav) ════════
|
|
1867
|
+
For nested hierarchy that accordion (flat) and sidenav (one level) don't
|
|
1868
|
+
cover. role="tree" > role="treeitem"; nested children in role="group".
|
|
1869
|
+
Indent compounds via nested .tree__group. Twisty mirrors .accordion's
|
|
1870
|
+
chevron. artificer-tree.js ships expand/collapse + arrow-key roving focus
|
|
1871
|
+
(data-tree / ArtificerTree.enhance()). Leaves (.tree__leaf) hide the
|
|
1872
|
+
twisty but keep alignment. v0.15.0. */
|
|
1873
|
+
.tree { list-style: none; margin: 0; padding: 0; font-family: var(--font-mono); font-size: var(--t-body-md-size); }
|
|
1874
|
+
.tree__group { list-style: none; margin: 0; padding-left: var(--s-md); } /* one indent step per level */
|
|
1875
|
+
.tree__row {
|
|
1876
|
+
display: flex; align-items: center; gap: var(--s-sm);
|
|
1877
|
+
min-height: 28px; padding: 2px var(--s-sm); border-radius: var(--radius-sm);
|
|
1878
|
+
color: var(--fg-secondary); cursor: pointer;
|
|
1879
|
+
transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
|
|
1880
|
+
}
|
|
1881
|
+
.tree__row:hover { background: var(--bg-raised); color: var(--fg); }
|
|
1882
|
+
/* aria-expanded / aria-selected live on the parent [role="treeitem"] (APG tree
|
|
1883
|
+
pattern), so reach the row through it — keying off .tree__row[aria-*] matches
|
|
1884
|
+
nothing (the row is a roleless div, the attrs sit on the <li>). */
|
|
1885
|
+
[role="treeitem"][aria-selected="true"] > .tree__row { background: var(--bg-raised); color: var(--accent); }
|
|
1886
|
+
/* Focus rides the roving-tabindex HOST — the [role="treeitem"] li (APG tree) —
|
|
1887
|
+
not the roleless row div, which is never focused. Suppress the host's own
|
|
1888
|
+
ring (its box spans the whole subtree, children included) and draw it on the
|
|
1889
|
+
item's first row instead. Tie-break: the global [tabindex]:focus-visible
|
|
1890
|
+
opt-in earlier in this file is the same specificity (0,2,0) — this block
|
|
1891
|
+
wins only by source order. Do not reorder. (#173) */
|
|
1892
|
+
[role="treeitem"]:focus-visible { outline: none; }
|
|
1893
|
+
[role="treeitem"]:focus-visible > .tree__row {
|
|
1894
|
+
outline: var(--focus-width) solid var(--accent);
|
|
1895
|
+
outline-offset: var(--focus-offset-inset);
|
|
1896
|
+
}
|
|
1897
|
+
.tree__twisty {
|
|
1898
|
+
flex: none; width: 14px; height: 14px; display: inline-flex; align-items: center; justify-content: center;
|
|
1899
|
+
color: var(--fg-secondary); transition: transform var(--dur-fast) var(--ease);
|
|
1900
|
+
}
|
|
1901
|
+
.tree__twisty::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); }
|
|
1902
|
+
[role="treeitem"][aria-expanded="true"] > .tree__row > .tree__twisty { transform: rotate(90deg); }
|
|
1903
|
+
.tree__row > .icon { flex: none; color: var(--fg-secondary); }
|
|
1904
|
+
.tree__leaf > .tree__twisty { visibility: hidden; } /* files have no twisty; keep alignment */
|
|
1905
|
+
|
|
1906
|
+
/* ═══ Stat card — a single KPI: label + big number + optional delta ═════
|
|
1907
|
+
The cell of a .kpi-strip. PROMOTED to core v0.15.0 (was demo-local). Delta
|
|
1908
|
+
keeps the .stat__delta(.down) naming; the change-direction × polarity rework
|
|
1909
|
+
(.delta--better/--worse) remains the separate staged value-polarity PR. */
|
|
1910
|
+
.stat { display: flex; flex-direction: column; gap: var(--s-xs); padding: var(--s-md); background: var(--bg-raised); border-radius: var(--radius-md); border: 1px solid var(--border); }
|
|
1911
|
+
.stat__label { font-family: var(--font-mono); font-size: var(--t-label-xs-size); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-secondary); }
|
|
1912
|
+
.stat__value { font-family: var(--font-mono); font-weight: 700; font-size: var(--t-headline-md-size); color: var(--fg); font-variant-numeric: tabular-nums; line-height: 1.1; }
|
|
1913
|
+
.stat__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-sm); }
|
|
1914
|
+
.stat__delta { font-family: var(--font-mono); font-size: var(--t-label-xs-size); color: var(--success); }
|
|
1915
|
+
.stat__delta.down { color: var(--urgent); }
|
|
1916
|
+
|
|
1917
|
+
/* ═══ Indeterminate-but-long progress rung (D2) ════════════════════════
|
|
1918
|
+
Deploy / slow query — long wait, nothing to count. NOT a bare indeterminate
|
|
1919
|
+
bar (that's a horizontal spinner; the voice rule refuses content-free
|
|
1920
|
+
"Loading…"). INSEPARABLE from concrete copy ("Deploying to us-east-1…",
|
|
1921
|
+
never "Deploying…"): always pair with a label. ARIA: role="progressbar" +
|
|
1922
|
+
aria-label carrying that concrete copy, and NO aria-valuenow/min/max —
|
|
1923
|
+
the missing value is what marks it indeterminate (demo: states.html).
|
|
1924
|
+
A contained burnished sweep (continuous translation, motion pattern
|
|
1925
|
+
#02 → --ease-linear). Zero new tokens. v0.15.0. */
|
|
1926
|
+
.progress--indeterminate { position: relative; }
|
|
1927
|
+
.progress--indeterminate .progress__bar {
|
|
1928
|
+
width: 35%; transition: none;
|
|
1929
|
+
animation: progress-sweep 1.6s var(--ease-linear) infinite;
|
|
1930
|
+
}
|
|
1931
|
+
@keyframes progress-sweep {
|
|
1932
|
+
from { transform: translateX(-120%); }
|
|
1933
|
+
to { transform: translateX(320%); }
|
|
1934
|
+
}
|
|
1935
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1936
|
+
/* motion suppressed → static low-opacity full track; the copy carries meaning */
|
|
1937
|
+
.progress--indeterminate .progress__bar { animation: none; width: 100%; opacity: .4; }
|
|
1938
|
+
}
|