@slotted/styles 0.1.0-beta.2 → 0.1.0-beta.21
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/package.json +1 -1
- package/src/accordion/accordion.css +10 -10
- package/src/action-bar/action-bar.css +45 -42
- package/src/action-bar/action-bar.tokens.json +1 -0
- package/src/action-sheet/action-sheet.css +36 -36
- package/src/alert/alert.css +68 -67
- package/src/alert/alert.tokens.json +5 -0
- package/src/app-shell/app-shell.css +452 -314
- package/src/app-shell/app-shell.tokens.json +5 -2
- package/src/aspect-ratio/aspect-ratio.css +9 -9
- package/src/attachment/attachment.css +91 -99
- package/src/avatar/avatar.css +71 -41
- package/src/avatar/avatar.tokens.json +7 -0
- package/src/avatar-group/avatar-group.css +21 -22
- package/src/badge/badge.css +45 -37
- package/src/badge/badge.tokens.json +5 -0
- package/src/breadcrumb/breadcrumb.css +37 -37
- package/src/button/button.css +149 -68
- package/src/button/button.tokens.json +10 -0
- package/src/button-group/button-group.css +79 -74
- package/src/button-group/button-group.tokens.json +2 -0
- package/src/calendar/calendar.css +133 -103
- package/src/calendar/calendar.tokens.json +5 -1
- package/src/card/card.css +54 -61
- package/src/carousel/carousel.css +150 -161
- package/src/cascader/cascader.css +154 -153
- package/src/cascader/cascader.tokens.json +1 -0
- package/src/chart/chart.css +258 -248
- package/src/chart/chart.tokens.json +1 -0
- package/src/checkbox/checkbox.css +119 -124
- package/src/checkbox-group/checkbox-group.css +7 -7
- package/src/code-block/code-block.css +81 -85
- package/src/collapsible/collapsible.css +72 -76
- package/src/color-picker/color-picker.css +83 -91
- package/src/column-manager/column-manager.css +106 -114
- package/src/combobox/combobox.css +157 -124
- package/src/combobox/combobox.tokens.json +2 -0
- package/src/command-palette/command-palette.css +103 -90
- package/src/command-palette/command-palette.tokens.json +1 -0
- package/src/container/container.css +24 -24
- package/src/context-menu/context-menu.css +8 -8
- package/src/currency-field/currency-field.css +212 -88
- package/src/currency-field/currency-field.tokens.json +13 -0
- package/src/dashboard-grid/dashboard-grid.css +184 -114
- package/src/data-grid/data-grid.css +535 -470
- package/src/data-grid/data-grid.tokens.json +4 -0
- package/src/data-list/data-list.css +81 -70
- package/src/data-list/data-list.tokens.json +2 -1
- package/src/date-field/date-field.css +57 -52
- package/src/date-field/date-field.tokens.json +1 -0
- package/src/date-picker/date-picker.css +75 -57
- package/src/date-picker/date-picker.tokens.json +1 -0
- package/src/date-range-picker/date-range-picker.css +116 -118
- package/src/datetime-field/datetime-field.css +80 -80
- package/src/datetime-field/datetime-field.tokens.json +1 -0
- package/src/datetime-picker/datetime-picker.css +63 -63
- package/src/datetime-range-picker/datetime-range-picker.css +151 -156
- package/src/description-list/description-list.css +80 -65
- package/src/detail-panel/detail-panel.css +86 -71
- package/src/detail-panel/detail-panel.tokens.json +2 -0
- package/src/dialog/dialog.css +376 -153
- package/src/dialog/dialog.tokens.json +6 -0
- package/src/divider/divider.css +18 -18
- package/src/drawer/drawer.css +513 -217
- package/src/drawer/drawer.tokens.json +6 -0
- package/src/entity-picker/entity-picker.css +273 -256
- package/src/entity-picker/entity-picker.tokens.json +2 -0
- package/src/event-calendar/event-calendar.css +343 -385
- package/src/field/field.css +74 -78
- package/src/field-group/field-group.css +22 -25
- package/src/filter-bar/filter-bar.css +193 -209
- package/src/form/form.css +34 -24
- package/src/form/form.tokens.json +1 -0
- package/src/fullscreen/fullscreen.css +24 -25
- package/src/grid/grid.css +28 -28
- package/src/highlight/highlight.css +6 -6
- package/src/hover-card/hover-card.css +6 -6
- package/src/icon/icon.css +62 -15
- package/src/icon/icon.tokens.json +1 -0
- package/src/image/image.css +39 -39
- package/src/import-export-center/import-export-center.css +135 -156
- package/src/inline/inline.css +27 -27
- package/src/inline-message/inline-message.css +153 -77
- package/src/inline-message/inline-message.tokens.json +4 -0
- package/src/kbd/kbd.css +48 -36
- package/src/kbd/kbd.tokens.json +3 -0
- package/src/link/link.css +36 -15
- package/src/link/link.tokens.json +4 -0
- package/src/list/list.css +44 -17
- package/src/list/list.tokens.json +4 -0
- package/src/list-item/list-item.css +80 -66
- package/src/list-item/list-item.tokens.json +7 -0
- package/src/listbox/listbox.css +56 -59
- package/src/loading-overlay/loading-overlay.css +75 -92
- package/src/markdown/markdown.css +17 -17
- package/src/menu/menu.css +117 -74
- package/src/menu/menu.tokens.json +1 -0
- package/src/menubar/menubar.css +13 -13
- package/src/message/message.css +192 -202
- package/src/message/message.tokens.json +5 -0
- package/src/message-scroller/message-scroller.css +41 -42
- package/src/multi-select/multi-select.css +177 -160
- package/src/multi-select/multi-select.tokens.json +1 -0
- package/src/navigation-menu/navigation-menu.css +167 -188
- package/src/notification-center/notification-center.css +140 -148
- package/src/notification-center/notification-center.tokens.json +3 -0
- package/src/number-field/number-field.css +83 -83
- package/src/number-field/number-field.tokens.json +1 -0
- package/src/otp-input/otp-input.css +67 -57
- package/src/otp-input/otp-input.tokens.json +1 -0
- package/src/page/page.css +39 -23
- package/src/page/page.tokens.json +1 -0
- package/src/page-header/page-header.css +339 -284
- package/src/page-header/page-header.tokens.json +5 -0
- package/src/pagination/pagination.css +68 -72
- package/src/popover/popover.css +73 -61
- package/src/popover/popover.tokens.json +1 -0
- package/src/progress-indicator/progress-indicator.css +169 -113
- package/src/progress-indicator/progress-indicator.tokens.json +1 -0
- package/src/prompt-composer/prompt-composer.css +251 -104
- package/src/prompt-composer/prompt-composer.tokens.json +15 -0
- package/src/prose/prose.css +71 -75
- package/src/radio-group/radio-group.css +98 -103
- package/src/rating/rating.css +136 -132
- package/src/rating/rating.tokens.json +1 -0
- package/src/result-state/result-state.css +74 -77
- package/src/runtime-properties.mjs +2 -0
- package/src/saved-views/saved-views.css +41 -47
- package/src/scroll-area/scroll-area.css +39 -32
- package/src/section/section.css +178 -43
- package/src/section/section.tokens.json +8 -2
- package/src/segmented-control/segmented-control.css +254 -97
- package/src/segmented-control/segmented-control.tokens.json +15 -11
- package/src/select/select.css +153 -132
- package/src/select/select.tokens.json +2 -0
- package/src/side-navigation/side-navigation.css +179 -182
- package/src/side-navigation/side-navigation.tokens.json +1 -0
- package/src/skeleton/skeleton.css +47 -48
- package/src/slider/slider.css +86 -88
- package/src/sparkline/sparkline.css +62 -40
- package/src/sparkline/sparkline.tokens.json +2 -0
- package/src/spinner/spinner.css +83 -180
- package/src/spinner/spinner.tokens.json +0 -1
- package/src/split-button/split-button.css +30 -31
- package/src/split-button/split-button.tokens.json +1 -0
- package/src/splitter/splitter.css +35 -35
- package/src/stack/stack.css +24 -24
- package/src/stat-card/stat-card.css +380 -241
- package/src/stat-card/stat-card.tokens.json +5 -0
- package/src/status-indicator/status-indicator.css +107 -82
- package/src/status-indicator/status-indicator.tokens.json +0 -3
- package/src/stepper/stepper.css +58 -62
- package/src/switch/switch.css +86 -92
- package/src/table/table.css +340 -175
- package/src/table/table.tokens.json +6 -0
- package/src/table-of-contents/table-of-contents.css +57 -56
- package/src/table-of-contents/table-of-contents.tokens.json +1 -0
- package/src/tabs/tabs.css +322 -289
- package/src/tabs/tabs.tokens.json +7 -1
- package/src/tag/tag.css +91 -71
- package/src/tag/tag.tokens.json +9 -0
- package/src/tags-input/tags-input.css +147 -82
- package/src/tags-input/tags-input.tokens.json +7 -1
- package/src/text-field/text-field.css +134 -136
- package/src/text-field/text-field.tokens.json +1 -0
- package/src/textarea/textarea.css +33 -28
- package/src/textarea/textarea.tokens.json +1 -0
- package/src/time-field/time-field.css +74 -69
- package/src/time-field/time-field.tokens.json +1 -0
- package/src/time-picker/time-picker.css +58 -58
- package/src/time-range-picker/time-range-picker.css +128 -133
- package/src/timeline/timeline.css +254 -266
- package/src/timeline/timeline.tokens.json +5 -0
- package/src/toast/toast.css +115 -98
- package/src/toast/toast.tokens.json +6 -0
- package/src/toggle/toggle.css +62 -25
- package/src/toggle/toggle.tokens.json +8 -0
- package/src/toggle-group/toggle-group.css +106 -60
- package/src/toggle-group/toggle-group.tokens.json +10 -0
- package/src/toolbar/toolbar.css +30 -35
- package/src/tooltip/tooltip.css +59 -38
- package/src/tooltip/tooltip.tokens.json +1 -0
- package/src/top-navigation/top-navigation.css +243 -259
- package/src/tour/tour.css +51 -60
- package/src/transfer/transfer.css +160 -164
- package/src/tree/tree.css +103 -111
- package/src/typography/typography.css +40 -36
- package/src/typography/typography.tokens.json +1 -0
- package/src/upload/upload.css +224 -224
- package/src/visually-hidden/visually-hidden.css +1 -1
- package/src/wizard/wizard.css +185 -197
package/src/section/section.css
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
@layer slotted.components {
|
|
2
2
|
/**
|
|
3
|
-
* One unit of content inside a page: a header — eyebrow, heading,
|
|
3
|
+
* One unit of content inside a page: a header — eyebrow, heading, tags,
|
|
4
4
|
* description, actions — and a body one outline step deeper.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
* │ header ▸ title ▸ eyebrow
|
|
8
|
-
* │ heading
|
|
9
|
-
* │ description
|
|
10
|
-
*
|
|
6
|
+
* ┌─────────────────────────────────────────────────┐
|
|
7
|
+
* │ header ▸ title ▸ eyebrow │
|
|
8
|
+
* │ heading tags actions │ ← one baseline
|
|
9
|
+
* │ description │
|
|
10
|
+
* ├─────────────────────────────────────────────────┤
|
|
11
11
|
* │ body │
|
|
12
12
|
* └─────────────────────────────────────────────────┘
|
|
13
13
|
*
|
|
@@ -15,13 +15,23 @@
|
|
|
15
15
|
* sections, and the families inside it — a card, a description-list — have
|
|
16
16
|
* a `header`, an `actions` and a `description` of their own.
|
|
17
17
|
*/
|
|
18
|
-
[data-ui
|
|
18
|
+
[data-ui-section] {
|
|
19
19
|
--_gap: var(--slotted-section-gap, var(--slotted-space-5, 0.75rem));
|
|
20
20
|
--_text: var(--slotted-text, CanvasText);
|
|
21
21
|
--_muted: var(--slotted-text-muted, GrayText);
|
|
22
22
|
--_rule: var(--slotted-section-border, var(--slotted-border-subtle, ButtonBorder));
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
/**
|
|
24
|
+
* A section's heading is a label in small capitals; a subsection's, mixed
|
|
25
|
+
* case one step larger. Each section reads the pair for its own size and
|
|
26
|
+
* uses the one its depth calls for.
|
|
27
|
+
*/
|
|
28
|
+
--_heading-size: var(--slotted-section-heading-size-md, var(--slotted-font-size-xs, 0.75rem));
|
|
29
|
+
--_heading-line-height: var(--slotted-line-height-xs, 1.4);
|
|
30
|
+
--_subheading-size: var(
|
|
31
|
+
--slotted-section-subheading-size-md,
|
|
32
|
+
var(--slotted-font-size-md, 0.875rem)
|
|
33
|
+
);
|
|
34
|
+
--_subheading-line-height: var(--slotted-line-height-md, 1.5);
|
|
25
35
|
/**
|
|
26
36
|
* The ground a sticky header paints, so the content passing under it is
|
|
27
37
|
* covered rather than read through. The page states its own ground in
|
|
@@ -42,20 +52,49 @@
|
|
|
42
52
|
scroll-margin-block-start: var(--slotted-page-sticky-top, 0px);
|
|
43
53
|
}
|
|
44
54
|
|
|
45
|
-
[data-ui
|
|
46
|
-
--_heading-size: var(--slotted-section-heading-size-sm, var(--slotted-font-size-
|
|
47
|
-
--_heading-line-height: var(--slotted-line-height-
|
|
55
|
+
[data-ui-section][data-size='sm'] {
|
|
56
|
+
--_heading-size: var(--slotted-section-heading-size-sm, var(--slotted-font-size-xs, 0.75rem));
|
|
57
|
+
--_heading-line-height: var(--slotted-line-height-xs, 1.4);
|
|
58
|
+
--_subheading-size: var(
|
|
59
|
+
--slotted-section-subheading-size-sm,
|
|
60
|
+
var(--slotted-font-size-sm, 0.8125rem)
|
|
61
|
+
);
|
|
62
|
+
--_subheading-line-height: var(--slotted-line-height-sm, 1.45);
|
|
63
|
+
}
|
|
64
|
+
[data-ui-section][data-size='lg'] {
|
|
65
|
+
--_heading-size: var(--slotted-section-heading-size-lg, var(--slotted-font-size-sm, 0.8125rem));
|
|
66
|
+
--_heading-line-height: var(--slotted-line-height-sm, 1.45);
|
|
67
|
+
--_subheading-size: var(
|
|
68
|
+
--slotted-section-subheading-size-lg,
|
|
69
|
+
var(--slotted-font-size-lg, 1rem)
|
|
70
|
+
);
|
|
71
|
+
--_subheading-line-height: var(--slotted-line-height-lg, 1.5);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* The distance between sections is the family's where sections follow one
|
|
76
|
+
* another in flow: in a page's container, in the body of a drawer, a dialog,
|
|
77
|
+
* a card or another section. There no consumer margin or gap is written
|
|
78
|
+
* between them. One token after a section, another before a subsection
|
|
79
|
+
* that follows content in a body.
|
|
80
|
+
*
|
|
81
|
+
* Elsewhere the parent's layout decides. A stack's gap or a dashboard
|
|
82
|
+
* grid's areas already space their children, and a margin on a grid item
|
|
83
|
+
* would push its cell off the row; a section wrapped in a component of its
|
|
84
|
+
* own has no section beside it to follow.
|
|
85
|
+
*/
|
|
86
|
+
:is([data-ui-container], [data-part-body]) > [data-ui-section] + [data-ui-section] {
|
|
87
|
+
margin-block-start: var(--slotted-section-spacing, var(--slotted-space-9, 2rem));
|
|
48
88
|
}
|
|
49
|
-
[data-ui
|
|
50
|
-
|
|
51
|
-
--_heading-line-height: var(--slotted-line-height-xl, 1.45);
|
|
89
|
+
[data-ui-section] > [data-part-body] > [data-ui-section]:not(:first-child) {
|
|
90
|
+
margin-block-start: var(--slotted-section-subsection-spacing, var(--slotted-space-7, 1.25rem));
|
|
52
91
|
}
|
|
53
92
|
|
|
54
93
|
/**
|
|
55
94
|
* A surface and not a card: a raised ground, a subtle edge, the large
|
|
56
95
|
* radius, one step of inset, and no shadow, no hover, no action.
|
|
57
96
|
*/
|
|
58
|
-
[data-ui
|
|
97
|
+
[data-ui-section][data-ground='surface'] {
|
|
59
98
|
--_ground: var(--slotted-section-surface, var(--slotted-surface-raised, Canvas));
|
|
60
99
|
/* Published, as a card's is, for the families that state a ground inside it. */
|
|
61
100
|
--slotted-ground: var(--_ground);
|
|
@@ -67,26 +106,49 @@
|
|
|
67
106
|
|
|
68
107
|
/* ── The header ──────────────────────────────────────────────────────── */
|
|
69
108
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
109
|
+
/**
|
|
110
|
+
* Three rows — eyebrow, heading, description — and the actions in a column
|
|
111
|
+
* of their own on the heading's row. The title is a subgrid of those rows,
|
|
112
|
+
* so the heading, its tags and the actions are items of one row and share
|
|
113
|
+
* the heading's first baseline, whatever stands above or below the heading.
|
|
114
|
+
* A row with nothing in it takes no space: the distances between rows are
|
|
115
|
+
* margins on the parts, not a gap an empty row would still open.
|
|
116
|
+
*
|
|
117
|
+
* The header is a size container so the actions can leave the heading's
|
|
118
|
+
* row when the header is too narrow to hold both; the tags never do.
|
|
119
|
+
*/
|
|
120
|
+
[data-ui-section] > [data-part-header] {
|
|
121
|
+
align-items: baseline;
|
|
122
|
+
container-type: inline-size;
|
|
123
|
+
display: grid;
|
|
124
|
+
grid-template-columns: minmax(0, 1fr);
|
|
75
125
|
min-inline-size: 0;
|
|
76
126
|
}
|
|
77
127
|
|
|
78
|
-
[data-ui
|
|
128
|
+
[data-ui-section][data-divider] > [data-part-header] {
|
|
79
129
|
border-block-end: var(--slotted-border-width-thin, 1px) solid var(--_rule);
|
|
80
130
|
padding-block-end: var(--slotted-space-4, 0.5rem);
|
|
81
131
|
}
|
|
82
132
|
|
|
133
|
+
/**
|
|
134
|
+
* On a surface the rule runs from edge to edge of the surface, not of its
|
|
135
|
+
* padding: the header takes the inset back as margin and keeps it as
|
|
136
|
+
* padding, so its contents stay where they were.
|
|
137
|
+
*/
|
|
138
|
+
[data-ui-section][data-ground='surface'][data-divider] > [data-part-header] {
|
|
139
|
+
margin-inline: calc(-1 * var(--slotted-section-inset, var(--slotted-space-6, 1rem)));
|
|
140
|
+
padding-inline: var(--slotted-section-inset, var(--slotted-space-6, 1rem));
|
|
141
|
+
}
|
|
142
|
+
|
|
83
143
|
/**
|
|
84
144
|
* Under the page chrome, and painted, so what scrolls under it is covered.
|
|
85
|
-
* The
|
|
145
|
+
* The header writes `data-stuck` while content passes under it, so a theme
|
|
146
|
+
* whose page ground is translucent can fill it only then, through
|
|
147
|
+
* `--slotted-section-header-background`. The inset a surface section gives its header is kept by sticking the
|
|
86
148
|
* header at the same distance the surface's padding put it at.
|
|
87
149
|
*/
|
|
88
|
-
[data-ui
|
|
89
|
-
background-color: var(--_ground);
|
|
150
|
+
[data-ui-section][data-sticky] > [data-part-header] {
|
|
151
|
+
background-color: var(--slotted-section-header-background, var(--_ground));
|
|
90
152
|
inset-block-start: var(--slotted-page-sticky-top, 0px);
|
|
91
153
|
/* Stuck, the header's text and buttons met the chrome's edge with no
|
|
92
154
|
air. The padding gives it, and the negative margin takes the same
|
|
@@ -108,32 +170,45 @@
|
|
|
108
170
|
* The alias on the root is what keeps the redefinition from referring to
|
|
109
171
|
* itself.
|
|
110
172
|
*/
|
|
111
|
-
[data-ui
|
|
173
|
+
[data-ui-section][data-sticky] {
|
|
112
174
|
--_above: var(--slotted-page-sticky-top, 0px);
|
|
113
175
|
}
|
|
114
|
-
[data-ui
|
|
176
|
+
[data-ui-section][data-sticky] > [data-part-body] {
|
|
115
177
|
--slotted-page-sticky-top: calc(var(--_above) + var(--slotted-section-header-size, 0px));
|
|
116
178
|
--slotted-table-sticky-offset: var(--slotted-page-sticky-top);
|
|
117
179
|
}
|
|
118
180
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
181
|
+
/**
|
|
182
|
+
* The heading's column is as wide as its text and no wider, the tags' takes
|
|
183
|
+
* the rest, so a badge stands against the heading's last word. The tags'
|
|
184
|
+
* column is flexible, which is what keeps the eyebrow and the description,
|
|
185
|
+
* spanning both, from widening the heading's. When space runs out the
|
|
186
|
+
* heading wraps between words, never inside one, and the badges stack in
|
|
187
|
+
* their column; the tags never leave the heading's row.
|
|
188
|
+
*/
|
|
189
|
+
[data-ui-section] > [data-part-header] > [data-part-title] {
|
|
190
|
+
align-items: baseline;
|
|
191
|
+
display: grid;
|
|
192
|
+
grid-column: 1;
|
|
193
|
+
grid-row: 1 / span 3;
|
|
194
|
+
grid-template-columns: minmax(min-content, max-content) 1fr;
|
|
195
|
+
grid-template-rows: subgrid;
|
|
124
196
|
min-inline-size: 0;
|
|
125
197
|
}
|
|
126
198
|
|
|
127
|
-
[data-ui
|
|
199
|
+
[data-ui-section] > [data-part-header] > [data-part-title] > [data-part-eyebrow] {
|
|
128
200
|
color: var(--_muted);
|
|
129
201
|
font-size: var(--slotted-font-size-xs, 0.75rem);
|
|
202
|
+
grid-column: 1 / -1;
|
|
203
|
+
grid-row: 1;
|
|
204
|
+
margin-block-end: var(--slotted-space-1, 0.125rem);
|
|
130
205
|
font-weight: var(--slotted-font-weight-semibold, 600);
|
|
131
206
|
letter-spacing: 0.06em;
|
|
132
207
|
line-height: var(--slotted-line-height-xs, 1.4);
|
|
133
208
|
text-transform: uppercase;
|
|
134
209
|
}
|
|
135
210
|
|
|
136
|
-
[data-ui
|
|
211
|
+
[data-ui-section] > [data-part-header] > [data-part-title] > [data-part-heading] {
|
|
137
212
|
color: var(--_text);
|
|
138
213
|
font-family: var(
|
|
139
214
|
--slotted-font-family-heading,
|
|
@@ -141,37 +216,97 @@
|
|
|
141
216
|
);
|
|
142
217
|
font-size: var(--_heading-size);
|
|
143
218
|
font-weight: var(--slotted-font-weight-semibold, 600);
|
|
144
|
-
letter-spacing:
|
|
219
|
+
letter-spacing: 0.08em;
|
|
145
220
|
line-height: var(--_heading-line-height);
|
|
221
|
+
text-transform: uppercase;
|
|
222
|
+
grid-column: 1;
|
|
223
|
+
grid-row: 2;
|
|
146
224
|
margin: 0;
|
|
147
225
|
min-inline-size: 0;
|
|
148
|
-
overflow-wrap:
|
|
226
|
+
overflow-wrap: break-word;
|
|
149
227
|
text-wrap: pretty;
|
|
150
228
|
}
|
|
151
229
|
|
|
152
|
-
|
|
230
|
+
/**
|
|
231
|
+
* A subsection: the case, the size and the tone all change, so the level is
|
|
232
|
+
* read without the colour. The text stays the muted token, which the theme
|
|
233
|
+
* holds above 4.5:1 on every ground a section stands on.
|
|
234
|
+
*/
|
|
235
|
+
[data-ui-section]
|
|
236
|
+
[data-ui-section]
|
|
237
|
+
> [data-part-header]
|
|
238
|
+
> [data-part-title]
|
|
239
|
+
> [data-part-heading] {
|
|
240
|
+
color: var(--_muted);
|
|
241
|
+
font-size: var(--_subheading-size);
|
|
242
|
+
letter-spacing: normal;
|
|
243
|
+
line-height: var(--_subheading-line-height);
|
|
244
|
+
text-transform: none;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* Beside the heading and outside it, so a badge is not read into the
|
|
249
|
+
* region's name. A badge is a box around a line of text, and its label's
|
|
250
|
+
* baseline is the one the row aligns.
|
|
251
|
+
*/
|
|
252
|
+
[data-ui-section] > [data-part-header] > [data-part-title] > [data-part-tags] {
|
|
253
|
+
align-items: baseline;
|
|
254
|
+
display: flex;
|
|
255
|
+
flex-wrap: wrap;
|
|
256
|
+
gap: var(--slotted-space-3, 0.375rem);
|
|
257
|
+
grid-column: 2;
|
|
258
|
+
grid-row: 2;
|
|
259
|
+
justify-self: start;
|
|
260
|
+
margin-inline-start: var(--slotted-space-4, 0.5rem);
|
|
261
|
+
}
|
|
262
|
+
[data-ui-section] > [data-part-header] > [data-part-title] > [data-part-tags]:empty {
|
|
263
|
+
display: none;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
[data-ui-section] > [data-part-header] > [data-part-title] > [data-part-description] {
|
|
153
267
|
color: var(--_muted);
|
|
154
268
|
font-size: var(--slotted-font-size-sm, 0.8125rem);
|
|
269
|
+
grid-column: 1 / -1;
|
|
270
|
+
grid-row: 3;
|
|
155
271
|
line-height: var(--slotted-line-height-sm, 1.45);
|
|
156
|
-
margin: 0;
|
|
272
|
+
margin: var(--slotted-space-1, 0.125rem) 0 0;
|
|
157
273
|
max-inline-size: var(--slotted-section-description-measure, 70ch);
|
|
158
274
|
text-wrap: pretty;
|
|
159
275
|
}
|
|
160
276
|
|
|
161
|
-
|
|
277
|
+
/* An implicit column: a header with no actions has one column and no gap. */
|
|
278
|
+
[data-ui-section] > [data-part-header] > [data-part-actions] {
|
|
279
|
+
/* An action slot states one size for the links it holds. */
|
|
280
|
+
--slotted-link-font-size: var(--slotted-font-size-sm, 0.8125rem);
|
|
281
|
+
|
|
162
282
|
align-items: center;
|
|
163
283
|
display: flex;
|
|
164
|
-
flex: none;
|
|
165
284
|
gap: var(--slotted-control-gap-md, 8px);
|
|
166
|
-
|
|
285
|
+
grid-column: 2;
|
|
286
|
+
grid-row: 2;
|
|
287
|
+
margin-inline-start: var(--slotted-space-6, 1rem);
|
|
167
288
|
}
|
|
168
|
-
[data-ui
|
|
289
|
+
[data-ui-section] > [data-part-header] > [data-part-actions]:empty {
|
|
169
290
|
display: none;
|
|
170
291
|
}
|
|
171
292
|
|
|
293
|
+
/**
|
|
294
|
+
* Too narrow for the heading, its tags and the actions on one row: the
|
|
295
|
+
* actions take a row of their own under the description, at the end. The
|
|
296
|
+
* tags stay beside the heading at every width.
|
|
297
|
+
*/
|
|
298
|
+
@container (inline-size < 20rem) {
|
|
299
|
+
[data-ui-section] > [data-part-header] > [data-part-actions] {
|
|
300
|
+
grid-column: 1 / -1;
|
|
301
|
+
grid-row: 4;
|
|
302
|
+
justify-self: end;
|
|
303
|
+
margin: var(--slotted-space-3, 0.375rem) 0 0;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
|
|
172
307
|
/* ── The body ────────────────────────────────────────────────────────── */
|
|
173
308
|
|
|
174
|
-
[data-ui
|
|
309
|
+
[data-ui-section] > [data-part-body] {
|
|
175
310
|
min-inline-size: 0;
|
|
176
311
|
}
|
|
177
312
|
}
|
|
@@ -7,30 +7,36 @@
|
|
|
7
7
|
"--slotted-font-size-lg",
|
|
8
8
|
"--slotted-font-size-md",
|
|
9
9
|
"--slotted-font-size-sm",
|
|
10
|
-
"--slotted-font-size-xl",
|
|
11
10
|
"--slotted-font-size-xs",
|
|
12
11
|
"--slotted-font-weight-semibold",
|
|
13
12
|
"--slotted-line-height-lg",
|
|
14
13
|
"--slotted-line-height-md",
|
|
15
14
|
"--slotted-line-height-sm",
|
|
16
|
-
"--slotted-line-height-xl",
|
|
17
15
|
"--slotted-line-height-xs",
|
|
18
16
|
"--slotted-page-ground",
|
|
19
17
|
"--slotted-radius-lg",
|
|
20
18
|
"--slotted-section-border",
|
|
21
19
|
"--slotted-section-description-measure",
|
|
22
20
|
"--slotted-section-gap",
|
|
21
|
+
"--slotted-section-header-background",
|
|
23
22
|
"--slotted-section-heading-size-lg",
|
|
24
23
|
"--slotted-section-heading-size-md",
|
|
25
24
|
"--slotted-section-heading-size-sm",
|
|
26
25
|
"--slotted-section-inset",
|
|
27
26
|
"--slotted-section-radius",
|
|
27
|
+
"--slotted-section-spacing",
|
|
28
|
+
"--slotted-section-subheading-size-lg",
|
|
29
|
+
"--slotted-section-subheading-size-md",
|
|
30
|
+
"--slotted-section-subheading-size-sm",
|
|
31
|
+
"--slotted-section-subsection-spacing",
|
|
28
32
|
"--slotted-section-surface",
|
|
29
33
|
"--slotted-space-1",
|
|
30
34
|
"--slotted-space-3",
|
|
31
35
|
"--slotted-space-4",
|
|
32
36
|
"--slotted-space-5",
|
|
33
37
|
"--slotted-space-6",
|
|
38
|
+
"--slotted-space-7",
|
|
39
|
+
"--slotted-space-9",
|
|
34
40
|
"--slotted-surface",
|
|
35
41
|
"--slotted-surface-raised",
|
|
36
42
|
"--slotted-text",
|