actual-css 0.14.1 → 0.15.1
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 +48 -0
- package/README.md +4 -4
- package/components.json +51 -6
- package/dist/actual.full.css +380 -32
- package/dist/actual.full.js +1 -1
- package/dist/actual.full.min.css +1 -1
- package/docs/design-notes/architecture.md +3 -0
- package/docs/design-notes/enhancement-contract.md +14 -0
- package/docs/design-notes/naming.md +6 -0
- package/docs/design-notes/steps.md +13 -2
- package/docs/design-notes/tokens.md +159 -0
- package/docs/navigation.json +4 -1
- package/docs/pages/components/accordion.md +15 -18
- package/docs/pages/components/avatar.md +1 -0
- package/docs/pages/components/badge.md +41 -5
- package/docs/pages/components/button.md +32 -7
- package/docs/pages/components/card.md +40 -7
- package/docs/pages/components/diagrams.md +96 -0
- package/docs/pages/components/steps.md +31 -17
- package/docs/pages/components/table.md +4 -0
- package/docs/pages/components/timeline.md +111 -0
- package/docs/pages/enhancements/overview.md +13 -20
- package/docs/pages/enhancements/status-bar.md +7 -9
- package/docs/pages/enhancements/tabs.md +59 -21
- package/docs/pages/enhancements/tooltip.md +10 -19
- package/docs/pages/examples/overview.md +3 -0
- package/docs/pages/forms/choice-cards.md +3 -0
- package/docs/pages/forms/combobox.md +34 -19
- package/docs/pages/forms/controls.md +2 -0
- package/docs/pages/forms/date-picker.md +34 -13
- package/docs/pages/forms/file-upload.md +120 -0
- package/docs/pages/forms/joined-controls.md +4 -2
- package/docs/pages/forms/overview.md +8 -0
- package/docs/pages/foundations/philosophy.md +32 -62
- package/docs/pages/foundations/theming.md +63 -26
- package/docs/pages/foundations/tokens.md +91 -159
- package/docs/pages/foundations/typography.md +3 -0
- package/docs/pages/guides/integrating-actual-css.md +1 -1
- package/docs/pages/guides/introduction.md +14 -14
- package/docs/pages/guides/modular-import.md +124 -0
- package/docs/pages/guides/upgrading.md +63 -0
- package/docs/pages/layout/choosing.md +10 -16
- package/docs/pages/layout/grid.md +8 -16
- package/docs/pages/patterns/intent-nesting.md +13 -1
- package/package.json +2 -2
- package/reserved-classes.json +3 -0
- package/src/css/components/accordion.css +7 -3
- package/src/css/components/alert.css +9 -1
- package/src/css/components/app-nav.css +2 -0
- package/src/css/components/badge.css +38 -11
- package/src/css/components/button.css +10 -2
- package/src/css/components/card.css +9 -0
- package/src/css/components/index.css +1 -0
- package/src/css/components/skeleton.css +11 -0
- package/src/css/components/tab.css +77 -0
- package/src/css/components/table.css +7 -1
- package/src/css/components/timeline.css +160 -0
- package/src/css/core/base.css +13 -2
- package/src/css/core/reset.css +5 -0
- package/src/css/core/theme.css +6 -1
- package/src/css/core/tokens.css +3 -3
- package/src/css/forms/choice-card.css +5 -2
- package/src/css/forms/control.css +12 -3
- package/src/css/forms/custom-select.css +1 -1
- package/src/css/typography/prose.css +4 -2
- package/src/tooling/design-tokens.js +2 -0
- package/src/tooling/theme-contrast.js +1 -1
package/dist/actual.full.css
CHANGED
|
@@ -12,6 +12,11 @@
|
|
|
12
12
|
|
|
13
13
|
html {
|
|
14
14
|
-webkit-text-size-adjust: 100%;
|
|
15
|
+
/* The native tap highlight is a rectangle that ignores border-radius and
|
|
16
|
+
custom surfaces; components use their own interaction states where
|
|
17
|
+
relevant. Inherited, so one declaration covers every element; base.css
|
|
18
|
+
restores a tinted flash on bare text links. */
|
|
19
|
+
-webkit-tap-highlight-color: transparent;
|
|
15
20
|
}
|
|
16
21
|
|
|
17
22
|
body {
|
|
@@ -178,14 +183,14 @@ select {
|
|
|
178
183
|
Like --control-size, it is a scale plus a selection: themes set the
|
|
179
184
|
-sm/-md/-lg steps, and :root, .sm/.lg and .compact/.spacious (variants.css)
|
|
180
185
|
pick one. A theme that wrote --control-pad-x itself would be overwritten
|
|
181
|
-
by every size and density boundary —
|
|
182
|
-
|
|
186
|
+
by every size and density boundary — a theme's 12px became a wider 13px
|
|
187
|
+
inside .compact. The selection is rebound at each boundary because a
|
|
183
188
|
var() inside a custom property resolves where it is declared.
|
|
184
189
|
|
|
185
190
|
The boundaries also write --control-step-sm/-md/-lg: which step is
|
|
186
191
|
selected, as 0/1 weights that mean the same under every theme. A theme
|
|
187
192
|
that sets its own steps rebuilds the selection from them in its own block
|
|
188
|
-
(
|
|
193
|
+
(docs: Tokens · Controls), so a nested island of it reads its steps without
|
|
189
194
|
resetting the density it sits in. Never rebind on every [data-theme]: a
|
|
190
195
|
palette-only island then became a geometry boundary that an inherited
|
|
191
196
|
--control-size or --control-pad-x no longer crossed. */
|
|
@@ -335,7 +340,7 @@ select {
|
|
|
335
340
|
* Exception: --surface-opaque and --surface-solid-fg are public; a theme with
|
|
336
341
|
* translucent surfaces overrides them with opaque values. --border-control is
|
|
337
342
|
* public too: the resting edge of a neutral control, apart from structural
|
|
338
|
-
* separators.
|
|
343
|
+
* separators. --control-default-bg is the inherited resting field fill.
|
|
339
344
|
* Internal: --hgroup-gap.
|
|
340
345
|
*/
|
|
341
346
|
:root {
|
|
@@ -428,6 +433,8 @@ select {
|
|
|
428
433
|
their own tokens instead of inheriting :root's resolved values. */
|
|
429
434
|
:root,
|
|
430
435
|
[data-theme] {
|
|
436
|
+
/* A painted parent's link context must not cross into a new palette. */
|
|
437
|
+
--surface-link: initial;
|
|
431
438
|
--heading: var(--text);
|
|
432
439
|
--selection-bg: var(--primary);
|
|
433
440
|
--selection-fg: var(--primary-fg);
|
|
@@ -440,6 +447,9 @@ select {
|
|
|
440
447
|
/* The edge that tells a control apart from the surface, where --border only
|
|
441
448
|
separates surfaces: fields, choices, switch, OTP cells, choice cards. */
|
|
442
449
|
--border-control: var(--border);
|
|
450
|
+
/* Inherited resting field fill, shared with external control bridges.
|
|
451
|
+
Component state rules still own readonly, disabled and invalid fills. */
|
|
452
|
+
--control-default-bg: var(--surface);
|
|
443
453
|
}
|
|
444
454
|
|
|
445
455
|
/* Soft foreground hooks — the soft ink is the intent rebated toward the local
|
|
@@ -576,14 +586,23 @@ body {
|
|
|
576
586
|
opts in by setting --link. Because this is an element selector, any component
|
|
577
587
|
rule that colors its own anchors still wins. */
|
|
578
588
|
a {
|
|
579
|
-
color: var(--link, inherit);
|
|
589
|
+
color: var(--surface-link, var(--link, inherit));
|
|
580
590
|
text-underline-offset: 0.18em;
|
|
581
591
|
}
|
|
582
592
|
|
|
583
|
-
|
|
593
|
+
/* :active stands in for the native tap highlight the reset removes. */
|
|
594
|
+
a:is(:hover, :active) {
|
|
584
595
|
text-decoration-thickness: 0.12em;
|
|
585
596
|
}
|
|
586
597
|
|
|
598
|
+
/* Bare text links get back the tap flash the reset removes: a text link has
|
|
599
|
+
no pressed state of its own. Tinted from the link ink so it reads on any
|
|
600
|
+
surface. Zero specificity so a component styling classless anchors (an
|
|
601
|
+
.app-nav tile) can opt out with transparent. */
|
|
602
|
+
:where(a[href]:not([class])) {
|
|
603
|
+
-webkit-tap-highlight-color: color-mix(in oklab, currentColor 18%, transparent);
|
|
604
|
+
}
|
|
605
|
+
|
|
587
606
|
/* Global heading chrome: color (--heading or inherit), a tight line-height,
|
|
588
607
|
and progressive text-wrap. No font-size or font-weight is set globally —
|
|
589
608
|
components and .prose own the per-context scale. */
|
|
@@ -645,6 +664,8 @@ small {
|
|
|
645
664
|
::selection {
|
|
646
665
|
background: var(--selection-bg, var(--primary));
|
|
647
666
|
color: var(--selection-fg, var(--primary-fg));
|
|
667
|
+
/* SVG text paints with fill, including labels with an explicit fill. */
|
|
668
|
+
fill: currentColor;
|
|
648
669
|
}
|
|
649
670
|
|
|
650
671
|
/*
|
|
@@ -1040,7 +1061,7 @@ small {
|
|
|
1040
1061
|
/* --link is a theme-level token (core/base.css also reads it for bare links);
|
|
1041
1062
|
prose falls back to --primary so a theme that never sets it is unaffected. */
|
|
1042
1063
|
.prose :where(a) {
|
|
1043
|
-
color: var(--link, var(--primary));
|
|
1064
|
+
color: var(--surface-link, var(--link, var(--primary)));
|
|
1044
1065
|
text-decoration-line: underline;
|
|
1045
1066
|
text-decoration-thickness: 0.08em;
|
|
1046
1067
|
text-underline-offset: 0.18em;
|
|
@@ -1052,7 +1073,9 @@ small {
|
|
|
1052
1073
|
|
|
1053
1074
|
@supports (color: color-mix(in oklch, red, white)) {
|
|
1054
1075
|
.prose :where(a:hover, a:focus-visible) {
|
|
1055
|
-
|
|
1076
|
+
/* A solid surface owns its contrast pair in every state; mixing in the
|
|
1077
|
+
page's --text would pull its links toward the wrong background. */
|
|
1078
|
+
color: var(--surface-link, color-mix(in oklab, var(--link, var(--primary)), var(--text) 15%));
|
|
1056
1079
|
}
|
|
1057
1080
|
}
|
|
1058
1081
|
|
|
@@ -2221,8 +2244,10 @@ small {
|
|
|
2221
2244
|
* Public hooks:
|
|
2222
2245
|
* --control-border
|
|
2223
2246
|
* --control-bg
|
|
2247
|
+
* --control-default-bg
|
|
2224
2248
|
* --control-fg
|
|
2225
2249
|
* --control-cursor
|
|
2250
|
+
* --control-shadow
|
|
2226
2251
|
* --control-border-block-end-color
|
|
2227
2252
|
* --control-border-block-end-width
|
|
2228
2253
|
* --control-hover-border (input and textarea)
|
|
@@ -2232,7 +2257,7 @@ small {
|
|
|
2232
2257
|
.textarea,
|
|
2233
2258
|
.select {
|
|
2234
2259
|
--control-border: var(--border-control);
|
|
2235
|
-
--control-bg: var(--surface);
|
|
2260
|
+
--control-bg: var(--control-default-bg, var(--surface));
|
|
2236
2261
|
--control-fg: var(--text);
|
|
2237
2262
|
--control-cursor: auto;
|
|
2238
2263
|
|
|
@@ -2250,6 +2275,11 @@ small {
|
|
|
2250
2275
|
border-radius: var(--radius);
|
|
2251
2276
|
background: var(--control-bg);
|
|
2252
2277
|
color: var(--control-fg);
|
|
2278
|
+
/* why: an unset hook, so a theme can give every field a resting elevation
|
|
2279
|
+
that focus keeps (see the focus rule). The fallback is none, the same as
|
|
2280
|
+
the focus rule's: a transparent 0 0 shadow here made focus transition
|
|
2281
|
+
between two values and expose a phantom shadow mid-way. */
|
|
2282
|
+
box-shadow: var(--control-shadow, none);
|
|
2253
2283
|
font-size: var(--control-font-size);
|
|
2254
2284
|
cursor: var(--control-cursor);
|
|
2255
2285
|
/* No outline: none here — the core :focus fallback must survive for browsers
|
|
@@ -2282,13 +2312,15 @@ small {
|
|
|
2282
2312
|
the control's border box (any smaller offset bleeds outward), so it covers
|
|
2283
2313
|
the border, never touches a .join neighbour or a scrollport edge, and needs
|
|
2284
2314
|
no group treatment. Width follows --focus-ring-width, including its
|
|
2285
|
-
prefers-contrast step. Border = shape and validation, outline = focus.
|
|
2315
|
+
prefers-contrast step. Border = shape and validation, outline = focus.
|
|
2316
|
+
The box-shadow reset drops any halo but keeps the field's own elevation:
|
|
2317
|
+
a plain none erased --control-shadow on keyboard focus. */
|
|
2286
2318
|
.input:focus-visible:not(:disabled),
|
|
2287
2319
|
.textarea:focus-visible:not(:disabled),
|
|
2288
2320
|
.select:focus-visible:not(:disabled) {
|
|
2289
2321
|
outline: var(--focus-ring-width) solid var(--form-invalid-border, var(--focus));
|
|
2290
2322
|
outline-offset: calc(var(--focus-ring-width) * -1);
|
|
2291
|
-
box-shadow: none;
|
|
2323
|
+
box-shadow: var(--control-shadow, none);
|
|
2292
2324
|
}
|
|
2293
2325
|
|
|
2294
2326
|
.input[readonly],
|
|
@@ -3532,14 +3564,17 @@ small {
|
|
|
3532
3564
|
clip-path: circle(0 at var(--choice-chip-dot));
|
|
3533
3565
|
}
|
|
3534
3566
|
|
|
3535
|
-
/* The check keeps the card's scale-in, in flow ahead of the label.
|
|
3567
|
+
/* The check keeps the card's scale-in, in flow ahead of the label. It is ink
|
|
3568
|
+
on the chip, not a fill: a theme whose selected fill cannot be text (a
|
|
3569
|
+
yellow or lime accent) lends its selected ink here, as for tabs and steps.
|
|
3570
|
+
It outranks explicit intents too: their pastel fills are still not ink. */
|
|
3536
3571
|
.choice-card.chip::after {
|
|
3537
3572
|
order: -1;
|
|
3538
3573
|
flex: none;
|
|
3539
3574
|
align-self: center;
|
|
3540
3575
|
margin-block: 0;
|
|
3541
3576
|
margin-inline: 0 0.375em;
|
|
3542
|
-
background: var(--intent, var(--state-selected));
|
|
3577
|
+
background: var(--state-selected-text, var(--intent, var(--state-selected)));
|
|
3543
3578
|
-webkit-mask-size: contain;
|
|
3544
3579
|
mask-size: contain;
|
|
3545
3580
|
}
|
|
@@ -3780,7 +3815,7 @@ small {
|
|
|
3780
3815
|
--control-bg: var(--surface-raised);
|
|
3781
3816
|
outline: var(--focus-ring-width) solid var(--form-invalid-border, var(--focus));
|
|
3782
3817
|
outline-offset: calc(var(--focus-ring-width) * -1);
|
|
3783
|
-
box-shadow: none;
|
|
3818
|
+
box-shadow: var(--control-shadow, none);
|
|
3784
3819
|
}
|
|
3785
3820
|
|
|
3786
3821
|
&::picker-icon {
|
|
@@ -4120,6 +4155,7 @@ small {
|
|
|
4120
4155
|
* --btn-radius
|
|
4121
4156
|
* --btn-gap
|
|
4122
4157
|
* --btn-hover-overlay
|
|
4158
|
+
* --btn-shadow
|
|
4123
4159
|
* --btn-default-bg
|
|
4124
4160
|
* --btn-default-fg
|
|
4125
4161
|
* --btn-default-border
|
|
@@ -4186,6 +4222,11 @@ small {
|
|
|
4186
4222
|
border-radius: var(--btn-radius);
|
|
4187
4223
|
background: var(--btn-bg);
|
|
4188
4224
|
color: var(--btn-fg);
|
|
4225
|
+
/* why: an unset hook rather than none, so a theme or container can give
|
|
4226
|
+
every button an elevation the hover overlay composes with instead of
|
|
4227
|
+
replacing (see the hover rule). The hook accepts shadow-list items:
|
|
4228
|
+
use 0 0 #0000 to remove elevation, since none invalidates that list. */
|
|
4229
|
+
box-shadow: var(--btn-shadow, 0 0 #0000);
|
|
4189
4230
|
font: inherit;
|
|
4190
4231
|
font-size: var(--btn-font-size);
|
|
4191
4232
|
font-weight: var(--font-weight-medium);
|
|
@@ -4270,8 +4311,10 @@ small {
|
|
|
4270
4311
|
background: var(--ui-hover-bg, var(--btn-bg));
|
|
4271
4312
|
/* Huge inset spread paints the overlay over any border-radius without a
|
|
4272
4313
|
pseudo-element; a plain background would replace the fill instead of
|
|
4273
|
-
darkening it. */
|
|
4274
|
-
box-shadow:
|
|
4314
|
+
darkening it. Listed after --btn-shadow, which it must not drop. */
|
|
4315
|
+
box-shadow:
|
|
4316
|
+
var(--btn-shadow, 0 0 #0000),
|
|
4317
|
+
inset 0 0 0 999px var(--btn-hover-overlay);
|
|
4275
4318
|
}
|
|
4276
4319
|
|
|
4277
4320
|
.btn:not(:where(:disabled, [aria-disabled="true"])):active {
|
|
@@ -4486,6 +4529,8 @@ a.btn[aria-disabled="true"] {
|
|
|
4486
4529
|
* --badge-default-fg
|
|
4487
4530
|
* --badge-default-border
|
|
4488
4531
|
* --badge-default-hover-bg
|
|
4532
|
+
* --badge-slot-inset
|
|
4533
|
+
* --badge-slot-size
|
|
4489
4534
|
* --badge-bg
|
|
4490
4535
|
* --badge-fg
|
|
4491
4536
|
* --badge-border
|
|
@@ -4510,9 +4555,13 @@ a.btn[aria-disabled="true"] {
|
|
|
4510
4555
|
--badge-font-size: var(--font-size-sm);
|
|
4511
4556
|
--badge-icon-size: 1em;
|
|
4512
4557
|
--badge-dot-size: 0.5rem;
|
|
4558
|
+
/* A leading .avatar and a trailing .close are slots: a disc inside the pill
|
|
4559
|
+
at the same inset from its block edges and its rounded end. */
|
|
4560
|
+
--badge-slot-inset: calc(var(--badge-size) / 12);
|
|
4561
|
+
--badge-slot-size: calc(var(--badge-size) - 2 * (var(--border-width) + var(--badge-slot-inset)));
|
|
4513
4562
|
/* Declared on the badge, not the button, so an author can still set them
|
|
4514
4563
|
on either. Same element as --badge-size, so .sm/.lg carry through. */
|
|
4515
|
-
--close-size:
|
|
4564
|
+
--close-size: var(--badge-slot-size);
|
|
4516
4565
|
--close-icon-size: 0.875em;
|
|
4517
4566
|
--badge-default-bg: var(--surface-subtle);
|
|
4518
4567
|
--badge-default-fg: var(--intent, var(--text));
|
|
@@ -4563,9 +4612,11 @@ a.btn[aria-disabled="true"] {
|
|
|
4563
4612
|
--badge-dot-size: 0.625rem;
|
|
4564
4613
|
}
|
|
4565
4614
|
|
|
4566
|
-
/* Decorative children follow the badge's optical size. Text
|
|
4567
|
-
button retain their own boxes
|
|
4568
|
-
.
|
|
4615
|
+
/* Decorative children follow the badge's optical size. Text, the .close
|
|
4616
|
+
button and an .avatar retain their own boxes — an aria-hidden avatar would
|
|
4617
|
+
otherwise tie with .avatar on specificity and shrink to an icon whenever
|
|
4618
|
+
badge.css loads last. */
|
|
4619
|
+
.badge > :where(svg, img, [aria-hidden="true"]:not(.dot, .avatar)) {
|
|
4569
4620
|
flex: none;
|
|
4570
4621
|
/* The shared rule maps --badge-icon-size onto font-size. One em is therefore
|
|
4571
4622
|
the requested optical size; reusing the em-valued hook here would apply its
|
|
@@ -4630,17 +4681,36 @@ a.btn[aria-disabled="true"] {
|
|
|
4630
4681
|
background-color: currentColor;
|
|
4631
4682
|
}
|
|
4632
4683
|
|
|
4633
|
-
/*
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
4684
|
+
/* Person chip (mention, assignee, contributor) — a leading .avatar follows the
|
|
4685
|
+
pill instead of its own scale, so the badge keeps its height. */
|
|
4686
|
+
.badge > .avatar {
|
|
4687
|
+
--avatar-size: var(--badge-slot-size);
|
|
4688
|
+
/* Initials scale from the label, not the diameter: a diameter ratio left
|
|
4689
|
+
them under 6px on .sm. em resolves against the badge's font size here. */
|
|
4690
|
+
--avatar-font-size: 0.7em;
|
|
4691
|
+
margin-inline-start: calc(var(--badge-slot-inset) - var(--badge-pad-x));
|
|
4692
|
+
}
|
|
4693
|
+
|
|
4694
|
+
/* Removable tag — a trailing .close (components/close.css), the avatar's
|
|
4695
|
+
mirror: a fill or the hover wash stays a disc inside the pill. */
|
|
4637
4696
|
.badge > .close {
|
|
4638
|
-
|
|
4639
|
-
margin-inline-
|
|
4640
|
-
margin-inline-end: -0.45em;
|
|
4697
|
+
position: relative;
|
|
4698
|
+
margin-inline-end: calc(var(--badge-slot-inset) - var(--badge-pad-x));
|
|
4641
4699
|
border-radius: var(--radius-full);
|
|
4642
4700
|
}
|
|
4643
4701
|
|
|
4702
|
+
/* WCAG 2.5.8 floors pointer targets at 24 CSS px. The disc is smaller on the
|
|
4703
|
+
default and .sm badges, so a transparent pseudo-element — part of the
|
|
4704
|
+
button's hit area — extends the target to the floor around it, past the pill
|
|
4705
|
+
if need be, without painting anything there. */
|
|
4706
|
+
.badge > .close::after {
|
|
4707
|
+
content: "";
|
|
4708
|
+
position: absolute;
|
|
4709
|
+
/* Square on purpose: nothing paints it, and a round one would miss the
|
|
4710
|
+
corners of the 24px target. */
|
|
4711
|
+
inset: min(0px, calc((var(--close-size) - 24px) / 2));
|
|
4712
|
+
}
|
|
4713
|
+
|
|
4644
4714
|
/* Hover recipes — sets --ui-hover-bg consumed by the hover rule below.
|
|
4645
4715
|
Declared outside :hover like button.css for the same reason. */
|
|
4646
4716
|
:is(a.badge, button.badge).outline {
|
|
@@ -4881,6 +4951,9 @@ a.badge[aria-disabled="true"] {
|
|
|
4881
4951
|
/* No grid-template-columns: the icon and close branches below always set
|
|
4882
4952
|
it, since one of them is what matched. */
|
|
4883
4953
|
align-items: var(--items-align, start);
|
|
4954
|
+
/* why: a stretched alert (equal-height grid row) spread its extra height
|
|
4955
|
+
between the content rows, opening a gap under the title. */
|
|
4956
|
+
align-content: start;
|
|
4884
4957
|
column-gap: var(--space-30);
|
|
4885
4958
|
}
|
|
4886
4959
|
|
|
@@ -4888,9 +4961,14 @@ a.badge[aria-disabled="true"] {
|
|
|
4888
4961
|
grid-template-columns: auto minmax(0, 1fr);
|
|
4889
4962
|
}
|
|
4890
4963
|
|
|
4964
|
+
/* why span 2, not 1 / -1: the rows are implicit, so -1 is line 1 and the
|
|
4965
|
+
icon sat in the title row alone — any icon taller than one line inflated
|
|
4966
|
+
that row and pushed the body down. Spanning the title and body rows lets
|
|
4967
|
+
its height spread over both; only an icon taller than both together still
|
|
4968
|
+
splits its excess between them. */
|
|
4891
4969
|
.alert:has(> .alert-icon) > .alert-icon {
|
|
4892
4970
|
grid-column: 1;
|
|
4893
|
-
grid-row: 1 /
|
|
4971
|
+
grid-row: 1 / span 2;
|
|
4894
4972
|
display: inline-grid;
|
|
4895
4973
|
place-items: center;
|
|
4896
4974
|
margin-block-start: 0.125em;
|
|
@@ -5058,6 +5136,7 @@ a.badge[aria-disabled="true"] {
|
|
|
5058
5136
|
* --card-fg
|
|
5059
5137
|
* --heading
|
|
5060
5138
|
* --busy-overlay-bg
|
|
5139
|
+
* --surface-link
|
|
5061
5140
|
*/
|
|
5062
5141
|
/* Intent boundary — inherited intents do not tint this component.
|
|
5063
5142
|
Local intent classes still win because :where() has zero specificity.
|
|
@@ -5066,6 +5145,7 @@ a.badge[aria-disabled="true"] {
|
|
|
5066
5145
|
when they paint this surface, so an ancestor intent would otherwise leak
|
|
5067
5146
|
through a variant that has no local intent class. */
|
|
5068
5147
|
:where(.card) {
|
|
5148
|
+
--surface-link: initial;
|
|
5069
5149
|
--intent: initial;
|
|
5070
5150
|
--intent-fg: initial;
|
|
5071
5151
|
--intent-soft-fg: initial;
|
|
@@ -5101,6 +5181,13 @@ a.badge[aria-disabled="true"] {
|
|
|
5101
5181
|
border-radius: var(--card-radius);
|
|
5102
5182
|
}
|
|
5103
5183
|
|
|
5184
|
+
/* Theme link ink is tuned for the page, not an intent fill. currentColor
|
|
5185
|
+
follows the surrounding copy without freezing a parent's resolved ink;
|
|
5186
|
+
the card and theme boundaries reset this internal relay above/in theme.css. */
|
|
5187
|
+
.card.solid {
|
|
5188
|
+
--surface-link: currentColor;
|
|
5189
|
+
}
|
|
5190
|
+
|
|
5104
5191
|
/* The box lives at zero specificity so a layout primitive applied to the same
|
|
5105
5192
|
element owns it. components/ is imported after layout/, so a plain .card
|
|
5106
5193
|
declaration would beat .media (and any other non-column primitive) on source
|
|
@@ -6343,12 +6430,16 @@ picture.bleed > img {
|
|
|
6343
6430
|
* --accordion-pad
|
|
6344
6431
|
* --accordion-marker-color
|
|
6345
6432
|
* --accordion-marker-size
|
|
6433
|
+
* --accordion-marker-icon
|
|
6434
|
+
* --accordion-marker-open-rotate
|
|
6346
6435
|
*/
|
|
6347
6436
|
.accordion {
|
|
6348
6437
|
--accordion-radius: var(--radius);
|
|
6349
6438
|
--accordion-pad: var(--space-40);
|
|
6350
6439
|
--accordion-marker-color: var(--text-muted);
|
|
6351
6440
|
--accordion-marker-size: 1rem;
|
|
6441
|
+
--accordion-marker-icon: var(--icon-chevron);
|
|
6442
|
+
--accordion-marker-open-rotate: 180deg;
|
|
6352
6443
|
|
|
6353
6444
|
border: var(--border-width) solid var(--border);
|
|
6354
6445
|
border-radius: var(--accordion-radius);
|
|
@@ -6393,13 +6484,13 @@ picture.bleed > img {
|
|
|
6393
6484
|
inline-size: var(--accordion-marker-size);
|
|
6394
6485
|
block-size: var(--accordion-marker-size);
|
|
6395
6486
|
background-color: var(--accordion-marker-color);
|
|
6396
|
-
-webkit-mask: var(--icon
|
|
6397
|
-
mask: var(--icon
|
|
6487
|
+
-webkit-mask: var(--accordion-marker-icon) center / contain no-repeat;
|
|
6488
|
+
mask: var(--accordion-marker-icon) center / contain no-repeat;
|
|
6398
6489
|
transition: transform var(--duration);
|
|
6399
6490
|
}
|
|
6400
6491
|
|
|
6401
6492
|
.accordion details[open] summary::after {
|
|
6402
|
-
transform: rotate(
|
|
6493
|
+
transform: rotate(var(--accordion-marker-open-rotate));
|
|
6403
6494
|
}
|
|
6404
6495
|
|
|
6405
6496
|
/* The panel, not the item, owns the inset here — .separated paints a card on
|
|
@@ -6596,6 +6687,17 @@ picture.bleed > img {
|
|
|
6596
6687
|
0 0 / 200% 100%;
|
|
6597
6688
|
}
|
|
6598
6689
|
|
|
6690
|
+
/* Translucent ink tints show the surface they sit on. Fixed surfaces did
|
|
6691
|
+
not: the --surface-raised highlight matched a card or a light page, so the
|
|
6692
|
+
shape lost its edges mid-sweep, and a soft card or dark page made the track
|
|
6693
|
+
inverted or invisible. The highlight keeps a tint so the edge never goes. */
|
|
6694
|
+
@supports (color: color-mix(in oklab, red, blue)) {
|
|
6695
|
+
.skeleton {
|
|
6696
|
+
--skeleton-track: color-mix(in oklab, currentColor 10%, transparent);
|
|
6697
|
+
--skeleton-highlight: color-mix(in oklab, currentColor 4%, transparent);
|
|
6698
|
+
}
|
|
6699
|
+
}
|
|
6700
|
+
|
|
6599
6701
|
@media (prefers-reduced-motion: no-preference) {
|
|
6600
6702
|
.skeleton {
|
|
6601
6703
|
animation: actual-skeleton var(--duration-shimmer) ease-in-out infinite;
|
|
@@ -7985,6 +8087,167 @@ a.avatar[aria-disabled="true"] {
|
|
|
7985
8087
|
no-repeat;
|
|
7986
8088
|
}
|
|
7987
8089
|
|
|
8090
|
+
/*
|
|
8091
|
+
* Timeline — a vertical history of dated events: activity feed, audit log,
|
|
8092
|
+
* order tracking.
|
|
8093
|
+
*
|
|
8094
|
+
* Docs: docs/pages/components/timeline.md
|
|
8095
|
+
*
|
|
8096
|
+
* <ol class="timeline">
|
|
8097
|
+
* <li class="success">
|
|
8098
|
+
* <time datetime="2026-10-18T09:30">Today, 09:30</time>
|
|
8099
|
+
* Appointment confirmed
|
|
8100
|
+
* </li>
|
|
8101
|
+
* </ol>
|
|
8102
|
+
*
|
|
8103
|
+
* Each event draws a dot on a rail; an intent class on the <li> colors it. An
|
|
8104
|
+
* .avatar or an aria-hidden icon written first in the <li> takes the dot's
|
|
8105
|
+
* place. A direct <time> child is the event's dateline. The content stays in
|
|
8106
|
+
* block flow, so a sentence mixing text and links is never split into items.
|
|
8107
|
+
*
|
|
8108
|
+
* Progress through a process is .steps, not a timeline.
|
|
8109
|
+
*
|
|
8110
|
+
* Public hooks:
|
|
8111
|
+
* --timeline-dot-size
|
|
8112
|
+
* --timeline-slot-size
|
|
8113
|
+
* --timeline-gap
|
|
8114
|
+
* --timeline-inline-gap
|
|
8115
|
+
* --timeline-line-size
|
|
8116
|
+
*
|
|
8117
|
+
* Internal:
|
|
8118
|
+
* --timeline-rail-size
|
|
8119
|
+
* --timeline-line-box
|
|
8120
|
+
*/
|
|
8121
|
+
|
|
8122
|
+
/* Registered so the event's line box computes to a length on the <li> and
|
|
8123
|
+
inherits as one: an avatar slot sets its own font size and line-height, and
|
|
8124
|
+
an unregistered em would resolve against those. Unregistered, the dot still
|
|
8125
|
+
lines up and the slot drifts by the font difference.
|
|
8126
|
+
|
|
8127
|
+
The initial value must be computationally independent: a rem or em there
|
|
8128
|
+
invalidates the whole @property rule, silently. Every <li> sets its own. */
|
|
8129
|
+
@property --timeline-line-box {
|
|
8130
|
+
syntax: "<length>";
|
|
8131
|
+
inherits: true;
|
|
8132
|
+
initial-value: 0px;
|
|
8133
|
+
}
|
|
8134
|
+
|
|
8135
|
+
.timeline {
|
|
8136
|
+
--timeline-dot-size: 0.625rem;
|
|
8137
|
+
--timeline-slot-size: 1.75rem;
|
|
8138
|
+
--timeline-gap: var(--density-space);
|
|
8139
|
+
--timeline-inline-gap: var(--space-30);
|
|
8140
|
+
--timeline-line-size: var(--border-width);
|
|
8141
|
+
--timeline-rail-size: var(--timeline-dot-size);
|
|
8142
|
+
|
|
8143
|
+
display: grid;
|
|
8144
|
+
/* A long URL or token in an event wraps instead of widening the list. */
|
|
8145
|
+
grid-template-columns: minmax(0, 1fr);
|
|
8146
|
+
/* A list stretched by its parent (a grid cell, an equal-height card) keeps
|
|
8147
|
+
its rhythm instead of spreading the events over the extra height. */
|
|
8148
|
+
align-content: start;
|
|
8149
|
+
gap: var(--timeline-gap);
|
|
8150
|
+
margin: 0;
|
|
8151
|
+
padding: 0;
|
|
8152
|
+
list-style: none;
|
|
8153
|
+
}
|
|
8154
|
+
|
|
8155
|
+
/* One slotted event widens the rail of the whole list, so every line and every
|
|
8156
|
+
text column stays aligned when dots and avatars mix. Without :has() the rail
|
|
8157
|
+
keeps the dot's width and a slot shrinks to it: the degraded list stays
|
|
8158
|
+
aligned and readable, with a dot-sized avatar. */
|
|
8159
|
+
.timeline:has(> li > :is(.avatar, [aria-hidden="true"]):first-child) {
|
|
8160
|
+
--timeline-rail-size: var(--timeline-slot-size);
|
|
8161
|
+
}
|
|
8162
|
+
|
|
8163
|
+
/* The line box is a length, not the unitless ratio: a smaller <time> opening
|
|
8164
|
+
the event keeps the same first line as text would, so the marker centred on
|
|
8165
|
+
it lines up whichever element comes first. */
|
|
8166
|
+
.timeline > li {
|
|
8167
|
+
--timeline-line-box: calc(var(--line-height) * 1em);
|
|
8168
|
+
|
|
8169
|
+
position: relative;
|
|
8170
|
+
padding-inline-start: calc(var(--timeline-rail-size) + var(--timeline-inline-gap));
|
|
8171
|
+
line-height: var(--timeline-line-box);
|
|
8172
|
+
}
|
|
8173
|
+
|
|
8174
|
+
/* The event owns no rhythm beyond its dateline: block children drop their own
|
|
8175
|
+
margins, and an author who needs more spacing composes a .stack inside. */
|
|
8176
|
+
.timeline > li > * {
|
|
8177
|
+
margin-block: 0;
|
|
8178
|
+
}
|
|
8179
|
+
|
|
8180
|
+
.timeline > li > time {
|
|
8181
|
+
display: block;
|
|
8182
|
+
color: var(--text-muted);
|
|
8183
|
+
font-size: var(--font-size-sm);
|
|
8184
|
+
}
|
|
8185
|
+
|
|
8186
|
+
.timeline > li::before {
|
|
8187
|
+
content: "";
|
|
8188
|
+
position: absolute;
|
|
8189
|
+
inset-block-start: calc((var(--timeline-line-box) - var(--timeline-dot-size)) / 2);
|
|
8190
|
+
inset-inline-start: calc((var(--timeline-rail-size) - var(--timeline-dot-size)) / 2);
|
|
8191
|
+
inline-size: var(--timeline-dot-size);
|
|
8192
|
+
block-size: var(--timeline-dot-size);
|
|
8193
|
+
border-radius: var(--radius-full);
|
|
8194
|
+
background: var(--intent, var(--neutral));
|
|
8195
|
+
}
|
|
8196
|
+
|
|
8197
|
+
/* Stated as an undo, not as `:not(:has(...))` on the dot rule: an engine
|
|
8198
|
+
without :has() would drop that whole rule and lose every dot, where this way
|
|
8199
|
+
it only keeps a dot under the slot. */
|
|
8200
|
+
.timeline > li:has(> :is(.avatar, [aria-hidden="true"]):first-child)::before {
|
|
8201
|
+
content: none;
|
|
8202
|
+
}
|
|
8203
|
+
|
|
8204
|
+
/* The segment clears each marker by half the rail, so it never shows through
|
|
8205
|
+
a translucent avatar fill, and a dot in a list widened by a slot keeps the
|
|
8206
|
+
slot's clearance. A border rather than a background: forced colors keep a
|
|
8207
|
+
border and wipe a background. */
|
|
8208
|
+
.timeline > li:not(:last-child)::after {
|
|
8209
|
+
content: "";
|
|
8210
|
+
position: absolute;
|
|
8211
|
+
inset-block-start: calc((var(--timeline-line-box) + var(--timeline-rail-size)) / 2);
|
|
8212
|
+
inset-inline-start: calc((var(--timeline-rail-size) - var(--timeline-line-size)) / 2);
|
|
8213
|
+
block-size: calc(100% + var(--timeline-gap) - var(--timeline-rail-size));
|
|
8214
|
+
border-inline-start: var(--timeline-line-size) solid var(--border);
|
|
8215
|
+
}
|
|
8216
|
+
|
|
8217
|
+
.timeline > li > :is(.avatar, [aria-hidden="true"]):first-child {
|
|
8218
|
+
--avatar-size: var(--timeline-rail-size);
|
|
8219
|
+
|
|
8220
|
+
position: absolute;
|
|
8221
|
+
inset-block-start: calc((var(--timeline-line-box) - var(--timeline-rail-size)) / 2);
|
|
8222
|
+
inset-inline-start: 0;
|
|
8223
|
+
}
|
|
8224
|
+
|
|
8225
|
+
/* An icon slot gets a disc of the avatar's size, so both slot kinds read as one
|
|
8226
|
+
rail. The event's intent colors the glyph. */
|
|
8227
|
+
.timeline > li > [aria-hidden="true"]:first-child:not(.avatar) {
|
|
8228
|
+
display: grid;
|
|
8229
|
+
place-items: center;
|
|
8230
|
+
inline-size: var(--timeline-rail-size);
|
|
8231
|
+
block-size: var(--timeline-rail-size);
|
|
8232
|
+
border: var(--border-width) solid var(--border);
|
|
8233
|
+
border-radius: var(--radius-full);
|
|
8234
|
+
background: var(--surface-opaque);
|
|
8235
|
+
color: var(--intent, var(--text-muted));
|
|
8236
|
+
font-size: var(--font-size-sm);
|
|
8237
|
+
line-height: 1;
|
|
8238
|
+
}
|
|
8239
|
+
|
|
8240
|
+
.timeline > li > [aria-hidden="true"]:first-child:not(.avatar) > svg {
|
|
8241
|
+
inline-size: 1em;
|
|
8242
|
+
block-size: 1em;
|
|
8243
|
+
}
|
|
8244
|
+
|
|
8245
|
+
@media (forced-colors: active) {
|
|
8246
|
+
.timeline > li::before {
|
|
8247
|
+
background: CanvasText;
|
|
8248
|
+
}
|
|
8249
|
+
}
|
|
8250
|
+
|
|
7988
8251
|
|
|
7989
8252
|
/* Navigation */
|
|
7990
8253
|
/*
|
|
@@ -8046,6 +8309,8 @@ a.avatar[aria-disabled="true"] {
|
|
|
8046
8309
|
text-align: center;
|
|
8047
8310
|
text-decoration: none;
|
|
8048
8311
|
overflow-wrap: anywhere;
|
|
8312
|
+
/* A rounded tile: opt out of the bare-link tap flash from base.css. */
|
|
8313
|
+
-webkit-tap-highlight-color: transparent;
|
|
8049
8314
|
}
|
|
8050
8315
|
|
|
8051
8316
|
.app-nav > a > :where(svg, img, [aria-hidden="true"]) {
|
|
@@ -8439,6 +8704,9 @@ a.avatar[aria-disabled="true"] {
|
|
|
8439
8704
|
* Public hooks:
|
|
8440
8705
|
* --tab-flex
|
|
8441
8706
|
* --tab-gap
|
|
8707
|
+
* --tab-panel-bg
|
|
8708
|
+
* --tab-panel-pad
|
|
8709
|
+
* --tab-panel-shadow
|
|
8442
8710
|
*
|
|
8443
8711
|
* Internal:
|
|
8444
8712
|
* --tab-edge
|
|
@@ -8669,6 +8937,80 @@ a.avatar[aria-disabled="true"] {
|
|
|
8669
8937
|
inline-size: 100%;
|
|
8670
8938
|
}
|
|
8671
8939
|
|
|
8940
|
+
/* Attached horizontal tabs share a surface with their panels. The strip
|
|
8941
|
+
draws the panel's top edge inside its scrollport: no overlapping layers
|
|
8942
|
+
or outside ink that overflow clipping could cut off. Direct children
|
|
8943
|
+
keep an ordinary or nested tablist inside a panel independent. */
|
|
8944
|
+
.tabs-attached {
|
|
8945
|
+
--tab-panel-bg: var(--surface-raised);
|
|
8946
|
+
--tab-panel-pad: var(--space-40);
|
|
8947
|
+
--tab-panel-shadow: none;
|
|
8948
|
+
|
|
8949
|
+
display: grid;
|
|
8950
|
+
gap: 0;
|
|
8951
|
+
min-inline-size: 0;
|
|
8952
|
+
}
|
|
8953
|
+
|
|
8954
|
+
.tabs-attached > .tabs {
|
|
8955
|
+
gap: 0;
|
|
8956
|
+
border: 0;
|
|
8957
|
+
background:
|
|
8958
|
+
linear-gradient(var(--border), var(--border)) bottom / 100% var(--border-width) no-repeat;
|
|
8959
|
+
}
|
|
8960
|
+
|
|
8961
|
+
.tabs-attached > .tabs > .tab {
|
|
8962
|
+
border: var(--border-width) solid var(--border);
|
|
8963
|
+
background: var(--surface-subtle);
|
|
8964
|
+
}
|
|
8965
|
+
|
|
8966
|
+
.tabs-attached > .tabs > .tab + .tab {
|
|
8967
|
+
margin-inline-start: calc(-1 * var(--border-width));
|
|
8968
|
+
}
|
|
8969
|
+
|
|
8970
|
+
.tabs-attached > .tabs > .tab[aria-selected="true"] {
|
|
8971
|
+
background: var(--tab-panel-bg);
|
|
8972
|
+
color: var(--text);
|
|
8973
|
+
}
|
|
8974
|
+
|
|
8975
|
+
.tabs-attached > .tabs > .tab[aria-selected="true"]::after {
|
|
8976
|
+
/* Keep all four border colors equal: differently colored bottom borders
|
|
8977
|
+
meet the sides diagonally. Erase only the inner bottom edge so the
|
|
8978
|
+
vertical strokes reach the panel with square ends. */
|
|
8979
|
+
inset-block-end: calc(-1 * var(--border-width));
|
|
8980
|
+
block-size: var(--border-width);
|
|
8981
|
+
border: 0;
|
|
8982
|
+
background: var(--tab-panel-bg);
|
|
8983
|
+
}
|
|
8984
|
+
|
|
8985
|
+
.tabs-attached > .tab-panel {
|
|
8986
|
+
min-inline-size: 0;
|
|
8987
|
+
margin: 0;
|
|
8988
|
+
padding: var(--tab-panel-pad);
|
|
8989
|
+
border: var(--border-width) solid var(--border);
|
|
8990
|
+
border-block-start: 0;
|
|
8991
|
+
background: var(--tab-panel-bg);
|
|
8992
|
+
box-shadow: var(--tab-panel-shadow);
|
|
8993
|
+
}
|
|
8994
|
+
|
|
8995
|
+
/* Forced colors remove gradients and shadows. A real strip edge and the
|
|
8996
|
+
user's selection colors preserve both the frame and the selected state. */
|
|
8997
|
+
@media (forced-colors: active) {
|
|
8998
|
+
.tabs-attached > .tabs {
|
|
8999
|
+
border-block-end: var(--border-width) solid CanvasText;
|
|
9000
|
+
}
|
|
9001
|
+
|
|
9002
|
+
.tabs-attached > .tabs > .tab[aria-selected="true"] {
|
|
9003
|
+
forced-color-adjust: none;
|
|
9004
|
+
border-color: CanvasText;
|
|
9005
|
+
background: Highlight;
|
|
9006
|
+
color: HighlightText;
|
|
9007
|
+
}
|
|
9008
|
+
|
|
9009
|
+
.tabs-attached > .tabs > .tab[aria-selected="true"]::after {
|
|
9010
|
+
content: none;
|
|
9011
|
+
}
|
|
9012
|
+
}
|
|
9013
|
+
|
|
8672
9014
|
/*
|
|
8673
9015
|
* Segmented control — one compact choice among a few, on a shared track.
|
|
8674
9016
|
*
|
|
@@ -9092,6 +9434,11 @@ a.list-item:is([aria-current="page"], [aria-current="true"])::before {
|
|
|
9092
9434
|
* Public hooks:
|
|
9093
9435
|
* --table-min
|
|
9094
9436
|
* --table-cell-pad
|
|
9437
|
+
*
|
|
9438
|
+
* Theme hooks (unset by default, read with a fallback, so a theme sets them
|
|
9439
|
+
* once on its root and third-party grid bridges can read the same choice):
|
|
9440
|
+
* --table-header-bg
|
|
9441
|
+
* --table-header-fg
|
|
9095
9442
|
*/
|
|
9096
9443
|
.table-wrap {
|
|
9097
9444
|
/* Containing block for anything absolutely positioned inside the table —
|
|
@@ -9142,11 +9489,12 @@ a.list-item:is([aria-current="page"], [aria-current="true"])::before {
|
|
|
9142
9489
|
}
|
|
9143
9490
|
|
|
9144
9491
|
.table thead th {
|
|
9492
|
+
color: var(--table-header-fg, var(--text-muted));
|
|
9145
9493
|
vertical-align: bottom;
|
|
9146
9494
|
}
|
|
9147
9495
|
|
|
9148
9496
|
.table thead {
|
|
9149
|
-
background: var(--surface-subtle);
|
|
9497
|
+
background: var(--table-header-bg, var(--surface-subtle));
|
|
9150
9498
|
}
|
|
9151
9499
|
|
|
9152
9500
|
.table tbody tr:hover {
|