@slotted/styles 0.1.0-beta.3 → 0.1.0-beta.31
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 +13 -1
- package/src/accordion/accordion.css +11 -11
- package/src/action-bar/action-bar.css +47 -44
- package/src/action-bar/action-bar.tokens.json +1 -0
- package/src/action-sheet/action-sheet.css +39 -39
- package/src/alert/alert.css +97 -97
- package/src/alert/alert.tokens.json +6 -1
- package/src/app-shell/app-shell.css +456 -329
- package/src/app-shell/app-shell.tokens.json +6 -3
- package/src/aspect-ratio/aspect-ratio.css +9 -9
- package/src/attachment/attachment.css +118 -114
- package/src/avatar/avatar.css +96 -66
- package/src/avatar/avatar.tokens.json +7 -0
- package/src/avatar-group/avatar-group.css +22 -23
- package/src/badge/badge.css +54 -46
- package/src/badge/badge.tokens.json +5 -0
- package/src/breadcrumb/breadcrumb.css +52 -52
- package/src/button/button.css +137 -89
- package/src/button/button.tokens.json +5 -0
- package/src/button-group/button-group.css +80 -79
- package/src/button-group/button-group.tokens.json +1 -0
- package/src/calendar/calendar.css +139 -109
- package/src/calendar/calendar.tokens.json +5 -1
- package/src/card/card.css +70 -67
- package/src/card/card.tokens.json +1 -0
- package/src/carousel/carousel.css +158 -169
- package/src/cascader/cascader.css +161 -159
- package/src/cascader/cascader.tokens.json +2 -0
- package/src/chart/chart.css +288 -267
- package/src/chart/chart.tokens.json +4 -0
- package/src/checkbox/checkbox.css +143 -148
- package/src/checkbox-group/checkbox-group.css +7 -7
- package/src/code-block/code-block.css +85 -89
- package/src/collapsible/collapsible.css +81 -80
- package/src/collapsible/collapsible.tokens.json +1 -0
- package/src/color-picker/color-picker.css +106 -114
- package/src/column-manager/column-manager.css +111 -119
- package/src/combobox/combobox.css +206 -132
- package/src/combobox/combobox.tokens.json +4 -0
- package/src/command-palette/command-palette.css +155 -102
- package/src/command-palette/command-palette.tokens.json +2 -0
- package/src/container/container.css +27 -27
- package/src/context-menu/context-menu.css +9 -9
- package/src/currency-field/currency-field.css +119 -119
- package/src/currency-field/currency-field.tokens.json +1 -0
- package/src/dashboard-grid/dashboard-grid.css +204 -115
- package/src/data-grid/data-grid.css +598 -496
- package/src/data-grid/data-grid.tokens.json +5 -1
- package/src/data-list/data-list.css +82 -71
- package/src/data-list/data-list.tokens.json +2 -1
- package/src/date-field/date-field.css +62 -57
- package/src/date-field/date-field.tokens.json +1 -0
- package/src/date-picker/date-picker.css +117 -58
- package/src/date-picker/date-picker.tokens.json +5 -0
- package/src/date-range-picker/date-range-picker.css +157 -127
- package/src/date-range-picker/date-range-picker.tokens.json +4 -0
- package/src/datetime-field/datetime-field.css +90 -90
- package/src/datetime-field/datetime-field.tokens.json +1 -0
- package/src/datetime-picker/datetime-picker.css +123 -70
- package/src/datetime-picker/datetime-picker.tokens.json +4 -1
- package/src/datetime-range-picker/datetime-range-picker.css +191 -163
- package/src/datetime-range-picker/datetime-range-picker.tokens.json +4 -0
- package/src/description-list/description-list.css +105 -75
- package/src/description-list/description-list.tokens.json +1 -0
- package/src/detail-panel/detail-panel.css +86 -71
- package/src/detail-panel/detail-panel.tokens.json +2 -0
- package/src/dialog/dialog.css +435 -199
- package/src/dialog/dialog.tokens.json +9 -0
- package/src/divider/divider.css +20 -20
- package/src/drawer/drawer.css +598 -237
- package/src/drawer/drawer.tokens.json +14 -0
- package/src/entity-picker/entity-picker.css +326 -272
- package/src/entity-picker/entity-picker.tokens.json +4 -0
- package/src/event-calendar/event-calendar.css +357 -399
- package/src/field/field.css +106 -93
- package/src/field/field.tokens.json +2 -0
- package/src/field-group/field-group.css +43 -33
- package/src/field-group/field-group.tokens.json +3 -0
- package/src/filter-bar/filter-bar.css +200 -216
- package/src/form/form.css +100 -26
- package/src/form/form.tokens.json +6 -1
- package/src/fullscreen/fullscreen.css +26 -27
- package/src/grid/grid.css +29 -29
- package/src/highlight/highlight.css +11 -11
- package/src/hover-card/hover-card.css +9 -9
- package/src/icon/icon.css +67 -20
- package/src/icon/icon.tokens.json +1 -0
- package/src/image/image.css +42 -42
- package/src/import-export-center/import-export-center.css +147 -168
- package/src/import-export-center/import-export-center.tokens.json +1 -0
- package/src/inline/inline.css +28 -28
- package/src/inline-message/inline-message.css +162 -86
- package/src/inline-message/inline-message.tokens.json +4 -0
- package/src/kbd/kbd.css +62 -50
- package/src/kbd/kbd.tokens.json +3 -0
- package/src/link/link.css +54 -33
- package/src/link/link.tokens.json +4 -0
- package/src/list/list.css +23 -23
- package/src/list-item/list-item.css +89 -75
- package/src/list-item/list-item.tokens.json +7 -0
- package/src/listbox/listbox.css +71 -70
- package/src/listbox/listbox.tokens.json +0 -1
- package/src/loading-overlay/loading-overlay.css +86 -103
- package/src/markdown/markdown.css +20 -20
- package/src/media-viewer/media-viewer.css +790 -0
- package/src/media-viewer/media-viewer.tokens.json +53 -0
- package/src/menu/menu.css +166 -83
- package/src/menu/menu.tokens.json +3 -1
- package/src/menubar/menubar.css +16 -16
- package/src/message/message.css +1253 -1246
- package/src/message/message.tokens.json +5 -0
- package/src/message-scroller/message-scroller.css +323 -320
- package/src/multi-select/multi-select.css +233 -174
- package/src/multi-select/multi-select.tokens.json +3 -0
- package/src/navigation-menu/navigation-menu.css +170 -191
- package/src/navigation-menu/navigation-menu.tokens.json +1 -0
- package/src/notification-center/notification-center.css +155 -163
- package/src/notification-center/notification-center.tokens.json +4 -0
- package/src/number-field/number-field.css +93 -93
- package/src/number-field/number-field.tokens.json +1 -0
- package/src/otp-input/otp-input.css +74 -64
- package/src/otp-input/otp-input.tokens.json +1 -0
- package/src/page/page.css +41 -27
- package/src/page/page.tokens.json +1 -0
- package/src/page-header/page-header.css +342 -287
- package/src/page-header/page-header.tokens.json +6 -1
- package/src/pagination/pagination.css +75 -79
- package/src/popover/popover.css +85 -65
- package/src/popover/popover.tokens.json +2 -0
- package/src/progress-indicator/progress-indicator.css +192 -136
- package/src/progress-indicator/progress-indicator.tokens.json +1 -0
- package/src/prompt-composer/prompt-composer.css +260 -113
- package/src/prompt-composer/prompt-composer.tokens.json +15 -0
- package/src/prose/prose.css +77 -82
- package/src/radio-group/radio-group.css +107 -112
- package/src/rating/rating.css +146 -142
- package/src/rating/rating.tokens.json +1 -0
- package/src/result-state/result-state.css +95 -102
- package/src/result-state/result-state.tokens.json +1 -0
- package/src/runtime-properties.mjs +19 -6
- package/src/saved-views/saved-views.css +43 -49
- package/src/scroll-area/scroll-area.css +50 -37
- package/src/section/section.css +179 -44
- package/src/section/section.tokens.json +9 -3
- package/src/segmented-control/segmented-control.css +210 -133
- package/src/segmented-control/segmented-control.tokens.json +7 -11
- package/src/select/select.css +213 -149
- package/src/select/select.tokens.json +4 -0
- package/src/side-navigation/side-navigation.css +201 -198
- package/src/side-navigation/side-navigation.tokens.json +1 -0
- package/src/skeleton/skeleton.css +57 -58
- package/src/slider/slider.css +101 -103
- package/src/sparkline/sparkline.css +75 -53
- 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 +34 -35
- package/src/split-button/split-button.tokens.json +1 -0
- package/src/splitter/splitter.css +47 -48
- package/src/stack/stack.css +25 -25
- package/src/stat-card/stat-card.css +415 -245
- package/src/stat-card/stat-card.tokens.json +8 -0
- package/src/status-indicator/status-indicator.css +124 -100
- package/src/status-indicator/status-indicator.tokens.json +0 -3
- package/src/stepper/stepper.css +78 -82
- package/src/switch/switch.css +100 -106
- package/src/table/table.css +270 -198
- package/src/table/table.tokens.json +2 -0
- package/src/table-of-contents/table-of-contents.css +60 -59
- package/src/table-of-contents/table-of-contents.tokens.json +1 -0
- package/src/tabs/tabs.css +327 -294
- package/src/tabs/tabs.tokens.json +7 -1
- package/src/tag/tag.css +109 -88
- package/src/tag/tag.tokens.json +10 -0
- package/src/tags-input/tags-input.css +152 -87
- package/src/tags-input/tags-input.tokens.json +7 -1
- package/src/text-field/text-field.css +146 -148
- package/src/text-field/text-field.tokens.json +1 -0
- package/src/textarea/textarea.css +38 -33
- package/src/textarea/textarea.tokens.json +1 -0
- package/src/time-field/time-field.css +82 -77
- package/src/time-field/time-field.tokens.json +1 -0
- package/src/time-picker/time-picker.css +116 -64
- package/src/time-picker/time-picker.tokens.json +4 -1
- package/src/time-range-picker/time-range-picker.css +168 -140
- package/src/time-range-picker/time-range-picker.tokens.json +4 -0
- package/src/timeline/timeline.css +280 -292
- package/src/timeline/timeline.tokens.json +5 -0
- package/src/toast/toast.css +139 -122
- package/src/toast/toast.tokens.json +7 -0
- package/src/toggle/toggle.css +34 -38
- package/src/toggle-group/toggle-group.css +73 -77
- package/src/toolbar/toolbar.css +33 -38
- package/src/tooltip/tooltip.css +65 -39
- package/src/tooltip/tooltip.tokens.json +1 -0
- package/src/top-navigation/top-navigation.css +252 -268
- package/src/tour/tour.css +68 -74
- package/src/tour/tour.tokens.json +1 -0
- package/src/transfer/transfer.css +164 -168
- package/src/tree/tree.css +113 -121
- package/src/typography/typography.css +42 -38
- package/src/typography/typography.tokens.json +1 -0
- package/src/upload/upload.css +256 -257
- package/src/visually-hidden/visually-hidden.css +1 -1
- package/src/wizard/wizard.css +187 -199
package/src/avatar/avatar.css
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* ── The avatar box ─────────────────────────────────────────────────────
|
|
4
4
|
*
|
|
5
5
|
* A picture of a person or an entity, and what stands in when there is none.
|
|
6
|
-
* The order is the family's whole
|
|
6
|
+
* The order is the family's whole behavior: the picture, then the initials
|
|
7
7
|
* taken from the name, then a glyph the family owns — so a request that fails
|
|
8
8
|
* never paints the browser's torn-page mark.
|
|
9
9
|
*
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
* proportion of that length rather than a scale of its own, which is the
|
|
18
18
|
* reasoning `badge` used for the overhang of an anchored count.
|
|
19
19
|
*/
|
|
20
|
-
[data-ui
|
|
20
|
+
[data-ui-avatar][data-part-root] {
|
|
21
21
|
/**
|
|
22
22
|
* Tone. `secondary` reads the `solid-hover` step rather than `solid` for
|
|
23
|
-
* the reason `badge` records: `secondary.solid` is the surface
|
|
23
|
+
* the reason `badge` records: `secondary.solid` is the surface color in
|
|
24
24
|
* all three schemes, so a filled neutral avatar would be a hole in the page
|
|
25
25
|
* rather than a disc.
|
|
26
26
|
*/
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
* the answer is its own fill: the edge is the disc, so there is no rim.
|
|
66
66
|
*
|
|
67
67
|
* `secondary` is the exception, and it is the only one, for the reason
|
|
68
|
-
* `badge` records against the same
|
|
68
|
+
* `badge` records against the same color: the neutral fill is `#e6e6e6`
|
|
69
69
|
* against the page's own white in `high-contrast`, so a filled neutral
|
|
70
70
|
* avatar with no edge is not a disc, it is a smudge. Every other tone
|
|
71
71
|
* carries its own boundary there.
|
|
@@ -75,8 +75,8 @@
|
|
|
75
75
|
/**
|
|
76
76
|
* What separates this avatar from whatever it is drawn over. Nought until a
|
|
77
77
|
* container asks for it, because a lone avatar overlaps nothing; a group
|
|
78
|
-
* turns it on for every member. It is a
|
|
79
|
-
* an avatar inside a card, a toolbar or a
|
|
78
|
+
* turns it on for every member. It is a color and not a boolean, because
|
|
79
|
+
* an avatar inside a card, a toolbar or a colored row is not sitting on
|
|
80
80
|
* the page's own surface — the same reason `badge` gives for its own ring.
|
|
81
81
|
*/
|
|
82
82
|
--_ring-width: var(--slotted-avatar-ring-width, 0);
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
*/
|
|
121
121
|
border-color: var(--_edge);
|
|
122
122
|
border-radius: var(--_radius);
|
|
123
|
-
/* Three longhands rather than the shorthand: an undefined
|
|
123
|
+
/* Three longhands rather than the shorthand: an undefined color makes a
|
|
124
124
|
`var()` shorthand invalid at computed-value time, and the width would
|
|
125
125
|
fall back to `medium` — three pixels — rather than to this one. */
|
|
126
126
|
border-style: solid;
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
*/
|
|
165
165
|
text-decoration: none;
|
|
166
166
|
/**
|
|
167
|
-
* The edge changes
|
|
167
|
+
* The edge changes color at the moment the picture arrives — the tone's
|
|
168
168
|
* own rim gives way to the neutral one a photograph wants — so it crosses
|
|
169
169
|
* on the same clock as the picture. Without it the rim snapped from red to
|
|
170
170
|
* grey a frame before the face had finished appearing, which was the one
|
|
@@ -183,13 +183,13 @@
|
|
|
183
183
|
/* Initials are a label, not a selection: dragging across a row of faces
|
|
184
184
|
should not highlight a column of letters. */
|
|
185
185
|
user-select: none;
|
|
186
|
-
/* Written beside a name, an avatar sits on the text's
|
|
186
|
+
/* Written beside a name, an avatar sits on the text's center. */
|
|
187
187
|
vertical-align: middle;
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
-
/* ── Tone: which of the five semantic
|
|
190
|
+
/* ── Tone: which of the five semantic colors the name resolves to ─────── */
|
|
191
191
|
|
|
192
|
-
[data-ui
|
|
192
|
+
[data-ui-avatar][data-part-root][data-tone='accent'] {
|
|
193
193
|
--_solid: var(--slotted-tone-accent-solid);
|
|
194
194
|
--_solid-edge: var(--slotted-tone-accent-solid);
|
|
195
195
|
--_on-solid: var(--slotted-tone-accent-on-solid);
|
|
@@ -198,7 +198,7 @@
|
|
|
198
198
|
--_text: var(--slotted-tone-accent-text);
|
|
199
199
|
}
|
|
200
200
|
|
|
201
|
-
[data-ui
|
|
201
|
+
[data-ui-avatar][data-part-root][data-tone='success'] {
|
|
202
202
|
--_solid: var(--slotted-tone-success-solid);
|
|
203
203
|
--_solid-edge: var(--slotted-tone-success-solid);
|
|
204
204
|
--_on-solid: var(--slotted-tone-success-on-solid);
|
|
@@ -207,7 +207,16 @@
|
|
|
207
207
|
--_text: var(--slotted-tone-success-text);
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
-
[data-ui
|
|
210
|
+
[data-ui-avatar][data-part-root][data-tone='info'] {
|
|
211
|
+
--_solid: var(--slotted-tone-info-solid);
|
|
212
|
+
--_solid-edge: var(--slotted-tone-info-solid);
|
|
213
|
+
--_on-solid: var(--slotted-tone-info-on-solid);
|
|
214
|
+
--_surface: var(--slotted-tone-info-surface);
|
|
215
|
+
--_border: var(--slotted-tone-info-border);
|
|
216
|
+
--_text: var(--slotted-tone-info-text);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
[data-ui-avatar][data-part-root][data-tone='warning'] {
|
|
211
220
|
--_solid: var(--slotted-tone-warning-solid);
|
|
212
221
|
--_solid-edge: var(--slotted-tone-warning-solid);
|
|
213
222
|
--_on-solid: var(--slotted-tone-warning-on-solid);
|
|
@@ -216,7 +225,7 @@
|
|
|
216
225
|
--_text: var(--slotted-tone-warning-text);
|
|
217
226
|
}
|
|
218
227
|
|
|
219
|
-
[data-ui
|
|
228
|
+
[data-ui-avatar][data-part-root][data-tone='danger'] {
|
|
220
229
|
--_solid: var(--slotted-tone-danger-solid);
|
|
221
230
|
--_solid-edge: var(--slotted-tone-danger-solid);
|
|
222
231
|
--_on-solid: var(--slotted-tone-danger-on-solid);
|
|
@@ -236,14 +245,14 @@
|
|
|
236
245
|
* There is no `outline`: an avatar drawn as a ring around nothing is not an
|
|
237
246
|
* avatar, and every one of the fourteen surveyed implementations fills.
|
|
238
247
|
*/
|
|
239
|
-
[data-ui
|
|
248
|
+
[data-ui-avatar][data-part-root][data-variant='soft'] {
|
|
240
249
|
--_ground: var(--_surface, ButtonFace);
|
|
241
250
|
|
|
242
251
|
background-color: var(--_ground);
|
|
243
252
|
color: var(--_text, ButtonText);
|
|
244
253
|
}
|
|
245
254
|
|
|
246
|
-
[data-ui
|
|
255
|
+
[data-ui-avatar][data-part-root][data-variant='solid'] {
|
|
247
256
|
--_edge: var(--_solid-edge);
|
|
248
257
|
--_ground: var(--_solid, ButtonFace);
|
|
249
258
|
|
|
@@ -255,7 +264,7 @@
|
|
|
255
264
|
|
|
256
265
|
/**
|
|
257
266
|
* Primer's rule, taken with its meaning: a circle is a person and a square is
|
|
258
|
-
* a team, an
|
|
267
|
+
* a team, an organization or a bot.
|
|
259
268
|
*
|
|
260
269
|
* The corner is a sixth of the box rather than a step of the radius scale.
|
|
261
270
|
* `radius-md` is six pixels, which is a gentle round on a 64-pixel square and
|
|
@@ -265,29 +274,29 @@
|
|
|
265
274
|
* Rounded to the pixel: a sixth of 64 is 10.67 and of 28 is 4.67, and a
|
|
266
275
|
* fractional radius spreads the curve over partial pixels at every corner.
|
|
267
276
|
*/
|
|
268
|
-
[data-ui
|
|
277
|
+
[data-ui-avatar][data-part-root][data-shape='square'] {
|
|
269
278
|
--_radius: var(--slotted-avatar-radius, round(nearest, calc(var(--_size) / 6), 1px));
|
|
270
279
|
}
|
|
271
280
|
|
|
272
281
|
/* ── Size ─────────────────────────────────────────────────────────────── */
|
|
273
282
|
|
|
274
|
-
[data-ui
|
|
283
|
+
[data-ui-avatar][data-part-root][data-size='xs'] {
|
|
275
284
|
--slotted-avatar-size: var(--slotted-avatar-size-xs, 24px);
|
|
276
285
|
}
|
|
277
286
|
|
|
278
|
-
[data-ui
|
|
287
|
+
[data-ui-avatar][data-part-root][data-size='sm'] {
|
|
279
288
|
--slotted-avatar-size: var(--slotted-avatar-size-sm, 28px);
|
|
280
289
|
}
|
|
281
290
|
|
|
282
|
-
[data-ui
|
|
291
|
+
[data-ui-avatar][data-part-root][data-size='md'] {
|
|
283
292
|
--slotted-avatar-size: var(--slotted-avatar-size-md, 36px);
|
|
284
293
|
}
|
|
285
294
|
|
|
286
|
-
[data-ui
|
|
295
|
+
[data-ui-avatar][data-part-root][data-size='lg'] {
|
|
287
296
|
--slotted-avatar-size: var(--slotted-avatar-size-lg, 48px);
|
|
288
297
|
}
|
|
289
298
|
|
|
290
|
-
[data-ui
|
|
299
|
+
[data-ui-avatar][data-part-root][data-size='xl'] {
|
|
291
300
|
--slotted-avatar-size: var(--slotted-avatar-size-xl, 64px);
|
|
292
301
|
}
|
|
293
302
|
|
|
@@ -304,7 +313,7 @@
|
|
|
304
313
|
* `prefers-reduced-motion` collapses the duration in the theme, and nothing
|
|
305
314
|
* here loops.
|
|
306
315
|
*/
|
|
307
|
-
[data-ui
|
|
316
|
+
[data-ui-avatar] [data-part-image] {
|
|
308
317
|
block-size: 100%;
|
|
309
318
|
border-radius: inherit;
|
|
310
319
|
inline-size: 100%;
|
|
@@ -320,14 +329,14 @@
|
|
|
320
329
|
* enters on the entering curve and, when a later request fails, leaves on the
|
|
321
330
|
* exiting one. The fallback below is the mirror of it.
|
|
322
331
|
*/
|
|
323
|
-
[data-ui
|
|
332
|
+
[data-ui-avatar][data-status='loaded'] [data-part-image] {
|
|
324
333
|
opacity: 1;
|
|
325
334
|
transition-timing-function: var(--slotted-easing-enter);
|
|
326
335
|
}
|
|
327
336
|
|
|
328
337
|
/* ── What stands in for it ────────────────────────────────────────────── */
|
|
329
338
|
|
|
330
|
-
[data-ui
|
|
339
|
+
[data-ui-avatar] [data-part-fallback] {
|
|
331
340
|
/**
|
|
332
341
|
* The last step of the fallback order, and the only artwork this family
|
|
333
342
|
* owns. It is reached when there is no picture and no name to take
|
|
@@ -357,7 +366,7 @@
|
|
|
357
366
|
transition: opacity var(--slotted-duration-short) var(--slotted-easing-enter);
|
|
358
367
|
}
|
|
359
368
|
|
|
360
|
-
[data-ui
|
|
369
|
+
[data-ui-avatar][data-status='loaded'] [data-part-fallback] {
|
|
361
370
|
/**
|
|
362
371
|
* It leaves as the picture arrives rather than the instant the load
|
|
363
372
|
* reports, so the two cross rather than flicker. It is still painted
|
|
@@ -368,19 +377,19 @@
|
|
|
368
377
|
}
|
|
369
378
|
|
|
370
379
|
/**
|
|
371
|
-
* A flex container
|
|
380
|
+
* A flex container centers the line box, and a line box is not symmetric
|
|
372
381
|
* around the letters inside it: the ascender reaches further above the cap
|
|
373
382
|
* than the descender reaches below the baseline, and two initials have no
|
|
374
383
|
* descender. Measured with the Geist face at `compact`, `AL` sat 0.56 pixels
|
|
375
384
|
* high in the 32-pixel disc and 0.68 high in the 26-pixel one; at
|
|
376
385
|
* `comfortable`, 1.13 high in the 64-pixel one. `text-box` trims the line to
|
|
377
|
-
* the cap and the baseline, so what is
|
|
386
|
+
* the cap and the baseline, so what is centerd is the ink rather than the
|
|
378
387
|
* font's metrics — the rule `badge`, `kbd`, `tag` and `button` each carry.
|
|
379
388
|
*
|
|
380
389
|
* Those four have a label part to carry it. The initials are written straight
|
|
381
390
|
* into the fallback, and `text-box-trim` needs a block container — a flex
|
|
382
391
|
* container's text lives in an anonymous item no selector can reach — so the
|
|
383
|
-
* fallback itself becomes the block and
|
|
392
|
+
* fallback itself becomes the block and centers its one line with
|
|
384
393
|
* `align-content`, which block containers have taken since Chrome 123 and
|
|
385
394
|
* Safari 17.4, both earlier than the trim. The box keeps its full size, so
|
|
386
395
|
* the disc still clips a long word and no descender is beheaded: the clip is
|
|
@@ -390,11 +399,11 @@
|
|
|
390
399
|
* Only a fallback holding nothing but text is trimmed. A projected logo or
|
|
391
400
|
* icon is not a line of type: it sits on the baseline of a line whose trim is
|
|
392
401
|
* measured from the font, and trimming that line would move the artwork
|
|
393
|
-
* rather than
|
|
402
|
+
* rather than center it. `:has(> *)` is the whole test, and it excludes the
|
|
394
403
|
* family's own glyph as well, which is an icon and needs no line at all.
|
|
395
404
|
*/
|
|
396
405
|
@supports (text-box: trim-both cap alphabetic) {
|
|
397
|
-
[data-ui
|
|
406
|
+
[data-ui-avatar] [data-part-fallback]:not(:has(> *)) {
|
|
398
407
|
align-content: center;
|
|
399
408
|
display: block;
|
|
400
409
|
text-align: center;
|
|
@@ -405,7 +414,7 @@
|
|
|
405
414
|
/* ── The picture that arrived, and the one that did not ───────────────── */
|
|
406
415
|
|
|
407
416
|
/**
|
|
408
|
-
* A photograph does not want a
|
|
417
|
+
* A photograph does not want a colored rim, and a photograph of a white wall
|
|
409
418
|
* on a white surface with no rim at all has no boundary. `border-subtle` is
|
|
410
419
|
* the token that separates one surface from another everywhere else.
|
|
411
420
|
*
|
|
@@ -413,8 +422,29 @@
|
|
|
413
422
|
* resolve in the order `STATE_PRECEDENCE` declares with no selector weight
|
|
414
423
|
* standing in for the order.
|
|
415
424
|
*/
|
|
416
|
-
[data-ui
|
|
425
|
+
[data-ui-avatar][data-part-root][data-status='loaded'] {
|
|
426
|
+
/* The picture is the avatar once it has loaded: the tone's ground stood
|
|
427
|
+
behind it, and a logo with transparency designed for a white ground
|
|
428
|
+
vanished on the dark tint. */
|
|
429
|
+
--_ground: transparent;
|
|
430
|
+
--_edge: var(--slotted-border-subtle, ButtonBorder);
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* The ground, when the consumer chooses it. `none` paints none, the fallback
|
|
435
|
+
* included: initials standing on the page. `plate` paints a light plate in
|
|
436
|
+
* every scheme, for a logo designed for a white ground; the hairline keeps
|
|
437
|
+
* it apart from a light page, and the fallback's ink is dark on it.
|
|
438
|
+
*/
|
|
439
|
+
[data-ui-avatar][data-part-root][data-surface='none'] {
|
|
440
|
+
--_ground: transparent;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
[data-ui-avatar][data-part-root][data-surface='plate'] {
|
|
417
444
|
--_edge: var(--slotted-border-subtle, ButtonBorder);
|
|
445
|
+
--_ground: var(--slotted-avatar-plate-surface, #ffffff);
|
|
446
|
+
|
|
447
|
+
color: var(--slotted-avatar-plate-color, #1f2937);
|
|
418
448
|
}
|
|
419
449
|
|
|
420
450
|
/* ── Disabled ─────────────────────────────────────────────────────────── */
|
|
@@ -423,9 +453,9 @@
|
|
|
423
453
|
* A deactivated account, or an avatar inside a control the page has turned
|
|
424
454
|
* off. It stays legible rather than merely faded: the letters keep the
|
|
425
455
|
* disabled foreground, which the theme holds against the disabled ground, and
|
|
426
|
-
* the photograph loses its
|
|
456
|
+
* the photograph loses its color rather than its contrast.
|
|
427
457
|
*/
|
|
428
|
-
[data-ui
|
|
458
|
+
[data-ui-avatar][data-part-root][data-disabled] {
|
|
429
459
|
--_solid: var(--slotted-disabled-background, Canvas);
|
|
430
460
|
--_on-solid: var(--slotted-disabled-foreground, GrayText);
|
|
431
461
|
--_surface: var(--slotted-disabled-background, Canvas);
|
|
@@ -434,13 +464,13 @@
|
|
|
434
464
|
}
|
|
435
465
|
|
|
436
466
|
/**
|
|
437
|
-
*
|
|
467
|
+
* Color alone would not be enough and color alone is not what changes: the
|
|
438
468
|
* photograph loses its hue and part of its opacity, so the disabled ground
|
|
439
469
|
* shows through and a switched-off face reads as switched off beside one that
|
|
440
470
|
* has no photograph at all. Grey alone kept every luminance, which made a
|
|
441
471
|
* deactivated portrait the strongest thing in a row of disabled avatars.
|
|
442
472
|
*/
|
|
443
|
-
[data-ui
|
|
473
|
+
[data-ui-avatar][data-part-root][data-disabled] [data-part-image] {
|
|
444
474
|
filter: var(--slotted-avatar-disabled-image-filter, grayscale(1) opacity(0.5));
|
|
445
475
|
}
|
|
446
476
|
|
|
@@ -456,9 +486,9 @@
|
|
|
456
486
|
* A weak state held back for the stronger one: a disabled avatar answers no
|
|
457
487
|
* hover, which is the rule that test exists to keep.
|
|
458
488
|
*/
|
|
459
|
-
[data-ui
|
|
460
|
-
button[data-ui
|
|
461
|
-
[data-ui
|
|
489
|
+
[data-ui-avatar][data-part-root]:any-link,
|
|
490
|
+
button[data-ui-avatar][data-part-root],
|
|
491
|
+
[data-ui-avatar][data-part-root][tabindex] {
|
|
462
492
|
cursor: pointer;
|
|
463
493
|
/**
|
|
464
494
|
* The target below hangs outside the box on purpose. A box whose content
|
|
@@ -473,7 +503,7 @@
|
|
|
473
503
|
* padding box grown by this length, corner radii grown with it, so a
|
|
474
504
|
* circular avatar is clipped to a larger circle rather than to a square,
|
|
475
505
|
* and the corners of the 24-pixel square still answer a press. One target's
|
|
476
|
-
* length is more than any
|
|
506
|
+
* length is more than any centerd target can reach past a box — half is the
|
|
477
507
|
* exact figure — and the property takes a plain length: Chrome rejects
|
|
478
508
|
* `calc()` here, and a rejected value computes to nought, which clips the
|
|
479
509
|
* target to the face.
|
|
@@ -484,17 +514,17 @@
|
|
|
484
514
|
|
|
485
515
|
/**
|
|
486
516
|
* Hover and press answer on the ground, the way `tag` answers on its own: the
|
|
487
|
-
* letters'
|
|
517
|
+
* letters' color laid over the fill at eight and fourteen per cent. The rim
|
|
488
518
|
* keeps the tone. It used to turn `border-strong` on hover, which took the
|
|
489
|
-
*
|
|
519
|
+
* color out of the one thing the pointer was on, and in `high-contrast` the
|
|
490
520
|
* tone's rim and `border-strong` are both black, so the hover changed nothing.
|
|
491
521
|
*
|
|
492
522
|
* Press exists because `render` makes the root a link or a button, and a
|
|
493
523
|
* command that does not answer the press reads as one that did not register.
|
|
494
524
|
*/
|
|
495
|
-
[data-ui
|
|
496
|
-
button[data-ui
|
|
497
|
-
[data-ui
|
|
525
|
+
[data-ui-avatar][data-part-root]:any-link:not([data-disabled]):hover,
|
|
526
|
+
button[data-ui-avatar][data-part-root]:not([data-disabled]):hover,
|
|
527
|
+
[data-ui-avatar][data-part-root][tabindex]:not([data-disabled]):hover {
|
|
498
528
|
background-color: color-mix(
|
|
499
529
|
in oklab,
|
|
500
530
|
var(--_ground),
|
|
@@ -502,9 +532,9 @@
|
|
|
502
532
|
);
|
|
503
533
|
}
|
|
504
534
|
|
|
505
|
-
[data-ui
|
|
506
|
-
button[data-ui
|
|
507
|
-
[data-ui
|
|
535
|
+
[data-ui-avatar][data-part-root]:any-link:not([data-disabled]):active,
|
|
536
|
+
button[data-ui-avatar][data-part-root]:not([data-disabled]):active,
|
|
537
|
+
[data-ui-avatar][data-part-root][tabindex]:not([data-disabled]):active {
|
|
508
538
|
background-color: color-mix(
|
|
509
539
|
in oklab,
|
|
510
540
|
var(--_ground),
|
|
@@ -514,28 +544,28 @@
|
|
|
514
544
|
|
|
515
545
|
/**
|
|
516
546
|
* A photograph covers the ground, so a face answers on its frame instead: the
|
|
517
|
-
* rim steps to `border-strong` and a ring of the same
|
|
547
|
+
* rim steps to `border-strong` and a ring of the same color grows outside it,
|
|
518
548
|
* one pixel under the pointer and two under the press. The ring is what keeps
|
|
519
549
|
* the hover visible in `high-contrast`, where the rim is black before and
|
|
520
550
|
* after.
|
|
521
551
|
*
|
|
522
552
|
* One attribute fewer than the group's raise on purpose. Inside a stack the
|
|
523
|
-
* ring belongs to the group — the surface-
|
|
553
|
+
* ring belongs to the group — the surface-colored gap between a raised face
|
|
524
554
|
* and the one it covers — and the lower weight is what lets the group's
|
|
525
555
|
* declaration of the same token win without either file knowing the order
|
|
526
556
|
* the other is loaded in.
|
|
527
557
|
*/
|
|
528
|
-
[data-ui
|
|
529
|
-
button[data-ui
|
|
530
|
-
[data-ui
|
|
558
|
+
[data-ui-avatar][data-status='loaded']:any-link:not([data-disabled]):hover,
|
|
559
|
+
button[data-ui-avatar][data-status='loaded']:not([data-disabled]):hover,
|
|
560
|
+
[data-ui-avatar][data-status='loaded'][tabindex]:not([data-disabled]):hover {
|
|
531
561
|
--_edge: var(--slotted-border-strong, CanvasText);
|
|
532
562
|
--slotted-avatar-ring-width: var(--slotted-border-width-thin, 1px);
|
|
533
563
|
--slotted-avatar-ring-color: var(--slotted-border-strong, CanvasText);
|
|
534
564
|
}
|
|
535
565
|
|
|
536
|
-
[data-ui
|
|
537
|
-
button[data-ui
|
|
538
|
-
[data-ui
|
|
566
|
+
[data-ui-avatar][data-status='loaded']:any-link:not([data-disabled]):active,
|
|
567
|
+
button[data-ui-avatar][data-status='loaded']:not([data-disabled]):active,
|
|
568
|
+
[data-ui-avatar][data-status='loaded'][tabindex]:not([data-disabled]):active {
|
|
539
569
|
--slotted-avatar-ring-width: var(--slotted-border-width-thick, 2px);
|
|
540
570
|
}
|
|
541
571
|
|
|
@@ -544,7 +574,7 @@
|
|
|
544
574
|
* on its own, and a ring that appears only where a family expects focus is a
|
|
545
575
|
* ring that goes missing the first time a consumer makes one a link.
|
|
546
576
|
*/
|
|
547
|
-
[data-ui
|
|
577
|
+
[data-ui-avatar][data-part-root]:focus-visible {
|
|
548
578
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
549
579
|
outline-offset: var(--slotted-focus-ring-offset, 2px);
|
|
550
580
|
}
|
|
@@ -556,7 +586,7 @@
|
|
|
556
586
|
* it is never larger than the box it belongs to when the box already passes.
|
|
557
587
|
*
|
|
558
588
|
* One negative inset on all four sides, and not a size with `margin: auto`.
|
|
559
|
-
* Auto margins
|
|
589
|
+
* Auto margins center a box that fits; a box wider than the space it is
|
|
560
590
|
* placed in is over-constrained, and the rule the engine applies then is to
|
|
561
591
|
* keep the start margin and put the whole difference on the end one. So the
|
|
562
592
|
* 24-pixel target sat against the leading edge of a 20-pixel avatar and hung
|
|
@@ -570,16 +600,16 @@
|
|
|
570
600
|
* Fluent ships a 16-pixel avatar and Atlassian a 16- and a 20-pixel one, and
|
|
571
601
|
* both accept a click on it as it stands.
|
|
572
602
|
*/
|
|
573
|
-
[data-ui
|
|
574
|
-
button[data-ui
|
|
575
|
-
[data-ui
|
|
603
|
+
[data-ui-avatar][data-part-root]:any-link::after,
|
|
604
|
+
button[data-ui-avatar][data-part-root]::after,
|
|
605
|
+
[data-ui-avatar][data-part-root][tabindex]::after {
|
|
576
606
|
content: '';
|
|
577
607
|
inset: min(0px, calc((100% - var(--slotted-target-min, 24px)) / 2));
|
|
578
608
|
position: absolute;
|
|
579
609
|
}
|
|
580
610
|
|
|
581
611
|
/**
|
|
582
|
-
* ── Forced
|
|
612
|
+
* ── Forced colors ─────────────────────────────────────────────────────
|
|
583
613
|
*
|
|
584
614
|
* The theme maps every tone ground to `ButtonFace` or `Canvas`, so a tinted
|
|
585
615
|
* avatar and a filled one become the same disc and an avatar whose edge
|
|
@@ -587,11 +617,11 @@
|
|
|
587
617
|
* paint left that still separates a face from the page.
|
|
588
618
|
*
|
|
589
619
|
* The picture is exempt: `forced-color-adjust` is not applied to images by
|
|
590
|
-
* the user agent, and a photograph reduced to two system
|
|
620
|
+
* the user agent, and a photograph reduced to two system colors is not a
|
|
591
621
|
* photograph.
|
|
592
622
|
*/
|
|
593
623
|
@media (forced-colors: active) {
|
|
594
|
-
[data-ui
|
|
624
|
+
[data-ui-avatar][data-part-root] {
|
|
595
625
|
--_edge: currentColor;
|
|
596
626
|
}
|
|
597
627
|
}
|
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
"--slotted-avatar-font-weight",
|
|
7
7
|
"--slotted-avatar-glyph-size",
|
|
8
8
|
"--slotted-avatar-initials-size",
|
|
9
|
+
"--slotted-avatar-plate-color",
|
|
10
|
+
"--slotted-avatar-plate-surface",
|
|
9
11
|
"--slotted-avatar-radius",
|
|
10
12
|
"--slotted-avatar-ring-color",
|
|
11
13
|
"--slotted-avatar-ring-width",
|
|
@@ -46,6 +48,11 @@
|
|
|
46
48
|
"--slotted-tone-danger-solid",
|
|
47
49
|
"--slotted-tone-danger-surface",
|
|
48
50
|
"--slotted-tone-danger-text",
|
|
51
|
+
"--slotted-tone-info-border",
|
|
52
|
+
"--slotted-tone-info-on-solid",
|
|
53
|
+
"--slotted-tone-info-solid",
|
|
54
|
+
"--slotted-tone-info-surface",
|
|
55
|
+
"--slotted-tone-info-text",
|
|
49
56
|
"--slotted-tone-secondary-border",
|
|
50
57
|
"--slotted-tone-secondary-on-solid",
|
|
51
58
|
"--slotted-tone-secondary-solid-hover",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* the decision `button-group` already took for the same question: a second
|
|
13
13
|
* way to name one thing is a second thing to get wrong.
|
|
14
14
|
*/
|
|
15
|
-
[data-ui
|
|
15
|
+
[data-ui-avatar-group][data-part-root] {
|
|
16
16
|
/**
|
|
17
17
|
* How much of a member the next one covers, as a fraction of its own box.
|
|
18
18
|
* A proportion rather than a step of the space scale, because what has to
|
|
@@ -76,12 +76,12 @@
|
|
|
76
76
|
* beside it drifts for a reason nobody can see in the markup. The same
|
|
77
77
|
* decision `button-group` took.
|
|
78
78
|
*/
|
|
79
|
-
[data-ui
|
|
79
|
+
[data-ui-avatar-group][data-part-root]:empty {
|
|
80
80
|
display: none;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
[data-ui
|
|
84
|
-
[data-ui
|
|
83
|
+
[data-ui-avatar-group] [data-part-item],
|
|
84
|
+
[data-ui-avatar-group] [data-part-overflow] {
|
|
85
85
|
display: flex;
|
|
86
86
|
/* Not a stacking context: `z-index` stays `auto` so a member raised on
|
|
87
87
|
hover rises above its neighbours rather than only inside its own item. */
|
|
@@ -95,30 +95,29 @@
|
|
|
95
95
|
* curve of the state it arrives at, which is why the rest rule carries the
|
|
96
96
|
* exit.
|
|
97
97
|
*/
|
|
98
|
-
[data-ui
|
|
99
|
-
[data-ui='avatar'][data-part='root'] {
|
|
98
|
+
[data-ui-avatar-group][data-part-root][data-layout='stack'] [data-ui-avatar][data-part-root] {
|
|
100
99
|
transition-timing-function: var(--slotted-easing-exit);
|
|
101
100
|
}
|
|
102
101
|
|
|
103
102
|
/* ── Size ─────────────────────────────────────────────────────────────── */
|
|
104
103
|
|
|
105
|
-
[data-ui
|
|
104
|
+
[data-ui-avatar-group][data-part-root][data-size='xs'] {
|
|
106
105
|
--slotted-avatar-size: var(--slotted-avatar-size-xs, 24px);
|
|
107
106
|
}
|
|
108
107
|
|
|
109
|
-
[data-ui
|
|
108
|
+
[data-ui-avatar-group][data-part-root][data-size='sm'] {
|
|
110
109
|
--slotted-avatar-size: var(--slotted-avatar-size-sm, 28px);
|
|
111
110
|
}
|
|
112
111
|
|
|
113
|
-
[data-ui
|
|
112
|
+
[data-ui-avatar-group][data-part-root][data-size='md'] {
|
|
114
113
|
--slotted-avatar-size: var(--slotted-avatar-size-md, 36px);
|
|
115
114
|
}
|
|
116
115
|
|
|
117
|
-
[data-ui
|
|
116
|
+
[data-ui-avatar-group][data-part-root][data-size='lg'] {
|
|
118
117
|
--slotted-avatar-size: var(--slotted-avatar-size-lg, 48px);
|
|
119
118
|
}
|
|
120
119
|
|
|
121
|
-
[data-ui
|
|
120
|
+
[data-ui-avatar-group][data-part-root][data-size='xl'] {
|
|
122
121
|
--slotted-avatar-size: var(--slotted-avatar-size-xl, 64px);
|
|
123
122
|
}
|
|
124
123
|
|
|
@@ -132,7 +131,7 @@
|
|
|
132
131
|
* Members are not wrapped: a stack that broke across two lines would leave
|
|
133
132
|
* the last face of the first line overlapping nothing.
|
|
134
133
|
*/
|
|
135
|
-
[data-ui
|
|
134
|
+
[data-ui-avatar-group][data-part-root][data-layout='stack'] {
|
|
136
135
|
flex-wrap: nowrap;
|
|
137
136
|
}
|
|
138
137
|
|
|
@@ -141,7 +140,7 @@
|
|
|
141
140
|
* so the stack has one curve per face instead of a second thick ring layered
|
|
142
141
|
* over every member.
|
|
143
142
|
*/
|
|
144
|
-
[data-ui
|
|
143
|
+
[data-ui-avatar-group][data-part-root][data-layout='stack'] > * + * {
|
|
145
144
|
/* Whole pixels: 0.28 of 36 is 10.08, which left every member after the
|
|
146
145
|
first on a fractional x (50.92, 76.84, 102.77) and softened its edge. */
|
|
147
146
|
margin-inline-start: calc(round(nearest, calc(var(--_size) * var(--_overlap)), 1px) * -1);
|
|
@@ -152,7 +151,7 @@
|
|
|
152
151
|
* to go somewhere, and a group laid out apart has no stacking order to lose
|
|
153
152
|
* by breaking.
|
|
154
153
|
*/
|
|
155
|
-
[data-ui
|
|
154
|
+
[data-ui-avatar-group][data-part-root][data-layout='spread'] {
|
|
156
155
|
flex-wrap: wrap;
|
|
157
156
|
/**
|
|
158
157
|
* A step of the space scale rather than a proportion of the avatar, because
|
|
@@ -183,7 +182,7 @@
|
|
|
183
182
|
* front of the ones it overlaps, and `z-index` is what puts it there.
|
|
184
183
|
*
|
|
185
184
|
* Then the ring, which is the avatar's own — the one it keeps at nought until
|
|
186
|
-
* something it overlaps asks for it, in the surface
|
|
185
|
+
* something it overlaps asks for it, in the surface color it already
|
|
187
186
|
* defaults to. A stack draws every member over the trailing edge of the one
|
|
188
187
|
* before it, so a raised face has a neighbour's picture against its own edge
|
|
189
188
|
* on one side, and a ring of the surface is the gap that edge would have had
|
|
@@ -206,8 +205,8 @@
|
|
|
206
205
|
* neighbours keep the box they had at rest, in three schemes and three
|
|
207
206
|
* densities.
|
|
208
207
|
*/
|
|
209
|
-
[data-ui
|
|
210
|
-
[data-ui
|
|
208
|
+
[data-ui-avatar-group][data-layout='stack']
|
|
209
|
+
[data-ui-avatar][data-part-root]:not([data-disabled]):hover {
|
|
211
210
|
--slotted-avatar-ring-width: var(--_raise-ring);
|
|
212
211
|
--slotted-avatar-elevation: var(--_raise-shadow);
|
|
213
212
|
|
|
@@ -216,7 +215,7 @@
|
|
|
216
215
|
transition-timing-function: var(--slotted-easing-enter);
|
|
217
216
|
}
|
|
218
217
|
|
|
219
|
-
[data-ui
|
|
218
|
+
[data-ui-avatar-group][data-layout='stack'] [data-ui-avatar][data-part-root]:focus-visible {
|
|
220
219
|
z-index: 1;
|
|
221
220
|
transform: translateY(var(--_raise-lift));
|
|
222
221
|
transition-timing-function: var(--slotted-easing-enter);
|
|
@@ -227,8 +226,8 @@
|
|
|
227
226
|
* translate and not a scale for the reason the lift is (R7), and it is a
|
|
228
227
|
* different answer from the hover, which is the whole point of a press.
|
|
229
228
|
*/
|
|
230
|
-
[data-ui
|
|
231
|
-
[data-ui
|
|
229
|
+
[data-ui-avatar-group][data-layout='stack']
|
|
230
|
+
[data-ui-avatar][data-part-root]:not([data-disabled]):active {
|
|
232
231
|
transform: translateY(calc(var(--_raise-lift) / 2));
|
|
233
232
|
}
|
|
234
233
|
|
|
@@ -240,12 +239,12 @@
|
|
|
240
239
|
* not move is a light source switching on.
|
|
241
240
|
*/
|
|
242
241
|
@media (prefers-reduced-motion: reduce) {
|
|
243
|
-
[data-ui
|
|
242
|
+
[data-ui-avatar-group][data-part-root][data-layout='stack'] {
|
|
244
243
|
--_raise-lift: 0px;
|
|
245
244
|
--_raise-shadow: 0 0 transparent;
|
|
246
245
|
}
|
|
247
246
|
|
|
248
|
-
[data-ui
|
|
247
|
+
[data-ui-avatar-group][data-layout='stack'] [data-ui-avatar][data-part-root] {
|
|
249
248
|
transition: none;
|
|
250
249
|
}
|
|
251
250
|
}
|
|
@@ -260,7 +259,7 @@
|
|
|
260
259
|
* from jittering as the count crosses a power of ten, which is the same rule
|
|
261
260
|
* `badge` applies to its own count.
|
|
262
261
|
*/
|
|
263
|
-
[data-ui
|
|
262
|
+
[data-ui-avatar-group] [data-part-overflow] [data-ui-avatar][data-part-root] {
|
|
264
263
|
--slotted-avatar-initials-size: round(nearest, calc(var(--_size) * 0.36), 1px);
|
|
265
264
|
|
|
266
265
|
font-variant-numeric: tabular-nums;
|