@brignano/design 0.13.0 → 0.15.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/DESIGN.md +164 -34
- package/README.md +51 -4
- package/components.css +249 -249
- package/controls.css +238 -238
- package/decisions/0001-cobalt.md +1 -1
- package/decisions/0008-cobalt-hue-256.md +1 -1
- package/decisions/0014-identity.md +1 -1
- package/decisions/0015-white-label-on-cobalt.md +1 -1
- package/decisions/0017-product-identity.md +1 -1
- package/decisions/0019-house-theme-shell.md +51 -0
- package/decisions/0020-kits-opt-in.md +56 -0
- package/decisions/0021-ab-logo.md +29 -0
- package/decisions/README.md +3 -0
- package/kits/larch.css +125 -0
- package/kits/ledger.css +121 -0
- package/kits/split.css +123 -0
- package/logo/mark.svg +4 -4
- package/logo/paths.mjs +14 -11
- package/logo/tile-180.png +0 -0
- package/logo/tile-512.png +0 -0
- package/logo/tile.svg +3 -3
- package/package.json +9 -1
- package/product-page.css +82 -82
- package/scripts/colour.mjs +42 -0
- package/scripts/theme.mjs +190 -0
- package/tailwind.css +13 -20
- package/templates/app-shell.css +15 -15
- package/templates/article.css +26 -26
- package/templates/changelog.css +9 -9
- package/templates/email.html +3 -3
- package/templates/error.css +7 -7
- package/templates/legal.css +11 -11
- package/templates/settings.css +9 -9
- package/themes/driftwood.css +109 -0
- package/themes/driftwood.theme +5 -0
- package/themes/guidebook.css +104 -0
- package/themes/guidebook.theme +5 -0
- package/themes/homelab.css +101 -0
- package/themes/homelab.theme +2 -0
- package/themes/receipts.css +101 -0
- package/themes/receipts.theme +2 -0
- package/themes/sites.css +106 -0
- package/themes/sites.theme +7 -0
- package/tokens/base.css +37 -0
- package/tokens/chart.json +145 -0
- package/tokens/color.json +840 -0
- package/tokens/component.json +75 -0
- package/tokens/head.css +84 -0
- package/tokens/kits/larch.json +255 -0
- package/tokens/kits/ledger.json +247 -0
- package/tokens/kits/split.json +247 -0
- package/tokens/motion.json +38 -0
- package/tokens/names.d.ts +246 -0
- package/tokens/shape.json +56 -0
- package/tokens/space.json +99 -0
- package/tokens/tailwind.json +343 -0
- package/tokens/type.json +206 -0
- package/tokens.chart.css +23 -23
- package/tokens.css +278 -136
package/controls.css
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
.btn-block fills its row. Works the same on <button> and <a>.
|
|
36
36
|
State comes from attributes:
|
|
37
37
|
- disabled, or aria-disabled="true" on a link or a button that must stay
|
|
38
|
-
focusable: neutral --
|
|
38
|
+
focusable: neutral --disabled and --disabled-ink, never opacity, no hover;
|
|
39
39
|
- aria-busy="true": the label hides behind a spinner and the button keeps
|
|
40
40
|
its width. Your script sets it and ignores clicks while it is set.
|
|
41
41
|
.link is the inline link for running text. */
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
display: inline-flex;
|
|
46
46
|
align-items: center;
|
|
47
47
|
justify-content: center;
|
|
48
|
-
gap: var(--
|
|
48
|
+
gap: var(--space-2);
|
|
49
49
|
min-height: 40px;
|
|
50
|
-
padding: 0 var(--
|
|
50
|
+
padding: 0 var(--space-4);
|
|
51
51
|
font: inherit;
|
|
52
52
|
font-size: var(--text-sm);
|
|
53
53
|
font-weight: var(--weight-medium);
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
border-radius: var(--radius-control);
|
|
62
62
|
background: transparent;
|
|
63
63
|
color: var(--ink);
|
|
64
|
-
transition: background-color var(--
|
|
64
|
+
transition: background-color var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease), scale var(--duration-fast) var(--ease);
|
|
65
65
|
}
|
|
66
66
|
/* Pressing a button answers the press (ADR-0015): it settles by 2%. Not on a
|
|
67
67
|
disabled or busy one, and tokens.css makes it instant under reduced motion. */
|
|
@@ -70,18 +70,18 @@
|
|
|
70
70
|
.btn:active:not(:disabled, [aria-disabled='true'], [aria-busy='true']) { scale: none; }
|
|
71
71
|
}
|
|
72
72
|
.btn > svg { flex: none; width: 1.25em; height: 1.25em; }
|
|
73
|
-
.btn:focus-visible { outline: 2px solid var(--
|
|
73
|
+
.btn:focus-visible { outline: 2px solid var(--action-ink); outline-offset: 2px; }
|
|
74
74
|
|
|
75
75
|
.btn:hover, .btn-secondary:hover { background: var(--surface-hover); }
|
|
76
76
|
.btn:active, .btn-secondary:active { background: var(--surface-active); }
|
|
77
77
|
.btn-secondary { border-color: var(--line-control); background: transparent; color: var(--ink); }
|
|
78
78
|
|
|
79
|
-
.btn-primary { border-color: transparent; background: var(--
|
|
80
|
-
.btn-primary:hover { background: var(--
|
|
81
|
-
.btn-primary:active { background: var(--
|
|
79
|
+
.btn-primary { border-color: transparent; background: var(--action); color: var(--on-action); }
|
|
80
|
+
.btn-primary:hover { background: var(--action-hover); }
|
|
81
|
+
.btn-primary:active { background: var(--action-pressed); }
|
|
82
82
|
|
|
83
|
-
.btn-ghost { border-color: transparent; background: transparent; color: var(--
|
|
84
|
-
.btn-ghost:is(:hover, :active) { background: var(--
|
|
83
|
+
.btn-ghost { border-color: transparent; background: transparent; color: var(--action-ink); }
|
|
84
|
+
.btn-ghost:is(:hover, :active) { background: var(--action-surface); }
|
|
85
85
|
|
|
86
86
|
/* Danger has its own fills (--danger-fill…), not the state hue: in dark
|
|
87
87
|
--danger is a pale rust meant to be read, the button a deep one meant
|
|
@@ -90,8 +90,8 @@
|
|
|
90
90
|
.btn-danger:hover { background: var(--danger-fill-hover); }
|
|
91
91
|
.btn-danger:active { background: var(--danger-fill-pressed); }
|
|
92
92
|
|
|
93
|
-
.btn-sm { min-height: 32px; padding: 0 var(--
|
|
94
|
-
.btn-lg { min-height: 48px; padding: 0 var(--
|
|
93
|
+
.btn-sm { min-height: 32px; padding: 0 var(--space-3); font-size: var(--text-xs); line-height: 16px; }
|
|
94
|
+
.btn-lg { min-height: 48px; padding: 0 var(--space-5); font-size: var(--text-base); line-height: 24px; }
|
|
95
95
|
.btn-icon { aspect-ratio: 1; padding: 0; }
|
|
96
96
|
.btn-block { display: flex; width: 100%; }
|
|
97
97
|
|
|
@@ -100,8 +100,8 @@
|
|
|
100
100
|
check.mjs exempts exactly this pair on :disabled / aria-disabled rules. */
|
|
101
101
|
.btn:is(:disabled, [aria-disabled='true']) {
|
|
102
102
|
border-color: transparent;
|
|
103
|
-
background: var(--
|
|
104
|
-
color: var(--
|
|
103
|
+
background: var(--disabled);
|
|
104
|
+
color: var(--disabled-ink);
|
|
105
105
|
cursor: not-allowed;
|
|
106
106
|
}
|
|
107
107
|
|
|
@@ -124,9 +124,9 @@
|
|
|
124
124
|
/* Shared with .spinner (#59). */
|
|
125
125
|
@keyframes spinner-spin { to { transform: rotate(1turn); } }
|
|
126
126
|
|
|
127
|
-
.link { color: var(--
|
|
128
|
-
.link:hover { color: var(--
|
|
129
|
-
.link:focus-visible { outline: 2px solid var(--
|
|
127
|
+
.link { color: var(--action-ink); text-decoration: underline; text-underline-offset: 3px; border-radius: 2px; }
|
|
128
|
+
.link:hover { color: var(--action-ink-hover); }
|
|
129
|
+
.link:focus-visible { outline: 2px solid var(--action-ink); outline-offset: 2px; }
|
|
130
130
|
|
|
131
131
|
@media (pointer: coarse) {
|
|
132
132
|
.btn:not(.btn-lg) { min-height: 44px; }
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
border-radius: var(--radius-control);
|
|
178
178
|
background-color: var(--card);
|
|
179
179
|
color: var(--ink);
|
|
180
|
-
transition: border-color var(--
|
|
180
|
+
transition: border-color var(--duration-fast) var(--ease);
|
|
181
181
|
}
|
|
182
182
|
/* At least 16px, so phones don't zoom in on focus (the tool tier's base is 15px). */
|
|
183
183
|
.field :is(input:where(:not([type='checkbox'], [type='radio'], [type='range'], [type='color'], [type='file'], [type='hidden'], [type='submit'], [type='button'], [type='reset'], [type='image'])), textarea, select) { padding: 7px 12px; font: max(1rem, var(--text-base)) / 24px var(--sans); }
|
|
@@ -198,7 +198,7 @@
|
|
|
198
198
|
|
|
199
199
|
/* Hover darkens the edge: --line-strong would drop it under 3:1 (DESIGN.md §4). */
|
|
200
200
|
.field :is(input:where(:not([type='checkbox'], [type='radio'], [type='range'], [type='color'], [type='file'], [type='hidden'], [type='submit'], [type='button'], [type='reset'], [type='image'])), textarea, select):hover, .field-affix:hover { border-color: var(--ink-soft); }
|
|
201
|
-
.field :is(input:where(:not([type='checkbox'], [type='radio'], [type='range'], [type='color'], [type='file'], [type='hidden'], [type='submit'], [type='button'], [type='reset'], [type='image'])), textarea, select):focus-visible { outline: 2px solid var(--
|
|
201
|
+
.field :is(input:where(:not([type='checkbox'], [type='radio'], [type='range'], [type='color'], [type='file'], [type='hidden'], [type='submit'], [type='button'], [type='reset'], [type='image'])), textarea, select):focus-visible { outline: 2px solid var(--action-ink); outline-offset: 2px; }
|
|
202
202
|
|
|
203
203
|
.field [aria-invalid='true'], .field [aria-invalid='true']:hover,
|
|
204
204
|
.field-affix:has([aria-invalid='true']) { border-color: var(--danger); background-color: var(--card); }
|
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
|
|
212
212
|
/* Affix: the wrapper draws the edge and the focus ring; the control inside
|
|
213
213
|
goes bare. */
|
|
214
|
-
.field-affix { display: flex; align-items: center; gap: var(--
|
|
214
|
+
.field-affix { display: flex; align-items: center; gap: var(--space-2); padding: 0 12px; font-size: max(1rem, var(--text-base)); color: var(--ink-soft); }
|
|
215
215
|
.field-affix > svg { flex: none; width: 18px; height: 18px; }
|
|
216
216
|
.field .field-affix > :is(input, select) {
|
|
217
217
|
flex: 1;
|
|
@@ -226,7 +226,7 @@
|
|
|
226
226
|
}
|
|
227
227
|
.field .field-affix > :disabled { color: var(--ink-soft); }
|
|
228
228
|
.field .field-affix > select { padding-right: 24px; background-position: calc(100% - 7px) 50%, calc(100% - 2px) 50%; }
|
|
229
|
-
.field-affix:has(:focus-visible) { outline: 2px solid var(--
|
|
229
|
+
.field-affix:has(:focus-visible) { outline: 2px solid var(--action-ink); outline-offset: 2px; }
|
|
230
230
|
|
|
231
231
|
@media (pointer: coarse) {
|
|
232
232
|
.field :is(input:where(:not([type='checkbox'], [type='radio'], [type='range'], [type='color'], [type='file'], [type='hidden'], [type='submit'], [type='button'], [type='reset'], [type='image'])), select), .field-affix { min-height: 44px; }
|
|
@@ -252,7 +252,7 @@
|
|
|
252
252
|
</div>
|
|
253
253
|
</fieldset>
|
|
254
254
|
Inside .choice, checkboxes and radios are drawn from tokens (issue 118): an
|
|
255
|
-
--line-control box on --card, filled --
|
|
255
|
+
--line-control box on --card, filled --action with an --on-action mark when
|
|
256
256
|
checked, a dash when indeterminate. The tick is the row's ::before laid
|
|
257
257
|
over the box, because an <input> can't reliably hold a pseudo-element.
|
|
258
258
|
Outside .choice they stay native and take accent-color (DESIGN.md §4). .switch goes on <input type="checkbox" role="switch">,
|
|
@@ -260,10 +260,10 @@
|
|
|
260
260
|
checkbox. .segmented is a row of radios drawn as one control: keep the
|
|
261
261
|
real radios inside it, so arrow keys and the group name come for free. */
|
|
262
262
|
@layer brignano.components {
|
|
263
|
-
.choice-group { display: grid; gap: var(--
|
|
263
|
+
.choice-group { display: grid; gap: var(--space-2); min-width: 0; margin: 0; padding: 0; border: 0; }
|
|
264
264
|
.choice-group > legend { margin: 0 0 6px; padding: 0; font-size: var(--text-sm); font-weight: var(--weight-medium); line-height: var(--leading-ui); color: var(--ink); }
|
|
265
265
|
|
|
266
|
-
.choice { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--
|
|
266
|
+
.choice { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-2); align-items: start; line-height: 1.5; color: var(--ink); cursor: pointer; }
|
|
267
267
|
.choice > input { grid-column: 1; font: inherit; cursor: inherit; }
|
|
268
268
|
.choice > input:not(.switch) { width: 18px; height: 18px; margin: calc((1.5em - 18px) / 2) 0 0; }
|
|
269
269
|
.choice > input:is([type='checkbox'], [type='radio']):not(.switch) {
|
|
@@ -281,13 +281,13 @@
|
|
|
281
281
|
.choice > input:is([type='checkbox'], [type='radio']):not(.switch):not(:disabled):hover { border-color: var(--ink-soft); }
|
|
282
282
|
.choice > input:is([type='checkbox']:is(:checked, :indeterminate), [type='radio']:checked):not(.switch) {
|
|
283
283
|
border-color: transparent;
|
|
284
|
-
background-color: var(--
|
|
285
|
-
color: var(--on-
|
|
284
|
+
background-color: var(--action);
|
|
285
|
+
color: var(--on-action);
|
|
286
286
|
}
|
|
287
|
-
.choice > input:is([type='checkbox']:is(:checked, :indeterminate), [type='radio']:checked):not(.switch):not(:disabled):hover { background-color: var(--
|
|
287
|
+
.choice > input:is([type='checkbox']:is(:checked, :indeterminate), [type='radio']:checked):not(.switch):not(:disabled):hover { background-color: var(--action-hover); }
|
|
288
288
|
.choice > input[type='radio']:checked { background-image: radial-gradient(circle, currentColor 0 3.5px, transparent 4px); }
|
|
289
289
|
.choice > input[type='checkbox']:indeterminate { background-image: linear-gradient(currentColor, currentColor); background-size: 10px 2px; }
|
|
290
|
-
.choice > input:is([type='checkbox'], [type='radio']):not(.switch):disabled { border-color: transparent; background-color: var(--
|
|
290
|
+
.choice > input:is([type='checkbox'], [type='radio']):not(.switch):disabled { border-color: transparent; background-color: var(--disabled); color: var(--disabled-ink); cursor: not-allowed; }
|
|
291
291
|
/* The tick: the row's ::before sits in the box's grid cell, masked to a check. */
|
|
292
292
|
.choice:has(> input[type='checkbox']:checked:not(:indeterminate, .switch))::before {
|
|
293
293
|
content: '';
|
|
@@ -295,17 +295,17 @@
|
|
|
295
295
|
width: 18px;
|
|
296
296
|
height: 18px;
|
|
297
297
|
margin: calc((1.5em - 18px) / 2) 0 0;
|
|
298
|
-
background-color: var(--on-
|
|
298
|
+
background-color: var(--on-action);
|
|
299
299
|
pointer-events: none;
|
|
300
300
|
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.5 9.5l3 3 6-7' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
|
|
301
301
|
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.5 9.5l3 3 6-7' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
|
|
302
302
|
}
|
|
303
|
-
.choice:has(> input[type='checkbox']:checked:disabled)::before { background-color: var(--
|
|
303
|
+
.choice:has(> input[type='checkbox']:checked:disabled)::before { background-color: var(--disabled-ink); }
|
|
304
304
|
.choice > :not(input) { grid-column: 2; }
|
|
305
305
|
.choice > label { cursor: inherit; }
|
|
306
306
|
.choice-hint { margin: 0; font-size: var(--text-sm); line-height: var(--leading-ui); color: var(--ink-soft); }
|
|
307
|
-
.choice > input:focus-visible { outline: 2px solid var(--
|
|
308
|
-
.choice:has(> input:disabled) { color: var(--
|
|
307
|
+
.choice > input:focus-visible { outline: 2px solid var(--action-ink); outline-offset: 2px; }
|
|
308
|
+
.choice:has(> input:disabled) { color: var(--disabled-ink); cursor: not-allowed; }
|
|
309
309
|
|
|
310
310
|
/* Switch: track and knob drawn on the input itself. The knob is a radial
|
|
311
311
|
gradient in the text colour, so on and off read by its position, not
|
|
@@ -327,13 +327,13 @@
|
|
|
327
327
|
color: var(--ink-soft);
|
|
328
328
|
cursor: pointer;
|
|
329
329
|
vertical-align: middle;
|
|
330
|
-
transition: background-position var(--
|
|
330
|
+
transition: background-position var(--duration-fast) var(--ease), background-color var(--duration-fast) var(--ease);
|
|
331
331
|
}
|
|
332
|
-
.switch:checked { border-color: transparent; background-color: var(--
|
|
332
|
+
.switch:checked { border-color: transparent; background-color: var(--action); background-position: 100% 50%; color: var(--on-action); }
|
|
333
333
|
.switch:not(:disabled):hover { border-color: var(--ink-soft); }
|
|
334
|
-
.switch:checked:not(:disabled):hover { border-color: transparent; background-color: var(--
|
|
335
|
-
.switch:focus-visible { outline: 2px solid var(--
|
|
336
|
-
.switch:disabled { border-color: transparent; background-color: var(--
|
|
334
|
+
.switch:checked:not(:disabled):hover { border-color: transparent; background-color: var(--action-hover); }
|
|
335
|
+
.switch:focus-visible { outline: 2px solid var(--action-ink); outline-offset: 2px; }
|
|
336
|
+
.switch:disabled { border-color: transparent; background-color: var(--disabled); color: var(--disabled-ink); cursor: not-allowed; }
|
|
337
337
|
/* In a .choice row the switch sits in the first column like a checkbox. */
|
|
338
338
|
.choice > .switch { margin: calc((1.5em - 24px) / 2) 0 0; }
|
|
339
339
|
|
|
@@ -356,7 +356,7 @@
|
|
|
356
356
|
align-items: center;
|
|
357
357
|
justify-content: center;
|
|
358
358
|
min-height: 34px;
|
|
359
|
-
padding: 0 var(--
|
|
359
|
+
padding: 0 var(--space-3);
|
|
360
360
|
border-radius: calc(var(--radius-control) - 3px);
|
|
361
361
|
font-size: var(--text-sm);
|
|
362
362
|
font-weight: var(--weight-medium);
|
|
@@ -364,14 +364,14 @@
|
|
|
364
364
|
color: var(--ink);
|
|
365
365
|
cursor: pointer;
|
|
366
366
|
user-select: none;
|
|
367
|
-
transition: background-color var(--
|
|
367
|
+
transition: background-color var(--duration-fast) var(--ease);
|
|
368
368
|
}
|
|
369
369
|
.segmented > label > input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
|
|
370
370
|
.segmented > label:not(:has(:disabled)):hover { background-color: var(--surface-hover); }
|
|
371
|
-
.segmented > label:has(:checked), .segmented > label:has(:checked):hover { background-color: var(--
|
|
372
|
-
.segmented > label:has(:focus-visible) { outline: 2px solid var(--
|
|
373
|
-
.segmented > label:has(:disabled) { color: var(--
|
|
374
|
-
.segmented > label:has(:checked:disabled) { background-color: var(--
|
|
371
|
+
.segmented > label:has(:checked), .segmented > label:has(:checked):hover { background-color: var(--action); color: var(--on-action); }
|
|
372
|
+
.segmented > label:has(:focus-visible) { outline: 2px solid var(--action-ink); outline-offset: 2px; }
|
|
373
|
+
.segmented > label:has(:disabled) { color: var(--disabled-ink); cursor: not-allowed; }
|
|
374
|
+
.segmented > label:has(:checked:disabled) { background-color: var(--disabled); color: var(--disabled-ink); }
|
|
375
375
|
|
|
376
376
|
@media (pointer: coarse) {
|
|
377
377
|
.choice { min-height: 44px; align-content: center; }
|
|
@@ -409,7 +409,7 @@
|
|
|
409
409
|
</div>
|
|
410
410
|
A toggle for a filterable list: any number can be on at once. The state
|
|
411
411
|
is aria-pressed, never a class; your script flips it and filters the
|
|
412
|
-
list. Off is the card ground with a control edge; on is the --
|
|
412
|
+
list. Off is the card ground with a control edge; on is the --action fill, the
|
|
413
413
|
same as a chosen .segmented option. One of a few is .segmented; a filter
|
|
414
414
|
already applied, with a remove button, is .tag. */
|
|
415
415
|
@layer brignano.components {
|
|
@@ -419,7 +419,7 @@
|
|
|
419
419
|
justify-content: center;
|
|
420
420
|
min-height: 32px;
|
|
421
421
|
margin: 0;
|
|
422
|
-
padding: 0 var(--
|
|
422
|
+
padding: 0 var(--space-3);
|
|
423
423
|
border: 1px solid var(--line-control);
|
|
424
424
|
border-radius: var(--radius-control);
|
|
425
425
|
background-color: var(--card);
|
|
@@ -431,13 +431,13 @@
|
|
|
431
431
|
white-space: nowrap;
|
|
432
432
|
cursor: pointer;
|
|
433
433
|
user-select: none;
|
|
434
|
-
transition: background-color var(--
|
|
434
|
+
transition: background-color var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease);
|
|
435
435
|
}
|
|
436
436
|
.chip:hover:not(:disabled) { background-color: var(--surface-hover); }
|
|
437
|
-
.chip[aria-pressed='true'], .chip[aria-pressed='true']:hover:not(:disabled) { border-color: transparent; background-color: var(--
|
|
438
|
-
.chip:focus-visible { outline: 2px solid var(--
|
|
439
|
-
.chip:disabled { border-color: var(--line); color: var(--
|
|
440
|
-
.chip[aria-pressed='true']:disabled { border-color: transparent; background-color: var(--
|
|
437
|
+
.chip[aria-pressed='true'], .chip[aria-pressed='true']:hover:not(:disabled) { border-color: transparent; background-color: var(--action); color: var(--on-action); }
|
|
438
|
+
.chip:focus-visible { outline: 2px solid var(--action-ink); outline-offset: 2px; }
|
|
439
|
+
.chip:disabled { border-color: var(--line); color: var(--disabled-ink); cursor: not-allowed; }
|
|
440
|
+
.chip[aria-pressed='true']:disabled { border-color: transparent; background-color: var(--disabled); color: var(--disabled-ink); }
|
|
441
441
|
|
|
442
442
|
@media (pointer: coarse) {
|
|
443
443
|
.chip { min-height: 44px; }
|
|
@@ -477,17 +477,17 @@
|
|
|
477
477
|
align-items: flex-start;
|
|
478
478
|
padding: 12px 14px;
|
|
479
479
|
border: 1px solid var(--line-strong);
|
|
480
|
-
border-radius: var(--radius);
|
|
480
|
+
border-radius: var(--radius-card);
|
|
481
481
|
background-color: var(--card);
|
|
482
482
|
color: var(--ink);
|
|
483
483
|
font-size: var(--text-sm);
|
|
484
484
|
line-height: 1.45;
|
|
485
485
|
}
|
|
486
|
-
.msg > svg, .banner > svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--
|
|
486
|
+
.msg > svg, .banner > svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--action); }
|
|
487
487
|
.msg-content { display: grid; gap: 2px; flex: 1; min-width: 0; }
|
|
488
488
|
.msg-title { margin: 0; font-weight: var(--weight-semibold); }
|
|
489
489
|
.msg-body { margin: 0; color: var(--ink-soft); }
|
|
490
|
-
.msg-actions { display: flex; flex-wrap: wrap; gap: var(--
|
|
490
|
+
.msg-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
|
|
491
491
|
/* An outlined button's --line-control edge is under 3:1 on a status wash,
|
|
492
492
|
so in a message it sits on its own --card fill. Zero-specificity
|
|
493
493
|
:where() keeps hover, pressed and disabled winning. */
|
|
@@ -499,7 +499,7 @@
|
|
|
499
499
|
display: flex;
|
|
500
500
|
gap: 10px;
|
|
501
501
|
align-items: flex-start;
|
|
502
|
-
padding: 10px var(--
|
|
502
|
+
padding: 10px var(--space-4);
|
|
503
503
|
border: 0;
|
|
504
504
|
border-bottom: 1px solid var(--line-strong);
|
|
505
505
|
background-color: var(--surface-hover);
|
|
@@ -513,12 +513,12 @@
|
|
|
513
513
|
.msg-success, .banner-success { border-color: transparent; background-color: var(--success-surface); color: var(--ink); }
|
|
514
514
|
.msg-attention, .banner-attention { border-color: transparent; background-color: var(--attention-surface); color: var(--ink); }
|
|
515
515
|
.msg-danger, .banner-danger { border-color: transparent; background-color: var(--danger-surface); color: var(--ink); }
|
|
516
|
-
:is(.msg-info, .banner-info) > svg { color: var(--
|
|
516
|
+
:is(.msg-info, .banner-info) > svg { color: var(--action); }
|
|
517
517
|
:is(.msg-success, .banner-success) > svg { color: var(--success); }
|
|
518
518
|
:is(.msg-attention, .banner-attention) > svg { color: var(--attention); }
|
|
519
519
|
:is(.msg-danger, .banner-danger) > svg { color: var(--danger); }
|
|
520
520
|
|
|
521
|
-
.banner .msg-content { display: flex; flex-wrap: wrap; column-gap: var(--
|
|
521
|
+
.banner .msg-content { display: flex; flex-wrap: wrap; column-gap: var(--space-2); align-items: baseline; }
|
|
522
522
|
.banner .msg-actions { margin: 0; }
|
|
523
523
|
}
|
|
524
524
|
|
|
@@ -582,8 +582,8 @@
|
|
|
582
582
|
padding: 0 4px;
|
|
583
583
|
border: 1px solid transparent;
|
|
584
584
|
border-radius: 999px;
|
|
585
|
-
background-color: var(--
|
|
586
|
-
color: var(--on-
|
|
585
|
+
background-color: var(--action);
|
|
586
|
+
color: var(--on-action);
|
|
587
587
|
font-size: 11px;
|
|
588
588
|
font-weight: var(--weight-semibold);
|
|
589
589
|
line-height: 1;
|
|
@@ -625,7 +625,7 @@
|
|
|
625
625
|
}
|
|
626
626
|
.tag-remove > svg { width: 14px; height: 14px; }
|
|
627
627
|
.tag-remove:hover { background-color: var(--surface-hover); color: var(--ink); }
|
|
628
|
-
.tag-remove:focus-visible { outline: 2px solid var(--
|
|
628
|
+
.tag-remove:focus-visible { outline: 2px solid var(--action-ink); outline-offset: 2px; }
|
|
629
629
|
|
|
630
630
|
@media (pointer: coarse) {
|
|
631
631
|
.tag-remove::before { content: ''; position: absolute; inset: -10px; }
|
|
@@ -659,17 +659,17 @@
|
|
|
659
659
|
position: relative;
|
|
660
660
|
display: flex;
|
|
661
661
|
flex-direction: column;
|
|
662
|
-
gap: var(--
|
|
662
|
+
gap: var(--space-3);
|
|
663
663
|
min-width: 0;
|
|
664
|
-
padding: var(--
|
|
665
|
-
border: 1px solid var(--line);
|
|
666
|
-
border-radius: var(--radius);
|
|
664
|
+
padding: var(--space-5);
|
|
665
|
+
border: 1px solid var(--card-line);
|
|
666
|
+
border-radius: var(--card-radius);
|
|
667
667
|
background-color: var(--card);
|
|
668
668
|
color: var(--ink);
|
|
669
|
-
box-shadow: var(--shadow
|
|
669
|
+
box-shadow: var(--card-shadow);
|
|
670
670
|
overflow: hidden;
|
|
671
671
|
}
|
|
672
|
-
.card-media { margin: calc(-1 * var(--
|
|
672
|
+
.card-media { margin: calc(-1 * var(--space-5)) calc(-1 * var(--space-5)) 0; }
|
|
673
673
|
.card-media > :is(img, video, picture, svg) { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
|
|
674
674
|
/* Stage (ADR-0018): a product's drawing on a faint field of its mark, the
|
|
675
675
|
same 8% mix as --pp-stage on its product page, so the card and the page
|
|
@@ -677,25 +677,25 @@
|
|
|
677
677
|
is the family amber. The drawing is padded and contained, never cropped,
|
|
678
678
|
and the box stays 16:9. Only on a card that stands for a product. */
|
|
679
679
|
.card-stage { background-color: color-mix(in srgb, var(--mark-current) 8%, transparent); }
|
|
680
|
-
.card-stage > :is(img, video, picture, svg) { box-sizing: border-box; padding: var(--
|
|
681
|
-
.card-header { display: grid; gap: var(--
|
|
680
|
+
.card-stage > :is(img, video, picture, svg) { box-sizing: border-box; padding: var(--space-5); object-fit: contain; }
|
|
681
|
+
.card-header { display: grid; gap: var(--space-1); }
|
|
682
682
|
.card-title { margin: 0; font-size: var(--text-lg); font-weight: var(--weight-semibold); line-height: var(--leading-title); letter-spacing: var(--tracking-title); }
|
|
683
683
|
.card-title a { color: inherit; text-decoration: none; }
|
|
684
684
|
.card-meta { margin: 0; font-size: var(--text-sm); color: var(--ink-soft); }
|
|
685
685
|
.card-body { color: var(--ink-soft); }
|
|
686
686
|
.card-body > :first-child { margin-top: 0; }
|
|
687
687
|
.card-body > :last-child { margin-bottom: 0; }
|
|
688
|
-
.card-footer { display: flex; flex-wrap: wrap; align-items: center; gap: var(--
|
|
688
|
+
.card-footer { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: auto; }
|
|
689
689
|
|
|
690
690
|
/* Link card: the title link stretches over the card. */
|
|
691
|
-
.card-link { transition: background-color var(--
|
|
691
|
+
.card-link { transition: background-color var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease); }
|
|
692
692
|
.card-link .card-title a::after { content: ''; position: absolute; inset: 0; z-index: 0; }
|
|
693
693
|
/* Zero-specificity so components that position their own parts (for example .segmented) still win. */
|
|
694
694
|
:where(.card-link :is(a, button, input, select, textarea, label):not(.card-title a)) { position: relative; z-index: var(--z-raised); }
|
|
695
|
-
.card-link:hover { background-color: var(--surface-hover); box-shadow: var(--shadow-
|
|
695
|
+
.card-link:hover { background-color: var(--surface-hover); box-shadow: var(--shadow-3); }
|
|
696
696
|
.card-link:hover .card-title a { text-decoration: underline; text-underline-offset: 3px; }
|
|
697
697
|
/* The ring moves to the card only where :has() works; elsewhere the link keeps its own ring. */
|
|
698
|
-
.card-link:has(.card-title a:focus-visible) { outline: 2px solid var(--
|
|
698
|
+
.card-link:has(.card-title a:focus-visible) { outline: 2px solid var(--action-ink); outline-offset: 2px; }
|
|
699
699
|
.card-link:has(.card-title a:focus-visible) .card-title a { outline: none; }
|
|
700
700
|
|
|
701
701
|
@media (forced-colors: active) {
|
|
@@ -756,18 +756,18 @@
|
|
|
756
756
|
@layer brignano.components {
|
|
757
757
|
.skip-link {
|
|
758
758
|
position: absolute;
|
|
759
|
-
top: var(--
|
|
760
|
-
left: var(--
|
|
759
|
+
top: var(--space-3);
|
|
760
|
+
left: var(--space-4);
|
|
761
761
|
z-index: var(--z-skip);
|
|
762
|
-
padding: var(--
|
|
762
|
+
padding: var(--space-2) var(--space-3);
|
|
763
763
|
border-radius: var(--radius-sm);
|
|
764
764
|
background-color: var(--card);
|
|
765
765
|
color: var(--ink);
|
|
766
766
|
font-weight: var(--weight-medium);
|
|
767
767
|
box-shadow: var(--shadow-2);
|
|
768
|
-
transform: translateY(calc(-100% - var(--
|
|
768
|
+
transform: translateY(calc(-100% - var(--space-5)));
|
|
769
769
|
}
|
|
770
|
-
.skip-link:focus { transform: none; outline: 2px solid var(--
|
|
770
|
+
.skip-link:focus { transform: none; outline: 2px solid var(--action-ink); outline-offset: 2px; }
|
|
771
771
|
|
|
772
772
|
.site-header {
|
|
773
773
|
container: site-header / inline-size;
|
|
@@ -783,15 +783,15 @@
|
|
|
783
783
|
.site-header-inner {
|
|
784
784
|
display: flex;
|
|
785
785
|
align-items: center;
|
|
786
|
-
gap: var(--
|
|
786
|
+
gap: var(--space-4);
|
|
787
787
|
min-height: 56px;
|
|
788
788
|
}
|
|
789
|
-
.tier-marketing .site-header-inner { min-height: 72px; gap: var(--
|
|
789
|
+
.tier-marketing .site-header-inner { min-height: 72px; gap: var(--space-5); }
|
|
790
790
|
|
|
791
791
|
.site-brand {
|
|
792
792
|
display: inline-flex;
|
|
793
793
|
align-items: center;
|
|
794
|
-
gap: var(--
|
|
794
|
+
gap: var(--space-2);
|
|
795
795
|
min-height: 40px;
|
|
796
796
|
margin-inline-end: auto; /* pushes the nav and actions to the end */
|
|
797
797
|
color: var(--ink);
|
|
@@ -818,12 +818,12 @@
|
|
|
818
818
|
background: none;
|
|
819
819
|
color: inherit;
|
|
820
820
|
}
|
|
821
|
-
.site-nav ul { display: flex; align-items: center; gap: var(--
|
|
821
|
+
.site-nav ul { display: flex; align-items: center; gap: var(--space-1); margin: 0; padding: 0; list-style: none; }
|
|
822
822
|
.site-nav a {
|
|
823
823
|
display: inline-flex;
|
|
824
824
|
align-items: center;
|
|
825
825
|
min-height: 40px;
|
|
826
|
-
padding: 0 var(--
|
|
826
|
+
padding: 0 var(--space-3);
|
|
827
827
|
border-radius: var(--radius-sm);
|
|
828
828
|
color: var(--ink-soft);
|
|
829
829
|
font-size: var(--text-sm);
|
|
@@ -833,17 +833,17 @@
|
|
|
833
833
|
.site-nav a:hover { color: var(--ink); }
|
|
834
834
|
.site-nav a[aria-current='page'] {
|
|
835
835
|
color: var(--ink);
|
|
836
|
-
text-decoration: underline 2px var(--
|
|
836
|
+
text-decoration: underline 2px var(--action);
|
|
837
837
|
text-underline-offset: 6px;
|
|
838
838
|
}
|
|
839
|
-
.site-nav a:focus-visible { outline: 2px solid var(--
|
|
839
|
+
.site-nav a:focus-visible { outline: 2px solid var(--action-ink); outline-offset: 2px; }
|
|
840
840
|
|
|
841
|
-
.site-actions { display: flex; align-items: center; gap: var(--
|
|
841
|
+
.site-actions { display: flex; align-items: center; gap: var(--space-2); }
|
|
842
842
|
.site-menu-button, .site-menu-close { display: none; }
|
|
843
843
|
|
|
844
844
|
/* Narrow: the links move into a sheet behind the menu button. */
|
|
845
845
|
@container site-header (max-width: 45rem) {
|
|
846
|
-
.site-header .site-header-inner { gap: var(--
|
|
846
|
+
.site-header .site-header-inner { gap: var(--space-2); } /* beats the marketing gap */
|
|
847
847
|
.site-brand { min-width: 0; }
|
|
848
848
|
.site-menu-button { display: inline-flex; }
|
|
849
849
|
.site-nav[popover]:not(:popover-open) { display: none; }
|
|
@@ -856,11 +856,11 @@
|
|
|
856
856
|
inset: 0 0 auto;
|
|
857
857
|
display: flex;
|
|
858
858
|
flex-direction: column;
|
|
859
|
-
gap: var(--
|
|
859
|
+
gap: var(--space-2);
|
|
860
860
|
width: 100%;
|
|
861
861
|
max-height: 100dvh;
|
|
862
862
|
box-sizing: border-box;
|
|
863
|
-
padding: var(--
|
|
863
|
+
padding: var(--space-3) var(--space-4) var(--space-5);
|
|
864
864
|
overflow-y: auto;
|
|
865
865
|
border-bottom: 1px solid var(--line);
|
|
866
866
|
background-color: var(--card);
|
|
@@ -877,7 +877,7 @@
|
|
|
877
877
|
}
|
|
878
878
|
|
|
879
879
|
.site-footer {
|
|
880
|
-
padding-block: var(--
|
|
880
|
+
padding-block: var(--space-6) var(--space-7);
|
|
881
881
|
border-top: 1px solid var(--line);
|
|
882
882
|
color: var(--ink-soft);
|
|
883
883
|
font-size: var(--text-sm);
|
|
@@ -885,10 +885,10 @@
|
|
|
885
885
|
.site-footer-columns {
|
|
886
886
|
display: grid;
|
|
887
887
|
grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
|
|
888
|
-
gap: var(--
|
|
888
|
+
gap: var(--space-5);
|
|
889
889
|
}
|
|
890
|
-
.site-footer-heading { margin: 0 0 var(--
|
|
891
|
-
.site-footer ul { display: grid; gap: var(--
|
|
890
|
+
.site-footer-heading { margin: 0 0 var(--space-2); color: var(--ink); font-size: var(--text-sm); font-weight: var(--weight-semibold); }
|
|
891
|
+
.site-footer ul { display: grid; gap: var(--space-1); margin: 0; padding: 0; list-style: none; }
|
|
892
892
|
.site-footer a { color: var(--ink-soft); text-decoration: none; }
|
|
893
893
|
.site-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
|
|
894
894
|
.site-footer ul a { display: inline-flex; align-items: center; min-height: 28px; }
|
|
@@ -896,12 +896,12 @@
|
|
|
896
896
|
display: flex;
|
|
897
897
|
flex-wrap: wrap;
|
|
898
898
|
align-items: center;
|
|
899
|
-
gap: var(--
|
|
900
|
-
margin: var(--
|
|
901
|
-
padding-top: var(--
|
|
899
|
+
gap: var(--space-2) var(--space-4);
|
|
900
|
+
margin: var(--space-6) 0 0;
|
|
901
|
+
padding-top: var(--space-4);
|
|
902
902
|
border-top: 1px solid var(--line-soft);
|
|
903
903
|
}
|
|
904
|
-
.site-footer-small { margin: var(--
|
|
904
|
+
.site-footer-small { margin: var(--space-2) 0 0; font-size: var(--text-xs); }
|
|
905
905
|
|
|
906
906
|
@media (pointer: coarse) {
|
|
907
907
|
.site-footer ul a { min-height: 44px; }
|
|
@@ -935,7 +935,7 @@
|
|
|
935
935
|
action ("Delete trip"), never "OK".
|
|
936
936
|
- .sheet (with .dialog): slides in from the right on a wide screen and up
|
|
937
937
|
from the bottom on a phone.
|
|
938
|
-
- Open and close: a fade and a short slide over --
|
|
938
|
+
- Open and close: a fade and a short slide over --duration-fast, from the
|
|
939
939
|
edge a sheet comes from (ADR-0013), for modal dialogs only: one that is
|
|
940
940
|
open in the markup renders still. Only opacity and transform move, and
|
|
941
941
|
the open state is always fully shown, so a browser without
|
|
@@ -944,9 +944,9 @@
|
|
|
944
944
|
@layer brignano.components {
|
|
945
945
|
.dialog {
|
|
946
946
|
box-sizing: border-box;
|
|
947
|
-
width: min(100% - 2 * var(--
|
|
947
|
+
width: min(100% - 2 * var(--space-4), 32rem);
|
|
948
948
|
max-width: none;
|
|
949
|
-
max-height: min(100dvh - 2 * var(--
|
|
949
|
+
max-height: min(100dvh - 2 * var(--space-4), 44rem);
|
|
950
950
|
padding: 0;
|
|
951
951
|
border: 1px solid var(--line);
|
|
952
952
|
border-radius: var(--radius-lg);
|
|
@@ -956,7 +956,7 @@
|
|
|
956
956
|
flex-direction: column; /* here, not on [open], so it holds while closing */
|
|
957
957
|
opacity: 0;
|
|
958
958
|
transform: translateY(8px);
|
|
959
|
-
transition: opacity var(--
|
|
959
|
+
transition: opacity var(--duration-fast) var(--ease), transform var(--duration-fast) var(--ease);
|
|
960
960
|
}
|
|
961
961
|
/* display only while open, so the UA's display: none still hides it closed. */
|
|
962
962
|
.dialog[open] { display: flex; opacity: 1; transform: none; }
|
|
@@ -966,7 +966,7 @@
|
|
|
966
966
|
.dialog::backdrop {
|
|
967
967
|
background-color: var(--scrim);
|
|
968
968
|
opacity: 0;
|
|
969
|
-
transition: opacity var(--
|
|
969
|
+
transition: opacity var(--duration-fast) var(--ease);
|
|
970
970
|
}
|
|
971
971
|
.dialog[open]::backdrop { opacity: 1; }
|
|
972
972
|
@starting-style {
|
|
@@ -978,24 +978,24 @@
|
|
|
978
978
|
@supports (overlay: auto) {
|
|
979
979
|
.dialog {
|
|
980
980
|
transition:
|
|
981
|
-
opacity var(--
|
|
982
|
-
transform var(--
|
|
983
|
-
overlay var(--
|
|
984
|
-
display var(--
|
|
981
|
+
opacity var(--duration-fast) var(--ease),
|
|
982
|
+
transform var(--duration-fast) var(--ease),
|
|
983
|
+
overlay var(--duration-fast) allow-discrete,
|
|
984
|
+
display var(--duration-fast) allow-discrete;
|
|
985
985
|
}
|
|
986
986
|
.dialog::backdrop {
|
|
987
987
|
transition:
|
|
988
|
-
opacity var(--
|
|
989
|
-
overlay var(--
|
|
990
|
-
display var(--
|
|
988
|
+
opacity var(--duration-fast) var(--ease),
|
|
989
|
+
overlay var(--duration-fast) allow-discrete,
|
|
990
|
+
display var(--duration-fast) allow-discrete;
|
|
991
991
|
}
|
|
992
992
|
}
|
|
993
993
|
|
|
994
994
|
.dialog-header {
|
|
995
995
|
display: flex;
|
|
996
996
|
align-items: flex-start;
|
|
997
|
-
gap: var(--
|
|
998
|
-
padding: var(--
|
|
997
|
+
gap: var(--space-3);
|
|
998
|
+
padding: var(--space-5) var(--space-5) 0;
|
|
999
999
|
}
|
|
1000
1000
|
.dialog-title { margin: 0; padding-top: 2px; font-size: var(--text-lg); font-weight: var(--weight-semibold); line-height: var(--leading-ui); }
|
|
1001
1001
|
.dialog-header > form { display: contents; }
|
|
@@ -1003,7 +1003,7 @@
|
|
|
1003
1003
|
.dialog-body {
|
|
1004
1004
|
flex: 1 1 auto;
|
|
1005
1005
|
min-height: 0;
|
|
1006
|
-
padding: var(--
|
|
1006
|
+
padding: var(--space-3) var(--space-5);
|
|
1007
1007
|
overflow-y: auto;
|
|
1008
1008
|
color: var(--ink-soft);
|
|
1009
1009
|
}
|
|
@@ -1013,12 +1013,12 @@
|
|
|
1013
1013
|
display: flex;
|
|
1014
1014
|
flex-wrap: wrap;
|
|
1015
1015
|
justify-content: flex-end;
|
|
1016
|
-
gap: var(--
|
|
1017
|
-
padding: var(--
|
|
1016
|
+
gap: var(--space-2);
|
|
1017
|
+
padding: var(--space-4) var(--space-5) var(--space-5);
|
|
1018
1018
|
}
|
|
1019
1019
|
.dialog-footer > form { display: contents; }
|
|
1020
1020
|
|
|
1021
|
-
.dialog-confirm { width: min(100% - 2 * var(--
|
|
1021
|
+
.dialog-confirm { width: min(100% - 2 * var(--space-4), 26rem); }
|
|
1022
1022
|
|
|
1023
1023
|
/* Sheet: from the right on a wide screen. */
|
|
1024
1024
|
.sheet {
|
|
@@ -1090,22 +1090,22 @@
|
|
|
1090
1090
|
links that Tab moves through, which needs nothing more. role="menu" and
|
|
1091
1091
|
role="menuitem" promise arrow keys, Home/End and focus moving into the
|
|
1092
1092
|
menu on open, so add them only with a script that does all of that.
|
|
1093
|
-
- Open and close: a fade and a 4px slide over --
|
|
1093
|
+
- Open and close: a fade and a 4px slide over --duration-fast (ADR-0013).
|
|
1094
1094
|
Instant under prefers-reduced-motion. */
|
|
1095
1095
|
@layer brignano.components {
|
|
1096
1096
|
.popover {
|
|
1097
1097
|
box-sizing: border-box;
|
|
1098
1098
|
min-width: 12rem;
|
|
1099
|
-
max-width: min(100vw - 2 * var(--
|
|
1100
|
-
max-height: min(100dvh - 2 * var(--
|
|
1101
|
-
padding: var(--
|
|
1099
|
+
max-width: min(100vw - 2 * var(--space-4), 22rem);
|
|
1100
|
+
max-height: min(100dvh - 2 * var(--space-4), 28rem);
|
|
1101
|
+
padding: var(--space-3);
|
|
1102
1102
|
overflow-y: auto;
|
|
1103
1103
|
border: 1px solid var(--line);
|
|
1104
|
-
border-radius: var(--radius);
|
|
1104
|
+
border-radius: var(--radius-card);
|
|
1105
1105
|
background-color: var(--card);
|
|
1106
1106
|
color: var(--ink);
|
|
1107
1107
|
box-shadow: var(--shadow-2);
|
|
1108
|
-
transition: opacity var(--
|
|
1108
|
+
transition: opacity var(--duration-fast) var(--ease), transform var(--duration-fast) var(--ease);
|
|
1109
1109
|
}
|
|
1110
1110
|
/* Hidden state on :not(:popover-open), so a browser without popover
|
|
1111
1111
|
support shows the content rather than an invisible, focusable box. */
|
|
@@ -1116,18 +1116,18 @@
|
|
|
1116
1116
|
@supports (overlay: auto) {
|
|
1117
1117
|
.popover {
|
|
1118
1118
|
transition:
|
|
1119
|
-
opacity var(--
|
|
1120
|
-
transform var(--
|
|
1121
|
-
overlay var(--
|
|
1122
|
-
display var(--
|
|
1119
|
+
opacity var(--duration-fast) var(--ease),
|
|
1120
|
+
transform var(--duration-fast) var(--ease),
|
|
1121
|
+
overlay var(--duration-fast) allow-discrete,
|
|
1122
|
+
display var(--duration-fast) allow-discrete;
|
|
1123
1123
|
}
|
|
1124
1124
|
}
|
|
1125
|
-
.popover:has(> .menu) { padding: var(--
|
|
1125
|
+
.popover:has(> .menu) { padding: var(--space-1); }
|
|
1126
1126
|
|
|
1127
1127
|
@supports (position-area: block-end) {
|
|
1128
1128
|
.popover {
|
|
1129
1129
|
inset: auto;
|
|
1130
|
-
margin: var(--
|
|
1130
|
+
margin: var(--space-1) 0;
|
|
1131
1131
|
position-area: block-end span-inline-end;
|
|
1132
1132
|
position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline;
|
|
1133
1133
|
}
|
|
@@ -1135,7 +1135,7 @@
|
|
|
1135
1135
|
@supports not (position-area: block-end) {
|
|
1136
1136
|
.popover[style*='--popover-top'] {
|
|
1137
1137
|
inset: var(--popover-top) auto auto var(--popover-left);
|
|
1138
|
-
margin: var(--
|
|
1138
|
+
margin: var(--space-1) 0 0;
|
|
1139
1139
|
}
|
|
1140
1140
|
}
|
|
1141
1141
|
|
|
@@ -1144,10 +1144,10 @@
|
|
|
1144
1144
|
box-sizing: border-box;
|
|
1145
1145
|
display: flex;
|
|
1146
1146
|
align-items: center;
|
|
1147
|
-
gap: var(--
|
|
1147
|
+
gap: var(--space-2);
|
|
1148
1148
|
width: 100%;
|
|
1149
1149
|
min-height: 36px;
|
|
1150
|
-
padding: var(--
|
|
1150
|
+
padding: var(--space-2) var(--space-3);
|
|
1151
1151
|
border: 0;
|
|
1152
1152
|
border-radius: var(--radius-control);
|
|
1153
1153
|
background-color: transparent;
|
|
@@ -1162,15 +1162,15 @@
|
|
|
1162
1162
|
.menu-item > svg { flex: none; width: 16px; height: 16px; color: var(--ink-soft); }
|
|
1163
1163
|
.menu-item:hover, .menu-item:focus-visible { background-color: var(--surface-hover); color: var(--ink); }
|
|
1164
1164
|
.menu-item:active { background-color: var(--surface-active); color: var(--ink); }
|
|
1165
|
-
.menu-item:focus-visible { outline: 2px solid var(--
|
|
1166
|
-
.menu-item-hint { margin-inline-start: auto; padding-inline-start: var(--
|
|
1165
|
+
.menu-item:focus-visible { outline: 2px solid var(--action-ink); outline-offset: -2px; }
|
|
1166
|
+
.menu-item-hint { margin-inline-start: auto; padding-inline-start: var(--space-3); color: var(--ink-soft); font-size: var(--text-xs); }
|
|
1167
1167
|
.menu-item-danger, .menu-item-danger > svg { color: var(--danger-ink); }
|
|
1168
1168
|
.menu-item-danger:is(:hover, :focus-visible, :active) { background-color: var(--danger-surface); color: var(--danger-ink); }
|
|
1169
|
-
.menu-item:is(:disabled, [aria-disabled='true']) { background-color: transparent; color: var(--
|
|
1169
|
+
.menu-item:is(:disabled, [aria-disabled='true']) { background-color: transparent; color: var(--disabled-ink); cursor: not-allowed; }
|
|
1170
1170
|
.menu-item:is(:disabled, [aria-disabled='true']) > svg { color: inherit; }
|
|
1171
1171
|
.menu-separator {
|
|
1172
1172
|
height: 0;
|
|
1173
|
-
margin: var(--
|
|
1173
|
+
margin: var(--space-1) calc(-1 * var(--space-1));
|
|
1174
1174
|
border: 0;
|
|
1175
1175
|
border-block-start: 1px solid var(--line);
|
|
1176
1176
|
}
|
|
@@ -1223,7 +1223,7 @@
|
|
|
1223
1223
|
width: max-content;
|
|
1224
1224
|
max-width: 16rem;
|
|
1225
1225
|
margin: 0;
|
|
1226
|
-
padding: 4px var(--
|
|
1226
|
+
padding: 4px var(--space-2);
|
|
1227
1227
|
overflow: visible;
|
|
1228
1228
|
border: 1px solid transparent;
|
|
1229
1229
|
border-radius: var(--radius-sm);
|
|
@@ -1240,7 +1240,7 @@
|
|
|
1240
1240
|
.tooltip::before {
|
|
1241
1241
|
content: '';
|
|
1242
1242
|
position: absolute;
|
|
1243
|
-
inset: calc(-1 * var(--
|
|
1243
|
+
inset: calc(-1 * var(--space-1) - 1px) 0;
|
|
1244
1244
|
z-index: -1;
|
|
1245
1245
|
}
|
|
1246
1246
|
.tooltip-wrap > [interestfor] { interest-delay: 300ms 0s; }
|
|
@@ -1248,11 +1248,11 @@
|
|
|
1248
1248
|
@supports selector(:interest-source) {
|
|
1249
1249
|
.tooltip {
|
|
1250
1250
|
inset: auto;
|
|
1251
|
-
margin: var(--
|
|
1251
|
+
margin: var(--space-1) 0;
|
|
1252
1252
|
position-area: block-start;
|
|
1253
1253
|
position-try-fallbacks: flip-block;
|
|
1254
1254
|
opacity: 0;
|
|
1255
|
-
transition: opacity var(--
|
|
1255
|
+
transition: opacity var(--duration-fast) var(--ease);
|
|
1256
1256
|
}
|
|
1257
1257
|
.tooltip:popover-open { opacity: 1; }
|
|
1258
1258
|
@starting-style {
|
|
@@ -1265,14 +1265,14 @@
|
|
|
1265
1265
|
position: absolute;
|
|
1266
1266
|
inset: auto auto 100% 50%;
|
|
1267
1267
|
translate: -50% 0;
|
|
1268
|
-
margin: 0 0 var(--
|
|
1268
|
+
margin: 0 0 var(--space-1);
|
|
1269
1269
|
visibility: hidden;
|
|
1270
1270
|
opacity: 0;
|
|
1271
1271
|
}
|
|
1272
1272
|
.tooltip-wrap:has(> :hover, > :focus-visible) > .tooltip {
|
|
1273
1273
|
visibility: visible;
|
|
1274
1274
|
opacity: 1;
|
|
1275
|
-
transition: opacity var(--
|
|
1275
|
+
transition: opacity var(--duration-fast) var(--ease) 300ms, visibility 0s linear 300ms;
|
|
1276
1276
|
}
|
|
1277
1277
|
}
|
|
1278
1278
|
|
|
@@ -1313,13 +1313,13 @@
|
|
|
1313
1313
|
next toast, or back to where it was before.
|
|
1314
1314
|
- While a modal dialog is open, everything outside it is inert, toasts
|
|
1315
1315
|
included: report inside the dialog with a .msg instead.
|
|
1316
|
-
- Enter and leave: a fade and an 8px slide over --
|
|
1316
|
+
- Enter and leave: a fade and an 8px slide over --duration-fast (ADR-0013).
|
|
1317
1317
|
Instant under prefers-reduced-motion. */
|
|
1318
1318
|
@layer brignano.components {
|
|
1319
1319
|
.toast-region {
|
|
1320
1320
|
position: fixed;
|
|
1321
1321
|
z-index: var(--z-toast);
|
|
1322
|
-
inset: auto var(--
|
|
1322
|
+
inset: auto var(--space-4) var(--space-4);
|
|
1323
1323
|
display: flex;
|
|
1324
1324
|
flex-direction: column;
|
|
1325
1325
|
align-items: center;
|
|
@@ -1333,12 +1333,12 @@
|
|
|
1333
1333
|
flex-direction: column;
|
|
1334
1334
|
align-items: inherit;
|
|
1335
1335
|
align-self: stretch;
|
|
1336
|
-
gap: var(--
|
|
1336
|
+
gap: var(--space-2);
|
|
1337
1337
|
}
|
|
1338
|
-
.toast-list:not(:empty) ~ .toast-list:not(:empty) { margin-top: var(--
|
|
1338
|
+
.toast-list:not(:empty) ~ .toast-list:not(:empty) { margin-top: var(--space-2); }
|
|
1339
1339
|
.toast-region .toast { pointer-events: auto; }
|
|
1340
1340
|
@media (min-width: 40rem) {
|
|
1341
|
-
.toast-region { inset: auto var(--
|
|
1341
|
+
.toast-region { inset: auto var(--space-5) var(--space-5) auto; align-items: flex-end; }
|
|
1342
1342
|
}
|
|
1343
1343
|
|
|
1344
1344
|
.toast {
|
|
@@ -1350,13 +1350,13 @@
|
|
|
1350
1350
|
padding: 12px 10px 12px 14px;
|
|
1351
1351
|
border: 1px solid var(--line);
|
|
1352
1352
|
border-inline-start: 3px solid var(--line-control);
|
|
1353
|
-
border-radius: var(--radius);
|
|
1353
|
+
border-radius: var(--radius-card);
|
|
1354
1354
|
background-color: var(--card);
|
|
1355
1355
|
color: var(--ink);
|
|
1356
1356
|
box-shadow: var(--shadow-2);
|
|
1357
1357
|
font-size: var(--text-sm);
|
|
1358
1358
|
line-height: 1.45;
|
|
1359
|
-
transition: opacity var(--
|
|
1359
|
+
transition: opacity var(--duration-fast) var(--ease), transform var(--duration-fast) var(--ease);
|
|
1360
1360
|
}
|
|
1361
1361
|
@starting-style {
|
|
1362
1362
|
.toast { opacity: 0; transform: translateY(8px); }
|
|
@@ -1425,7 +1425,7 @@
|
|
|
1425
1425
|
border: 2.5px solid currentColor;
|
|
1426
1426
|
border-right-color: transparent;
|
|
1427
1427
|
border-radius: 50%;
|
|
1428
|
-
color: var(--
|
|
1428
|
+
color: var(--action);
|
|
1429
1429
|
vertical-align: middle;
|
|
1430
1430
|
animation: spinner-spin 0.7s linear infinite;
|
|
1431
1431
|
}
|
|
@@ -1453,7 +1453,7 @@
|
|
|
1453
1453
|
.skeleton-text { height: 0.75em; margin-block: 0.4em; }
|
|
1454
1454
|
.skeleton-text:last-child:not(:first-child) { width: 60%; }
|
|
1455
1455
|
.skeleton-circle { width: 40px; height: 40px; flex: none; border-radius: 50%; }
|
|
1456
|
-
.skeleton-rect { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); }
|
|
1456
|
+
.skeleton-rect { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-card); }
|
|
1457
1457
|
|
|
1458
1458
|
.progress, .meter {
|
|
1459
1459
|
appearance: none;
|
|
@@ -1467,13 +1467,13 @@
|
|
|
1467
1467
|
background-color: var(--surface-active);
|
|
1468
1468
|
}
|
|
1469
1469
|
.progress::-webkit-progress-bar { border-radius: inherit; background-color: var(--surface-active); }
|
|
1470
|
-
.progress::-webkit-progress-value { border-radius: inherit; background-color: var(--
|
|
1471
|
-
.progress::-moz-progress-bar { border-radius: inherit; background-color: var(--
|
|
1470
|
+
.progress::-webkit-progress-value { border-radius: inherit; background-color: var(--action); }
|
|
1471
|
+
.progress::-moz-progress-bar { border-radius: inherit; background-color: var(--action); }
|
|
1472
1472
|
/* Indeterminate: a centred segment that can't be read as an amount, which
|
|
1473
1473
|
pulses (opacity only, DESIGN.md §7). Under reduced motion it holds
|
|
1474
1474
|
still at full strength. */
|
|
1475
1475
|
.progress:indeterminate {
|
|
1476
|
-
background-image: linear-gradient(90deg, transparent 35%, var(--
|
|
1476
|
+
background-image: linear-gradient(90deg, transparent 35%, var(--action) 35% 65%, transparent 65%);
|
|
1477
1477
|
animation: progress-pulse 1.4s var(--ease) infinite alternate;
|
|
1478
1478
|
}
|
|
1479
1479
|
.progress:indeterminate::-webkit-progress-bar { background-color: transparent; }
|
|
@@ -1481,10 +1481,10 @@
|
|
|
1481
1481
|
@keyframes progress-pulse { to { opacity: 0.45; } }
|
|
1482
1482
|
|
|
1483
1483
|
.meter::-webkit-meter-bar { height: 8px; border: 0; border-radius: inherit; background: var(--surface-active); }
|
|
1484
|
-
.meter::-webkit-meter-optimum-value { border-radius: inherit; background: var(--
|
|
1484
|
+
.meter::-webkit-meter-optimum-value { border-radius: inherit; background: var(--action); }
|
|
1485
1485
|
.meter::-webkit-meter-suboptimum-value { border-radius: inherit; background: var(--attention); }
|
|
1486
1486
|
.meter::-webkit-meter-even-less-good-value { border-radius: inherit; background: var(--danger); }
|
|
1487
|
-
.meter::-moz-meter-bar { border-radius: inherit; background: var(--
|
|
1487
|
+
.meter::-moz-meter-bar { border-radius: inherit; background: var(--action); }
|
|
1488
1488
|
.meter:-moz-meter-sub-optimum::-moz-meter-bar { background: var(--attention); }
|
|
1489
1489
|
.meter:-moz-meter-sub-sub-optimum::-moz-meter-bar { background: var(--danger); }
|
|
1490
1490
|
|
|
@@ -1493,14 +1493,14 @@
|
|
|
1493
1493
|
flex-direction: column;
|
|
1494
1494
|
align-items: center;
|
|
1495
1495
|
justify-content: center;
|
|
1496
|
-
gap: var(--
|
|
1497
|
-
padding: var(--
|
|
1496
|
+
gap: var(--space-2);
|
|
1497
|
+
padding: var(--space-7) var(--space-4);
|
|
1498
1498
|
text-align: center;
|
|
1499
1499
|
}
|
|
1500
|
-
.empty > svg { width: 32px; height: 32px; margin-bottom: var(--
|
|
1500
|
+
.empty > svg { width: 32px; height: 32px; margin-bottom: var(--space-2); color: var(--ink-soft); }
|
|
1501
1501
|
.empty-title { margin: 0; font-size: var(--text-base); font-weight: var(--weight-semibold); color: var(--ink); }
|
|
1502
1502
|
.empty-body { max-width: 32ch; margin: 0; font-size: var(--text-sm); color: var(--ink-soft); }
|
|
1503
|
-
.empty > .btn { margin-top: var(--
|
|
1503
|
+
.empty > .btn { margin-top: var(--space-3); }
|
|
1504
1504
|
|
|
1505
1505
|
/* Vendor pseudo-elements each get their own rule: one unknown selector in
|
|
1506
1506
|
a list drops the whole rule in the other engine. */
|
|
@@ -1551,11 +1551,11 @@
|
|
|
1551
1551
|
caption-side: top;
|
|
1552
1552
|
text-align: left;
|
|
1553
1553
|
font-weight: var(--weight-semibold);
|
|
1554
|
-
padding: 0 0 var(--
|
|
1554
|
+
padding: 0 0 var(--space-2);
|
|
1555
1555
|
}
|
|
1556
1556
|
.table th,
|
|
1557
1557
|
.table td {
|
|
1558
|
-
padding: var(--
|
|
1558
|
+
padding: var(--space-2) var(--space-3);
|
|
1559
1559
|
text-align: left;
|
|
1560
1560
|
vertical-align: top;
|
|
1561
1561
|
border-bottom: 1px solid var(--line);
|
|
@@ -1579,15 +1579,15 @@
|
|
|
1579
1579
|
box-sizing: border-box;
|
|
1580
1580
|
display: flex;
|
|
1581
1581
|
align-items: center;
|
|
1582
|
-
gap: var(--
|
|
1582
|
+
gap: var(--space-1);
|
|
1583
1583
|
width: 100%;
|
|
1584
|
-
padding: var(--
|
|
1584
|
+
padding: var(--space-2) var(--space-3);
|
|
1585
1585
|
cursor: pointer;
|
|
1586
1586
|
border-radius: var(--radius-sm);
|
|
1587
1587
|
}
|
|
1588
1588
|
.table th.num[aria-sort] > button { justify-content: flex-end; }
|
|
1589
1589
|
.table th[aria-sort] > button:hover { color: var(--ink); }
|
|
1590
|
-
.table th[aria-sort] > button:focus-visible { outline: 2px solid var(--
|
|
1590
|
+
.table th[aria-sort] > button:focus-visible { outline: 2px solid var(--action-ink); outline-offset: -2px; }
|
|
1591
1591
|
/* \FE0E asks for the text glyph: ↕ is one of the arrows phones draw as an emoji. */
|
|
1592
1592
|
.table th[aria-sort] > button::after { content: '↕\FE0E' / ''; color: var(--slate); }
|
|
1593
1593
|
.table th[aria-sort='ascending'] > button::after { content: '↑' / ''; color: var(--ink); }
|
|
@@ -1606,9 +1606,9 @@
|
|
|
1606
1606
|
|
|
1607
1607
|
.tier-marketing .table { font-size: var(--text-base); }
|
|
1608
1608
|
.tier-marketing .table th,
|
|
1609
|
-
.tier-marketing .table td { padding: var(--
|
|
1609
|
+
.tier-marketing .table td { padding: var(--space-3) var(--space-4); }
|
|
1610
1610
|
.tier-marketing .table th[aria-sort] { padding: 0; }
|
|
1611
|
-
.tier-marketing .table th[aria-sort] > button { padding: var(--
|
|
1611
|
+
.tier-marketing .table th[aria-sort] > button { padding: var(--space-3) var(--space-4); }
|
|
1612
1612
|
}
|
|
1613
1613
|
|
|
1614
1614
|
/* ── Key-value list (#62) ──────────────────────────────────────────────────
|
|
@@ -1619,7 +1619,7 @@
|
|
|
1619
1619
|
.kv {
|
|
1620
1620
|
display: grid;
|
|
1621
1621
|
grid-template-columns: minmax(8rem, max-content) 1fr;
|
|
1622
|
-
gap: var(--
|
|
1622
|
+
gap: var(--space-2) var(--space-5);
|
|
1623
1623
|
margin: 0;
|
|
1624
1624
|
font-size: var(--text-sm);
|
|
1625
1625
|
}
|
|
@@ -1628,7 +1628,7 @@
|
|
|
1628
1628
|
.kv dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
|
|
1629
1629
|
@media (max-width: 480px) {
|
|
1630
1630
|
.kv { grid-template-columns: 1fr; row-gap: 0; }
|
|
1631
|
-
.kv dd { margin-bottom: var(--
|
|
1631
|
+
.kv dd { margin-bottom: var(--space-3); }
|
|
1632
1632
|
}
|
|
1633
1633
|
.tier-marketing .kv { font-size: var(--text-base); }
|
|
1634
1634
|
}
|
|
@@ -1647,13 +1647,13 @@
|
|
|
1647
1647
|
.stat {
|
|
1648
1648
|
display: flex;
|
|
1649
1649
|
flex-direction: column;
|
|
1650
|
-
gap: var(--
|
|
1650
|
+
gap: var(--space-1);
|
|
1651
1651
|
min-width: 0;
|
|
1652
|
-
padding: var(--
|
|
1652
|
+
padding: var(--space-4) var(--space-5);
|
|
1653
1653
|
color: var(--ink);
|
|
1654
1654
|
background: var(--card);
|
|
1655
1655
|
border: 1px solid var(--line);
|
|
1656
|
-
border-radius: var(--radius);
|
|
1656
|
+
border-radius: var(--radius-card);
|
|
1657
1657
|
box-shadow: var(--shadow-1);
|
|
1658
1658
|
}
|
|
1659
1659
|
.stat-label { font-size: var(--text-sm); color: var(--ink-soft); }
|
|
@@ -1666,7 +1666,7 @@
|
|
|
1666
1666
|
letter-spacing: var(--tracking-title);
|
|
1667
1667
|
}
|
|
1668
1668
|
.stat-delta { font-size: var(--text-sm); color: var(--ink-soft); }
|
|
1669
|
-
.stat-delta[data-dir]::before { margin-right: var(--
|
|
1669
|
+
.stat-delta[data-dir]::before { margin-right: var(--space-1); }
|
|
1670
1670
|
.stat-delta[data-dir='up']::before { content: '↑' / ''; }
|
|
1671
1671
|
.stat-delta[data-dir='down']::before { content: '↓' / ''; }
|
|
1672
1672
|
.stat-delta[data-tone='good'] { color: var(--success-ink); }
|
|
@@ -1674,7 +1674,7 @@
|
|
|
1674
1674
|
.stat-grid {
|
|
1675
1675
|
display: grid;
|
|
1676
1676
|
grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
|
|
1677
|
-
gap: var(--
|
|
1677
|
+
gap: var(--space-4);
|
|
1678
1678
|
}
|
|
1679
1679
|
}
|
|
1680
1680
|
|
|
@@ -1693,7 +1693,7 @@
|
|
|
1693
1693
|
@layer brignano.components {
|
|
1694
1694
|
.tabs-list {
|
|
1695
1695
|
display: flex;
|
|
1696
|
-
gap: var(--
|
|
1696
|
+
gap: var(--space-1);
|
|
1697
1697
|
overflow-x: auto;
|
|
1698
1698
|
scrollbar-width: none;
|
|
1699
1699
|
/* Inset hairline, not a border: a border would push the tab's 2px
|
|
@@ -1705,7 +1705,7 @@
|
|
|
1705
1705
|
all: unset;
|
|
1706
1706
|
box-sizing: border-box;
|
|
1707
1707
|
flex: none;
|
|
1708
|
-
padding: var(--
|
|
1708
|
+
padding: var(--space-2) var(--space-3);
|
|
1709
1709
|
font-size: var(--text-sm);
|
|
1710
1710
|
font-weight: var(--weight-medium);
|
|
1711
1711
|
color: var(--ink-soft);
|
|
@@ -1713,15 +1713,15 @@
|
|
|
1713
1713
|
cursor: pointer;
|
|
1714
1714
|
border-bottom: 2px solid transparent;
|
|
1715
1715
|
border-radius: var(--radius-sm) var(--radius-sm) 0 0;
|
|
1716
|
-
transition: color var(--
|
|
1716
|
+
transition: color var(--duration-fast) var(--ease), background-color var(--duration-fast) var(--ease);
|
|
1717
1717
|
}
|
|
1718
1718
|
.tabs-list > [role='tab']:hover { color: var(--ink); background: var(--surface-hover); }
|
|
1719
|
-
.tabs-list > [role='tab']:focus-visible { outline: 2px solid var(--
|
|
1720
|
-
.tabs-list > [role='tab'][aria-selected='true'] { color: var(--ink); border-bottom-color: var(--
|
|
1721
|
-
.tabs-list > [role='tab'][aria-disabled='true'] { color: var(--
|
|
1722
|
-
.tabs-panel { padding-top: var(--
|
|
1723
|
-
.tabs-panel:focus-visible { outline: 2px solid var(--
|
|
1724
|
-
.tier-marketing .tabs-list > [role='tab'] { font-size: var(--text-base); padding: var(--
|
|
1719
|
+
.tabs-list > [role='tab']:focus-visible { outline: 2px solid var(--action-ink); outline-offset: -2px; }
|
|
1720
|
+
.tabs-list > [role='tab'][aria-selected='true'] { color: var(--ink); border-bottom-color: var(--action); }
|
|
1721
|
+
.tabs-list > [role='tab'][aria-disabled='true'] { color: var(--disabled-ink); cursor: not-allowed; background: none; }
|
|
1722
|
+
.tabs-panel { padding-top: var(--space-4); }
|
|
1723
|
+
.tabs-panel:focus-visible { outline: 2px solid var(--action-ink); outline-offset: 2px; border-radius: var(--radius-sm); }
|
|
1724
|
+
.tier-marketing .tabs-list > [role='tab'] { font-size: var(--text-base); padding: var(--space-3) var(--space-4); }
|
|
1725
1725
|
@media (pointer: coarse) {
|
|
1726
1726
|
.tabs-list > [role='tab'] { display: inline-flex; align-items: center; min-height: 44px; }
|
|
1727
1727
|
}
|
|
@@ -1742,18 +1742,18 @@
|
|
|
1742
1742
|
display: flex;
|
|
1743
1743
|
flex-wrap: wrap;
|
|
1744
1744
|
align-items: center;
|
|
1745
|
-
gap: var(--
|
|
1745
|
+
gap: var(--space-1) var(--space-2);
|
|
1746
1746
|
margin: 0;
|
|
1747
1747
|
padding: 0;
|
|
1748
1748
|
list-style: none;
|
|
1749
1749
|
font-size: var(--text-sm);
|
|
1750
1750
|
color: var(--ink-soft);
|
|
1751
1751
|
}
|
|
1752
|
-
.breadcrumb li { display: inline-flex; align-items: center; gap: var(--
|
|
1752
|
+
.breadcrumb li { display: inline-flex; align-items: center; gap: var(--space-2); min-width: 0; }
|
|
1753
1753
|
.breadcrumb li + li::before { content: '/' / ''; color: var(--slate); }
|
|
1754
|
-
.breadcrumb a { color: var(--
|
|
1754
|
+
.breadcrumb a { color: var(--action-ink); text-decoration: none; border-radius: var(--radius-sm); }
|
|
1755
1755
|
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
|
|
1756
|
-
.breadcrumb a:focus-visible { outline: 2px solid var(--
|
|
1756
|
+
.breadcrumb a:focus-visible { outline: 2px solid var(--action-ink); outline-offset: 2px; }
|
|
1757
1757
|
.breadcrumb [aria-current='page'] {
|
|
1758
1758
|
color: var(--ink);
|
|
1759
1759
|
pointer-events: none;
|
|
@@ -1791,10 +1791,10 @@
|
|
|
1791
1791
|
display: flex;
|
|
1792
1792
|
align-items: center;
|
|
1793
1793
|
justify-content: space-between;
|
|
1794
|
-
gap: var(--
|
|
1794
|
+
gap: var(--space-2);
|
|
1795
1795
|
font-size: var(--text-sm);
|
|
1796
1796
|
}
|
|
1797
|
-
.pagination-pages { display: flex; gap: var(--
|
|
1797
|
+
.pagination-pages { display: flex; gap: var(--space-1); margin: 0; padding: 0; list-style: none; }
|
|
1798
1798
|
.pagination-prev,
|
|
1799
1799
|
.pagination-next,
|
|
1800
1800
|
.pagination-pages a,
|
|
@@ -1804,7 +1804,7 @@
|
|
|
1804
1804
|
justify-content: center;
|
|
1805
1805
|
min-width: 2.25rem;
|
|
1806
1806
|
min-height: 2.25rem;
|
|
1807
|
-
padding: 0 var(--
|
|
1807
|
+
padding: 0 var(--space-3);
|
|
1808
1808
|
color: var(--ink);
|
|
1809
1809
|
text-decoration: none;
|
|
1810
1810
|
border-radius: var(--radius-sm);
|
|
@@ -1816,13 +1816,13 @@
|
|
|
1816
1816
|
.pagination-pages a:hover { background: var(--surface-hover); }
|
|
1817
1817
|
.pagination-prev:focus-visible,
|
|
1818
1818
|
.pagination-next:focus-visible,
|
|
1819
|
-
.pagination-pages a:focus-visible { outline: 2px solid var(--
|
|
1820
|
-
.pagination-pages [aria-current='page'] { color: var(--on-
|
|
1819
|
+
.pagination-pages a:focus-visible { outline: 2px solid var(--action-ink); outline-offset: 2px; }
|
|
1820
|
+
.pagination-pages [aria-current='page'] { color: var(--on-action); background: var(--action); font-weight: var(--weight-semibold); }
|
|
1821
1821
|
.pagination-prev,
|
|
1822
1822
|
.pagination-next { flex-shrink: 0; white-space: nowrap; }
|
|
1823
|
-
.pagination-prev::before { content: '←' / ''; margin-right: var(--
|
|
1824
|
-
.pagination-next::after { content: '→' / ''; margin-left: var(--
|
|
1825
|
-
.pagination [aria-disabled='true'] { color: var(--
|
|
1823
|
+
.pagination-prev::before { content: '←' / ''; margin-right: var(--space-1); }
|
|
1824
|
+
.pagination-next::after { content: '→' / ''; margin-left: var(--space-1); }
|
|
1825
|
+
.pagination [aria-disabled='true'] { color: var(--disabled-ink); pointer-events: none; }
|
|
1826
1826
|
.pagination-status { display: none; color: var(--ink-soft); }
|
|
1827
1827
|
@container pagination (max-width: 34rem) {
|
|
1828
1828
|
.pagination-pages { display: none; }
|
|
@@ -1835,13 +1835,13 @@
|
|
|
1835
1835
|
}
|
|
1836
1836
|
|
|
1837
1837
|
/* Load more: the default for content lists (posts, photos, activity). */
|
|
1838
|
-
.load-more { display: flex; flex-direction: column; align-items: center; gap: var(--
|
|
1838
|
+
.load-more { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); padding: var(--space-5) 0; }
|
|
1839
1839
|
.load-more-count { font-size: var(--text-sm); color: var(--ink-soft); }
|
|
1840
1840
|
.load-more > button,
|
|
1841
1841
|
.load-more > a {
|
|
1842
1842
|
all: unset;
|
|
1843
1843
|
box-sizing: border-box;
|
|
1844
|
-
padding: var(--
|
|
1844
|
+
padding: var(--space-2) var(--space-4);
|
|
1845
1845
|
font-size: var(--text-sm);
|
|
1846
1846
|
font-weight: var(--weight-medium);
|
|
1847
1847
|
color: var(--ink);
|
|
@@ -1853,7 +1853,7 @@
|
|
|
1853
1853
|
.load-more > button:hover,
|
|
1854
1854
|
.load-more > a:hover { background: var(--surface-hover); }
|
|
1855
1855
|
.load-more > button:focus-visible,
|
|
1856
|
-
.load-more > a:focus-visible { outline: 2px solid var(--
|
|
1856
|
+
.load-more > a:focus-visible { outline: 2px solid var(--action-ink); outline-offset: 2px; }
|
|
1857
1857
|
@media (pointer: coarse) {
|
|
1858
1858
|
.load-more > button,
|
|
1859
1859
|
.load-more > a { display: inline-flex; align-items: center; min-height: 44px; }
|
|
@@ -1874,14 +1874,14 @@
|
|
|
1874
1874
|
display: flex;
|
|
1875
1875
|
align-items: center;
|
|
1876
1876
|
justify-content: space-between;
|
|
1877
|
-
gap: var(--
|
|
1878
|
-
padding: var(--
|
|
1877
|
+
gap: var(--space-3);
|
|
1878
|
+
padding: var(--space-3);
|
|
1879
1879
|
font-weight: var(--weight-medium);
|
|
1880
1880
|
color: var(--ink);
|
|
1881
1881
|
list-style: none;
|
|
1882
1882
|
cursor: pointer;
|
|
1883
1883
|
border-radius: var(--radius-sm);
|
|
1884
|
-
transition: background-color var(--
|
|
1884
|
+
transition: background-color var(--duration-fast) var(--ease);
|
|
1885
1885
|
}
|
|
1886
1886
|
.disclosure > summary::-webkit-details-marker { display: none; }
|
|
1887
1887
|
.disclosure > summary::after {
|
|
@@ -1893,18 +1893,18 @@
|
|
|
1893
1893
|
border-right: 2px solid var(--ink-soft);
|
|
1894
1894
|
border-bottom: 2px solid var(--ink-soft);
|
|
1895
1895
|
transform: translateY(-25%) rotate(45deg);
|
|
1896
|
-
transition: transform var(--
|
|
1896
|
+
transition: transform var(--duration-fast) var(--ease);
|
|
1897
1897
|
}
|
|
1898
1898
|
.disclosure[open] > summary::after { transform: translateY(25%) rotate(-135deg); }
|
|
1899
1899
|
.disclosure > summary:hover { background: var(--surface-hover); }
|
|
1900
|
-
.disclosure > summary:focus-visible { outline: 2px solid var(--
|
|
1901
|
-
.disclosure > :not(summary) { margin: 0; padding: 0 var(--
|
|
1900
|
+
.disclosure > summary:focus-visible { outline: 2px solid var(--action-ink); outline-offset: -2px; }
|
|
1901
|
+
.disclosure > :not(summary) { margin: 0; padding: 0 var(--space-3) var(--space-3); color: var(--ink-soft); }
|
|
1902
1902
|
|
|
1903
1903
|
.accordion { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
|
|
1904
1904
|
.accordion > .disclosure + .disclosure { border-top: 1px solid var(--line); }
|
|
1905
1905
|
.accordion > .disclosure > summary { border-radius: 0; }
|
|
1906
1906
|
|
|
1907
|
-
.tier-marketing .disclosure > summary { font-size: var(--text-lg); padding: var(--
|
|
1907
|
+
.tier-marketing .disclosure > summary { font-size: var(--text-lg); padding: var(--space-4) var(--space-3); }
|
|
1908
1908
|
@media (pointer: coarse) {
|
|
1909
1909
|
.disclosure > summary { min-height: 44px; }
|
|
1910
1910
|
}
|
|
@@ -1986,14 +1986,14 @@
|
|
|
1986
1986
|
color: var(--code-ink);
|
|
1987
1987
|
background: var(--code-surface);
|
|
1988
1988
|
border: 1px solid var(--line);
|
|
1989
|
-
border-radius: var(--radius);
|
|
1989
|
+
border-radius: var(--radius-card);
|
|
1990
1990
|
}
|
|
1991
1991
|
.code-block-header {
|
|
1992
1992
|
display: flex;
|
|
1993
1993
|
align-items: center;
|
|
1994
1994
|
justify-content: space-between;
|
|
1995
|
-
gap: var(--
|
|
1996
|
-
padding: var(--
|
|
1995
|
+
gap: var(--space-3);
|
|
1996
|
+
padding: var(--space-1) var(--space-1) var(--space-1) var(--space-4);
|
|
1997
1997
|
font-size: var(--text-xs);
|
|
1998
1998
|
font-family: var(--mono);
|
|
1999
1999
|
color: var(--ink-soft);
|
|
@@ -2004,7 +2004,7 @@
|
|
|
2004
2004
|
all: unset;
|
|
2005
2005
|
box-sizing: border-box;
|
|
2006
2006
|
flex: none;
|
|
2007
|
-
padding: var(--
|
|
2007
|
+
padding: var(--space-1) var(--space-3);
|
|
2008
2008
|
font-family: var(--sans);
|
|
2009
2009
|
font-size: var(--text-xs);
|
|
2010
2010
|
font-weight: var(--weight-medium);
|
|
@@ -2013,11 +2013,11 @@
|
|
|
2013
2013
|
border-radius: var(--radius-sm);
|
|
2014
2014
|
}
|
|
2015
2015
|
.code-block-copy:hover { color: var(--ink); background: var(--surface-hover); }
|
|
2016
|
-
.code-block-copy:focus-visible { outline: 2px solid var(--
|
|
2016
|
+
.code-block-copy:focus-visible { outline: 2px solid var(--action-ink); outline-offset: -2px; }
|
|
2017
2017
|
.code-block pre { margin: 0; }
|
|
2018
2018
|
.code-block pre,
|
|
2019
2019
|
.prose > pre {
|
|
2020
|
-
padding: var(--
|
|
2020
|
+
padding: var(--space-4);
|
|
2021
2021
|
overflow-x: auto;
|
|
2022
2022
|
font-family: var(--mono);
|
|
2023
2023
|
font-size: var(--text-sm);
|
|
@@ -2025,7 +2025,7 @@
|
|
|
2025
2025
|
tab-size: 2;
|
|
2026
2026
|
}
|
|
2027
2027
|
.code-block pre:focus-visible,
|
|
2028
|
-
.prose > pre:focus-visible { outline: 2px solid var(--
|
|
2028
|
+
.prose > pre:focus-visible { outline: 2px solid var(--action-ink); outline-offset: -2px; }
|
|
2029
2029
|
.code-block code { font: inherit; }
|
|
2030
2030
|
.tok-keyword { color: var(--code-keyword); }
|
|
2031
2031
|
.tok-string { color: var(--code-string); }
|
|
@@ -2036,7 +2036,7 @@
|
|
|
2036
2036
|
display: inline-block;
|
|
2037
2037
|
min-width: 100%;
|
|
2038
2038
|
background: var(--code-highlight);
|
|
2039
|
-
box-shadow: calc(var(--
|
|
2039
|
+
box-shadow: calc(var(--space-4) * -1) 0 0 var(--code-highlight), var(--space-4) 0 0 var(--code-highlight);
|
|
2040
2040
|
}
|
|
2041
2041
|
/* Slate falls under 4.5:1 on the cobalt wash; comments step up to the
|
|
2042
2042
|
string ink there and keep their italics. */
|
|
@@ -2053,18 +2053,18 @@
|
|
|
2053
2053
|
@layer brignano.components {
|
|
2054
2054
|
.blockquote {
|
|
2055
2055
|
margin: 0;
|
|
2056
|
-
padding: 0 0 0 var(--
|
|
2056
|
+
padding: 0 0 0 var(--space-4);
|
|
2057
2057
|
font-size: var(--text-lg);
|
|
2058
2058
|
color: var(--ink);
|
|
2059
2059
|
border-left: 3px solid var(--line-strong);
|
|
2060
2060
|
}
|
|
2061
|
-
.blockquote > p { margin: 0 0 var(--
|
|
2061
|
+
.blockquote > p { margin: 0 0 var(--space-2); }
|
|
2062
2062
|
.blockquote > cite { display: block; font-size: var(--text-sm); font-style: normal; color: var(--ink-soft); }
|
|
2063
2063
|
.blockquote > cite::before { content: '— ' / ''; }
|
|
2064
2064
|
.figure { margin: 0; }
|
|
2065
2065
|
.figure > img,
|
|
2066
|
-
.figure > video { display: block; max-width: 100%; height: auto; border-radius: var(--radius); }
|
|
2067
|
-
.figure > figcaption { margin-top: var(--
|
|
2066
|
+
.figure > video { display: block; max-width: 100%; height: auto; border-radius: var(--radius-card); }
|
|
2067
|
+
.figure > figcaption { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--slate); }
|
|
2068
2068
|
}
|
|
2069
2069
|
|
|
2070
2070
|
/* ── Prose (#67) ──────────────────────────────────────────────────────────
|
|
@@ -2082,24 +2082,24 @@
|
|
|
2082
2082
|
overflow-wrap: break-word;
|
|
2083
2083
|
}
|
|
2084
2084
|
.prose > * { margin: 0; }
|
|
2085
|
-
.prose > * + * { margin-top: var(--
|
|
2085
|
+
.prose > * + * { margin-top: var(--space-4); }
|
|
2086
2086
|
.prose :where(h2, h3, h4) {
|
|
2087
2087
|
font-weight: var(--weight-semibold);
|
|
2088
2088
|
line-height: var(--leading-title);
|
|
2089
2089
|
letter-spacing: var(--tracking-title);
|
|
2090
|
-
scroll-margin-top: var(--
|
|
2090
|
+
scroll-margin-top: var(--space-7);
|
|
2091
2091
|
}
|
|
2092
2092
|
.prose h2 { font-size: var(--text-xl); }
|
|
2093
2093
|
.prose h3 { font-size: var(--text-lg); }
|
|
2094
2094
|
.prose h4 { font-size: var(--text-base); }
|
|
2095
|
-
.prose > * + h2 { margin-top: var(--
|
|
2096
|
-
.prose > * + :where(h3, h4) { margin-top: var(--
|
|
2097
|
-
.prose > :where(h2, h3, h4) + * { margin-top: var(--
|
|
2095
|
+
.prose > * + h2 { margin-top: var(--space-7); }
|
|
2096
|
+
.prose > * + :where(h3, h4) { margin-top: var(--space-6); }
|
|
2097
|
+
.prose > :where(h2, h3, h4) + * { margin-top: var(--space-2); }
|
|
2098
2098
|
|
|
2099
2099
|
/* The # follows the heading text and shows on hover or focus; on
|
|
2100
2100
|
devices without hover it always shows. */
|
|
2101
2101
|
.prose .anchor {
|
|
2102
|
-
margin-left: var(--
|
|
2102
|
+
margin-left: var(--space-2);
|
|
2103
2103
|
font-weight: var(--weight-regular);
|
|
2104
2104
|
color: var(--slate);
|
|
2105
2105
|
text-decoration: none;
|
|
@@ -2108,26 +2108,26 @@
|
|
|
2108
2108
|
.prose .anchor::before { content: '#'; }
|
|
2109
2109
|
.prose :where(h2, h3, h4):hover > .anchor,
|
|
2110
2110
|
.prose .anchor:focus-visible { opacity: 1; }
|
|
2111
|
-
.prose .anchor:focus-visible { outline: 2px solid var(--
|
|
2111
|
+
.prose .anchor:focus-visible { outline: 2px solid var(--action-ink); outline-offset: 2px; border-radius: var(--radius-sm); }
|
|
2112
2112
|
@media (hover: none) {
|
|
2113
2113
|
.prose .anchor { opacity: 1; }
|
|
2114
2114
|
}
|
|
2115
2115
|
@media (pointer: coarse) {
|
|
2116
2116
|
/* A 44px hit area without moving the heading text. */
|
|
2117
|
-
.prose .anchor { display: inline-block; min-width: 44px; padding: 12px; margin: -12px -12px -12px calc(var(--
|
|
2117
|
+
.prose .anchor { display: inline-block; min-width: 44px; padding: 12px; margin: -12px -12px -12px calc(var(--space-2) - 12px); text-align: left; }
|
|
2118
2118
|
}
|
|
2119
2119
|
|
|
2120
|
-
.prose a:not(.anchor) { color: var(--
|
|
2121
|
-
.prose a:not(.anchor):hover { color: var(--
|
|
2122
|
-
.prose a:not(.anchor):focus-visible { outline: 2px solid var(--
|
|
2120
|
+
.prose a:not(.anchor) { color: var(--action-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
|
|
2121
|
+
.prose a:not(.anchor):hover { color: var(--action-ink-hover); text-decoration-thickness: 2px; }
|
|
2122
|
+
.prose a:not(.anchor):focus-visible { outline: 2px solid var(--action-ink); outline-offset: 2px; border-radius: 2px; }
|
|
2123
2123
|
.prose strong { font-weight: var(--weight-semibold); }
|
|
2124
2124
|
|
|
2125
|
-
.prose :where(ul, ol) { padding-left: var(--
|
|
2126
|
-
.prose li + li { margin-top: var(--
|
|
2127
|
-
.prose li > :where(ul, ol) { margin-top: var(--
|
|
2125
|
+
.prose :where(ul, ol) { padding-left: var(--space-5); }
|
|
2126
|
+
.prose li + li { margin-top: var(--space-1); }
|
|
2127
|
+
.prose li > :where(ul, ol) { margin-top: var(--space-1); }
|
|
2128
2128
|
.prose li::marker { color: var(--slate); }
|
|
2129
2129
|
|
|
2130
|
-
.prose hr { height: 0; margin-block: var(--
|
|
2130
|
+
.prose hr { height: 0; margin-block: var(--space-7); border: 0; border-top: 1px solid var(--line); }
|
|
2131
2131
|
|
|
2132
2132
|
/* Reused pieces, applied to bare elements. Inline code, kbd and the
|
|
2133
2133
|
pre's type come from the #66 rules above, which list these selectors
|
|
@@ -2136,28 +2136,28 @@
|
|
|
2136
2136
|
color: var(--code-ink);
|
|
2137
2137
|
background: var(--code-surface);
|
|
2138
2138
|
border: 1px solid var(--line);
|
|
2139
|
-
border-radius: var(--radius);
|
|
2139
|
+
border-radius: var(--radius-card);
|
|
2140
2140
|
}
|
|
2141
2141
|
.prose pre code { font: inherit; }
|
|
2142
2142
|
.prose > blockquote {
|
|
2143
|
-
padding-left: var(--
|
|
2143
|
+
padding-left: var(--space-4);
|
|
2144
2144
|
color: var(--ink-soft);
|
|
2145
2145
|
border-left: 3px solid var(--line-strong);
|
|
2146
2146
|
}
|
|
2147
2147
|
.prose > blockquote > * { margin: 0; }
|
|
2148
|
-
.prose > blockquote > * + * { margin-top: var(--
|
|
2149
|
-
.prose > figure > :where(img, video) { display: block; max-width: 100%; height: auto; border-radius: var(--radius); }
|
|
2150
|
-
.prose > figure > figcaption { margin-top: var(--
|
|
2148
|
+
.prose > blockquote > * + * { margin-top: var(--space-2); }
|
|
2149
|
+
.prose > figure > :where(img, video) { display: block; max-width: 100%; height: auto; border-radius: var(--radius-card); }
|
|
2150
|
+
.prose > figure > figcaption { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--slate); }
|
|
2151
2151
|
.prose img { max-width: 100%; height: auto; }
|
|
2152
|
-
.prose > p > img { border-radius: var(--radius); }
|
|
2153
|
-
.prose > :where(figure, pre, .table-wrap, .code-block) { margin-top: var(--
|
|
2154
|
-
.prose > :where(figure, pre, .table-wrap, .code-block) + * { margin-top: var(--
|
|
2152
|
+
.prose > p > img { border-radius: var(--radius-card); }
|
|
2153
|
+
.prose > :where(figure, pre, .table-wrap, .code-block) { margin-top: var(--space-5); }
|
|
2154
|
+
.prose > :where(figure, pre, .table-wrap, .code-block) + * { margin-top: var(--space-5); }
|
|
2155
2155
|
|
|
2156
2156
|
/* Footnotes, in the shape remark-gfm and markdown-it-footnote emit. */
|
|
2157
2157
|
.prose sup { line-height: 0; }
|
|
2158
2158
|
.prose :where(.footnotes, section[data-footnotes]) {
|
|
2159
|
-
margin-top: var(--
|
|
2160
|
-
padding-top: var(--
|
|
2159
|
+
margin-top: var(--space-7);
|
|
2160
|
+
padding-top: var(--space-4);
|
|
2161
2161
|
font-size: var(--text-sm);
|
|
2162
2162
|
color: var(--ink-soft);
|
|
2163
2163
|
border-top: 1px solid var(--line);
|