@slotted/styles 0.1.0-beta.2 → 0.1.0-beta.20
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 +152 -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 +155 -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 +210 -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 +55 -52
- package/src/date-field/date-field.tokens.json +1 -0
- package/src/date-picker/date-picker.css +75 -59
- package/src/date-picker/date-picker.tokens.json +1 -0
- 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 +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 +271 -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 +175 -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 +81 -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 +154 -133
- 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 +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 +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
|
@@ -38,15 +38,20 @@
|
|
|
38
38
|
"--slotted-table-color-muted",
|
|
39
39
|
"--slotted-table-column-actions-size",
|
|
40
40
|
"--slotted-table-control-radius",
|
|
41
|
+
"--slotted-table-edge-inset",
|
|
41
42
|
"--slotted-table-font-family",
|
|
42
43
|
"--slotted-table-font-size",
|
|
43
44
|
"--slotted-table-gap",
|
|
45
|
+
"--slotted-table-group-color",
|
|
46
|
+
"--slotted-table-group-sticky-offset",
|
|
47
|
+
"--slotted-table-group-surface",
|
|
44
48
|
"--slotted-table-header-surface",
|
|
45
49
|
"--slotted-table-header-surface-hover",
|
|
46
50
|
"--slotted-table-icon-size",
|
|
47
51
|
"--slotted-table-radius",
|
|
48
52
|
"--slotted-table-row-color-selected",
|
|
49
53
|
"--slotted-table-row-min-block-size",
|
|
54
|
+
"--slotted-table-row-surface-current",
|
|
50
55
|
"--slotted-table-row-surface-hover",
|
|
51
56
|
"--slotted-table-row-surface-selected",
|
|
52
57
|
"--slotted-table-row-surface-selected-hover",
|
|
@@ -64,6 +69,7 @@
|
|
|
64
69
|
"--slotted-tone-accent-subtle-hover",
|
|
65
70
|
"--slotted-tone-accent-surface",
|
|
66
71
|
"--slotted-tone-accent-text",
|
|
72
|
+
"--slotted-tone-secondary-subtle-active",
|
|
67
73
|
"--slotted-tone-secondary-subtle-hover",
|
|
68
74
|
"--slotted-z-index-sticky"
|
|
69
75
|
]
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
* hover mixes the first toward the page's own text colour, which is the rule
|
|
25
25
|
* `link` and `breadcrumb` arrived at for a line of text.
|
|
26
26
|
*/
|
|
27
|
-
[data-ui
|
|
27
|
+
[data-ui-table-of-contents] {
|
|
28
28
|
--_text: var(--slotted-table-of-contents-color, var(--slotted-text-muted, GrayText));
|
|
29
29
|
--_strong: var(--slotted-text, CanvasText);
|
|
30
30
|
--_hover: var(
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
* fixed height, because a label wraps.
|
|
67
67
|
*/
|
|
68
68
|
|
|
69
|
-
[data-ui
|
|
69
|
+
[data-ui-table-of-contents][data-size='sm'] {
|
|
70
70
|
--_row-height: var(--slotted-control-height-sm, 30px);
|
|
71
71
|
--_font-size: var(--slotted-control-font-size-sm, 12px);
|
|
72
72
|
--_inset: var(--slotted-control-padding-inline-sm, 10px);
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
--_gap: var(--slotted-control-gap-sm, 6px);
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
[data-ui
|
|
77
|
+
[data-ui-table-of-contents][data-size='md'] {
|
|
78
78
|
--_row-height: var(--slotted-control-height-md, 34px);
|
|
79
79
|
--_font-size: var(--slotted-control-font-size-md, 13px);
|
|
80
80
|
--_inset: var(--slotted-control-padding-inline-md, 13px);
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
--_gap: var(--slotted-control-gap-md, 8px);
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
[data-ui
|
|
85
|
+
[data-ui-table-of-contents][data-size='lg'] {
|
|
86
86
|
--_row-height: var(--slotted-control-height-lg, 38px);
|
|
87
87
|
--_font-size: var(--slotted-control-font-size-lg, 14px);
|
|
88
88
|
--_inset: var(--slotted-control-padding-inline-lg, 16px);
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
/** A list with no entries draws nothing: a title over an empty column is a broken column. */
|
|
94
|
-
[data-ui
|
|
94
|
+
[data-ui-table-of-contents][data-empty]:not([data-loading]) {
|
|
95
95
|
display: none;
|
|
96
96
|
}
|
|
97
97
|
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
* link that happens to be bold. It stands on the same inset as the links.
|
|
103
103
|
*/
|
|
104
104
|
|
|
105
|
-
[data-ui
|
|
105
|
+
[data-ui-table-of-contents] > [data-part-label] {
|
|
106
106
|
color: var(--_strong);
|
|
107
107
|
font-size: var(--slotted-font-size-sm, 0.8125rem);
|
|
108
108
|
font-weight: var(--slotted-font-weight-semibold, 600);
|
|
@@ -113,11 +113,11 @@
|
|
|
113
113
|
|
|
114
114
|
/* ── The list ─────────────────────────────────────────────────────────── */
|
|
115
115
|
|
|
116
|
-
[data-ui
|
|
116
|
+
[data-ui-table-of-contents] [data-part-panel] {
|
|
117
117
|
position: relative;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
[data-ui
|
|
120
|
+
[data-ui-table-of-contents] :is([data-part-list], [data-part-group]) {
|
|
121
121
|
list-style: none;
|
|
122
122
|
margin: 0;
|
|
123
123
|
padding: 0;
|
|
@@ -128,15 +128,15 @@
|
|
|
128
128
|
* text. It is drawn once, on the first level, so the groups inside indent
|
|
129
129
|
* under it rather than each carrying a rule of their own.
|
|
130
130
|
*/
|
|
131
|
-
[data-ui
|
|
131
|
+
[data-ui-table-of-contents][data-layout='vertical'] [data-part-panel] > [data-part-list] {
|
|
132
132
|
border-inline-start: var(--_track-width) solid var(--_track);
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
-
[data-ui
|
|
135
|
+
[data-ui-table-of-contents] [data-part-group] {
|
|
136
136
|
padding-inline-start: var(--_indent);
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
[data-ui
|
|
139
|
+
[data-ui-table-of-contents] [data-part-item] {
|
|
140
140
|
/* An item is a block in a list; the marker beside the list is the panel's, not the item's. */
|
|
141
141
|
display: block;
|
|
142
142
|
min-inline-size: 0;
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
|
|
145
145
|
/* ── The link ─────────────────────────────────────────────────────────── */
|
|
146
146
|
|
|
147
|
-
[data-ui
|
|
147
|
+
[data-ui-table-of-contents] [data-part-link] {
|
|
148
148
|
border-radius: var(--slotted-control-radius, 4px);
|
|
149
149
|
color: inherit;
|
|
150
150
|
display: block;
|
|
@@ -165,11 +165,11 @@
|
|
|
165
165
|
font-weight var(--slotted-duration-short) var(--_easing);
|
|
166
166
|
}
|
|
167
167
|
|
|
168
|
-
[data-ui
|
|
168
|
+
[data-ui-table-of-contents] [data-part-link]:not([data-disabled]):not([data-current]):hover {
|
|
169
169
|
color: var(--_hover);
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
-
[data-ui
|
|
172
|
+
[data-ui-table-of-contents] [data-part-link]:not([data-disabled]):not([data-current]):active {
|
|
173
173
|
color: var(--_strong);
|
|
174
174
|
}
|
|
175
175
|
|
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
* the list says it a second time; neither says it alone, which is what
|
|
179
179
|
* `state-rail.test.mjs` asks of a band on an edge.
|
|
180
180
|
*/
|
|
181
|
-
[data-ui
|
|
181
|
+
[data-ui-table-of-contents] [data-part-link][data-current] {
|
|
182
182
|
color: var(--_current);
|
|
183
183
|
font-weight: var(--slotted-font-weight-medium, 500);
|
|
184
184
|
}
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
* track, and against the column's edge would be clipped by the panel that
|
|
190
190
|
* scrolls.
|
|
191
191
|
*/
|
|
192
|
-
[data-ui
|
|
192
|
+
[data-ui-table-of-contents] :is([data-part-link], [data-part-trigger]):focus-visible {
|
|
193
193
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
194
194
|
outline-offset: calc(-1 * var(--slotted-focus-ring-offset, 2px));
|
|
195
195
|
}
|
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
* It is pulled over the track by the track's own width, so the two lines
|
|
207
207
|
* are one line — the arithmetic `tabs` uses for the same pair.
|
|
208
208
|
*/
|
|
209
|
-
[data-ui
|
|
209
|
+
[data-ui-table-of-contents] [data-part-marker] {
|
|
210
210
|
background-color: var(--_marker);
|
|
211
211
|
border-radius: var(--slotted-radius-full, 9999px);
|
|
212
212
|
pointer-events: none;
|
|
@@ -218,7 +218,7 @@
|
|
|
218
218
|
inline-size var(--_duration) var(--_easing);
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
-
[data-ui
|
|
221
|
+
[data-ui-table-of-contents][data-layout='vertical'] [data-part-marker] {
|
|
222
222
|
block-size: var(--_marker-size, 0px);
|
|
223
223
|
inline-size: var(--_track-width);
|
|
224
224
|
inset-block-start: var(--_marker-start, 0px);
|
|
@@ -232,15 +232,15 @@
|
|
|
232
232
|
* figures, muted like the link it precedes, and it takes the link's ink
|
|
233
233
|
* when the link is current.
|
|
234
234
|
*/
|
|
235
|
-
[data-ui
|
|
235
|
+
[data-ui-table-of-contents][data-numbered] :is([data-part-list], [data-part-group]) {
|
|
236
236
|
counter-reset: slotted-table-of-contents;
|
|
237
237
|
}
|
|
238
238
|
|
|
239
|
-
[data-ui
|
|
239
|
+
[data-ui-table-of-contents][data-numbered] [data-part-item] {
|
|
240
240
|
counter-increment: slotted-table-of-contents;
|
|
241
241
|
}
|
|
242
242
|
|
|
243
|
-
[data-ui
|
|
243
|
+
[data-ui-table-of-contents][data-numbered] [data-part-link]::before {
|
|
244
244
|
content: counters(slotted-table-of-contents, '.') '.';
|
|
245
245
|
display: inline-block;
|
|
246
246
|
font-variant-numeric: tabular-nums;
|
|
@@ -253,16 +253,20 @@
|
|
|
253
253
|
* viewport; the panel scrolls, the label stays. `100dvh` because a phone's
|
|
254
254
|
* toolbar comes and goes; the panel's own scrollbar is hidden, because a
|
|
255
255
|
* column of a dozen links with a scrollbar beside it reads as a control.
|
|
256
|
+
* The column stops a step clear of the chrome, as the content beside it
|
|
257
|
+
* stands clear of the header, instead of touching it.
|
|
256
258
|
*/
|
|
257
|
-
[data-ui
|
|
259
|
+
[data-ui-table-of-contents][data-sticky] {
|
|
260
|
+
--_sticky-inset: var(--slotted-table-of-contents-sticky-inset, var(--slotted-space-5, 0.75rem));
|
|
261
|
+
|
|
258
262
|
display: flex;
|
|
259
263
|
flex-direction: column;
|
|
260
|
-
inset-block-start: var(--slotted-page-sticky-top, 0px);
|
|
261
|
-
max-block-size: calc(100dvh - var(--slotted-page-sticky-top, 0px));
|
|
264
|
+
inset-block-start: calc(var(--slotted-page-sticky-top, 0px) + var(--_sticky-inset));
|
|
265
|
+
max-block-size: calc(100dvh - var(--slotted-page-sticky-top, 0px) - var(--_sticky-inset));
|
|
262
266
|
position: sticky;
|
|
263
267
|
}
|
|
264
268
|
|
|
265
|
-
[data-ui
|
|
269
|
+
[data-ui-table-of-contents][data-sticky] > [data-part-panel] {
|
|
266
270
|
min-block-size: 0;
|
|
267
271
|
overflow-y: auto;
|
|
268
272
|
overscroll-behavior: contain;
|
|
@@ -277,12 +281,12 @@
|
|
|
277
281
|
* Ant's horizontal Anchor takes no children, and a bar with two levels is
|
|
278
282
|
* two bars.
|
|
279
283
|
*/
|
|
280
|
-
[data-ui
|
|
284
|
+
[data-ui-table-of-contents][data-layout='horizontal'] {
|
|
281
285
|
display: flex;
|
|
282
286
|
gap: var(--_gap);
|
|
283
287
|
}
|
|
284
288
|
|
|
285
|
-
[data-ui
|
|
289
|
+
[data-ui-table-of-contents][data-layout='horizontal'] > [data-part-label] {
|
|
286
290
|
align-self: center;
|
|
287
291
|
flex: none;
|
|
288
292
|
margin-block-end: 0;
|
|
@@ -299,7 +303,7 @@
|
|
|
299
303
|
* absolutely positioned at the panel's end edge, sits on the track and
|
|
300
304
|
* scrolls with the link it marks.
|
|
301
305
|
*/
|
|
302
|
-
[data-ui
|
|
306
|
+
[data-ui-table-of-contents][data-layout='horizontal'] > [data-part-panel] {
|
|
303
307
|
--_fade: var(--slotted-space-9, 2rem);
|
|
304
308
|
--_fade-angle: 90deg;
|
|
305
309
|
|
|
@@ -323,22 +327,19 @@
|
|
|
323
327
|
* here, mirrored by hand under `:dir(rtl)`, because a gradient angle takes
|
|
324
328
|
* no logical keyword.
|
|
325
329
|
*/
|
|
326
|
-
[data-ui
|
|
330
|
+
[data-ui-table-of-contents][data-layout='horizontal'] > [data-part-panel]:dir(rtl) {
|
|
327
331
|
--_fade-angle: 270deg;
|
|
328
332
|
}
|
|
329
333
|
|
|
330
|
-
[data-ui
|
|
331
|
-
> [data-part='panel'][data-overflow='end'] {
|
|
334
|
+
[data-ui-table-of-contents][data-layout='horizontal'] > [data-part-panel][data-overflow='end'] {
|
|
332
335
|
mask-image: linear-gradient(var(--_fade-angle), #000 calc(100% - var(--_fade)), transparent);
|
|
333
336
|
}
|
|
334
337
|
|
|
335
|
-
[data-ui
|
|
336
|
-
> [data-part='panel'][data-overflow='start'] {
|
|
338
|
+
[data-ui-table-of-contents][data-layout='horizontal'] > [data-part-panel][data-overflow='start'] {
|
|
337
339
|
mask-image: linear-gradient(var(--_fade-angle), transparent, #000 var(--_fade));
|
|
338
340
|
}
|
|
339
341
|
|
|
340
|
-
[data-ui
|
|
341
|
-
> [data-part='panel'][data-overflow='both'] {
|
|
342
|
+
[data-ui-table-of-contents][data-layout='horizontal'] > [data-part-panel][data-overflow='both'] {
|
|
342
343
|
mask-image: linear-gradient(
|
|
343
344
|
var(--_fade-angle),
|
|
344
345
|
transparent,
|
|
@@ -348,23 +349,23 @@
|
|
|
348
349
|
);
|
|
349
350
|
}
|
|
350
351
|
|
|
351
|
-
[data-ui
|
|
352
|
+
[data-ui-table-of-contents][data-layout='horizontal'] [data-part-list] {
|
|
352
353
|
display: flex;
|
|
353
354
|
}
|
|
354
355
|
|
|
355
|
-
[data-ui
|
|
356
|
+
[data-ui-table-of-contents][data-layout='horizontal'] [data-part-item] {
|
|
356
357
|
flex: none;
|
|
357
358
|
}
|
|
358
359
|
|
|
359
|
-
[data-ui
|
|
360
|
+
[data-ui-table-of-contents][data-layout='horizontal'] [data-part-link] {
|
|
360
361
|
white-space: nowrap;
|
|
361
362
|
}
|
|
362
363
|
|
|
363
|
-
[data-ui
|
|
364
|
+
[data-ui-table-of-contents][data-layout='horizontal'] [data-part-group] {
|
|
364
365
|
display: none;
|
|
365
366
|
}
|
|
366
367
|
|
|
367
|
-
[data-ui
|
|
368
|
+
[data-ui-table-of-contents][data-layout='horizontal'] [data-part-marker] {
|
|
368
369
|
block-size: var(--_track-width);
|
|
369
370
|
inline-size: var(--_marker-size, 0px);
|
|
370
371
|
inset-block-end: 0;
|
|
@@ -379,11 +380,11 @@
|
|
|
379
380
|
* no positioner, because it opens exactly one place — and it is a
|
|
380
381
|
* dismissable layer for Escape and a press outside.
|
|
381
382
|
*/
|
|
382
|
-
[data-ui
|
|
383
|
+
[data-ui-table-of-contents][data-layout='collapsed'] {
|
|
383
384
|
position: relative;
|
|
384
385
|
}
|
|
385
386
|
|
|
386
|
-
[data-ui
|
|
387
|
+
[data-ui-table-of-contents] [data-part-trigger] {
|
|
387
388
|
align-items: center;
|
|
388
389
|
appearance: none;
|
|
389
390
|
background: none;
|
|
@@ -403,7 +404,7 @@
|
|
|
403
404
|
text-align: start;
|
|
404
405
|
}
|
|
405
406
|
|
|
406
|
-
[data-ui
|
|
407
|
+
[data-ui-table-of-contents] [data-part-trigger] > [data-part-label] {
|
|
407
408
|
color: var(--_strong);
|
|
408
409
|
flex: none;
|
|
409
410
|
font-weight: var(--slotted-font-weight-semibold, 600);
|
|
@@ -414,7 +415,7 @@
|
|
|
414
415
|
* room the title leaves and is cut at the end when it is longer. The whole
|
|
415
416
|
* text stays in the DOM and in the list below.
|
|
416
417
|
*/
|
|
417
|
-
[data-ui
|
|
418
|
+
[data-ui-table-of-contents] [data-part-current] {
|
|
418
419
|
color: var(--_text);
|
|
419
420
|
flex: 1 1 auto;
|
|
420
421
|
min-inline-size: 0;
|
|
@@ -423,7 +424,7 @@
|
|
|
423
424
|
white-space: nowrap;
|
|
424
425
|
}
|
|
425
426
|
|
|
426
|
-
[data-ui
|
|
427
|
+
[data-ui-table-of-contents] [data-part-current]:empty {
|
|
427
428
|
display: none;
|
|
428
429
|
}
|
|
429
430
|
|
|
@@ -432,7 +433,7 @@
|
|
|
432
433
|
* part sizes to the glyph scale and pushes to the end of the trigger. The box
|
|
433
434
|
* turns half a turn while the panel is open.
|
|
434
435
|
*/
|
|
435
|
-
[data-ui
|
|
436
|
+
[data-ui-table-of-contents] [data-part-indicator] {
|
|
436
437
|
--slotted-icon-size: var(--_icon-size);
|
|
437
438
|
|
|
438
439
|
display: flex;
|
|
@@ -440,15 +441,15 @@
|
|
|
440
441
|
margin-inline-start: auto;
|
|
441
442
|
}
|
|
442
443
|
|
|
443
|
-
[data-ui
|
|
444
|
+
[data-ui-table-of-contents] [data-part-indicator] > [data-ui-icon] {
|
|
444
445
|
transition: rotate var(--_duration) var(--_easing);
|
|
445
446
|
}
|
|
446
447
|
|
|
447
|
-
[data-ui
|
|
448
|
+
[data-ui-table-of-contents][data-open] [data-part-indicator] > [data-ui-icon] {
|
|
448
449
|
rotate: 180deg;
|
|
449
450
|
}
|
|
450
451
|
|
|
451
|
-
[data-ui
|
|
452
|
+
[data-ui-table-of-contents][data-layout='collapsed'] > [data-part-panel] {
|
|
452
453
|
--_enter-distance: var(--slotted-space-2, 0.25rem);
|
|
453
454
|
|
|
454
455
|
background-color: var(--slotted-surface-raised, Canvas);
|
|
@@ -467,14 +468,14 @@
|
|
|
467
468
|
z-index: var(--slotted-z-index-popover, 1100);
|
|
468
469
|
}
|
|
469
470
|
|
|
470
|
-
[data-ui
|
|
471
|
+
[data-ui-table-of-contents][data-layout='collapsed'][data-open] > [data-part-panel] {
|
|
471
472
|
animation: slotted-table-of-contents-enter var(--slotted-duration-short)
|
|
472
473
|
var(--slotted-easing-enter, ease-out);
|
|
473
474
|
display: block;
|
|
474
475
|
}
|
|
475
476
|
|
|
476
477
|
/* The layer under the trigger has no track: the layer's own edge frames the list. */
|
|
477
|
-
[data-ui
|
|
478
|
+
[data-ui-table-of-contents][data-layout='collapsed'] [data-part-marker] {
|
|
478
479
|
display: none;
|
|
479
480
|
}
|
|
480
481
|
|
|
@@ -499,18 +500,18 @@
|
|
|
499
500
|
* Rows with an item's geometry whose text is `skeleton`'s bar, so a column
|
|
500
501
|
* whose body is still arriving keeps its width and its rhythm.
|
|
501
502
|
*/
|
|
502
|
-
[data-ui
|
|
503
|
+
[data-ui-table-of-contents] [data-part-skeleton] {
|
|
503
504
|
display: flex;
|
|
504
505
|
min-block-size: var(--_row-height);
|
|
505
506
|
padding-block: calc((var(--_row-height) - var(--_font-size) * var(--_line-height)) / 2);
|
|
506
507
|
padding-inline: var(--_inset);
|
|
507
508
|
}
|
|
508
509
|
|
|
509
|
-
[data-ui
|
|
510
|
+
[data-ui-table-of-contents] [data-part-skeleton] > [data-ui-skeleton] {
|
|
510
511
|
--slotted-skeleton-block-size: var(--_font-size);
|
|
511
512
|
}
|
|
512
513
|
|
|
513
|
-
[data-ui
|
|
514
|
+
[data-ui-table-of-contents][data-layout='horizontal'] [data-part-skeleton] {
|
|
514
515
|
flex: none;
|
|
515
516
|
inline-size: 6rem;
|
|
516
517
|
}
|
|
@@ -519,12 +520,12 @@
|
|
|
519
520
|
|
|
520
521
|
@media (forced-colors: active) {
|
|
521
522
|
/* A painted background is the one thing the mode throws away: the marker is redrawn in the system's highlight. */
|
|
522
|
-
[data-ui
|
|
523
|
+
[data-ui-table-of-contents] [data-part-marker] {
|
|
523
524
|
background-color: Highlight;
|
|
524
525
|
forced-color-adjust: none;
|
|
525
526
|
}
|
|
526
527
|
|
|
527
|
-
[data-ui
|
|
528
|
+
[data-ui-table-of-contents] [data-part-link][data-current] {
|
|
528
529
|
background-color: Highlight;
|
|
529
530
|
color: HighlightText;
|
|
530
531
|
forced-color-adjust: none;
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
"--slotted-table-of-contents-color-hover",
|
|
44
44
|
"--slotted-table-of-contents-indent",
|
|
45
45
|
"--slotted-table-of-contents-marker-color",
|
|
46
|
+
"--slotted-table-of-contents-sticky-inset",
|
|
46
47
|
"--slotted-table-of-contents-track-color",
|
|
47
48
|
"--slotted-table-of-contents-track-width",
|
|
48
49
|
"--slotted-text",
|