@getvitops/generator 0.8.0 → 1.0.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/CHANGELOG.md +459 -0
- package/README.md +16 -4
- package/assets/bricks/load.php +46 -1
- package/assets/css/animation.css +12 -2
- package/assets/css/patterns/carousel.css +3 -3
- package/assets/css/patterns/code.css +2 -2
- package/assets/css/patterns/combobox.css +3 -3
- package/assets/css/patterns/comment.css +1 -1
- package/assets/css/patterns/copy.css +3 -3
- package/assets/css/patterns/details.css +27 -8
- package/assets/css/patterns/dialog.css +2 -2
- package/assets/css/patterns/drawer.css +17 -2
- package/assets/css/patterns/forms.css +11 -11
- package/assets/css/patterns/grouped.css +1 -1
- package/assets/css/patterns/icon.css +2 -2
- package/assets/css/patterns/list.css +5 -5
- package/assets/css/patterns/media.css +1 -1
- package/assets/css/patterns/nav.css +5 -5
- package/assets/css/patterns/notification.css +3 -3
- package/assets/css/patterns/scroll-based.css +1 -1
- package/assets/css/patterns/scroll-target.css +3 -3
- package/assets/css/patterns/sitenav.css +14 -14
- package/assets/css/patterns/split-link.css +4 -4
- package/assets/css/patterns/subgrid.css +62 -16
- package/assets/css/patterns/tag.css +1 -1
- package/assets/css/patterns/text-effects.css +1 -1
- package/assets/css/patterns/theme-editor.css +14 -6
- package/assets/css/patterns/tooltip.css +2 -2
- package/assets/css/patterns/tree.css +3 -3
- package/assets/css/utilities.css +5 -3
- package/assets/js/editor.js +2 -2
- package/dist/index.d.mts +565 -50
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +3337 -1301
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/schema.json +51 -9
- package/site.schema.json +149 -7
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
grid-column: 1 / -1;
|
|
63
63
|
margin-inline-start: var(--comment-indent, 2rem);
|
|
64
64
|
padding-inline-start: var(--comment-indent, 2rem);
|
|
65
|
-
border-inline-start: 2px solid var(--color-surface-muted);
|
|
65
|
+
border-inline-start: 2px solid var(--color-bg-surface-muted);
|
|
66
66
|
display: flex;
|
|
67
67
|
flex-direction: column;
|
|
68
68
|
gap: 1rem;
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
&:focus-visible {
|
|
41
|
-
outline: 2px solid var(--copy-focus-color, var(--color-
|
|
41
|
+
outline: 2px solid var(--copy-focus-color, var(--color-border-focus));
|
|
42
42
|
outline-offset: 2px;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
font-size: 0.75rem;
|
|
67
67
|
border-radius: 0.25rem;
|
|
68
68
|
white-space: nowrap;
|
|
69
|
-
background: var(--
|
|
70
|
-
color: var(--
|
|
69
|
+
background: var(--color-text-surface);
|
|
70
|
+
color: var(--color-bg-surface);
|
|
71
71
|
opacity: 0;
|
|
72
72
|
visibility: hidden;
|
|
73
73
|
transition:
|
|
@@ -37,15 +37,31 @@ details,
|
|
|
37
37
|
rotate: var(--_details-icon-rotate, 90deg);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
/**
|
|
41
|
+
* Collapse without a transition — deliberately.
|
|
42
|
+
*
|
|
43
|
+
* This carried the canonical open/close animation (`block-size: 0 → auto` with
|
|
44
|
+
* `content-visibility` under `allow-discrete`, backed by the
|
|
45
|
+
* `interpolate-size: allow-keywords` in utilities.css). In Chrome 149 that
|
|
46
|
+
* deadlocks: `content-visibility` stays `hidden`, so the content has no layout,
|
|
47
|
+
* so `auto` resolves to `0`, so the transition has nothing to run — and the
|
|
48
|
+
* disclosure never opens *at all*. Not "opens without animating": every
|
|
49
|
+
* `<details>` on the page becomes inert, which is a total content-loss bug.
|
|
50
|
+
*
|
|
51
|
+
* Verified against a bare `<details>` with only this stylesheet, and bisected:
|
|
52
|
+
* `transition: none` is the only thing that restores it. Transitioning only
|
|
53
|
+
* `block-size`, only `content-visibility`, `calc-size(auto, size)`, and the
|
|
54
|
+
* `grid-template-rows: 0fr → 1fr` technique all fail the same way.
|
|
55
|
+
*
|
|
56
|
+
* So: correctness over motion. Re-add the transition only with a live
|
|
57
|
+
* cross-browser check that a first click actually expands — a passing
|
|
58
|
+
* `@supports` query is not evidence, since the syntax is valid and supported;
|
|
59
|
+
* it's the interaction that breaks.
|
|
60
|
+
*/
|
|
40
61
|
&::details-content {
|
|
41
62
|
display: block;
|
|
42
63
|
overflow: hidden;
|
|
43
64
|
block-size: 0;
|
|
44
|
-
opacity: 0;
|
|
45
|
-
transition:
|
|
46
|
-
block-size 0.3s ease,
|
|
47
|
-
opacity 0.3s ease,
|
|
48
|
-
content-visibility 0.3s allow-discrete;
|
|
49
65
|
}
|
|
50
66
|
|
|
51
67
|
> summary + * {
|
|
@@ -62,13 +78,16 @@ details,
|
|
|
62
78
|
|
|
63
79
|
&[open]::details-content {
|
|
64
80
|
block-size: auto;
|
|
65
|
-
opacity: 1;
|
|
66
81
|
}
|
|
67
82
|
|
|
83
|
+
/* Leading marker. The default (trailing) icon uses `margin-inline-start: auto`
|
|
84
|
+
to push itself to the end; the mirrored `margin-inline-end: auto` here did
|
|
85
|
+
the same thing to everything *after* it, so the label got shoved to the
|
|
86
|
+
opposite edge and the variant read as right-aligned text. A leading marker
|
|
87
|
+
just wants both auto margins gone — `gap` on the summary does the spacing. */
|
|
68
88
|
&.details--marker-start > summary > .details-icon {
|
|
69
89
|
order: -1;
|
|
70
|
-
margin-inline
|
|
71
|
-
margin-inline-end: auto;
|
|
90
|
+
margin-inline: 0;
|
|
72
91
|
}
|
|
73
92
|
|
|
74
93
|
/* Plus/minus variant — toggle two sibling icon elements */
|
|
@@ -25,8 +25,8 @@ dialog.dialog {
|
|
|
25
25
|
border: var(--_b);
|
|
26
26
|
border-radius: var(--_br);
|
|
27
27
|
box-shadow: var(--_ds);
|
|
28
|
-
background: var(--
|
|
29
|
-
color: var(--
|
|
28
|
+
background: var(--color-bg-surface);
|
|
29
|
+
color: var(--color-text-surface);
|
|
30
30
|
max-block-size: calc(100vh - 2rem);
|
|
31
31
|
|
|
32
32
|
&::backdrop {
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
padding: var(--_p);
|
|
16
16
|
border: var(--_b);
|
|
17
17
|
box-shadow: var(--_ds);
|
|
18
|
-
background: var(--
|
|
19
|
-
color: var(--
|
|
18
|
+
background: var(--color-bg-surface);
|
|
19
|
+
color: var(--color-text-surface);
|
|
20
20
|
max-inline-size: none;
|
|
21
21
|
max-block-size: none;
|
|
22
22
|
|
|
@@ -24,6 +24,21 @@
|
|
|
24
24
|
backdrop-filter: blur(4px);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
/**
|
|
28
|
+
* Modeless — a panel you work *alongside* rather than through. Drops the
|
|
29
|
+
* scrim so the page behind stays legible, which is the whole point for a
|
|
30
|
+
* live editor or an inspector: you're watching what your edits do.
|
|
31
|
+
*
|
|
32
|
+
* Pair with `popover="manual"`. An `auto` popover light-dismisses on the
|
|
33
|
+
* first click outside — i.e. exactly the interaction a modeless panel exists
|
|
34
|
+
* to allow — and `manual` also drops Esc, so give it an explicit close
|
|
35
|
+
* control (and wire Esc yourself if the panel warrants it).
|
|
36
|
+
*/
|
|
37
|
+
&.drawer--modeless::backdrop {
|
|
38
|
+
background: none;
|
|
39
|
+
backdrop-filter: none;
|
|
40
|
+
}
|
|
41
|
+
|
|
27
42
|
&,
|
|
28
43
|
&.drawer--left {
|
|
29
44
|
inset-block: 0;
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
|
|
33
33
|
.form-group__error {
|
|
34
34
|
font-size: var(--form-error-size, 0.75rem);
|
|
35
|
-
color: var(--color-danger
|
|
35
|
+
color: var(--color-text-danger);
|
|
36
36
|
display: flex;
|
|
37
37
|
align-items: center;
|
|
38
38
|
gap: 0.25rem;
|
|
@@ -87,7 +87,7 @@ fieldset.fieldset,
|
|
|
87
87
|
border: var(--_b);
|
|
88
88
|
border-radius: var(--_br);
|
|
89
89
|
padding: var(--_p);
|
|
90
|
-
background: var(--
|
|
90
|
+
background: var(--color-bg-surface);
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
/* ── Range + colour controls ───────────────────────────────────────────────── */
|
|
@@ -95,7 +95,7 @@ fieldset.fieldset,
|
|
|
95
95
|
* natively, in both appearances, with no pseudo-element rewriting. The colour
|
|
96
96
|
* swatch only needs its chrome removed so the well fills the control box. */
|
|
97
97
|
input[type='range'] {
|
|
98
|
-
accent-color: var(--range-accent, var(--ui-primary-solid));
|
|
98
|
+
accent-color: var(--range-accent, var(--color-bg-ui-primary-solid));
|
|
99
99
|
inline-size: 100%;
|
|
100
100
|
min-inline-size: 0;
|
|
101
101
|
}
|
|
@@ -202,7 +202,7 @@ input[type='color'] {
|
|
|
202
202
|
block-size: var(--_check-size);
|
|
203
203
|
border: var(--_b);
|
|
204
204
|
border-radius: var(--_br);
|
|
205
|
-
background: var(--
|
|
205
|
+
background: var(--color-bg-surface);
|
|
206
206
|
color: #fff;
|
|
207
207
|
display: flex;
|
|
208
208
|
align-items: center;
|
|
@@ -225,8 +225,8 @@ input[type='color'] {
|
|
|
225
225
|
}
|
|
226
226
|
|
|
227
227
|
input:checked + .custom-check__box {
|
|
228
|
-
background: var(--brand-primary-solid);
|
|
229
|
-
border-color: var(--brand-primary-solid);
|
|
228
|
+
background: var(--color-bg-brand-primary-solid);
|
|
229
|
+
border-color: var(--color-bg-brand-primary-solid);
|
|
230
230
|
|
|
231
231
|
.custom-check__indicator {
|
|
232
232
|
opacity: 1;
|
|
@@ -235,7 +235,7 @@ input[type='color'] {
|
|
|
235
235
|
}
|
|
236
236
|
|
|
237
237
|
input:focus-visible + .custom-check__box {
|
|
238
|
-
outline: 2px solid var(--check-focus-color, var(--color-
|
|
238
|
+
outline: 2px solid var(--check-focus-color, var(--color-border-focus));
|
|
239
239
|
outline-offset: 2px;
|
|
240
240
|
}
|
|
241
241
|
|
|
@@ -288,7 +288,7 @@ input[type='color'] {
|
|
|
288
288
|
inline-size: var(--_switch-width);
|
|
289
289
|
block-size: var(--_switch-height);
|
|
290
290
|
border-radius: var(--br-switch-track, var(--br-pill, 999px));
|
|
291
|
-
background: var(--color-surface-muted);
|
|
291
|
+
background: var(--color-bg-surface-muted);
|
|
292
292
|
transition: background-color 0.2s ease;
|
|
293
293
|
}
|
|
294
294
|
|
|
@@ -306,7 +306,7 @@ input[type='color'] {
|
|
|
306
306
|
}
|
|
307
307
|
|
|
308
308
|
input:checked + .switch__track {
|
|
309
|
-
background: var(--brand-primary-solid);
|
|
309
|
+
background: var(--color-bg-brand-primary-solid);
|
|
310
310
|
|
|
311
311
|
.switch__thumb {
|
|
312
312
|
inset-inline-start: calc(100% - var(--_switch-thumb-size) - 2px);
|
|
@@ -314,7 +314,7 @@ input[type='color'] {
|
|
|
314
314
|
}
|
|
315
315
|
|
|
316
316
|
input:focus-visible + .switch__track {
|
|
317
|
-
outline: 2px solid var(--switch-focus-color, var(--color-
|
|
317
|
+
outline: 2px solid var(--switch-focus-color, var(--color-border-focus));
|
|
318
318
|
outline-offset: 2px;
|
|
319
319
|
}
|
|
320
320
|
|
|
@@ -360,7 +360,7 @@ select.custom-select {
|
|
|
360
360
|
cursor: pointer;
|
|
361
361
|
|
|
362
362
|
&:focus-visible {
|
|
363
|
-
outline: 2px solid var(--select-focus-color, var(--color-
|
|
363
|
+
outline: 2px solid var(--select-focus-color, var(--color-border-focus));
|
|
364
364
|
outline-offset: 2px;
|
|
365
365
|
}
|
|
366
366
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
--_bs: var(--bs, solid);
|
|
10
10
|
border-width: var(--_bw);
|
|
11
11
|
border-style: var(--_bs);
|
|
12
|
-
border-color: var(--bc, var(--color-surface
|
|
12
|
+
border-color: var(--bc, var(--color-border-surface, currentColor));
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
/* ── Group — collapse border-radius (+ shared borders) across direct children ─
|
|
@@ -57,11 +57,11 @@
|
|
|
57
57
|
transition: background-color 0.15s ease;
|
|
58
58
|
|
|
59
59
|
&:hover {
|
|
60
|
-
background: var(--color-surface-muted);
|
|
60
|
+
background: var(--color-bg-surface-muted);
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
&:focus-visible {
|
|
64
|
-
outline: 2px solid var(--icon-button-focus-color, var(--color-
|
|
64
|
+
outline: 2px solid var(--icon-button-focus-color, var(--color-border-focus));
|
|
65
65
|
outline-offset: 2px;
|
|
66
66
|
}
|
|
67
67
|
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
&.list--divided .list__item + .list__item {
|
|
65
|
-
border-block-start: 1px solid var(--list-divider-color, var(--color-surface-muted));
|
|
65
|
+
border-block-start: 1px solid var(--list-divider-color, var(--color-bg-surface-muted));
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
&.list--bordered {
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
font-size: 0.75em;
|
|
111
111
|
padding: 0.125rem 0.375rem;
|
|
112
112
|
border-radius: var(--br-count, var(--br-pill, 999px));
|
|
113
|
-
background: var(--color-surface-muted);
|
|
113
|
+
background: var(--color-bg-surface-muted);
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
.facet-list__item--active .facet-list__name {
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
border-radius: var(--_br);
|
|
141
141
|
|
|
142
142
|
&:focus {
|
|
143
|
-
outline: 2px solid var(--filter-focus-color, var(--color-
|
|
143
|
+
outline: 2px solid var(--filter-focus-color, var(--color-border-focus));
|
|
144
144
|
outline-offset: 2px;
|
|
145
145
|
}
|
|
146
146
|
}
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
.filtered-list__match {
|
|
186
186
|
padding-inline: 0.125rem;
|
|
187
187
|
border-radius: 0.125rem;
|
|
188
|
-
background: var(--color-warning-muted);
|
|
188
|
+
background: var(--color-bg-warning-muted);
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
|
|
@@ -246,7 +246,7 @@
|
|
|
246
246
|
}
|
|
247
247
|
|
|
248
248
|
&:focus-within {
|
|
249
|
-
outline: 2px solid var(--tag-list-focus-color, var(--color-
|
|
249
|
+
outline: 2px solid var(--tag-list-focus-color, var(--color-border-focus));
|
|
250
250
|
outline-offset: 2px;
|
|
251
251
|
}
|
|
252
252
|
}
|
|
@@ -13,7 +13,7 @@ nav:has(> .nav-items) {
|
|
|
13
13
|
|
|
14
14
|
.nav-header {
|
|
15
15
|
padding-bottom: 1rem;
|
|
16
|
-
border-bottom: 1px solid var(--nav-border-color, var(--color-surface-muted));
|
|
16
|
+
border-bottom: 1px solid var(--nav-border-color, var(--color-bg-surface-muted));
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.nav-items {
|
|
@@ -49,7 +49,7 @@ nav:has(> .nav-items) {
|
|
|
49
49
|
flex-direction: column;
|
|
50
50
|
gap: 1rem;
|
|
51
51
|
padding-top: 1rem;
|
|
52
|
-
border-top: 1px solid var(--nav-border-color, var(--color-surface-muted));
|
|
52
|
+
border-top: 1px solid var(--nav-border-color, var(--color-bg-surface-muted));
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
/* ── Dropdown submenu ─────────────────────────────────────────────────────── */
|
|
@@ -106,7 +106,7 @@ nav:has(> .nav-items) {
|
|
|
106
106
|
border-radius: 0.375rem;
|
|
107
107
|
|
|
108
108
|
&:hover {
|
|
109
|
-
background-color: var(--color-surface-muted);
|
|
109
|
+
background-color: var(--color-bg-surface-muted);
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
}
|
|
@@ -131,8 +131,8 @@ nav:has(> .nav-items) {
|
|
|
131
131
|
inset: 0;
|
|
132
132
|
height: 100dvh;
|
|
133
133
|
width: 100%;
|
|
134
|
-
background: var(--
|
|
135
|
-
color: var(--
|
|
134
|
+
background: var(--color-bg-surface);
|
|
135
|
+
color: var(--color-text-surface);
|
|
136
136
|
opacity: 0;
|
|
137
137
|
translate: -100%;
|
|
138
138
|
transition-timing-function: var(--interact-easing, ease);
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
border: var(--_b);
|
|
19
19
|
border-radius: var(--_br);
|
|
20
20
|
box-shadow: var(--_ds);
|
|
21
|
-
background: var(--
|
|
22
|
-
color: var(--
|
|
21
|
+
background: var(--color-bg-surface);
|
|
22
|
+
color: var(--color-text-surface);
|
|
23
23
|
animation: notification-enter 0.3s ease;
|
|
24
24
|
|
|
25
25
|
&.notification--exiting {
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
inset-block-end: 0;
|
|
78
78
|
inset-inline: 0;
|
|
79
79
|
block-size: 3px;
|
|
80
|
-
background: var(--brand-primary-solid);
|
|
80
|
+
background: var(--color-bg-brand-primary-solid);
|
|
81
81
|
border-radius: 0 0 var(--_br) var(--_br);
|
|
82
82
|
transform-origin: left;
|
|
83
83
|
animation: notification-progress var(--notification-duration, 5s) linear forwards;
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
|
|
124
124
|
.scroll-progress__bar {
|
|
125
125
|
block-size: 100%;
|
|
126
|
-
background: var(--scroll-progress-color, var(--brand-primary-solid));
|
|
126
|
+
background: var(--scroll-progress-color, var(--color-bg-brand-primary-solid));
|
|
127
127
|
transform-origin: left;
|
|
128
128
|
animation: scroll-progress-grow linear;
|
|
129
129
|
animation-timeline: scroll(root);
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
(deferred.ts) on engines without `scroll-target-group` support. */
|
|
19
19
|
.scroll-target-group a:target-current,
|
|
20
20
|
.scroll-target-group a.is-current {
|
|
21
|
-
color: var(--scroll-target-active-color, var(--brand-primary-solid));
|
|
21
|
+
color: var(--scroll-target-active-color, var(--color-bg-brand-primary-solid));
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
.scroll-target-group--indicator a {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
.scroll-target-group--bar a:target-current::before,
|
|
48
48
|
.scroll-target-group--indicator a.is-current::before,
|
|
49
49
|
.scroll-target-group--bar a.is-current::before {
|
|
50
|
-
background-color: var(--scroll-target-active-color, var(--brand-primary-solid));
|
|
50
|
+
background-color: var(--scroll-target-active-color, var(--color-bg-brand-primary-solid));
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
.scroll-target-group--bar a {
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
|
|
108
108
|
.toc-sidebar a:target-current,
|
|
109
109
|
.toc-sidebar a.is-current {
|
|
110
|
-
color: var(--scroll-target-active-color, var(--brand-primary-solid));
|
|
110
|
+
color: var(--scroll-target-active-color, var(--color-bg-brand-primary-solid));
|
|
111
111
|
font-weight: 500;
|
|
112
112
|
}
|
|
113
113
|
|
|
@@ -47,11 +47,11 @@
|
|
|
47
47
|
border-radius: var(--br-control, 0.375rem);
|
|
48
48
|
|
|
49
49
|
&:hover {
|
|
50
|
-
background: var(--color-surface-muted);
|
|
50
|
+
background: var(--color-bg-surface-muted);
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
&:focus-visible {
|
|
54
|
-
outline: 2px solid var(--sitenav-focus-color, var(--color-
|
|
54
|
+
outline: 2px solid var(--sitenav-focus-color, var(--color-border-focus));
|
|
55
55
|
outline-offset: 2px;
|
|
56
56
|
}
|
|
57
57
|
}
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
max-inline-size: 100dvw;
|
|
74
74
|
padding: 1.5rem;
|
|
75
75
|
padding-block-start: 3.5rem; /* clearance for the close button */
|
|
76
|
-
background: var(--
|
|
77
|
-
color: var(--
|
|
76
|
+
background: var(--color-bg-surface);
|
|
77
|
+
color: var(--color-text-surface);
|
|
78
78
|
border: none;
|
|
79
79
|
box-shadow: var(--ds-panel);
|
|
80
80
|
overflow-y: auto;
|
|
@@ -149,11 +149,11 @@
|
|
|
149
149
|
border-radius: var(--br-control, 0.375rem);
|
|
150
150
|
|
|
151
151
|
&:hover {
|
|
152
|
-
background: var(--color-surface-muted);
|
|
152
|
+
background: var(--color-bg-surface-muted);
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
&:focus-visible {
|
|
156
|
-
outline: 2px solid var(--sitenav-focus-color, var(--color-
|
|
156
|
+
outline: 2px solid var(--sitenav-focus-color, var(--color-border-focus));
|
|
157
157
|
outline-offset: 2px;
|
|
158
158
|
}
|
|
159
159
|
}
|
|
@@ -280,8 +280,8 @@
|
|
|
280
280
|
min-inline-size: 13rem;
|
|
281
281
|
padding: 0.5rem;
|
|
282
282
|
overflow: visible;
|
|
283
|
-
background: var(--
|
|
284
|
-
color: var(--
|
|
283
|
+
background: var(--color-bg-surface);
|
|
284
|
+
color: var(--color-text-surface);
|
|
285
285
|
border: var(--b-panel);
|
|
286
286
|
border-radius: var(--br-panel);
|
|
287
287
|
box-shadow: var(--ds-panel);
|
|
@@ -366,8 +366,8 @@
|
|
|
366
366
|
min-inline-size: 13rem;
|
|
367
367
|
padding: 0.5rem;
|
|
368
368
|
overflow: visible;
|
|
369
|
-
background: var(--
|
|
370
|
-
color: var(--
|
|
369
|
+
background: var(--color-bg-surface);
|
|
370
|
+
color: var(--color-text-surface);
|
|
371
371
|
border: var(--b-panel);
|
|
372
372
|
border-radius: var(--br-panel);
|
|
373
373
|
box-shadow: var(--ds-panel);
|
|
@@ -453,8 +453,8 @@
|
|
|
453
453
|
min-inline-size: 13rem;
|
|
454
454
|
padding: 0.5rem;
|
|
455
455
|
overflow: visible;
|
|
456
|
-
background: var(--
|
|
457
|
-
color: var(--
|
|
456
|
+
background: var(--color-bg-surface);
|
|
457
|
+
color: var(--color-text-surface);
|
|
458
458
|
border: var(--b-panel);
|
|
459
459
|
border-radius: var(--br-panel);
|
|
460
460
|
box-shadow: var(--ds-panel);
|
|
@@ -540,8 +540,8 @@
|
|
|
540
540
|
min-inline-size: 13rem;
|
|
541
541
|
padding: 0.5rem;
|
|
542
542
|
overflow: visible;
|
|
543
|
-
background: var(--
|
|
544
|
-
color: var(--
|
|
543
|
+
background: var(--color-bg-surface);
|
|
544
|
+
color: var(--color-text-surface);
|
|
545
545
|
border: var(--b-panel);
|
|
546
546
|
border-radius: var(--br-panel);
|
|
547
547
|
box-shadow: var(--ds-panel);
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
transition: background-color 0.15s ease;
|
|
39
39
|
|
|
40
40
|
&:hover {
|
|
41
|
-
background: var(--color-surface-muted);
|
|
41
|
+
background: var(--color-bg-surface-muted);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
&:focus-visible {
|
|
45
|
-
outline: 2px solid var(--split-link-focus-color, var(--color-
|
|
45
|
+
outline: 2px solid var(--split-link-focus-color, var(--color-border-focus));
|
|
46
46
|
outline-offset: 2px;
|
|
47
47
|
}
|
|
48
48
|
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
border: var(--_b);
|
|
72
72
|
border-radius: var(--_br);
|
|
73
73
|
box-shadow: var(--_ds);
|
|
74
|
-
background: var(--
|
|
75
|
-
color: var(--
|
|
74
|
+
background: var(--color-bg-surface);
|
|
75
|
+
color: var(--color-text-surface);
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
/* Top-layer popover: anchored + placed via position-area. */
|
|
@@ -3,51 +3,97 @@
|
|
|
3
3
|
* Consumes the generated token cascade (src/css/generated/tokens.css).
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
/* ── Subgrid — content-aligned cards/tables via CSS subgrid
|
|
6
|
+
/* ── Subgrid — content-aligned cards/tables via CSS subgrid ────────────────────
|
|
7
|
+
*
|
|
8
|
+
* Each item spans `--subgrid-row-span` row tracks of the parent and re-declares
|
|
9
|
+
* them with `grid-template-rows: subgrid`, so the tranches inside every item —
|
|
10
|
+
* head, body, footer — land on the same row lines no matter how much content
|
|
11
|
+
* each one holds.
|
|
12
|
+
*
|
|
13
|
+
* <ul class="subgrid" style="--subgrid-cols: 3; --subgrid-row-span: 3">
|
|
14
|
+
*
|
|
15
|
+
* Public custom properties:
|
|
16
|
+
* --subgrid-cols columns (default 3)
|
|
17
|
+
* --subgrid-row-span row tracks each item spans, i.e. tranches per item (2)
|
|
18
|
+
* --subgrid-gap the grid gap — between columns, and between tranches (1.5rem)
|
|
19
|
+
* --subgrid-row-gap EXTRA space between wrapped rows of items (0); see below
|
|
20
|
+
*/
|
|
7
21
|
.subgrid {
|
|
8
|
-
--
|
|
9
|
-
--
|
|
10
|
-
--
|
|
22
|
+
--_cols: var(--subgrid-cols, 3);
|
|
23
|
+
--_row-span: var(--subgrid-row-span, 2);
|
|
24
|
+
--_gap: var(--subgrid-gap, 1.5rem);
|
|
25
|
+
--_row-gap: var(--subgrid-row-gap, 0px);
|
|
11
26
|
|
|
12
27
|
display: grid;
|
|
13
|
-
grid-template-columns: repeat(var(--
|
|
14
|
-
gap: var(--
|
|
28
|
+
grid-template-columns: repeat(var(--_cols), 1fr);
|
|
29
|
+
gap: var(--_gap);
|
|
15
30
|
|
|
16
31
|
> * {
|
|
17
|
-
grid-row: span var(--
|
|
32
|
+
grid-row: span var(--_row-span);
|
|
18
33
|
display: grid;
|
|
19
34
|
grid-template-rows: subgrid;
|
|
20
35
|
}
|
|
21
36
|
|
|
37
|
+
/* Spacing between items is the grid's job, not the flow's — neutralise the
|
|
38
|
+
`.rhythm :where(ul, ol) > li + li` margin, which reaches into any list
|
|
39
|
+
inside a prose container and outweighs `> *` on specificity. */
|
|
40
|
+
&:is(ul, ol) > li + li {
|
|
41
|
+
margin-block-start: 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* The grid's own row gap is the gap between an item's *tranches*, so it can't
|
|
45
|
+
also be the gap between *rows of items* — items past the first row take an
|
|
46
|
+
extra margin instead. Computed in CSS rather than from a server-rendered
|
|
47
|
+
index because --_cols can change in a media query. Guarded the same way as
|
|
48
|
+
.stagger (animation.css): sibling-index() lacks only Firefox as of 2026,
|
|
49
|
+
and where it's missing the margin stays 0 and rows fall back to the grid
|
|
50
|
+
gap, rather than producing an invalid margin. The second selector repeats
|
|
51
|
+
the rule at the specificity rhythm forces above. */
|
|
52
|
+
@supports (--x: sibling-index()) {
|
|
53
|
+
> *,
|
|
54
|
+
&:is(ul, ol) > li + li {
|
|
55
|
+
--_row-index: round(down, calc((sibling-index() - 1) / var(--_cols)), 1);
|
|
56
|
+
margin-block-start: calc(clamp(0, var(--_row-index), 1) * var(--_row-gap));
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* Markerless when it's a list — a subgrid of cards is a list of things, and
|
|
61
|
+
the markers would sit in the gutter. */
|
|
62
|
+
&:is(ul, ol) {
|
|
63
|
+
list-style: none;
|
|
64
|
+
margin: 0;
|
|
65
|
+
padding: 0;
|
|
66
|
+
}
|
|
67
|
+
|
|
22
68
|
&.subgrid-cols-1 {
|
|
23
|
-
--
|
|
69
|
+
--_cols: 1;
|
|
24
70
|
}
|
|
25
71
|
&.subgrid-cols-2 {
|
|
26
|
-
--
|
|
72
|
+
--_cols: 2;
|
|
27
73
|
}
|
|
28
74
|
&.subgrid-cols-3 {
|
|
29
|
-
--
|
|
75
|
+
--_cols: 3;
|
|
30
76
|
}
|
|
31
77
|
&.subgrid-cols-4 {
|
|
32
|
-
--
|
|
78
|
+
--_cols: 4;
|
|
33
79
|
}
|
|
34
80
|
|
|
35
81
|
&.subgrid-rows-2 {
|
|
36
|
-
--
|
|
82
|
+
--_row-span: 2;
|
|
37
83
|
}
|
|
38
84
|
&.subgrid-rows-3 {
|
|
39
|
-
--
|
|
85
|
+
--_row-span: 3;
|
|
40
86
|
}
|
|
41
87
|
&.subgrid-rows-4 {
|
|
42
|
-
--
|
|
88
|
+
--_row-span: 4;
|
|
43
89
|
}
|
|
44
90
|
|
|
45
91
|
&.subgrid-responsive {
|
|
46
92
|
@media (width < 60rem) {
|
|
47
|
-
--
|
|
93
|
+
--_cols: min(var(--subgrid-cols, 3), 2);
|
|
48
94
|
}
|
|
49
95
|
@media (width < 40rem) {
|
|
50
|
-
--
|
|
96
|
+
--_cols: 1;
|
|
51
97
|
}
|
|
52
98
|
}
|
|
53
99
|
}
|
|
@@ -225,7 +225,7 @@
|
|
|
225
225
|
|
|
226
226
|
/* ── Highlight sweep ──────────────────────────────────────────────────────── */
|
|
227
227
|
.text-highlight {
|
|
228
|
-
--_highlight-color: var(--text-highlight-color, var(--color-warning-muted));
|
|
228
|
+
--_highlight-color: var(--text-highlight-color, var(--color-bg-warning-muted));
|
|
229
229
|
--_highlight-duration: var(--text-highlight-duration, 0.5s);
|
|
230
230
|
--_highlight-pad-block: var(--text-highlight-pad-block, 0.1em);
|
|
231
231
|
--_highlight-pad-inline: var(--text-highlight-pad-inline, 0);
|