@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
package/src/message/message.css
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* both `Message` and `Bubble`, and two answers to one question can disagree
|
|
14
14
|
* (`docs/history/designs/2026-09-30-message-design.md` §2.2).
|
|
15
15
|
*/
|
|
16
|
-
[data-ui
|
|
16
|
+
[data-ui-message][data-part-root] {
|
|
17
17
|
/**
|
|
18
18
|
* The avatar column is the small avatar step, which the theme restates per
|
|
19
19
|
* density; ReUI's 32 has no step there (dossier §3), and a row that follows
|
|
@@ -62,16 +62,15 @@
|
|
|
62
62
|
* `MessageAvatar` in each of them (`c-message-6`); the column is read here
|
|
63
63
|
* from the DOM instead.
|
|
64
64
|
*/
|
|
65
|
-
[data-ui
|
|
66
|
-
[data-ui
|
|
67
|
-
> [data-ui='message'][data-part='root'] {
|
|
65
|
+
[data-ui-message][data-part-root]:has(> [data-part-avatar]),
|
|
66
|
+
[data-ui-message][data-part-group]:has([data-part-avatar]) > [data-ui-message][data-part-root] {
|
|
68
67
|
grid-template-areas: 'avatar body';
|
|
69
68
|
grid-template-columns: var(--_avatar-size) minmax(0, 1fr);
|
|
70
69
|
}
|
|
71
70
|
|
|
72
|
-
[data-ui
|
|
73
|
-
[data-ui
|
|
74
|
-
> [data-ui
|
|
71
|
+
[data-ui-message][data-part-root][data-align='end']:has(> [data-part-avatar]),
|
|
72
|
+
[data-ui-message][data-part-group]:has([data-part-avatar])
|
|
73
|
+
> [data-ui-message][data-part-root][data-align='end'] {
|
|
75
74
|
grid-template-areas: 'body avatar';
|
|
76
75
|
grid-template-columns: minmax(0, 1fr) var(--_avatar-size);
|
|
77
76
|
}
|
|
@@ -81,7 +80,7 @@
|
|
|
81
80
|
* rather than of the footer under it: in a run it marks where the run ends,
|
|
82
81
|
* which is where the reader's eye arrives.
|
|
83
82
|
*/
|
|
84
|
-
[data-ui
|
|
83
|
+
[data-ui-message][data-part-root] > [data-part-avatar] {
|
|
85
84
|
grid-area: avatar;
|
|
86
85
|
display: flex;
|
|
87
86
|
align-self: end;
|
|
@@ -90,12 +89,12 @@
|
|
|
90
89
|
min-block-size: var(--_avatar-size);
|
|
91
90
|
}
|
|
92
91
|
|
|
93
|
-
[data-ui
|
|
94
|
-
> [data-part
|
|
92
|
+
[data-ui-message][data-part-root]:has(> [data-part-body] > [data-part-footer])
|
|
93
|
+
> [data-part-avatar] {
|
|
95
94
|
margin-block-end: calc(var(--_meta-leading) + var(--_stack-gap));
|
|
96
95
|
}
|
|
97
96
|
|
|
98
|
-
[data-ui
|
|
97
|
+
[data-ui-message][data-part-root] > [data-part-body] {
|
|
99
98
|
grid-area: body;
|
|
100
99
|
display: flex;
|
|
101
100
|
flex-direction: column;
|
|
@@ -104,7 +103,7 @@
|
|
|
104
103
|
min-inline-size: 0;
|
|
105
104
|
}
|
|
106
105
|
|
|
107
|
-
[data-ui
|
|
106
|
+
[data-ui-message][data-part-root][data-align='end'] > [data-part-body] {
|
|
108
107
|
align-items: flex-end;
|
|
109
108
|
}
|
|
110
109
|
|
|
@@ -116,7 +115,7 @@
|
|
|
116
115
|
* sender's side drawn in, it reads as one speaker holding the floor. The
|
|
117
116
|
* gap between runs belongs to whatever stacks them — the scroller gives it.
|
|
118
117
|
*/
|
|
119
|
-
[data-ui
|
|
118
|
+
[data-ui-message][data-part-group] {
|
|
120
119
|
display: flex;
|
|
121
120
|
flex-direction: column;
|
|
122
121
|
gap: var(--slotted-message-run-gap, var(--slotted-space-1, 0.125rem));
|
|
@@ -125,7 +124,7 @@
|
|
|
125
124
|
|
|
126
125
|
/* ── Header and footer ──────────────────────────────────────────────── */
|
|
127
126
|
|
|
128
|
-
[data-ui
|
|
127
|
+
[data-ui-message][data-part-root] :is([data-part-header], [data-part-footer]) {
|
|
129
128
|
display: flex;
|
|
130
129
|
flex-wrap: wrap;
|
|
131
130
|
align-items: center;
|
|
@@ -139,8 +138,7 @@
|
|
|
139
138
|
line-height: var(--_meta-leading);
|
|
140
139
|
}
|
|
141
140
|
|
|
142
|
-
[data-ui
|
|
143
|
-
:is([data-part='header'], [data-part='footer']) {
|
|
141
|
+
[data-ui-message][data-part-root][data-align='end'] :is([data-part-header], [data-part-footer]) {
|
|
144
142
|
justify-content: flex-end;
|
|
145
143
|
}
|
|
146
144
|
|
|
@@ -150,7 +148,7 @@
|
|
|
150
148
|
* read aloud, copied with the name and wrapped onto a line of its own.
|
|
151
149
|
* ReUI asks the consumer to write the dot (`c-message-3`).
|
|
152
150
|
*/
|
|
153
|
-
[data-ui
|
|
151
|
+
[data-ui-message][data-part-root] [data-part-header] > * + [data-part-time]::before {
|
|
154
152
|
content: '';
|
|
155
153
|
display: inline-block;
|
|
156
154
|
inline-size: var(--slotted-space-2, 0.25rem);
|
|
@@ -162,14 +160,14 @@
|
|
|
162
160
|
vertical-align: middle;
|
|
163
161
|
}
|
|
164
162
|
|
|
165
|
-
[data-ui
|
|
163
|
+
[data-ui-message][data-part-root] [data-part-author] {
|
|
166
164
|
min-inline-size: 0;
|
|
167
165
|
overflow: hidden;
|
|
168
166
|
text-overflow: ellipsis;
|
|
169
167
|
white-space: nowrap;
|
|
170
168
|
}
|
|
171
169
|
|
|
172
|
-
[data-ui
|
|
170
|
+
[data-ui-message][data-part-root] [data-part-time] {
|
|
173
171
|
font-variant-numeric: tabular-nums;
|
|
174
172
|
white-space: nowrap;
|
|
175
173
|
}
|
|
@@ -183,14 +181,11 @@
|
|
|
183
181
|
* word of twelve pixels is two voices saying one thing, and the two never
|
|
184
182
|
* shared a centre line.
|
|
185
183
|
*/
|
|
186
|
-
[data-ui
|
|
184
|
+
[data-ui-message][data-part-root] [data-part-footer] > [data-part-receipt] {
|
|
187
185
|
white-space: nowrap;
|
|
188
186
|
}
|
|
189
187
|
|
|
190
|
-
[data-ui
|
|
191
|
-
[data-part='footer']
|
|
192
|
-
> [data-part='receipt']
|
|
193
|
-
> [data-ui='icon'] {
|
|
188
|
+
[data-ui-message][data-part-root] [data-part-footer] > [data-part-receipt] > [data-ui-icon] {
|
|
194
189
|
display: none;
|
|
195
190
|
}
|
|
196
191
|
|
|
@@ -200,7 +195,7 @@
|
|
|
200
195
|
* not with the words inside it — so the note reads as the bubble's caption.
|
|
201
196
|
* The control that sends it again stands beside the surface (`retry`).
|
|
202
197
|
*/
|
|
203
|
-
[data-ui
|
|
198
|
+
[data-ui-message][data-part-root][data-invalid] > [data-part-body] > [data-part-footer] {
|
|
204
199
|
padding-inline: var(--slotted-space-2, 0.25rem);
|
|
205
200
|
color: var(--slotted-tone-danger-text);
|
|
206
201
|
}
|
|
@@ -212,7 +207,7 @@
|
|
|
212
207
|
* always on a screen that cannot hover: a reveal by hover alone would hide
|
|
213
208
|
* them from the keyboard and from a finger.
|
|
214
209
|
*/
|
|
215
|
-
[data-ui
|
|
210
|
+
[data-ui-message][data-part-root] [data-part-actions] {
|
|
216
211
|
display: inline-flex;
|
|
217
212
|
align-items: center;
|
|
218
213
|
gap: var(--slotted-space-1, 0.125rem);
|
|
@@ -220,15 +215,15 @@
|
|
|
220
215
|
}
|
|
221
216
|
|
|
222
217
|
@media (hover: hover) {
|
|
223
|
-
[data-ui
|
|
218
|
+
[data-ui-message][data-part-root][data-actions='hover'] [data-part-actions] {
|
|
224
219
|
opacity: 0;
|
|
225
220
|
}
|
|
226
221
|
|
|
227
|
-
[data-ui
|
|
222
|
+
[data-ui-message][data-part-root][data-actions='hover']:is(
|
|
228
223
|
:hover:not([data-disabled]),
|
|
229
224
|
:focus-within
|
|
230
225
|
)
|
|
231
|
-
[data-part
|
|
226
|
+
[data-part-actions] {
|
|
232
227
|
opacity: 1;
|
|
233
228
|
transition-timing-function: var(--slotted-easing-enter, ease-out);
|
|
234
229
|
}
|
|
@@ -248,7 +243,7 @@
|
|
|
248
243
|
* moves only while the step is current, and under reduced motion the words
|
|
249
244
|
* stand in the plain ink.
|
|
250
245
|
*/
|
|
251
|
-
[data-ui
|
|
246
|
+
[data-ui-message][data-part-root] [data-part-activity] {
|
|
252
247
|
display: inline-flex;
|
|
253
248
|
flex-direction: column;
|
|
254
249
|
gap: var(--slotted-space-3, 0.375rem);
|
|
@@ -265,7 +260,7 @@
|
|
|
265
260
|
line-height: round(up, calc(1em * var(--slotted-line-height-md, 1.5)), 1px);
|
|
266
261
|
}
|
|
267
262
|
|
|
268
|
-
[data-ui
|
|
263
|
+
[data-ui-message][data-part-root] [data-part-activity-step] {
|
|
269
264
|
display: flex;
|
|
270
265
|
align-items: center;
|
|
271
266
|
gap: var(--slotted-space-4, 0.5rem);
|
|
@@ -282,7 +277,7 @@
|
|
|
282
277
|
}
|
|
283
278
|
|
|
284
279
|
/** The mark column: a tick, or the ring, in one box so the words line up. */
|
|
285
|
-
[data-ui
|
|
280
|
+
[data-ui-message][data-part-root] [data-part-activity-step] > :first-child {
|
|
286
281
|
--slotted-icon-size: var(--_glyph-size);
|
|
287
282
|
--slotted-spinner-size: var(--_glyph-size);
|
|
288
283
|
|
|
@@ -293,19 +288,19 @@
|
|
|
293
288
|
block-size: var(--_glyph-size);
|
|
294
289
|
}
|
|
295
290
|
|
|
296
|
-
[data-ui
|
|
291
|
+
[data-ui-message][data-part-root] [data-part-activity-step][data-complete] > :first-child {
|
|
297
292
|
color: var(--slotted-tone-success-text);
|
|
298
293
|
}
|
|
299
294
|
|
|
300
|
-
[data-ui
|
|
295
|
+
[data-ui-message][data-part-root] [data-part-activity-step][data-current] {
|
|
301
296
|
color: var(--slotted-text);
|
|
302
297
|
}
|
|
303
298
|
|
|
304
|
-
[data-ui
|
|
299
|
+
[data-ui-message][data-part-root] [data-part-activity-step][data-current] > :first-child {
|
|
305
300
|
color: var(--slotted-tone-accent-text);
|
|
306
301
|
}
|
|
307
302
|
|
|
308
|
-
[data-ui
|
|
303
|
+
[data-ui-message][data-part-root] [data-part-activity-step][data-current] > :last-child {
|
|
309
304
|
--_base: color-mix(in oklab, var(--slotted-text) 72%, var(--slotted-text-muted));
|
|
310
305
|
|
|
311
306
|
background-image: linear-gradient(
|
|
@@ -337,20 +332,19 @@
|
|
|
337
332
|
* `2 de 3` between two inner controls. The chevron is one glyph turned for
|
|
338
333
|
* the previous control, and a right-to-left document turns both.
|
|
339
334
|
*/
|
|
340
|
-
[data-ui
|
|
335
|
+
[data-ui-message][data-part-root] [data-part-versions] {
|
|
341
336
|
display: inline-flex;
|
|
342
337
|
align-items: center;
|
|
343
338
|
color: var(--slotted-text-muted);
|
|
344
339
|
}
|
|
345
340
|
|
|
346
|
-
[data-ui
|
|
341
|
+
[data-ui-message][data-part-root] [data-part-version-label] {
|
|
347
342
|
padding-inline: var(--slotted-space-2, 0.25rem);
|
|
348
343
|
font-variant-numeric: tabular-nums;
|
|
349
344
|
white-space: nowrap;
|
|
350
345
|
}
|
|
351
346
|
|
|
352
|
-
[data-ui
|
|
353
|
-
:is([data-part='version-previous'], [data-part='version-next']) {
|
|
347
|
+
[data-ui-message][data-part-root] :is([data-part-version-previous], [data-part-version-next]) {
|
|
354
348
|
display: inline-grid;
|
|
355
349
|
place-items: center;
|
|
356
350
|
inline-size: var(--_inner-size);
|
|
@@ -367,45 +361,45 @@
|
|
|
367
361
|
color var(--slotted-duration-short) var(--slotted-easing-standard, ease);
|
|
368
362
|
}
|
|
369
363
|
|
|
370
|
-
[data-ui
|
|
371
|
-
:is([data-part
|
|
372
|
-
> [data-ui
|
|
364
|
+
[data-ui-message][data-part-root]
|
|
365
|
+
:is([data-part-version-previous], [data-part-version-next])
|
|
366
|
+
> [data-ui-icon] {
|
|
373
367
|
--slotted-icon-size: var(--_glyph-size);
|
|
374
368
|
}
|
|
375
369
|
|
|
376
|
-
[data-ui
|
|
370
|
+
[data-ui-message][data-part-root] [data-part-version-previous] > [data-ui-icon] {
|
|
377
371
|
scale: -1 1;
|
|
378
372
|
}
|
|
379
373
|
|
|
380
|
-
[data-ui
|
|
381
|
-
:is([data-part
|
|
382
|
-
> [data-ui
|
|
374
|
+
[data-ui-message][data-part-root]:dir(rtl)
|
|
375
|
+
:is([data-part-version-previous], [data-part-version-next])
|
|
376
|
+
> [data-ui-icon] {
|
|
383
377
|
scale: -1 1;
|
|
384
378
|
}
|
|
385
379
|
|
|
386
|
-
[data-ui
|
|
380
|
+
[data-ui-message][data-part-root]:dir(rtl) [data-part-version-previous] > [data-ui-icon] {
|
|
387
381
|
scale: 1 1;
|
|
388
382
|
}
|
|
389
383
|
|
|
390
|
-
[data-ui
|
|
391
|
-
:is([data-part
|
|
384
|
+
[data-ui-message][data-part-root]
|
|
385
|
+
:is([data-part-version-previous], [data-part-version-next]):hover:not(:disabled) {
|
|
392
386
|
background-color: var(--slotted-tone-secondary-subtle-hover);
|
|
393
387
|
color: var(--slotted-text);
|
|
394
388
|
}
|
|
395
389
|
|
|
396
|
-
[data-ui
|
|
397
|
-
:is([data-part
|
|
390
|
+
[data-ui-message][data-part-root]
|
|
391
|
+
:is([data-part-version-previous], [data-part-version-next]):active:not(:disabled) {
|
|
398
392
|
background-color: var(--slotted-tone-secondary-subtle-active);
|
|
399
393
|
color: var(--slotted-text);
|
|
400
394
|
}
|
|
401
395
|
|
|
402
|
-
[data-ui
|
|
403
|
-
:is([data-part
|
|
396
|
+
[data-ui-message][data-part-root]
|
|
397
|
+
:is([data-part-version-previous], [data-part-version-next]):disabled {
|
|
404
398
|
color: var(--slotted-disabled-foreground);
|
|
405
399
|
}
|
|
406
400
|
|
|
407
|
-
[data-ui
|
|
408
|
-
:is([data-part
|
|
401
|
+
[data-ui-message][data-part-root]
|
|
402
|
+
:is([data-part-version-previous], [data-part-version-next]):focus-visible {
|
|
409
403
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color);
|
|
410
404
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
411
405
|
}
|
|
@@ -426,7 +420,7 @@
|
|
|
426
420
|
* avatar at the top beside the name, the words unframed under it, and a
|
|
427
421
|
* band under the pointer that says which message the actions belong to.
|
|
428
422
|
*/
|
|
429
|
-
[data-ui
|
|
423
|
+
[data-ui-message][data-part-root][data-layout='thread'] {
|
|
430
424
|
--_avatar-size: var(--slotted-message-thread-avatar-size, var(--slotted-avatar-size-md, 36px));
|
|
431
425
|
--_pad-inline: 0px;
|
|
432
426
|
|
|
@@ -436,18 +430,18 @@
|
|
|
436
430
|
transition: background-color var(--slotted-duration-short) var(--slotted-easing-standard, ease);
|
|
437
431
|
}
|
|
438
432
|
|
|
439
|
-
[data-ui
|
|
433
|
+
[data-ui-message][data-part-root][data-layout='thread'] > [data-part-avatar] {
|
|
440
434
|
align-self: start;
|
|
441
435
|
margin-block-end: 0;
|
|
442
436
|
}
|
|
443
437
|
|
|
444
|
-
[data-ui
|
|
438
|
+
[data-ui-message][data-part-root][data-layout='thread'] [data-part-author] {
|
|
445
439
|
color: var(--slotted-text);
|
|
446
440
|
font-size: var(--slotted-control-font-size-md, 13px);
|
|
447
441
|
font-weight: var(--slotted-font-weight-semibold, 600);
|
|
448
442
|
}
|
|
449
443
|
|
|
450
|
-
[data-ui
|
|
444
|
+
[data-ui-message][data-part-root][data-layout='thread']:hover:not([data-disabled]) {
|
|
451
445
|
background-color: var(--slotted-tone-secondary-subtle-hover);
|
|
452
446
|
}
|
|
453
447
|
|
|
@@ -459,14 +453,14 @@
|
|
|
459
453
|
* A plate that is always painted, on a touch screen or with `always`, floated
|
|
460
454
|
* over the words and covered them at 360 pixels.
|
|
461
455
|
*/
|
|
462
|
-
[data-ui
|
|
456
|
+
[data-ui-message][data-part-root][data-layout='thread'] > [data-part-actions] {
|
|
463
457
|
grid-column: body;
|
|
464
458
|
justify-self: start;
|
|
465
459
|
}
|
|
466
460
|
|
|
467
461
|
@media (hover: hover) {
|
|
468
|
-
[data-ui
|
|
469
|
-
> [data-part
|
|
462
|
+
[data-ui-message][data-part-root][data-layout='thread'][data-actions='hover']
|
|
463
|
+
> [data-part-actions] {
|
|
470
464
|
position: absolute;
|
|
471
465
|
inset-block-start: calc(var(--slotted-space-2, 0.25rem) * -1);
|
|
472
466
|
inset-inline-end: var(--slotted-space-4, 0.5rem);
|
|
@@ -480,7 +474,7 @@
|
|
|
480
474
|
|
|
481
475
|
/* ══ The bubble ════════════════════════════════════════════════════════ */
|
|
482
476
|
|
|
483
|
-
[data-ui
|
|
477
|
+
[data-ui-message][data-part-bubble] {
|
|
484
478
|
/**
|
|
485
479
|
* The five tones, read into the roles a painting needs. `soft` writes in
|
|
486
480
|
* the page's ink on the accent and secondary grounds — a paragraph set in
|
|
@@ -538,14 +532,14 @@
|
|
|
538
532
|
max-inline-size: var(--slotted-message-bubble-share, 80%);
|
|
539
533
|
}
|
|
540
534
|
|
|
541
|
-
[data-ui
|
|
535
|
+
[data-ui-message][data-part-bubble][data-tone='accent'] {
|
|
542
536
|
--_solid: var(--slotted-tone-accent-solid);
|
|
543
537
|
--_on-solid: var(--slotted-tone-accent-on-solid);
|
|
544
538
|
--_surface: var(--slotted-tone-accent-surface);
|
|
545
539
|
--_border: var(--slotted-tone-accent-border);
|
|
546
540
|
}
|
|
547
541
|
|
|
548
|
-
[data-ui
|
|
542
|
+
[data-ui-message][data-part-bubble][data-tone='success'] {
|
|
549
543
|
--_solid: var(--slotted-tone-success-solid);
|
|
550
544
|
--_on-solid: var(--slotted-tone-success-on-solid);
|
|
551
545
|
--_surface: var(--slotted-tone-success-surface);
|
|
@@ -553,7 +547,15 @@
|
|
|
553
547
|
--_soft-ink: var(--slotted-tone-success-text);
|
|
554
548
|
}
|
|
555
549
|
|
|
556
|
-
[data-ui
|
|
550
|
+
[data-ui-message][data-part-bubble][data-tone='info'] {
|
|
551
|
+
--_solid: var(--slotted-tone-info-solid);
|
|
552
|
+
--_on-solid: var(--slotted-tone-info-on-solid);
|
|
553
|
+
--_surface: var(--slotted-tone-info-surface);
|
|
554
|
+
--_border: var(--slotted-tone-info-border);
|
|
555
|
+
--_soft-ink: var(--slotted-tone-info-text);
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
[data-ui-message][data-part-bubble][data-tone='warning'] {
|
|
557
559
|
--_solid: var(--slotted-tone-warning-solid);
|
|
558
560
|
--_on-solid: var(--slotted-tone-warning-on-solid);
|
|
559
561
|
--_surface: var(--slotted-tone-warning-surface);
|
|
@@ -561,7 +563,7 @@
|
|
|
561
563
|
--_soft-ink: var(--slotted-tone-warning-text);
|
|
562
564
|
}
|
|
563
565
|
|
|
564
|
-
[data-ui
|
|
566
|
+
[data-ui-message][data-part-bubble][data-tone='danger'] {
|
|
565
567
|
--_solid: var(--slotted-tone-danger-solid);
|
|
566
568
|
--_on-solid: var(--slotted-tone-danger-on-solid);
|
|
567
569
|
--_surface: var(--slotted-tone-danger-surface);
|
|
@@ -580,7 +582,7 @@
|
|
|
580
582
|
* page's ground, `plain` no box at all — the unframed assistant answer that
|
|
581
583
|
* takes the whole row.
|
|
582
584
|
*/
|
|
583
|
-
[data-ui
|
|
585
|
+
[data-ui-message][data-part-bubble] > [data-part-content] {
|
|
584
586
|
--_ground: var(--_surface);
|
|
585
587
|
--_ink: var(--_soft-ink);
|
|
586
588
|
--_edge: color-mix(in oklab, var(--_surface), var(--slotted-border-subtle));
|
|
@@ -615,25 +617,35 @@
|
|
|
615
617
|
unicode-bidi: plaintext;
|
|
616
618
|
}
|
|
617
619
|
|
|
618
|
-
|
|
620
|
+
/**
|
|
621
|
+
* A bubble is as wide as its words. Prose — markdown's typography — is a size
|
|
622
|
+
* container for its narrow-column rules, and a size container contributes no
|
|
623
|
+
* width, so the bubble shrank to its padding. Inside a bubble prose sizes to
|
|
624
|
+
* its text and its narrow-column rules do not apply.
|
|
625
|
+
*/
|
|
626
|
+
[data-ui-message][data-part-bubble] > [data-part-content] [data-ui-prose] {
|
|
627
|
+
container-type: normal;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
[data-ui-message][data-part-bubble][data-variant='solid'] > [data-part-content] {
|
|
619
631
|
--_ground: var(--_solid);
|
|
620
632
|
--_ink: var(--_on-solid);
|
|
621
633
|
--_edge: var(--_solid);
|
|
622
634
|
}
|
|
623
635
|
|
|
624
|
-
[data-ui
|
|
636
|
+
[data-ui-message][data-part-bubble][data-variant='outline'] > [data-part-content] {
|
|
625
637
|
--_ground: var(--slotted-surface);
|
|
626
638
|
--_ink: var(--slotted-text);
|
|
627
639
|
--_edge: var(--_border);
|
|
628
640
|
}
|
|
629
641
|
|
|
630
|
-
[data-ui
|
|
642
|
+
[data-ui-message][data-part-bubble][data-variant='plain'] {
|
|
631
643
|
--_pad-inline: 0px;
|
|
632
644
|
|
|
633
645
|
max-inline-size: 100%;
|
|
634
646
|
}
|
|
635
647
|
|
|
636
|
-
[data-ui
|
|
648
|
+
[data-ui-message][data-part-bubble][data-variant='plain'] > [data-part-content] {
|
|
637
649
|
--_ground: transparent;
|
|
638
650
|
--_ink: var(--slotted-text);
|
|
639
651
|
--_edge: transparent;
|
|
@@ -647,13 +659,11 @@
|
|
|
647
659
|
* The bubble sits on the sender's side, and so does everything it carries:
|
|
648
660
|
* the corners that join a run are the ones that face the avatar.
|
|
649
661
|
*/
|
|
650
|
-
[data-ui
|
|
662
|
+
[data-ui-message][data-part-root][data-align='end'] [data-part-bubble] {
|
|
651
663
|
align-items: flex-end;
|
|
652
664
|
}
|
|
653
665
|
|
|
654
|
-
[data-ui
|
|
655
|
-
[data-part='bubble']
|
|
656
|
-
> [data-part='content'] {
|
|
666
|
+
[data-ui-message][data-part-root][data-align='end'] [data-part-bubble] > [data-part-content] {
|
|
657
667
|
border-start-start-radius: var(--_radius);
|
|
658
668
|
border-start-end-radius: var(--_top-side);
|
|
659
669
|
border-end-start-radius: var(--_radius);
|
|
@@ -668,19 +678,19 @@
|
|
|
668
678
|
* of a group. A run reads as one speaker by its shape, with no position
|
|
669
679
|
* prop on each message (Chatscope asks for `first`, `normal`, `last`).
|
|
670
680
|
*/
|
|
671
|
-
[data-ui
|
|
672
|
-
[data-ui
|
|
673
|
-
> [data-ui
|
|
674
|
-
> [data-part
|
|
675
|
-
> [data-part
|
|
681
|
+
[data-ui-message][data-part-bubble]:has(~ [data-part-bubble]),
|
|
682
|
+
[data-ui-message][data-part-group]
|
|
683
|
+
> [data-ui-message][data-part-root]:not(:last-child)
|
|
684
|
+
> [data-part-body]
|
|
685
|
+
> [data-part-bubble]:not(:has(~ [data-part-bubble])) {
|
|
676
686
|
--_bottom-side: var(--_radius-joined);
|
|
677
687
|
}
|
|
678
688
|
|
|
679
|
-
[data-ui
|
|
680
|
-
[data-ui
|
|
681
|
-
> [data-ui
|
|
682
|
-
> [data-part
|
|
683
|
-
> [data-part
|
|
689
|
+
[data-ui-message][data-part-bubble] ~ [data-part-bubble],
|
|
690
|
+
[data-ui-message][data-part-group]
|
|
691
|
+
> [data-ui-message][data-part-root]:not(:first-child)
|
|
692
|
+
> [data-part-body]
|
|
693
|
+
> [data-part-bubble]:not([data-part-bubble] ~ [data-part-bubble]) {
|
|
684
694
|
--_top-side: var(--_radius-joined);
|
|
685
695
|
}
|
|
686
696
|
|
|
@@ -694,7 +704,7 @@
|
|
|
694
704
|
* `light`, 0.044 under the secondary ground, over the 0.02 step
|
|
695
705
|
* `theme-conformance` asks of a hover, and the press twice that.
|
|
696
706
|
*/
|
|
697
|
-
[data-ui
|
|
707
|
+
[data-ui-message][data-part-bubble] > [data-part-content]:is(button, a) {
|
|
698
708
|
--_ground-hover: color-mix(
|
|
699
709
|
in oklab,
|
|
700
710
|
var(--_ink) var(--slotted-message-state-layer-hover, 6%),
|
|
@@ -713,25 +723,24 @@
|
|
|
713
723
|
border-color var(--slotted-duration-short) var(--slotted-easing-standard, ease);
|
|
714
724
|
}
|
|
715
725
|
|
|
716
|
-
[data-ui
|
|
717
|
-
> [data-part='content']:is(button, a) {
|
|
726
|
+
[data-ui-message][data-part-bubble][data-variant='plain'] > [data-part-content]:is(button, a) {
|
|
718
727
|
padding-block: var(--slotted-space-1, 0.125rem);
|
|
719
728
|
padding-inline: var(--slotted-space-2, 0.25rem);
|
|
720
729
|
margin-inline: calc(var(--slotted-space-2, 0.25rem) * -1);
|
|
721
730
|
border-radius: var(--slotted-radius-sm, 4px);
|
|
722
731
|
}
|
|
723
732
|
|
|
724
|
-
[data-ui
|
|
725
|
-
> [data-part
|
|
733
|
+
[data-ui-message][data-part-bubble]
|
|
734
|
+
> [data-part-content]:is(button, a):hover:not(:disabled):not([data-disabled]) {
|
|
726
735
|
background-color: var(--_ground-hover);
|
|
727
736
|
}
|
|
728
737
|
|
|
729
|
-
[data-ui
|
|
730
|
-
> [data-part
|
|
738
|
+
[data-ui-message][data-part-bubble]
|
|
739
|
+
> [data-part-content]:is(button, a):active:not(:disabled):not([data-disabled]) {
|
|
731
740
|
background-color: var(--_ground-active);
|
|
732
741
|
}
|
|
733
742
|
|
|
734
|
-
[data-ui
|
|
743
|
+
[data-ui-message][data-part-bubble] > [data-part-content]:is(button, a):focus-visible {
|
|
735
744
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color);
|
|
736
745
|
outline-offset: var(--slotted-focus-ring-offset, 2px);
|
|
737
746
|
}
|
|
@@ -752,7 +761,7 @@
|
|
|
752
761
|
* beside a line of text, the hanging meta read as misaligned. Read is the one state that changes the ink: full strength on a
|
|
753
762
|
* solid fill, the accent on a tinted one; the other marks differ by shape.
|
|
754
763
|
*/
|
|
755
|
-
[data-ui
|
|
764
|
+
[data-ui-message][data-part-bubble] [data-part-meta] {
|
|
756
765
|
/*
|
|
757
766
|
* Ninety per cent of the bubble's ink: the lowest share at which the hour
|
|
758
767
|
* keeps 4.5:1 on every fill — 4.50 on the accent in `dark`, 5.74 in
|
|
@@ -778,11 +787,11 @@
|
|
|
778
787
|
translate: 0 1px;
|
|
779
788
|
}
|
|
780
789
|
|
|
781
|
-
[data-ui
|
|
790
|
+
[data-ui-message][data-part-bubble][data-variant='solid'] [data-part-meta] {
|
|
782
791
|
--_read-ink: var(--_on-solid);
|
|
783
792
|
}
|
|
784
793
|
|
|
785
|
-
[data-ui
|
|
794
|
+
[data-ui-message][data-part-bubble] [data-part-meta] [data-part-receipt] {
|
|
786
795
|
display: inline-grid;
|
|
787
796
|
place-items: center;
|
|
788
797
|
}
|
|
@@ -792,17 +801,11 @@
|
|
|
792
801
|
* the two share one box and one centre; two ticks at twelve pixels were two
|
|
793
802
|
* scratches.
|
|
794
803
|
*/
|
|
795
|
-
[data-ui
|
|
796
|
-
[data-part='meta']
|
|
797
|
-
[data-part='receipt']
|
|
798
|
-
> [data-ui='icon'] {
|
|
804
|
+
[data-ui-message][data-part-bubble] [data-part-meta] [data-part-receipt] > [data-ui-icon] {
|
|
799
805
|
--slotted-icon-size: var(--slotted-control-icon-size-sm, 14px);
|
|
800
806
|
}
|
|
801
807
|
|
|
802
|
-
[data-ui
|
|
803
|
-
[data-part='meta']
|
|
804
|
-
[data-part='receipt']
|
|
805
|
-
> span:not([data-ui]) {
|
|
808
|
+
[data-ui-message][data-part-bubble] [data-part-meta] [data-part-receipt] > span:not([data-ui]) {
|
|
806
809
|
position: absolute;
|
|
807
810
|
inline-size: 1px;
|
|
808
811
|
block-size: 1px;
|
|
@@ -811,17 +814,15 @@
|
|
|
811
814
|
white-space: nowrap;
|
|
812
815
|
}
|
|
813
816
|
|
|
814
|
-
[data-ui
|
|
815
|
-
[data-part='meta']
|
|
816
|
-
[data-part='receipt'][data-status='read'] {
|
|
817
|
+
[data-ui-message][data-part-bubble] [data-part-meta] [data-part-receipt][data-status='read'] {
|
|
817
818
|
color: var(--_read-ink);
|
|
818
819
|
}
|
|
819
820
|
|
|
820
821
|
/** A clock that breathes while the message is on its way. */
|
|
821
|
-
[data-ui
|
|
822
|
-
[data-part
|
|
823
|
-
[data-part
|
|
824
|
-
> [data-ui
|
|
822
|
+
[data-ui-message][data-part-bubble]
|
|
823
|
+
[data-part-meta]
|
|
824
|
+
[data-part-receipt][data-status='sending']
|
|
825
|
+
> [data-ui-icon] {
|
|
825
826
|
animation: slotted-message-pending var(--slotted-duration-loop-slow)
|
|
826
827
|
var(--slotted-easing-standard, ease) infinite alternate;
|
|
827
828
|
}
|
|
@@ -837,7 +838,7 @@
|
|
|
837
838
|
}
|
|
838
839
|
|
|
839
840
|
/** The meta of an unframed reply has no surface to ride in; it is the footer's. */
|
|
840
|
-
[data-ui
|
|
841
|
+
[data-ui-message][data-part-bubble][data-variant='plain'] [data-part-meta] {
|
|
841
842
|
display: none;
|
|
842
843
|
}
|
|
843
844
|
|
|
@@ -853,8 +854,7 @@
|
|
|
853
854
|
* text jump twice when a reply streaming above it reflows the column. The
|
|
854
855
|
* chevron turning is the motion that answers the press.
|
|
855
856
|
*/
|
|
856
|
-
[data-ui
|
|
857
|
-
> [data-part='content'] {
|
|
857
|
+
[data-ui-message][data-part-bubble][data-clamped]:not([data-revealed]) > [data-part-content] {
|
|
858
858
|
display: -webkit-box;
|
|
859
859
|
-webkit-box-orient: vertical;
|
|
860
860
|
-webkit-line-clamp: var(--slotted-message-max-lines, 6);
|
|
@@ -868,7 +868,7 @@
|
|
|
868
868
|
overflow-clip-margin: content-box;
|
|
869
869
|
}
|
|
870
870
|
|
|
871
|
-
[data-ui
|
|
871
|
+
[data-ui-message][data-part-bubble] > [data-part-more] {
|
|
872
872
|
display: inline-flex;
|
|
873
873
|
align-items: center;
|
|
874
874
|
gap: var(--slotted-space-1, 0.125rem);
|
|
@@ -886,25 +886,25 @@
|
|
|
886
886
|
transition: color var(--slotted-duration-short) var(--slotted-easing-standard, ease);
|
|
887
887
|
}
|
|
888
888
|
|
|
889
|
-
[data-ui
|
|
889
|
+
[data-ui-message][data-part-bubble] > [data-part-more] > [data-ui-icon] {
|
|
890
890
|
--slotted-icon-size: var(--slotted-control-icon-size-sm, 14px);
|
|
891
891
|
|
|
892
892
|
transition: rotate var(--slotted-duration-medium) var(--slotted-easing-standard, ease);
|
|
893
893
|
}
|
|
894
894
|
|
|
895
|
-
[data-ui
|
|
895
|
+
[data-ui-message][data-part-bubble][data-revealed] > [data-part-more] > [data-ui-icon] {
|
|
896
896
|
rotate: 180deg;
|
|
897
897
|
}
|
|
898
898
|
|
|
899
|
-
[data-ui
|
|
899
|
+
[data-ui-message][data-part-bubble] > [data-part-more]:hover:not(:disabled) {
|
|
900
900
|
color: var(--slotted-text);
|
|
901
901
|
}
|
|
902
902
|
|
|
903
|
-
[data-ui
|
|
903
|
+
[data-ui-message][data-part-bubble] > [data-part-more]:active:not(:disabled) {
|
|
904
904
|
color: var(--slotted-tone-accent-text);
|
|
905
905
|
}
|
|
906
906
|
|
|
907
|
-
[data-ui
|
|
907
|
+
[data-ui-message][data-part-bubble] > [data-part-more]:focus-visible {
|
|
908
908
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color);
|
|
909
909
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
910
910
|
}
|
|
@@ -917,7 +917,7 @@
|
|
|
917
917
|
* the accent fill included, where a rail in the ink would be the only
|
|
918
918
|
* saturated stroke in the thread.
|
|
919
919
|
*/
|
|
920
|
-
[data-ui
|
|
920
|
+
[data-ui-message][data-part-bubble] [data-part-quote] {
|
|
921
921
|
display: block;
|
|
922
922
|
box-sizing: border-box;
|
|
923
923
|
inline-size: 100%;
|
|
@@ -940,25 +940,25 @@
|
|
|
940
940
|
-webkit-line-clamp: 3;
|
|
941
941
|
}
|
|
942
942
|
|
|
943
|
-
[data-ui
|
|
943
|
+
[data-ui-message][data-part-bubble] [data-part-quote-author] {
|
|
944
944
|
display: block;
|
|
945
945
|
font-weight: var(--slotted-font-weight-semibold, 600);
|
|
946
946
|
}
|
|
947
947
|
|
|
948
|
-
[data-ui
|
|
948
|
+
[data-ui-message][data-part-bubble] button[data-part-quote] {
|
|
949
949
|
cursor: pointer;
|
|
950
950
|
transition: background-color var(--slotted-duration-short) var(--slotted-easing-standard, ease);
|
|
951
951
|
}
|
|
952
952
|
|
|
953
|
-
[data-ui
|
|
953
|
+
[data-ui-message][data-part-bubble] button[data-part-quote]:hover:not(:disabled) {
|
|
954
954
|
background-color: color-mix(in oklab, currentColor 13%, transparent);
|
|
955
955
|
}
|
|
956
956
|
|
|
957
|
-
[data-ui
|
|
957
|
+
[data-ui-message][data-part-bubble] button[data-part-quote]:active:not(:disabled) {
|
|
958
958
|
background-color: color-mix(in oklab, currentColor 18%, transparent);
|
|
959
959
|
}
|
|
960
960
|
|
|
961
|
-
[data-ui
|
|
961
|
+
[data-ui-message][data-part-bubble] button[data-part-quote]:focus-visible {
|
|
962
962
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color);
|
|
963
963
|
outline-offset: var(--slotted-focus-ring-offset, 2px);
|
|
964
964
|
}
|
|
@@ -986,11 +986,11 @@
|
|
|
986
986
|
* stands lit and the typing dots stand at three strengths, so the state is
|
|
987
987
|
* still drawn.
|
|
988
988
|
*/
|
|
989
|
-
[data-ui
|
|
989
|
+
[data-ui-message][data-part-bubble] [data-part-stream] {
|
|
990
990
|
white-space: pre-wrap;
|
|
991
991
|
}
|
|
992
992
|
|
|
993
|
-
[data-ui
|
|
993
|
+
[data-ui-message][data-part-bubble] [data-part-stream-chunk] {
|
|
994
994
|
animation: slotted-message-word var(--slotted-duration-long) var(--slotted-easing-standard) both;
|
|
995
995
|
}
|
|
996
996
|
|
|
@@ -1006,7 +1006,7 @@
|
|
|
1006
1006
|
}
|
|
1007
1007
|
}
|
|
1008
1008
|
|
|
1009
|
-
[data-ui
|
|
1009
|
+
[data-ui-message][data-part-bubble] [data-part-caret] {
|
|
1010
1010
|
--_dot: round(nearest, 0.6em, 2px);
|
|
1011
1011
|
|
|
1012
1012
|
display: inline-block;
|
|
@@ -1026,9 +1026,9 @@
|
|
|
1026
1026
|
}
|
|
1027
1027
|
|
|
1028
1028
|
/* `filter`, not `opacity`: the breath animates opacity, and an animation outranks the rule. */
|
|
1029
|
-
[data-ui
|
|
1030
|
-
[data-part
|
|
1031
|
-
+ [data-part
|
|
1029
|
+
[data-ui-message][data-part-bubble]
|
|
1030
|
+
[data-part-stream]:has(> [data-part-stream-chunk])
|
|
1031
|
+
+ [data-part-caret] {
|
|
1032
1032
|
filter: opacity(0);
|
|
1033
1033
|
transition: filter var(--slotted-duration-short) var(--slotted-easing-exit);
|
|
1034
1034
|
}
|
|
@@ -1059,7 +1059,7 @@
|
|
|
1059
1059
|
* before, in the bubble of the person writing. The wave travels half a dot:
|
|
1060
1060
|
* enough to read as a voice, not so much that the bubble seems to bounce.
|
|
1061
1061
|
*/
|
|
1062
|
-
[data-ui
|
|
1062
|
+
[data-ui-message][data-part-bubble] [data-part-typing] {
|
|
1063
1063
|
--_dot: round(calc(var(--_leading) / 3), 1px);
|
|
1064
1064
|
|
|
1065
1065
|
display: inline-flex;
|
|
@@ -1077,7 +1077,7 @@
|
|
|
1077
1077
|
* behind. The circles are the surface's own fill and edge, so they answer
|
|
1078
1078
|
* every painting and every scheme with the bubble.
|
|
1079
1079
|
*/
|
|
1080
|
-
[data-ui
|
|
1080
|
+
[data-ui-message][data-part-bubble] > [data-part-content]:has(> [data-part-typing]) {
|
|
1081
1081
|
position: relative;
|
|
1082
1082
|
padding-inline: calc(var(--_pad-inline) + var(--slotted-space-1, 0.125rem));
|
|
1083
1083
|
transition:
|
|
@@ -1090,10 +1090,8 @@
|
|
|
1090
1090
|
}
|
|
1091
1091
|
}
|
|
1092
1092
|
|
|
1093
|
-
[data-ui
|
|
1094
|
-
|
|
1095
|
-
[data-ui='message'][data-part='bubble']
|
|
1096
|
-
> [data-part='content']:has(> [data-part='typing'])::after {
|
|
1093
|
+
[data-ui-message][data-part-bubble] > [data-part-content]:has(> [data-part-typing])::before,
|
|
1094
|
+
[data-ui-message][data-part-bubble] > [data-part-content]:has(> [data-part-typing])::after {
|
|
1097
1095
|
content: '';
|
|
1098
1096
|
position: absolute;
|
|
1099
1097
|
box-sizing: border-box;
|
|
@@ -1104,16 +1102,14 @@
|
|
|
1104
1102
|
var(--slotted-easing-standard, ease) infinite alternate;
|
|
1105
1103
|
}
|
|
1106
1104
|
|
|
1107
|
-
[data-ui
|
|
1108
|
-
> [data-part='content']:has(> [data-part='typing'])::before {
|
|
1105
|
+
[data-ui-message][data-part-bubble] > [data-part-content]:has(> [data-part-typing])::before {
|
|
1109
1106
|
inset-block-end: calc(var(--slotted-space-1, 0.125rem) * -1);
|
|
1110
1107
|
inset-inline-start: calc(var(--slotted-space-1, 0.125rem) * -1);
|
|
1111
1108
|
inline-size: var(--slotted-space-4, 0.5rem);
|
|
1112
1109
|
block-size: var(--slotted-space-4, 0.5rem);
|
|
1113
1110
|
}
|
|
1114
1111
|
|
|
1115
|
-
[data-ui
|
|
1116
|
-
> [data-part='content']:has(> [data-part='typing'])::after {
|
|
1112
|
+
[data-ui-message][data-part-bubble] > [data-part-content]:has(> [data-part-typing])::after {
|
|
1117
1113
|
inset-block-end: calc(var(--slotted-space-3, 0.375rem) * -1);
|
|
1118
1114
|
inset-inline-start: calc(var(--slotted-space-3, 0.375rem) * -1);
|
|
1119
1115
|
inline-size: var(--slotted-space-2, 0.25rem);
|
|
@@ -1122,9 +1118,9 @@
|
|
|
1122
1118
|
}
|
|
1123
1119
|
|
|
1124
1120
|
/** The line under a writing bubble clears the trail. */
|
|
1125
|
-
[data-ui
|
|
1126
|
-
> [data-part
|
|
1127
|
-
> [data-part
|
|
1121
|
+
[data-ui-message][data-part-root]
|
|
1122
|
+
> [data-part-body]:has(> [data-part-bubble] [data-part-typing])
|
|
1123
|
+
> [data-part-footer] {
|
|
1128
1124
|
margin-block-start: var(--slotted-space-2, 0.25rem);
|
|
1129
1125
|
}
|
|
1130
1126
|
|
|
@@ -1138,7 +1134,7 @@
|
|
|
1138
1134
|
}
|
|
1139
1135
|
}
|
|
1140
1136
|
|
|
1141
|
-
[data-ui
|
|
1137
|
+
[data-ui-message][data-part-bubble] [data-part-typing] > span {
|
|
1142
1138
|
inline-size: var(--_dot);
|
|
1143
1139
|
block-size: var(--_dot);
|
|
1144
1140
|
border-radius: var(--slotted-radius-full, 9999px);
|
|
@@ -1148,11 +1144,11 @@
|
|
|
1148
1144
|
var(--slotted-easing-standard, ease) infinite;
|
|
1149
1145
|
}
|
|
1150
1146
|
|
|
1151
|
-
[data-ui
|
|
1147
|
+
[data-ui-message][data-part-bubble] [data-part-typing] > span:nth-child(2) {
|
|
1152
1148
|
animation-delay: calc(var(--slotted-duration-loop) / 6);
|
|
1153
1149
|
}
|
|
1154
1150
|
|
|
1155
|
-
[data-ui
|
|
1151
|
+
[data-ui-message][data-part-bubble] [data-part-typing] > span:nth-child(3) {
|
|
1156
1152
|
animation-delay: calc(var(--slotted-duration-loop) / 3);
|
|
1157
1153
|
}
|
|
1158
1154
|
|
|
@@ -1178,7 +1174,7 @@
|
|
|
1178
1174
|
* line. It is the way to send it again, and its arrow turns a little under
|
|
1179
1175
|
* the pointer toward the way it will go.
|
|
1180
1176
|
*/
|
|
1181
|
-
[data-ui
|
|
1177
|
+
[data-ui-message][data-part-bubble] > [data-part-retry] {
|
|
1182
1178
|
--_size: max(var(--slotted-target-min, 24px), var(--slotted-control-inner-size-md, 24px));
|
|
1183
1179
|
--_ground: var(--slotted-tone-danger-solid);
|
|
1184
1180
|
|
|
@@ -1206,13 +1202,11 @@
|
|
|
1206
1202
|
transition: background-color var(--slotted-duration-short) var(--slotted-easing-standard, ease);
|
|
1207
1203
|
}
|
|
1208
1204
|
|
|
1209
|
-
[data-ui
|
|
1210
|
-
[data-part='bubble']
|
|
1211
|
-
> [data-part='retry'] {
|
|
1205
|
+
[data-ui-message][data-part-root][data-align='end'] [data-part-bubble] > [data-part-retry] {
|
|
1212
1206
|
inset-inline: auto calc(100% + var(--slotted-space-4, 0.5rem));
|
|
1213
1207
|
}
|
|
1214
1208
|
|
|
1215
|
-
[data-ui
|
|
1209
|
+
[data-ui-message][data-part-bubble] > [data-part-retry] > [data-ui-icon] {
|
|
1216
1210
|
--slotted-icon-size: var(--slotted-control-icon-size-sm, 14px);
|
|
1217
1211
|
|
|
1218
1212
|
transition: rotate var(--slotted-duration-medium) var(--slotted-easing-emphasized, ease);
|
|
@@ -1223,8 +1217,8 @@
|
|
|
1223
1217
|
* the 0.02 `theme-conformance` asks; the control's ink laid over the fill at
|
|
1224
1218
|
* fourteen per cent answers visibly in every scheme.
|
|
1225
1219
|
*/
|
|
1226
|
-
[data-ui
|
|
1227
|
-
> [data-part
|
|
1220
|
+
[data-ui-message][data-part-bubble]
|
|
1221
|
+
> [data-part-retry]:hover:not(:disabled):not([data-disabled]) {
|
|
1228
1222
|
background-color: color-mix(
|
|
1229
1223
|
in oklab,
|
|
1230
1224
|
var(--slotted-tone-danger-on-solid) var(--slotted-message-retry-state-layer, 14%),
|
|
@@ -1232,48 +1226,46 @@
|
|
|
1232
1226
|
);
|
|
1233
1227
|
}
|
|
1234
1228
|
|
|
1235
|
-
[data-ui
|
|
1236
|
-
> [data-part
|
|
1237
|
-
> [data-ui
|
|
1229
|
+
[data-ui-message][data-part-bubble]
|
|
1230
|
+
> [data-part-retry]:hover:not(:disabled):not([data-disabled])
|
|
1231
|
+
> [data-ui-icon] {
|
|
1238
1232
|
rotate: -45deg;
|
|
1239
1233
|
}
|
|
1240
1234
|
|
|
1241
|
-
[data-ui
|
|
1242
|
-
> [data-part
|
|
1235
|
+
[data-ui-message][data-part-bubble]
|
|
1236
|
+
> [data-part-retry]:active:not(:disabled):not([data-disabled]) {
|
|
1243
1237
|
background-color: var(--slotted-tone-danger-solid-active);
|
|
1244
1238
|
}
|
|
1245
1239
|
|
|
1246
|
-
[data-ui
|
|
1240
|
+
[data-ui-message][data-part-bubble] > [data-part-retry]:focus-visible {
|
|
1247
1241
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color);
|
|
1248
1242
|
outline-offset: var(--slotted-focus-ring-offset, 2px);
|
|
1249
1243
|
}
|
|
1250
1244
|
|
|
1251
1245
|
@media (prefers-reduced-motion: reduce) {
|
|
1252
|
-
[data-ui
|
|
1253
|
-
[data-ui
|
|
1254
|
-
[data-ui
|
|
1255
|
-
[data-ui
|
|
1256
|
-
|
|
1257
|
-
[data-ui
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
[data-
|
|
1261
|
-
[data-part='receipt'][data-status='sending']
|
|
1262
|
-
> [data-ui='icon'] {
|
|
1246
|
+
[data-ui-message][data-part-bubble] [data-part-caret],
|
|
1247
|
+
[data-ui-message][data-part-bubble] [data-part-stream-chunk],
|
|
1248
|
+
[data-ui-message][data-part-bubble] [data-part-typing] > span,
|
|
1249
|
+
[data-ui-message][data-part-bubble] > [data-part-content]:has(> [data-part-typing])::before,
|
|
1250
|
+
[data-ui-message][data-part-bubble] > [data-part-content]:has(> [data-part-typing])::after,
|
|
1251
|
+
[data-ui-message][data-part-bubble]
|
|
1252
|
+
[data-part-meta]
|
|
1253
|
+
[data-part-receipt][data-status='sending']
|
|
1254
|
+
> [data-ui-icon] {
|
|
1263
1255
|
animation: none;
|
|
1264
1256
|
}
|
|
1265
1257
|
|
|
1266
|
-
[data-ui
|
|
1258
|
+
[data-ui-message][data-part-root] [data-part-activity-step][data-current] > :last-child {
|
|
1267
1259
|
animation: none;
|
|
1268
1260
|
background-image: none;
|
|
1269
1261
|
color: inherit;
|
|
1270
1262
|
}
|
|
1271
1263
|
|
|
1272
|
-
[data-ui
|
|
1264
|
+
[data-ui-message][data-part-bubble] [data-part-typing] > span:nth-child(2) {
|
|
1273
1265
|
opacity: 0.55;
|
|
1274
1266
|
}
|
|
1275
1267
|
|
|
1276
|
-
[data-ui
|
|
1268
|
+
[data-ui-message][data-part-bubble] [data-part-typing] > span:nth-child(3) {
|
|
1277
1269
|
opacity: 0.8;
|
|
1278
1270
|
}
|
|
1279
1271
|
}
|
|
@@ -1288,11 +1280,11 @@
|
|
|
1288
1280
|
* it (`c-bubble-4`). The pill draws its own edge and lift rather than a
|
|
1289
1281
|
* ring in the colour of a card it assumes it is on.
|
|
1290
1282
|
*/
|
|
1291
|
-
[data-ui
|
|
1283
|
+
[data-ui-message][data-part-bubble]:has(> [data-part-reactions]) {
|
|
1292
1284
|
padding-block-end: calc(var(--_reactions-size) - var(--_pad-block, 8px) / 2);
|
|
1293
1285
|
}
|
|
1294
1286
|
|
|
1295
|
-
[data-ui
|
|
1287
|
+
[data-ui-message][data-part-bubble] > [data-part-reactions] {
|
|
1296
1288
|
display: inline-flex;
|
|
1297
1289
|
align-items: center;
|
|
1298
1290
|
gap: var(--slotted-space-1, 0.125rem);
|
|
@@ -1306,9 +1298,7 @@
|
|
|
1306
1298
|
box-shadow: var(--slotted-shadow-xs);
|
|
1307
1299
|
}
|
|
1308
1300
|
|
|
1309
|
-
[data-ui
|
|
1310
|
-
[data-part='bubble']
|
|
1311
|
-
> [data-part='reactions'] {
|
|
1301
|
+
[data-ui-message][data-part-root][data-align='end'] [data-part-bubble] > [data-part-reactions] {
|
|
1312
1302
|
inset-inline: var(--_pad-inline, 12px) auto;
|
|
1313
1303
|
}
|
|
1314
1304
|
|
|
@@ -1316,11 +1306,11 @@
|
|
|
1316
1306
|
* In a thread there is no surface to straddle: the reactions are a row in
|
|
1317
1307
|
* the flow under the words, the way Slack and GitHub set them.
|
|
1318
1308
|
*/
|
|
1319
|
-
[data-ui
|
|
1309
|
+
[data-ui-message][data-part-bubble][data-variant='plain']:has(> [data-part-reactions]) {
|
|
1320
1310
|
padding-block-end: 0;
|
|
1321
1311
|
}
|
|
1322
1312
|
|
|
1323
|
-
[data-ui
|
|
1313
|
+
[data-ui-message][data-part-bubble][data-variant='plain'] > [data-part-reactions] {
|
|
1324
1314
|
position: static;
|
|
1325
1315
|
padding: 0;
|
|
1326
1316
|
border: 0;
|
|
@@ -1329,7 +1319,7 @@
|
|
|
1329
1319
|
translate: none;
|
|
1330
1320
|
}
|
|
1331
1321
|
|
|
1332
|
-
[data-ui
|
|
1322
|
+
[data-ui-message][data-part-bubble] [data-part-reaction] {
|
|
1333
1323
|
display: inline-flex;
|
|
1334
1324
|
align-items: center;
|
|
1335
1325
|
gap: var(--slotted-space-1, 0.125rem);
|
|
@@ -1354,13 +1344,13 @@
|
|
|
1354
1344
|
color var(--slotted-duration-short) var(--slotted-easing-standard, ease);
|
|
1355
1345
|
}
|
|
1356
1346
|
|
|
1357
|
-
[data-ui
|
|
1347
|
+
[data-ui-message][data-part-bubble][data-variant='plain'] [data-part-reaction] {
|
|
1358
1348
|
--_reaction-ground: var(--slotted-surface);
|
|
1359
1349
|
|
|
1360
1350
|
border-color: var(--slotted-border-subtle);
|
|
1361
1351
|
}
|
|
1362
1352
|
|
|
1363
|
-
[data-ui
|
|
1353
|
+
[data-ui-message][data-part-bubble] [data-part-reaction-count] {
|
|
1364
1354
|
color: var(--slotted-text-muted);
|
|
1365
1355
|
font-weight: var(--slotted-font-weight-medium, 500);
|
|
1366
1356
|
font-variant-numeric: tabular-nums;
|
|
@@ -1372,8 +1362,8 @@
|
|
|
1372
1362
|
* ink laid over it at six and twelve per cent, so a pressed reaction answers
|
|
1373
1363
|
* a hover and a press as clearly as a bare one and the two never match.
|
|
1374
1364
|
*/
|
|
1375
|
-
[data-ui
|
|
1376
|
-
[data-part
|
|
1365
|
+
[data-ui-message][data-part-bubble]
|
|
1366
|
+
[data-part-reaction]:hover:not(:disabled):not([data-disabled]) {
|
|
1377
1367
|
background-color: color-mix(
|
|
1378
1368
|
in oklab,
|
|
1379
1369
|
var(--slotted-text) var(--slotted-message-state-layer-hover, 6%),
|
|
@@ -1381,8 +1371,8 @@
|
|
|
1381
1371
|
);
|
|
1382
1372
|
}
|
|
1383
1373
|
|
|
1384
|
-
[data-ui
|
|
1385
|
-
[data-part
|
|
1374
|
+
[data-ui-message][data-part-bubble]
|
|
1375
|
+
[data-part-reaction]:active:not(:disabled):not([data-disabled]) {
|
|
1386
1376
|
background-color: color-mix(
|
|
1387
1377
|
in oklab,
|
|
1388
1378
|
var(--slotted-text) var(--slotted-message-state-layer-active, 12%),
|
|
@@ -1395,24 +1385,24 @@
|
|
|
1395
1385
|
* edge, and the count in the accent's ink. The pair carries the ratio the
|
|
1396
1386
|
* ground alone cannot (`docs/token-foundation.md` › Semantic colour).
|
|
1397
1387
|
*/
|
|
1398
|
-
[data-ui
|
|
1388
|
+
[data-ui-message][data-part-bubble] [data-part-reaction][data-pressed] {
|
|
1399
1389
|
--_reaction-ground: var(--slotted-tone-accent-surface);
|
|
1400
1390
|
|
|
1401
1391
|
border-color: var(--slotted-tone-accent-border);
|
|
1402
1392
|
}
|
|
1403
1393
|
|
|
1404
|
-
[data-ui
|
|
1405
|
-
[data-part
|
|
1406
|
-
> [data-part
|
|
1394
|
+
[data-ui-message][data-part-bubble]
|
|
1395
|
+
[data-part-reaction][data-pressed]
|
|
1396
|
+
> [data-part-reaction-count] {
|
|
1407
1397
|
color: var(--slotted-tone-accent-text);
|
|
1408
1398
|
}
|
|
1409
1399
|
|
|
1410
|
-
[data-ui
|
|
1400
|
+
[data-ui-message][data-part-bubble] [data-part-reaction]:is(:disabled, [data-disabled]) {
|
|
1411
1401
|
color: var(--slotted-disabled-foreground);
|
|
1412
1402
|
cursor: default;
|
|
1413
1403
|
}
|
|
1414
1404
|
|
|
1415
|
-
[data-ui
|
|
1405
|
+
[data-ui-message][data-part-bubble] [data-part-reaction]:focus-visible {
|
|
1416
1406
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color);
|
|
1417
1407
|
outline-offset: var(--slotted-focus-ring-offset, 2px);
|
|
1418
1408
|
}
|
|
@@ -1425,28 +1415,28 @@
|
|
|
1425
1415
|
* reader chose.
|
|
1426
1416
|
*/
|
|
1427
1417
|
@media (forced-colors: active) {
|
|
1428
|
-
[data-ui
|
|
1418
|
+
[data-ui-message][data-part-bubble] > [data-part-content] {
|
|
1429
1419
|
border-color: CanvasText;
|
|
1430
1420
|
}
|
|
1431
1421
|
|
|
1432
1422
|
/* A background is the system's to repaint; the dot is ink, so it keeps the text's colour. */
|
|
1433
|
-
[data-ui
|
|
1423
|
+
[data-ui-message][data-part-bubble] [data-part-caret] {
|
|
1434
1424
|
forced-color-adjust: none;
|
|
1435
1425
|
background-color: CanvasText;
|
|
1436
1426
|
}
|
|
1437
1427
|
|
|
1438
|
-
[data-ui
|
|
1428
|
+
[data-ui-message][data-part-bubble][data-variant='plain'] > [data-part-content] {
|
|
1439
1429
|
border-color: transparent;
|
|
1440
1430
|
}
|
|
1441
1431
|
|
|
1442
|
-
[data-ui
|
|
1432
|
+
[data-ui-message][data-part-bubble] [data-part-reaction][data-pressed] {
|
|
1443
1433
|
border-color: Highlight;
|
|
1444
1434
|
forced-color-adjust: none;
|
|
1445
1435
|
background-color: Highlight;
|
|
1446
1436
|
color: HighlightText;
|
|
1447
1437
|
}
|
|
1448
1438
|
|
|
1449
|
-
[data-ui
|
|
1439
|
+
[data-ui-message][data-part-bubble] [data-part-quote] {
|
|
1450
1440
|
border: var(--slotted-border-width-thin, 1px) solid CanvasText;
|
|
1451
1441
|
}
|
|
1452
1442
|
}
|