@slotted/styles 0.1.0-beta.1 → 0.1.0-beta.11
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 +35 -42
- package/src/action-sheet/action-sheet.css +36 -36
- package/src/alert/alert.css +43 -35
- package/src/alert/alert.tokens.json +5 -0
- package/src/app-shell/app-shell.css +356 -301
- 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 +93 -103
- package/src/card/card.css +54 -61
- package/src/carousel/carousel.css +150 -161
- package/src/cascader/cascader.css +152 -153
- package/src/cascader/cascader.tokens.json +1 -0
- package/src/chart/chart.css +242 -239
- 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 +69 -76
- package/src/color-picker/color-picker.css +83 -91
- package/src/column-manager/column-manager.css +106 -114
- package/src/combobox/combobox.css +132 -107
- package/src/combobox/combobox.tokens.json +1 -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 +210 -88
- package/src/currency-field/currency-field.tokens.json +13 -0
- package/src/dashboard-grid/dashboard-grid.css +148 -116
- 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 +55 -52
- package/src/date-field/date-field.tokens.json +1 -0
- package/src/date-picker/date-picker.css +40 -42
- package/src/date-range-picker/date-range-picker.css +114 -118
- package/src/datetime-field/datetime-field.css +78 -80
- package/src/datetime-field/datetime-field.tokens.json +1 -0
- package/src/datetime-picker/datetime-picker.css +61 -63
- package/src/datetime-range-picker/datetime-range-picker.css +149 -156
- package/src/description-list/description-list.css +61 -64
- package/src/detail-panel/detail-panel.css +86 -71
- package/src/detail-panel/detail-panel.tokens.json +2 -0
- package/src/dialog/dialog.css +372 -153
- package/src/dialog/dialog.tokens.json +6 -0
- package/src/divider/divider.css +18 -18
- package/src/drawer/drawer.css +205 -210
- package/src/drawer/drawer.tokens.json +1 -0
- package/src/entity-picker/entity-picker.css +238 -241
- package/src/entity-picker/entity-picker.tokens.json +1 -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 +19 -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 +52 -28
- package/src/inline-message/inline-message.tokens.json +4 -0
- package/src/kbd/kbd.css +30 -26
- package/src/link/link.css +15 -15
- 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 +83 -63
- package/src/menubar/menubar.css +13 -13
- package/src/message/message.css +182 -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 +152 -145
- 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 +84 -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 +323 -283
- package/src/page-header/page-header.tokens.json +5 -0
- package/src/pagination/pagination.css +68 -72
- package/src/popover/popover.css +40 -49
- package/src/progress-indicator/progress-indicator.css +177 -120
- package/src/progress-indicator/progress-indicator.tokens.json +1 -1
- package/src/prompt-composer/prompt-composer.css +221 -102
- 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 +161 -41
- package/src/section/section.tokens.json +7 -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 +118 -117
- package/src/select/select.tokens.json +1 -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 +341 -224
- package/src/stat-card/stat-card.tokens.json +3 -0
- package/src/status-indicator/status-indicator.css +28 -28
- package/src/stepper/stepper.css +58 -62
- package/src/switch/switch.css +86 -92
- package/src/table/table.css +310 -165
- package/src/table/table.tokens.json +6 -0
- package/src/table-of-contents/table-of-contents.css +51 -54
- package/src/tabs/tabs.css +337 -302
- package/src/tabs/tabs.tokens.json +8 -5
- package/src/tag/tag.css +79 -71
- package/src/tag/tag.tokens.json +9 -0
- package/src/tags-input/tags-input.css +145 -82
- package/src/tags-input/tags-input.tokens.json +7 -1
- package/src/text-field/text-field.css +132 -136
- package/src/text-field/text-field.tokens.json +1 -0
- package/src/textarea/textarea.css +31 -28
- package/src/textarea/textarea.tokens.json +1 -0
- package/src/time-field/time-field.css +72 -69
- package/src/time-field/time-field.tokens.json +1 -0
- package/src/time-picker/time-picker.css +56 -58
- package/src/time-range-picker/time-range-picker.css +126 -133
- package/src/timeline/timeline.css +254 -266
- package/src/timeline/timeline.tokens.json +5 -0
- package/src/toast/toast.css +108 -90
- 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 +26 -26
- 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,15 +106,26 @@
|
|
|
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
|
}
|
|
@@ -85,7 +135,7 @@
|
|
|
85
135
|
* The inset a surface section gives its header is kept by sticking the
|
|
86
136
|
* header at the same distance the surface's padding put it at.
|
|
87
137
|
*/
|
|
88
|
-
[data-ui
|
|
138
|
+
[data-ui-section][data-sticky] > [data-part-header] {
|
|
89
139
|
background-color: var(--_ground);
|
|
90
140
|
inset-block-start: var(--slotted-page-sticky-top, 0px);
|
|
91
141
|
/* Stuck, the header's text and buttons met the chrome's edge with no
|
|
@@ -108,32 +158,45 @@
|
|
|
108
158
|
* The alias on the root is what keeps the redefinition from referring to
|
|
109
159
|
* itself.
|
|
110
160
|
*/
|
|
111
|
-
[data-ui
|
|
161
|
+
[data-ui-section][data-sticky] {
|
|
112
162
|
--_above: var(--slotted-page-sticky-top, 0px);
|
|
113
163
|
}
|
|
114
|
-
[data-ui
|
|
164
|
+
[data-ui-section][data-sticky] > [data-part-body] {
|
|
115
165
|
--slotted-page-sticky-top: calc(var(--_above) + var(--slotted-section-header-size, 0px));
|
|
116
166
|
--slotted-table-sticky-offset: var(--slotted-page-sticky-top);
|
|
117
167
|
}
|
|
118
168
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
169
|
+
/**
|
|
170
|
+
* The heading's column is as wide as its text and no wider, the tags' takes
|
|
171
|
+
* the rest, so a badge stands against the heading's last word. The tags'
|
|
172
|
+
* column is flexible, which is what keeps the eyebrow and the description,
|
|
173
|
+
* spanning both, from widening the heading's. When space runs out the
|
|
174
|
+
* heading wraps between words, never inside one, and the badges stack in
|
|
175
|
+
* their column; the tags never leave the heading's row.
|
|
176
|
+
*/
|
|
177
|
+
[data-ui-section] > [data-part-header] > [data-part-title] {
|
|
178
|
+
align-items: baseline;
|
|
179
|
+
display: grid;
|
|
180
|
+
grid-column: 1;
|
|
181
|
+
grid-row: 1 / span 3;
|
|
182
|
+
grid-template-columns: minmax(min-content, max-content) 1fr;
|
|
183
|
+
grid-template-rows: subgrid;
|
|
124
184
|
min-inline-size: 0;
|
|
125
185
|
}
|
|
126
186
|
|
|
127
|
-
[data-ui
|
|
187
|
+
[data-ui-section] > [data-part-header] > [data-part-title] > [data-part-eyebrow] {
|
|
128
188
|
color: var(--_muted);
|
|
129
189
|
font-size: var(--slotted-font-size-xs, 0.75rem);
|
|
190
|
+
grid-column: 1 / -1;
|
|
191
|
+
grid-row: 1;
|
|
192
|
+
margin-block-end: var(--slotted-space-1, 0.125rem);
|
|
130
193
|
font-weight: var(--slotted-font-weight-semibold, 600);
|
|
131
194
|
letter-spacing: 0.06em;
|
|
132
195
|
line-height: var(--slotted-line-height-xs, 1.4);
|
|
133
196
|
text-transform: uppercase;
|
|
134
197
|
}
|
|
135
198
|
|
|
136
|
-
[data-ui
|
|
199
|
+
[data-ui-section] > [data-part-header] > [data-part-title] > [data-part-heading] {
|
|
137
200
|
color: var(--_text);
|
|
138
201
|
font-family: var(
|
|
139
202
|
--slotted-font-family-heading,
|
|
@@ -141,37 +204,94 @@
|
|
|
141
204
|
);
|
|
142
205
|
font-size: var(--_heading-size);
|
|
143
206
|
font-weight: var(--slotted-font-weight-semibold, 600);
|
|
144
|
-
letter-spacing:
|
|
207
|
+
letter-spacing: 0.08em;
|
|
145
208
|
line-height: var(--_heading-line-height);
|
|
209
|
+
text-transform: uppercase;
|
|
210
|
+
grid-column: 1;
|
|
211
|
+
grid-row: 2;
|
|
146
212
|
margin: 0;
|
|
147
213
|
min-inline-size: 0;
|
|
148
|
-
overflow-wrap:
|
|
214
|
+
overflow-wrap: break-word;
|
|
149
215
|
text-wrap: pretty;
|
|
150
216
|
}
|
|
151
217
|
|
|
152
|
-
|
|
218
|
+
/**
|
|
219
|
+
* A subsection: the case, the size and the tone all change, so the level is
|
|
220
|
+
* read without the colour. The text stays the muted token, which the theme
|
|
221
|
+
* holds above 4.5:1 on every ground a section stands on.
|
|
222
|
+
*/
|
|
223
|
+
[data-ui-section]
|
|
224
|
+
[data-ui-section]
|
|
225
|
+
> [data-part-header]
|
|
226
|
+
> [data-part-title]
|
|
227
|
+
> [data-part-heading] {
|
|
228
|
+
color: var(--_muted);
|
|
229
|
+
font-size: var(--_subheading-size);
|
|
230
|
+
letter-spacing: normal;
|
|
231
|
+
line-height: var(--_subheading-line-height);
|
|
232
|
+
text-transform: none;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* Beside the heading and outside it, so a badge is not read into the
|
|
237
|
+
* region's name. A badge is a box around a line of text, and its label's
|
|
238
|
+
* baseline is the one the row aligns.
|
|
239
|
+
*/
|
|
240
|
+
[data-ui-section] > [data-part-header] > [data-part-title] > [data-part-tags] {
|
|
241
|
+
align-items: baseline;
|
|
242
|
+
display: flex;
|
|
243
|
+
flex-wrap: wrap;
|
|
244
|
+
gap: var(--slotted-space-3, 0.375rem);
|
|
245
|
+
grid-column: 2;
|
|
246
|
+
grid-row: 2;
|
|
247
|
+
justify-self: start;
|
|
248
|
+
margin-inline-start: var(--slotted-space-4, 0.5rem);
|
|
249
|
+
}
|
|
250
|
+
[data-ui-section] > [data-part-header] > [data-part-title] > [data-part-tags]:empty {
|
|
251
|
+
display: none;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
[data-ui-section] > [data-part-header] > [data-part-title] > [data-part-description] {
|
|
153
255
|
color: var(--_muted);
|
|
154
256
|
font-size: var(--slotted-font-size-sm, 0.8125rem);
|
|
257
|
+
grid-column: 1 / -1;
|
|
258
|
+
grid-row: 3;
|
|
155
259
|
line-height: var(--slotted-line-height-sm, 1.45);
|
|
156
|
-
margin: 0;
|
|
260
|
+
margin: var(--slotted-space-1, 0.125rem) 0 0;
|
|
157
261
|
max-inline-size: var(--slotted-section-description-measure, 70ch);
|
|
158
262
|
text-wrap: pretty;
|
|
159
263
|
}
|
|
160
264
|
|
|
161
|
-
|
|
265
|
+
/* An implicit column: a header with no actions has one column and no gap. */
|
|
266
|
+
[data-ui-section] > [data-part-header] > [data-part-actions] {
|
|
162
267
|
align-items: center;
|
|
163
268
|
display: flex;
|
|
164
|
-
flex: none;
|
|
165
269
|
gap: var(--slotted-control-gap-md, 8px);
|
|
166
|
-
|
|
270
|
+
grid-column: 2;
|
|
271
|
+
grid-row: 2;
|
|
272
|
+
margin-inline-start: var(--slotted-space-6, 1rem);
|
|
167
273
|
}
|
|
168
|
-
[data-ui
|
|
274
|
+
[data-ui-section] > [data-part-header] > [data-part-actions]:empty {
|
|
169
275
|
display: none;
|
|
170
276
|
}
|
|
171
277
|
|
|
278
|
+
/**
|
|
279
|
+
* Too narrow for the heading, its tags and the actions on one row: the
|
|
280
|
+
* actions take a row of their own under the description, at the end. The
|
|
281
|
+
* tags stay beside the heading at every width.
|
|
282
|
+
*/
|
|
283
|
+
@container (inline-size < 20rem) {
|
|
284
|
+
[data-ui-section] > [data-part-header] > [data-part-actions] {
|
|
285
|
+
grid-column: 1 / -1;
|
|
286
|
+
grid-row: 4;
|
|
287
|
+
justify-self: end;
|
|
288
|
+
margin: var(--slotted-space-3, 0.375rem) 0 0;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
|
|
172
292
|
/* ── The body ────────────────────────────────────────────────────────── */
|
|
173
293
|
|
|
174
|
-
[data-ui
|
|
294
|
+
[data-ui-section] > [data-part-body] {
|
|
175
295
|
min-inline-size: 0;
|
|
176
296
|
}
|
|
177
297
|
}
|
|
@@ -7,13 +7,11 @@
|
|
|
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",
|
|
@@ -25,12 +23,19 @@
|
|
|
25
23
|
"--slotted-section-heading-size-sm",
|
|
26
24
|
"--slotted-section-inset",
|
|
27
25
|
"--slotted-section-radius",
|
|
26
|
+
"--slotted-section-spacing",
|
|
27
|
+
"--slotted-section-subheading-size-lg",
|
|
28
|
+
"--slotted-section-subheading-size-md",
|
|
29
|
+
"--slotted-section-subheading-size-sm",
|
|
30
|
+
"--slotted-section-subsection-spacing",
|
|
28
31
|
"--slotted-section-surface",
|
|
29
32
|
"--slotted-space-1",
|
|
30
33
|
"--slotted-space-3",
|
|
31
34
|
"--slotted-space-4",
|
|
32
35
|
"--slotted-space-5",
|
|
33
36
|
"--slotted-space-6",
|
|
37
|
+
"--slotted-space-7",
|
|
38
|
+
"--slotted-space-9",
|
|
34
39
|
"--slotted-surface",
|
|
35
40
|
"--slotted-surface-raised",
|
|
36
41
|
"--slotted-text",
|