@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/popover/popover.css
CHANGED
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
* gaps inside the header and the footer read it too, so a dense popover is a
|
|
40
40
|
* tighter popover rather than a smaller one.
|
|
41
41
|
*/
|
|
42
|
-
[data-ui
|
|
42
|
+
[data-ui-popover] {
|
|
43
43
|
--_gap: var(--slotted-popover-gap, var(--slotted-space-4, 0.5rem));
|
|
44
44
|
|
|
45
45
|
--_surface: var(--slotted-popover-surface, var(--slotted-surface-raised, #ffffff));
|
|
@@ -84,7 +84,6 @@
|
|
|
84
84
|
/* The layer is only a frame around the panel; the panel takes the pointer. */
|
|
85
85
|
pointer-events: none;
|
|
86
86
|
|
|
87
|
-
opacity: 0;
|
|
88
87
|
/**
|
|
89
88
|
* R7: the layer arrives along the axis it opens on — from one space step
|
|
90
89
|
* above its place when it opens downward, from one step below when it
|
|
@@ -94,17 +93,15 @@
|
|
|
94
93
|
*/
|
|
95
94
|
--_enter-distance: var(--slotted-space-2, 0.25rem);
|
|
96
95
|
translate: 0 calc(-1 * var(--_enter-distance));
|
|
97
|
-
transition:
|
|
98
|
-
opacity var(--slotted-duration-short) var(--slotted-easing-exit),
|
|
99
|
-
translate var(--slotted-duration-short) var(--slotted-easing-exit);
|
|
96
|
+
transition: translate var(--slotted-duration-short) var(--slotted-easing-exit);
|
|
100
97
|
}
|
|
101
98
|
|
|
102
|
-
[data-ui
|
|
99
|
+
[data-ui-popover][data-side='top'] {
|
|
103
100
|
translate: 0 var(--_enter-distance);
|
|
104
101
|
}
|
|
105
102
|
|
|
106
103
|
/* A lateral side has no block direction to arrive from, so it only fades. */
|
|
107
|
-
[data-ui
|
|
104
|
+
[data-ui-popover]:is([data-side='left'], [data-side='right']) {
|
|
108
105
|
translate: 0 0;
|
|
109
106
|
}
|
|
110
107
|
|
|
@@ -117,8 +114,7 @@
|
|
|
117
114
|
* A keyframe states where it starts. The exit stays a transition: it
|
|
118
115
|
* leaves from wherever the layer is, on the closed rule's durations.
|
|
119
116
|
*/
|
|
120
|
-
[data-ui
|
|
121
|
-
opacity: 1;
|
|
117
|
+
[data-ui-popover][data-open] {
|
|
122
118
|
translate: 0 0;
|
|
123
119
|
transition: none;
|
|
124
120
|
}
|
|
@@ -128,28 +124,22 @@
|
|
|
128
124
|
* with the side, and a layer written open in static markup — the harness,
|
|
129
125
|
* a docs snippet — is simply there, and is photographed where it stands.
|
|
130
126
|
*/
|
|
131
|
-
[data-ui
|
|
127
|
+
[data-ui-popover][data-open][data-positioned] {
|
|
132
128
|
animation: slotted-popover-enter-down var(--slotted-duration-medium) var(--slotted-easing-enter);
|
|
133
129
|
}
|
|
134
130
|
|
|
135
|
-
[data-ui
|
|
131
|
+
[data-ui-popover][data-open][data-positioned][data-side='top'] {
|
|
136
132
|
animation-name: slotted-popover-enter-up;
|
|
137
133
|
}
|
|
138
134
|
|
|
139
|
-
[data-ui='popover'][data-open][data-positioned]:is([data-side='left'], [data-side='right']) {
|
|
140
|
-
animation-name: slotted-popover-fade;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
135
|
@keyframes slotted-popover-enter-down {
|
|
144
136
|
from {
|
|
145
|
-
opacity: 0;
|
|
146
137
|
translate: 0 calc(-1 * var(--_enter-distance));
|
|
147
138
|
}
|
|
148
139
|
}
|
|
149
140
|
|
|
150
141
|
@keyframes slotted-popover-enter-up {
|
|
151
142
|
from {
|
|
152
|
-
opacity: 0;
|
|
153
143
|
translate: 0 var(--_enter-distance);
|
|
154
144
|
}
|
|
155
145
|
}
|
|
@@ -162,27 +152,27 @@
|
|
|
162
152
|
|
|
163
153
|
/* Stillness keeps the fade and drops the movement (R7). */
|
|
164
154
|
@media (prefers-reduced-motion: reduce) {
|
|
165
|
-
[data-ui
|
|
166
|
-
[data-ui
|
|
167
|
-
[data-ui
|
|
168
|
-
[data-ui
|
|
155
|
+
[data-ui-popover],
|
|
156
|
+
[data-ui-popover][data-side='top'],
|
|
157
|
+
[data-ui-popover][data-side='left'],
|
|
158
|
+
[data-ui-popover][data-side='right'] {
|
|
169
159
|
translate: 0 0;
|
|
170
|
-
transition:
|
|
160
|
+
transition: translate var(--slotted-duration-short) var(--slotted-easing-exit);
|
|
171
161
|
}
|
|
172
162
|
|
|
173
|
-
[data-ui
|
|
174
|
-
[data-ui
|
|
175
|
-
[data-ui
|
|
176
|
-
[data-ui
|
|
177
|
-
animation-name:
|
|
163
|
+
[data-ui-popover][data-open][data-positioned],
|
|
164
|
+
[data-ui-popover][data-open][data-positioned][data-side='top'],
|
|
165
|
+
[data-ui-popover][data-open][data-positioned][data-side='left'],
|
|
166
|
+
[data-ui-popover][data-open][data-positioned][data-side='right'] {
|
|
167
|
+
animation-name: none;
|
|
178
168
|
}
|
|
179
169
|
}
|
|
180
170
|
|
|
181
|
-
[data-ui
|
|
171
|
+
[data-ui-popover][data-detached] {
|
|
182
172
|
visibility: hidden;
|
|
183
173
|
}
|
|
184
174
|
|
|
185
|
-
[data-ui
|
|
175
|
+
[data-ui-popover][data-size='sm'] {
|
|
186
176
|
--_inset-block: var(--slotted-popover-padding-block-sm, var(--slotted-space-4, 0.5rem));
|
|
187
177
|
--_inset-inline: var(--slotted-popover-padding-inline-sm, var(--slotted-space-5, 0.75rem));
|
|
188
178
|
--_title-font-size: var(--slotted-font-size-md, 0.875rem);
|
|
@@ -190,7 +180,7 @@
|
|
|
190
180
|
--_measure: var(--slotted-popover-measure-sm, 16rem);
|
|
191
181
|
}
|
|
192
182
|
|
|
193
|
-
[data-ui
|
|
183
|
+
[data-ui-popover][data-size='lg'] {
|
|
194
184
|
--_inset-block: var(--slotted-popover-padding-block-lg, var(--slotted-space-6, 1rem));
|
|
195
185
|
--_inset-inline: var(--slotted-popover-padding-inline-lg, var(--slotted-space-7, 1.25rem));
|
|
196
186
|
--_title-font-size: var(--slotted-font-size-xl, 1.125rem);
|
|
@@ -203,7 +193,7 @@
|
|
|
203
193
|
* property for. The layer's own padding is added back, so the panel and the
|
|
204
194
|
* anchor share an edge rather than being inset from one another.
|
|
205
195
|
*/
|
|
206
|
-
[data-ui
|
|
196
|
+
[data-ui-popover][data-width='anchor'] {
|
|
207
197
|
inline-size: calc(var(--slotted-positioner-anchor-width, 0px) + 2 * var(--_gap));
|
|
208
198
|
max-inline-size: var(--slotted-positioner-available-width, 100vw);
|
|
209
199
|
}
|
|
@@ -214,7 +204,7 @@
|
|
|
214
204
|
* of the document, so the family closes the popover and puts focus back on
|
|
215
205
|
* the trigger, from which the next `Tab` continues down the page.
|
|
216
206
|
*/
|
|
217
|
-
[data-ui
|
|
207
|
+
[data-ui-popover] > [data-part-focus-guard] {
|
|
218
208
|
position: absolute;
|
|
219
209
|
inline-size: 1px;
|
|
220
210
|
block-size: 1px;
|
|
@@ -225,7 +215,7 @@
|
|
|
225
215
|
pointer-events: none;
|
|
226
216
|
}
|
|
227
217
|
|
|
228
|
-
[data-ui
|
|
218
|
+
[data-ui-popover] > [data-part-content] {
|
|
229
219
|
box-sizing: border-box;
|
|
230
220
|
display: grid;
|
|
231
221
|
grid-template-rows: auto minmax(0, 1fr) auto;
|
|
@@ -259,6 +249,37 @@
|
|
|
259
249
|
pointer-events: auto;
|
|
260
250
|
/* The panel takes focus on open and is not a tab stop of its own. */
|
|
261
251
|
outline: none;
|
|
252
|
+
/* A theme that paints this surface as a translucent material blurs what moves behind it. */
|
|
253
|
+
-webkit-backdrop-filter: var(--slotted-popover-backdrop-filter, none);
|
|
254
|
+
backdrop-filter: var(--slotted-popover-backdrop-filter, none);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* The fade belongs to the part that paints the surface, and the layer only
|
|
259
|
+
* moves. In Chromium an ancestor with `opacity` below one is the Backdrop Root
|
|
260
|
+
* of what it holds, so a `backdrop-filter` on the content blurs nothing until
|
|
261
|
+
* the layer is opaque and then appears at once. The content's own opacity
|
|
262
|
+
* leaves its own filter drawn on every frame of the motion.
|
|
263
|
+
*/
|
|
264
|
+
[data-ui-popover] > [data-part-content] {
|
|
265
|
+
opacity: 0;
|
|
266
|
+
transition: opacity var(--slotted-duration-short) var(--slotted-easing-exit);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
[data-ui-popover][data-open] > [data-part-content] {
|
|
270
|
+
opacity: 1;
|
|
271
|
+
transition: none;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
[data-ui-popover][data-open][data-positioned] > [data-part-content] {
|
|
275
|
+
animation: slotted-popover-fade var(--slotted-duration-medium) var(--slotted-easing-enter);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
@media (prefers-reduced-transparency: reduce), (forced-colors: active) {
|
|
279
|
+
[data-ui-popover] > [data-part-content] {
|
|
280
|
+
-webkit-backdrop-filter: none;
|
|
281
|
+
backdrop-filter: none;
|
|
282
|
+
}
|
|
262
283
|
}
|
|
263
284
|
|
|
264
285
|
/**
|
|
@@ -271,14 +292,14 @@
|
|
|
271
292
|
* what it owns. Two children or more are the consumer's own layout and keep
|
|
272
293
|
* their auto rows.
|
|
273
294
|
*/
|
|
274
|
-
[data-ui
|
|
275
|
-
> [data-part
|
|
276
|
-
> :only-child:not([data-part
|
|
295
|
+
[data-ui-popover]
|
|
296
|
+
> [data-part-content]
|
|
297
|
+
> :only-child:not([data-part-header], [data-part-body], [data-part-footer]) {
|
|
277
298
|
grid-row: 2;
|
|
278
299
|
min-block-size: 0;
|
|
279
300
|
}
|
|
280
301
|
|
|
281
|
-
[data-ui
|
|
302
|
+
[data-ui-popover] > [data-part-content]:focus-visible {
|
|
282
303
|
outline: var(--slotted-focus-ring-width, 2px) solid
|
|
283
304
|
var(--slotted-focus-ring-color, currentColor);
|
|
284
305
|
outline-offset: calc(-1 * var(--slotted-focus-ring-width, 2px));
|
|
@@ -289,7 +310,7 @@
|
|
|
289
310
|
* on the first row so it stays level with the title rather than centring
|
|
290
311
|
* itself against a description the title may not have.
|
|
291
312
|
*/
|
|
292
|
-
[data-ui
|
|
313
|
+
[data-ui-popover] > [data-part-content] > [data-part-header] {
|
|
293
314
|
display: grid;
|
|
294
315
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
295
316
|
column-gap: var(--_row-gap);
|
|
@@ -299,7 +320,7 @@
|
|
|
299
320
|
padding-inline: var(--_inset-inline);
|
|
300
321
|
}
|
|
301
322
|
|
|
302
|
-
[data-ui
|
|
323
|
+
[data-ui-popover] > [data-part-content] > [data-part-header] > [data-part-title] {
|
|
303
324
|
grid-column: 1;
|
|
304
325
|
margin: 0;
|
|
305
326
|
font-family: var(
|
|
@@ -314,7 +335,7 @@
|
|
|
314
335
|
unicode-bidi: plaintext;
|
|
315
336
|
}
|
|
316
337
|
|
|
317
|
-
[data-ui
|
|
338
|
+
[data-ui-popover] > [data-part-content] > [data-part-header] > [data-part-description] {
|
|
318
339
|
grid-column: 1;
|
|
319
340
|
margin: 0;
|
|
320
341
|
font-size: var(--slotted-font-size-sm, 0.8125rem);
|
|
@@ -331,7 +352,7 @@
|
|
|
331
352
|
* is pulled level with the title's cap height by the negative
|
|
332
353
|
* block margin rather than by stretching the row.
|
|
333
354
|
*/
|
|
334
|
-
[data-ui
|
|
355
|
+
[data-ui-popover] > [data-part-content] > [data-part-header] > [data-part-close] {
|
|
335
356
|
grid-column: 2;
|
|
336
357
|
grid-row: 1;
|
|
337
358
|
display: inline-flex;
|
|
@@ -357,25 +378,16 @@
|
|
|
357
378
|
var(--slotted-control-transition-easing, var(--slotted-easing-standard));
|
|
358
379
|
}
|
|
359
380
|
|
|
360
|
-
[data-ui
|
|
361
|
-
> [data-part='content']
|
|
362
|
-
> [data-part='header']
|
|
363
|
-
> [data-part='close']:enabled:hover {
|
|
381
|
+
[data-ui-popover] > [data-part-content] > [data-part-header] > [data-part-close]:enabled:hover {
|
|
364
382
|
background: var(--slotted-tone-secondary-subtle-hover, rgb(15 23 42 / 0.06));
|
|
365
383
|
color: var(--_text);
|
|
366
384
|
}
|
|
367
385
|
|
|
368
|
-
[data-ui
|
|
369
|
-
> [data-part='content']
|
|
370
|
-
> [data-part='header']
|
|
371
|
-
> [data-part='close']:enabled:active {
|
|
386
|
+
[data-ui-popover] > [data-part-content] > [data-part-header] > [data-part-close]:enabled:active {
|
|
372
387
|
background: var(--slotted-tone-secondary-subtle-active, rgb(15 23 42 / 0.1));
|
|
373
388
|
}
|
|
374
389
|
|
|
375
|
-
[data-ui
|
|
376
|
-
> [data-part='content']
|
|
377
|
-
> [data-part='header']
|
|
378
|
-
> [data-part='close']:focus-visible {
|
|
390
|
+
[data-ui-popover] > [data-part-content] > [data-part-header] > [data-part-close]:focus-visible {
|
|
379
391
|
outline: var(--slotted-focus-ring-width, 2px) solid
|
|
380
392
|
var(--slotted-focus-ring-color, currentColor);
|
|
381
393
|
outline-offset: var(--slotted-focus-ring-offset, 2px);
|
|
@@ -386,7 +398,7 @@
|
|
|
386
398
|
* there is no header, so a popover holding one sentence is not inset twice at
|
|
387
399
|
* the top and once at the bottom.
|
|
388
400
|
*/
|
|
389
|
-
[data-ui
|
|
401
|
+
[data-ui-popover] > [data-part-content] > [data-part-body] {
|
|
390
402
|
grid-row: 2;
|
|
391
403
|
min-block-size: 0;
|
|
392
404
|
overflow-x: hidden;
|
|
@@ -437,11 +449,11 @@
|
|
|
437
449
|
center bottom / 100% var(--slotted-space-3, 0.375rem) no-repeat scroll;
|
|
438
450
|
}
|
|
439
451
|
|
|
440
|
-
[data-ui
|
|
452
|
+
[data-ui-popover] > [data-part-content] > [data-part-body]:first-child {
|
|
441
453
|
padding-block-start: var(--_inset-block);
|
|
442
454
|
}
|
|
443
455
|
|
|
444
|
-
[data-ui
|
|
456
|
+
[data-ui-popover] > [data-part-content] > [data-part-footer] {
|
|
445
457
|
grid-row: 3;
|
|
446
458
|
display: flex;
|
|
447
459
|
flex-wrap: wrap;
|
|
@@ -468,7 +480,7 @@
|
|
|
468
480
|
* of a diamond. Clamped here, the arrow meets a straight edge whatever
|
|
469
481
|
* padding, gap or radius a theme sets.
|
|
470
482
|
*/
|
|
471
|
-
[data-ui
|
|
483
|
+
[data-ui-popover] > [data-part-arrow] {
|
|
472
484
|
--_arrow-x: clamp(
|
|
473
485
|
calc(var(--_gap) + var(--_radius)),
|
|
474
486
|
var(--slotted-positioner-arrow-x, 0px),
|
|
@@ -488,7 +500,7 @@
|
|
|
488
500
|
border: 0 solid var(--_border-color);
|
|
489
501
|
}
|
|
490
502
|
|
|
491
|
-
[data-ui
|
|
503
|
+
[data-ui-popover][data-side='top'] > [data-part-arrow] {
|
|
492
504
|
left: var(--_arrow-x);
|
|
493
505
|
top: auto;
|
|
494
506
|
bottom: calc(var(--_gap) - var(--_arrow-size) / 2);
|
|
@@ -497,7 +509,7 @@
|
|
|
497
509
|
border-bottom-right-radius: var(--_arrow-tip-radius);
|
|
498
510
|
}
|
|
499
511
|
|
|
500
|
-
[data-ui
|
|
512
|
+
[data-ui-popover][data-side='bottom'] > [data-part-arrow] {
|
|
501
513
|
left: var(--_arrow-x);
|
|
502
514
|
top: calc(var(--_gap) - var(--_arrow-size) / 2);
|
|
503
515
|
bottom: auto;
|
|
@@ -506,7 +518,7 @@
|
|
|
506
518
|
border-top-left-radius: var(--_arrow-tip-radius);
|
|
507
519
|
}
|
|
508
520
|
|
|
509
|
-
[data-ui
|
|
521
|
+
[data-ui-popover][data-side='left'] > [data-part-arrow] {
|
|
510
522
|
top: var(--_arrow-y);
|
|
511
523
|
left: auto;
|
|
512
524
|
right: calc(var(--_gap) - var(--_arrow-size) / 2);
|
|
@@ -515,7 +527,7 @@
|
|
|
515
527
|
border-top-right-radius: var(--_arrow-tip-radius);
|
|
516
528
|
}
|
|
517
529
|
|
|
518
|
-
[data-ui
|
|
530
|
+
[data-ui-popover][data-side='right'] > [data-part-arrow] {
|
|
519
531
|
top: var(--_arrow-y);
|
|
520
532
|
left: calc(var(--_gap) - var(--_arrow-size) / 2);
|
|
521
533
|
right: auto;
|