@slotted/styles 0.1.0-beta.4 → 0.1.0-beta.40
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 +21 -1
- package/src/accordion/accordion.css +31 -13
- package/src/accordion/accordion.tokens.json +2 -0
- 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 +472 -342
- package/src/app-shell/app-shell.tokens.json +6 -3
- package/src/aspect-ratio/aspect-ratio.css +24 -23
- package/src/attachment/attachment.css +118 -114
- package/src/avatar/avatar.css +97 -67
- package/src/avatar/avatar.tokens.json +8 -0
- package/src/avatar-group/avatar-group.css +22 -23
- package/src/badge/badge.css +58 -47
- package/src/badge/badge.tokens.json +6 -0
- package/src/breadcrumb/breadcrumb.css +52 -52
- package/src/button/button.css +408 -93
- package/src/button/button.tokens.json +13 -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 +594 -267
- package/src/calendar/calendar.tokens.json +35 -3
- package/src/card/card.css +133 -70
- package/src/card/card.tokens.json +1 -0
- package/src/carousel/carousel.css +158 -169
- package/src/cascader/cascader.css +174 -159
- package/src/cascader/cascader.tokens.json +2 -0
- package/src/chart/chart.css +300 -271
- package/src/chart/chart.tokens.json +5 -0
- package/src/checkbox/checkbox.css +190 -148
- package/src/checkbox/checkbox.tokens.json +4 -0
- package/src/checkbox-group/checkbox-group.css +7 -7
- package/src/clock/clock.css +246 -0
- package/src/clock/clock.tokens.json +44 -0
- package/src/code-block/code-block.css +85 -89
- package/src/collapsible/collapsible.css +273 -85
- package/src/collapsible/collapsible.tokens.json +6 -0
- package/src/color-picker/color-picker.css +106 -114
- package/src/column-manager/column-manager.css +111 -119
- package/src/combobox/combobox.css +219 -132
- package/src/combobox/combobox.tokens.json +4 -0
- package/src/command-palette/command-palette.css +214 -102
- package/src/command-palette/command-palette.tokens.json +4 -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 +231 -115
- package/src/dashboard-grid/dashboard-grid.tokens.json +3 -1
- package/src/data-grid/data-grid.css +637 -496
- package/src/data-grid/data-grid.tokens.json +5 -1
- package/src/data-list/data-list.css +93 -76
- 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 +31 -269
- package/src/date-picker/date-picker.tokens.json +1 -21
- package/src/date-range-picker/date-range-picker.css +72 -528
- package/src/date-range-picker/date-range-picker.tokens.json +1 -37
- 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 +49 -711
- package/src/datetime-picker/datetime-picker.tokens.json +1 -50
- package/src/datetime-range-picker/datetime-range-picker.css +60 -985
- package/src/datetime-range-picker/datetime-range-picker.tokens.json +1 -67
- package/src/description-list/description-list.css +120 -76
- 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 +462 -199
- package/src/dialog/dialog.tokens.json +10 -0
- package/src/divider/divider.css +20 -20
- package/src/drawer/drawer.css +736 -237
- package/src/drawer/drawer.tokens.json +15 -0
- package/src/entity-picker/entity-picker.css +402 -272
- package/src/entity-picker/entity-picker.tokens.json +6 -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 +58 -38
- package/src/field-group/field-group.tokens.json +3 -0
- package/src/filter-bar/filter-bar.css +224 -216
- package/src/floating-panel/floating-panel.css +147 -0
- package/src/floating-panel/floating-panel.tokens.json +32 -0
- package/src/form/form.css +103 -26
- package/src/form/form.tokens.json +6 -1
- package/src/fullscreen/fullscreen.css +26 -27
- package/src/grid/grid.css +32 -31
- 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 +29 -29
- package/src/inline-message/inline-message.css +162 -86
- package/src/inline-message/inline-message.tokens.json +5 -0
- package/src/kbd/kbd.css +63 -51
- package/src/kbd/kbd.tokens.json +4 -0
- package/src/link/link.css +54 -33
- package/src/link/link.tokens.json +4 -0
- package/src/list/list.css +55 -24
- package/src/list/list.tokens.json +2 -0
- package/src/list-item/list-item.css +195 -80
- package/src/list-item/list-item.tokens.json +10 -0
- package/src/listbox/listbox.css +121 -72
- package/src/listbox/listbox.tokens.json +6 -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 +1296 -1243
- package/src/message/message.tokens.json +14 -0
- package/src/message-scroller/message-scroller.css +323 -320
- package/src/meter/meter.css +136 -0
- package/src/meter/meter.tokens.json +23 -0
- package/src/multi-select/multi-select.css +246 -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 +109 -31
- package/src/page/page.tokens.json +8 -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/picker-panel/picker-panel.css +1074 -0
- package/src/picker-panel/picker-panel.tokens.json +77 -0
- package/src/popover/popover.css +85 -65
- package/src/popover/popover.tokens.json +2 -0
- package/src/progress-indicator/progress-indicator.css +194 -137
- package/src/progress-indicator/progress-indicator.tokens.json +1 -0
- package/src/prompt-composer/prompt-composer.css +274 -116
- 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 +147 -143
- package/src/rating/rating.tokens.json +2 -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 +44 -6
- package/src/saved-views/saved-views.css +43 -49
- package/src/scroll-area/scroll-area.css +50 -37
- package/src/section/section.css +311 -46
- package/src/section/section.tokens.json +13 -1
- package/src/segmented-control/segmented-control.css +221 -133
- package/src/segmented-control/segmented-control.tokens.json +7 -11
- package/src/select/select.css +226 -149
- package/src/select/select.tokens.json +4 -0
- package/src/side-navigation/side-navigation.css +204 -201
- package/src/side-navigation/side-navigation.tokens.json +2 -0
- package/src/skeleton/skeleton.css +76 -58
- package/src/slider/slider.css +108 -104
- package/src/slider/slider.tokens.json +1 -0
- 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 +26 -26
- package/src/stat-card/stat-card.css +420 -245
- package/src/stat-card/stat-card.tokens.json +8 -0
- package/src/status-indicator/status-indicator.css +126 -101
- package/src/status-indicator/status-indicator.tokens.json +0 -3
- package/src/stepper/stepper.css +78 -82
- package/src/switch/switch.css +143 -125
- package/src/switch/switch.tokens.json +4 -0
- package/src/table/table.css +653 -222
- package/src/table/table.tokens.json +10 -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 +113 -89
- package/src/tag/tag.tokens.json +11 -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 +30 -519
- package/src/time-picker/time-picker.tokens.json +1 -38
- package/src/time-range-picker/time-range-picker.css +53 -895
- package/src/time-range-picker/time-range-picker.tokens.json +1 -66
- 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 +49 -40
- package/src/toolbar/toolbar.tokens.json +2 -1
- package/src/tooltip/tooltip.css +95 -39
- package/src/tooltip/tooltip.tokens.json +1 -0
- package/src/top-navigation/top-navigation.css +253 -269
- package/src/top-navigation/top-navigation.tokens.json +1 -0
- 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 +118 -122
- package/src/typography/typography.css +67 -38
- package/src/typography/typography.tokens.json +2 -0
- package/src/upload/upload.css +256 -257
- package/src/visually-hidden/visually-hidden.css +1 -1
- package/src/wizard/wizard.css +187 -199
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
* it for what the message is sent with — a model, a tool, the send itself.
|
|
8
8
|
* The root paints the border, the ground, the lift and the ring; the
|
|
9
9
|
* textarea inside gives up all four and keeps the value, the caret and the
|
|
10
|
-
* selection
|
|
10
|
+
* selection.
|
|
11
11
|
*
|
|
12
12
|
* Three variants. `raised` is the chat composer: a surface lifted off the
|
|
13
13
|
* page, round buttons, a corner derived from them. `outline` and `subtle`
|
|
14
14
|
* are the composer inside a form — a comment, a reply — and keep the
|
|
15
15
|
* geometry of a one-line control.
|
|
16
16
|
*/
|
|
17
|
-
[data-ui
|
|
17
|
+
[data-ui-prompt-composer][data-part-root] {
|
|
18
18
|
--_font-size: var(--slotted-control-font-size-md, 13px);
|
|
19
19
|
--_height: var(--slotted-control-height-md, 34px);
|
|
20
20
|
--_icon-size: var(--slotted-control-icon-size-md, 16px);
|
|
@@ -44,6 +44,14 @@
|
|
|
44
44
|
* put the text five pixels inside the paperclip at `md`.
|
|
45
45
|
*/
|
|
46
46
|
--_padding-inline: calc(var(--_inset) + (var(--_button) - var(--_icon-size)) / 2);
|
|
47
|
+
/**
|
|
48
|
+
* Published, not read: the inset of the value's text, for content of the
|
|
49
|
+
* consumer's placed beside the input (attachments above it, a line of help
|
|
50
|
+
* under it) to start on the same edge. Written on the root, so a theme
|
|
51
|
+
* that sets it is overridden; the inherited value follows the size and the
|
|
52
|
+
* variant.
|
|
53
|
+
*/
|
|
54
|
+
--slotted-prompt-composer-content-inset: var(--_padding-inline);
|
|
47
55
|
/* One row of the composer in a form is one row of a text field. */
|
|
48
56
|
--_padding-block: max(0px, calc((var(--_height) - 1lh) / 2));
|
|
49
57
|
--_radius: var(--slotted-prompt-composer-radius, var(--slotted-radius-lg, 8px));
|
|
@@ -78,18 +86,17 @@
|
|
|
78
86
|
transition:
|
|
79
87
|
background-color var(--slotted-duration-medium) var(--slotted-easing-standard),
|
|
80
88
|
border-color var(--slotted-duration-medium) var(--slotted-easing-standard),
|
|
81
|
-
box-shadow var(--slotted-duration-medium) var(--slotted-easing-standard)
|
|
82
|
-
outline-color var(--slotted-duration-medium) var(--slotted-easing-standard);
|
|
89
|
+
box-shadow var(--slotted-duration-medium) var(--slotted-easing-standard);
|
|
83
90
|
}
|
|
84
91
|
|
|
85
|
-
[data-ui
|
|
92
|
+
[data-ui-prompt-composer][data-part-root][data-size='sm'] {
|
|
86
93
|
--_font-size: var(--slotted-control-font-size-sm, 12px);
|
|
87
94
|
--_height: var(--slotted-control-height-sm, 30px);
|
|
88
95
|
--_icon-size: var(--slotted-control-icon-size-sm, 14px);
|
|
89
96
|
--_inner-size: var(--slotted-control-inner-size-sm, 22px);
|
|
90
97
|
}
|
|
91
98
|
|
|
92
|
-
[data-ui
|
|
99
|
+
[data-ui-prompt-composer][data-part-root][data-size='lg'] {
|
|
93
100
|
--_font-size: var(--slotted-control-font-size-lg, 14px);
|
|
94
101
|
--_height: var(--slotted-control-height-lg, 38px);
|
|
95
102
|
--_icon-size: var(--slotted-control-icon-size-lg, 18px);
|
|
@@ -110,8 +117,10 @@
|
|
|
110
117
|
* card's corner, and a card's corner around a round send draws two curves
|
|
111
118
|
* that do not agree.
|
|
112
119
|
*/
|
|
113
|
-
[data-ui
|
|
114
|
-
|
|
120
|
+
[data-ui-prompt-composer][data-part-root][data-variant='raised'] {
|
|
121
|
+
/* Rounded: a sum of pixels and rems is a half pixel at a root other than
|
|
122
|
+
16px, and a circle on a half pixel has an uneven edge. */
|
|
123
|
+
--_button: round(up, calc(var(--_inner-size) + var(--slotted-space-2, 0.25rem)), 1px);
|
|
115
124
|
--_inset: var(--slotted-space-4, 0.5rem);
|
|
116
125
|
--_padding-block: calc(var(--_inset) + var(--slotted-space-2, 0.25rem));
|
|
117
126
|
--_radius: var(--slotted-prompt-composer-radius, calc(var(--_button) / 2 + var(--_inset)));
|
|
@@ -123,7 +132,7 @@
|
|
|
123
132
|
);
|
|
124
133
|
}
|
|
125
134
|
|
|
126
|
-
[data-ui
|
|
135
|
+
[data-ui-prompt-composer][data-part-root][data-variant='subtle'] {
|
|
127
136
|
background-color: var(
|
|
128
137
|
--slotted-prompt-composer-subtle-background,
|
|
129
138
|
var(--slotted-surface-sunken, Canvas)
|
|
@@ -141,7 +150,7 @@
|
|
|
141
150
|
* script measures a line. The band below stays where the reader's thumb
|
|
142
151
|
* expects it.
|
|
143
152
|
*/
|
|
144
|
-
[data-ui
|
|
153
|
+
[data-ui-prompt-composer] > [data-part-input] {
|
|
145
154
|
appearance: none;
|
|
146
155
|
background: transparent;
|
|
147
156
|
border: 0;
|
|
@@ -171,11 +180,11 @@
|
|
|
171
180
|
unicode-bidi: plaintext;
|
|
172
181
|
}
|
|
173
182
|
|
|
174
|
-
[data-ui
|
|
183
|
+
[data-ui-prompt-composer] > [data-part-input]::placeholder {
|
|
175
184
|
color: var(--slotted-prompt-composer-placeholder-color, var(--slotted-text-muted, GrayText));
|
|
176
185
|
}
|
|
177
186
|
|
|
178
|
-
[data-ui
|
|
187
|
+
[data-ui-prompt-composer] > [data-part-input]::selection {
|
|
179
188
|
background-color: var(
|
|
180
189
|
--slotted-prompt-composer-selection-background,
|
|
181
190
|
var(--slotted-tone-accent-surface, Highlight)
|
|
@@ -183,14 +192,13 @@
|
|
|
183
192
|
}
|
|
184
193
|
|
|
185
194
|
/* A band above the value gives it back the block padding it already has. */
|
|
186
|
-
[data-ui
|
|
195
|
+
[data-ui-prompt-composer] > [data-part-header] + [data-part-input] {
|
|
187
196
|
padding-block-start: var(--_inset);
|
|
188
197
|
}
|
|
189
198
|
|
|
190
199
|
/* The band below sits on the last line: the value keeps its own air above
|
|
191
200
|
the text and hands the air below it to the band's inset. */
|
|
192
|
-
[data-ui
|
|
193
|
-
> [data-part='input']:has(+ [data-part='footer']) {
|
|
201
|
+
[data-ui-prompt-composer][data-variant='raised'] > [data-part-input]:has(+ [data-part-footer]) {
|
|
194
202
|
padding-block-end: var(--slotted-space-2, 0.25rem);
|
|
195
203
|
}
|
|
196
204
|
|
|
@@ -201,7 +209,7 @@
|
|
|
201
209
|
* does not: the send stays on the line, and a narrow composer gives up the
|
|
202
210
|
* space between the tools first.
|
|
203
211
|
*/
|
|
204
|
-
[data-ui
|
|
212
|
+
[data-ui-prompt-composer] > :is([data-part-header], [data-part-footer]) {
|
|
205
213
|
--slotted-icon-size: var(--_icon-size);
|
|
206
214
|
--slotted-control-inner-size: var(--_button);
|
|
207
215
|
|
|
@@ -212,19 +220,19 @@
|
|
|
212
220
|
padding: var(--_inset);
|
|
213
221
|
}
|
|
214
222
|
|
|
215
|
-
[data-ui
|
|
223
|
+
[data-ui-prompt-composer] > [data-part-header] {
|
|
216
224
|
flex-wrap: wrap;
|
|
217
225
|
padding-block-end: 0;
|
|
218
226
|
}
|
|
219
227
|
|
|
220
228
|
/* A strip of attachments is the width the band has and scrolls inside it;
|
|
221
229
|
a flex item otherwise keeps its content's width and crosses the frame. */
|
|
222
|
-
[data-ui
|
|
230
|
+
[data-ui-prompt-composer] > [data-part-header] > * {
|
|
223
231
|
max-inline-size: 100%;
|
|
224
232
|
min-inline-size: 0;
|
|
225
233
|
}
|
|
226
234
|
|
|
227
|
-
[data-ui
|
|
235
|
+
[data-ui-prompt-composer] > [data-part-footer] {
|
|
228
236
|
flex-wrap: nowrap;
|
|
229
237
|
padding-block-start: 0;
|
|
230
238
|
}
|
|
@@ -233,13 +241,14 @@
|
|
|
233
241
|
*
|
|
234
242
|
* `action` is the consumer's, `attach` the family's: both are R2 inner
|
|
235
243
|
* controls — no frame, no ground at rest, one step of ground for hover and
|
|
236
|
-
* one for press, and the ink never moves. Square when
|
|
237
|
-
*
|
|
244
|
+
* one for press, and the ink never moves. Square when they hold no words
|
|
245
|
+
* (`data-icon-only`, written by the binding), padded when they do, whatever
|
|
246
|
+
* names them: an aria-label gives a text action context, not a shape; round
|
|
238
247
|
* in the chat composer, a pill when they carry words.
|
|
239
248
|
*/
|
|
240
|
-
[data-ui
|
|
241
|
-
> :is([data-part
|
|
242
|
-
> :is([data-part
|
|
249
|
+
[data-ui-prompt-composer]
|
|
250
|
+
> :is([data-part-header], [data-part-footer])
|
|
251
|
+
> :is([data-part-action], [data-part-attach], [data-part-dictate]) {
|
|
243
252
|
align-items: center;
|
|
244
253
|
appearance: none;
|
|
245
254
|
background-color: transparent;
|
|
@@ -266,9 +275,9 @@
|
|
|
266
275
|
-webkit-tap-highlight-color: transparent;
|
|
267
276
|
}
|
|
268
277
|
|
|
269
|
-
[data-ui
|
|
270
|
-
> :is([data-part
|
|
271
|
-
> [data-part
|
|
278
|
+
[data-ui-prompt-composer]
|
|
279
|
+
> :is([data-part-header], [data-part-footer])
|
|
280
|
+
> [data-part-action]:not([data-icon-only]) {
|
|
272
281
|
color: var(--slotted-prompt-composer-action-label-color, var(--slotted-text, CanvasText));
|
|
273
282
|
font-weight: var(--slotted-font-weight-medium, 500);
|
|
274
283
|
padding-inline: var(--slotted-space-3, 0.375rem);
|
|
@@ -276,19 +285,19 @@
|
|
|
276
285
|
|
|
277
286
|
/**
|
|
278
287
|
* Words and a mark in one button — a country code over its chevron, a model
|
|
279
|
-
* name, a notation. The mark is
|
|
288
|
+
* name, a notation. The mark is centerd on the band the letters occupy, not
|
|
280
289
|
* on the line box: the line box keeps room under the baseline for
|
|
281
|
-
* descenders, so a box
|
|
290
|
+
* descenders, so a box centerd in it sits low beside the letters — every
|
|
282
291
|
* chevron in these buttons did. The rule is the briefing's (_A mark beside a
|
|
283
292
|
* line of text is aligned to the text_), here in a grid: items share the
|
|
284
293
|
* baseline, the mark's synthesized baseline is its bottom edge, a negative
|
|
285
294
|
* start margin takes back the height it would add above the letters, and a
|
|
286
|
-
* translate puts its
|
|
287
|
-
* midpoint of the capitals' and the lowercase letters' own
|
|
295
|
+
* translate puts its center at `(1cap + 1ex) / 4` above the baseline — the
|
|
296
|
+
* midpoint of the capitals' and the lowercase letters' own centers.
|
|
288
297
|
*/
|
|
289
|
-
[data-ui
|
|
290
|
-
> :is([data-part
|
|
291
|
-
> [data-part
|
|
298
|
+
[data-ui-prompt-composer]
|
|
299
|
+
> :is([data-part-header], [data-part-footer])
|
|
300
|
+
> [data-part-action]:not([data-icon-only]) {
|
|
292
301
|
align-content: center;
|
|
293
302
|
align-items: baseline;
|
|
294
303
|
display: inline-grid;
|
|
@@ -296,75 +305,91 @@
|
|
|
296
305
|
justify-content: center;
|
|
297
306
|
}
|
|
298
307
|
|
|
299
|
-
[data-ui
|
|
300
|
-
> :is([data-part
|
|
301
|
-
> [data-part
|
|
302
|
-
> [data-ui
|
|
308
|
+
[data-ui-prompt-composer]
|
|
309
|
+
> :is([data-part-header], [data-part-footer])
|
|
310
|
+
> [data-part-action]:not([data-icon-only])
|
|
311
|
+
> [data-ui-icon] {
|
|
303
312
|
margin-block-start: calc((1cap + 1ex) / 4 - var(--_icon-size) / 2);
|
|
304
313
|
translate: 0 calc(var(--_icon-size) / 2 - (1cap + 1ex) / 4);
|
|
305
314
|
}
|
|
306
315
|
|
|
307
316
|
/* A pill carries its words a step further from its round ends. */
|
|
308
|
-
[data-ui
|
|
309
|
-
> :is([data-part
|
|
310
|
-
> [data-part
|
|
317
|
+
[data-ui-prompt-composer][data-variant='raised']
|
|
318
|
+
> :is([data-part-header], [data-part-footer])
|
|
319
|
+
> [data-part-action]:not([data-icon-only]) {
|
|
311
320
|
padding-inline: var(--slotted-space-4, 0.5rem);
|
|
312
321
|
}
|
|
313
322
|
|
|
314
323
|
/* The target, recovered outside the paint: 24 pixels on a mouse, 44 on a
|
|
315
324
|
finger, and never across the edge two buttons share. */
|
|
316
|
-
[data-ui
|
|
317
|
-
> :is([data-part
|
|
318
|
-
> :is([data-part
|
|
325
|
+
[data-ui-prompt-composer]
|
|
326
|
+
> :is([data-part-header], [data-part-footer])
|
|
327
|
+
> :is([data-part-action], [data-part-attach], [data-part-dictate], [data-part-submit])::after {
|
|
319
328
|
content: '';
|
|
320
329
|
inset: min(0px, calc((100% - var(--slotted-target-min, 24px)) / 2));
|
|
321
330
|
position: absolute;
|
|
322
331
|
}
|
|
323
332
|
|
|
324
333
|
@media (pointer: coarse) {
|
|
325
|
-
[data-ui
|
|
326
|
-
> :is([data-part
|
|
327
|
-
> :is(
|
|
334
|
+
[data-ui-prompt-composer]
|
|
335
|
+
> :is([data-part-header], [data-part-footer])
|
|
336
|
+
> :is(
|
|
337
|
+
[data-part-action],
|
|
338
|
+
[data-part-attach],
|
|
339
|
+
[data-part-dictate],
|
|
340
|
+
[data-part-submit]
|
|
341
|
+
)::after {
|
|
328
342
|
inset: min(0px, calc((100% - var(--slotted-target-comfortable, 44px)) / 2));
|
|
329
343
|
}
|
|
330
344
|
|
|
331
|
-
[data-ui
|
|
332
|
-
> :is([data-part
|
|
333
|
-
> :is([data-part
|
|
345
|
+
[data-ui-prompt-composer]
|
|
346
|
+
> :is([data-part-header], [data-part-footer])
|
|
347
|
+
> :is([data-part-action], [data-part-attach], [data-part-dictate]):has(+ *)::after {
|
|
334
348
|
inset-inline-end: 0;
|
|
335
349
|
}
|
|
336
350
|
|
|
337
|
-
[data-ui
|
|
338
|
-
> :is([data-part
|
|
351
|
+
[data-ui-prompt-composer]
|
|
352
|
+
> :is([data-part-header], [data-part-footer])
|
|
339
353
|
> *
|
|
340
|
-
+ :is(
|
|
354
|
+
+ :is(
|
|
355
|
+
[data-part-action],
|
|
356
|
+
[data-part-attach],
|
|
357
|
+
[data-part-dictate],
|
|
358
|
+
[data-part-submit]
|
|
359
|
+
)::after {
|
|
341
360
|
inset-inline-start: 0;
|
|
342
361
|
}
|
|
343
362
|
}
|
|
344
363
|
|
|
345
|
-
[data-ui
|
|
346
|
-
> :is([data-part
|
|
347
|
-
> :is([data-part
|
|
364
|
+
[data-ui-prompt-composer]
|
|
365
|
+
> :is([data-part-header], [data-part-footer])
|
|
366
|
+
> :is([data-part-action], [data-part-attach], [data-part-dictate]):hover:not(
|
|
367
|
+
:disabled,
|
|
368
|
+
[aria-expanded='true'],
|
|
369
|
+
[aria-pressed='true']
|
|
370
|
+
) {
|
|
348
371
|
background-color: var(
|
|
349
372
|
--slotted-prompt-composer-action-hover-background,
|
|
350
373
|
var(--slotted-tone-secondary-subtle-hover)
|
|
351
374
|
);
|
|
352
375
|
}
|
|
353
376
|
|
|
354
|
-
[data-ui
|
|
355
|
-
> :is([data-part
|
|
356
|
-
> :is([data-part
|
|
357
|
-
:
|
|
358
|
-
|
|
377
|
+
[data-ui-prompt-composer]
|
|
378
|
+
> :is([data-part-header], [data-part-footer])
|
|
379
|
+
> :is([data-part-action], [data-part-attach], [data-part-dictate]):is(
|
|
380
|
+
:active,
|
|
381
|
+
[aria-expanded='true'],
|
|
382
|
+
[aria-pressed='true']
|
|
383
|
+
):not(:disabled) {
|
|
359
384
|
background-color: var(
|
|
360
385
|
--slotted-prompt-composer-action-active-background,
|
|
361
386
|
var(--slotted-tone-secondary-subtle-active)
|
|
362
387
|
);
|
|
363
388
|
}
|
|
364
389
|
|
|
365
|
-
[data-ui
|
|
366
|
-
> :is([data-part
|
|
367
|
-
> :is([data-part
|
|
390
|
+
[data-ui-prompt-composer]
|
|
391
|
+
> :is([data-part-header], [data-part-footer])
|
|
392
|
+
> :is([data-part-action], [data-part-attach], [data-part-dictate]):disabled {
|
|
368
393
|
color: var(--slotted-disabled-foreground);
|
|
369
394
|
cursor: not-allowed;
|
|
370
395
|
}
|
|
@@ -377,7 +402,7 @@
|
|
|
377
402
|
* The mark and the ring share one grid cell, so the stop square stands in
|
|
378
403
|
* the middle of the ring that says an answer is still arriving.
|
|
379
404
|
*/
|
|
380
|
-
[data-ui
|
|
405
|
+
[data-ui-prompt-composer] > [data-part-footer] > [data-part-submit] {
|
|
381
406
|
/* Alone, the ring is the glyph's size and stands where the arrow stood;
|
|
382
407
|
around the stop square it grows to the disc (below). */
|
|
383
408
|
--slotted-spinner-size: var(--_icon-size);
|
|
@@ -412,15 +437,15 @@
|
|
|
412
437
|
-webkit-tap-highlight-color: transparent;
|
|
413
438
|
}
|
|
414
439
|
|
|
415
|
-
[data-ui
|
|
440
|
+
[data-ui-prompt-composer] > [data-part-footer] > [data-part-submit] > * {
|
|
416
441
|
grid-area: 1 / 1;
|
|
417
442
|
}
|
|
418
443
|
|
|
419
444
|
/* Named by its own word — Comentar, Publicar — the send is a padded pill at
|
|
420
445
|
the same height; named by aria-label it is the round mark. */
|
|
421
|
-
[data-ui
|
|
422
|
-
> [data-part
|
|
423
|
-
> [data-part
|
|
446
|
+
[data-ui-prompt-composer]
|
|
447
|
+
> [data-part-footer]
|
|
448
|
+
> [data-part-submit]:not([aria-label], [aria-labelledby]) {
|
|
424
449
|
border-radius: var(--_action-radius);
|
|
425
450
|
font: inherit;
|
|
426
451
|
font-weight: var(--slotted-font-weight-medium, 500);
|
|
@@ -429,7 +454,7 @@
|
|
|
429
454
|
padding-inline: var(--slotted-space-5, 0.75rem);
|
|
430
455
|
}
|
|
431
456
|
|
|
432
|
-
[data-ui
|
|
457
|
+
[data-ui-prompt-composer] > [data-part-footer] > [data-part-submit]:hover:not(:disabled) {
|
|
433
458
|
background-color: var(
|
|
434
459
|
--slotted-prompt-composer-submit-hover-background,
|
|
435
460
|
var(--slotted-tone-accent-solid-hover, Highlight)
|
|
@@ -441,16 +466,16 @@
|
|
|
441
466
|
* the button going in; the ground darkens a further step. A padded send
|
|
442
467
|
* holds its words, so it takes the ground alone (R7).
|
|
443
468
|
*/
|
|
444
|
-
[data-ui
|
|
469
|
+
[data-ui-prompt-composer] > [data-part-footer] > [data-part-submit]:active:not(:disabled) {
|
|
445
470
|
background-color: var(
|
|
446
471
|
--slotted-prompt-composer-submit-active-background,
|
|
447
472
|
var(--slotted-tone-accent-solid-active, Highlight)
|
|
448
473
|
);
|
|
449
474
|
}
|
|
450
475
|
|
|
451
|
-
[data-ui
|
|
452
|
-
> [data-part
|
|
453
|
-
> [data-part
|
|
476
|
+
[data-ui-prompt-composer]
|
|
477
|
+
> [data-part-footer]
|
|
478
|
+
> [data-part-submit]:is([aria-label], [aria-labelledby]):active:not(:disabled) {
|
|
454
479
|
scale: 0.9;
|
|
455
480
|
}
|
|
456
481
|
|
|
@@ -459,23 +484,23 @@
|
|
|
459
484
|
* over it: a hint of the movement the press will start, and nothing else
|
|
460
485
|
* in the frame moves.
|
|
461
486
|
*/
|
|
462
|
-
[data-ui
|
|
463
|
-
> [data-part
|
|
464
|
-
> [data-part
|
|
465
|
-
> [data-ui
|
|
487
|
+
[data-ui-prompt-composer]
|
|
488
|
+
> [data-part-footer]
|
|
489
|
+
> [data-part-submit]
|
|
490
|
+
> [data-ui-icon]:has([data-glyph='arrow-up']) {
|
|
466
491
|
transition: translate var(--slotted-duration-short) var(--slotted-easing-standard);
|
|
467
492
|
}
|
|
468
493
|
|
|
469
|
-
[data-ui
|
|
470
|
-
> [data-part
|
|
471
|
-
> [data-part
|
|
472
|
-
> [data-ui
|
|
494
|
+
[data-ui-prompt-composer]
|
|
495
|
+
> [data-part-footer]
|
|
496
|
+
> [data-part-submit]:hover:not(:disabled)
|
|
497
|
+
> [data-ui-icon]:has([data-glyph='arrow-up']) {
|
|
473
498
|
translate: 0 calc(var(--slotted-border-width-thin, 1px) * -1);
|
|
474
499
|
}
|
|
475
500
|
|
|
476
501
|
/* Nothing to send: a quiet disc in the disabled ground, the arrow still
|
|
477
502
|
legible, so the reader sees where the send will be before it wakes. */
|
|
478
|
-
[data-ui
|
|
503
|
+
[data-ui-prompt-composer] > [data-part-footer] > [data-part-submit]:disabled {
|
|
479
504
|
background-color: var(
|
|
480
505
|
--slotted-prompt-composer-submit-disabled-background,
|
|
481
506
|
var(--slotted-disabled-background)
|
|
@@ -486,9 +511,7 @@
|
|
|
486
511
|
|
|
487
512
|
/* While the request travels the button is busy, not unavailable: the ring
|
|
488
513
|
stands where the arrow stood and the ground keeps the accent. */
|
|
489
|
-
[data-ui
|
|
490
|
-
> [data-part='footer']
|
|
491
|
-
> [data-part='submit'] {
|
|
514
|
+
[data-ui-prompt-composer][data-status='submitted'] > [data-part-footer] > [data-part-submit] {
|
|
492
515
|
background-color: var(
|
|
493
516
|
--slotted-prompt-composer-submit-background,
|
|
494
517
|
var(--slotted-tone-accent-solid, Highlight)
|
|
@@ -502,9 +525,7 @@
|
|
|
502
525
|
|
|
503
526
|
/* The ring around the stop square is drawn inside the disc, a stroke in
|
|
504
527
|
from its edge, so the disc keeps its outline. */
|
|
505
|
-
[data-ui
|
|
506
|
-
> [data-part='footer']
|
|
507
|
-
> [data-part='submit'] {
|
|
528
|
+
[data-ui-prompt-composer][data-status='streaming'] > [data-part-footer] > [data-part-submit] {
|
|
508
529
|
--slotted-spinner-size: calc(var(--_button) - 2 * var(--slotted-space-1, 2px));
|
|
509
530
|
--slotted-icon-size: calc(var(--_icon-size) * 3 / 4);
|
|
510
531
|
}
|
|
@@ -515,10 +536,10 @@
|
|
|
515
536
|
* transparent, on the entering curve. The old mark is gone in the same
|
|
516
537
|
* frame.
|
|
517
538
|
*/
|
|
518
|
-
[data-ui
|
|
519
|
-
> [data-part
|
|
520
|
-
> [data-part
|
|
521
|
-
> :is([data-ui
|
|
539
|
+
[data-ui-prompt-composer]
|
|
540
|
+
> [data-part-footer]
|
|
541
|
+
> [data-part-submit]
|
|
542
|
+
> :is([data-ui-icon], [data-ui-spinner]) {
|
|
522
543
|
transition:
|
|
523
544
|
opacity var(--slotted-duration-short) var(--slotted-easing-enter),
|
|
524
545
|
scale var(--slotted-duration-short) var(--slotted-easing-enter),
|
|
@@ -526,10 +547,10 @@
|
|
|
526
547
|
}
|
|
527
548
|
|
|
528
549
|
@starting-style {
|
|
529
|
-
[data-ui
|
|
530
|
-
> [data-part
|
|
531
|
-
> [data-part
|
|
532
|
-
> :is([data-ui
|
|
550
|
+
[data-ui-prompt-composer]
|
|
551
|
+
> [data-part-footer]
|
|
552
|
+
> [data-part-submit]
|
|
553
|
+
> :is([data-ui-icon], [data-ui-spinner]) {
|
|
533
554
|
opacity: 0;
|
|
534
555
|
scale: 0.8;
|
|
535
556
|
}
|
|
@@ -539,21 +560,21 @@
|
|
|
539
560
|
inner control does: four pixels from the frame, an outward ring would
|
|
540
561
|
land on the frame's edge. The solid send keeps it outside, where the
|
|
541
562
|
ring stands against the frame's ground rather than against the accent. */
|
|
542
|
-
[data-ui
|
|
543
|
-
> :is([data-part
|
|
544
|
-
> :is([data-part
|
|
563
|
+
[data-ui-prompt-composer]
|
|
564
|
+
> :is([data-part-header], [data-part-footer])
|
|
565
|
+
> :is([data-part-action], [data-part-attach], [data-part-dictate]):focus-visible {
|
|
545
566
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
546
567
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
547
568
|
}
|
|
548
569
|
|
|
549
|
-
[data-ui
|
|
570
|
+
[data-ui-prompt-composer] > [data-part-footer] > [data-part-submit]:focus-visible {
|
|
550
571
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
551
572
|
outline-offset: var(--slotted-focus-ring-offset, 2px);
|
|
552
573
|
}
|
|
553
574
|
|
|
554
575
|
/* ── States of the frame ─────────────────────────────────────────────── */
|
|
555
576
|
|
|
556
|
-
[data-ui
|
|
577
|
+
[data-ui-prompt-composer][data-part-root]:hover:not([data-disabled]):not([data-readonly]):not(
|
|
557
578
|
[data-invalid]
|
|
558
579
|
):not([data-drop-target]) {
|
|
559
580
|
border-color: var(
|
|
@@ -564,15 +585,152 @@
|
|
|
564
585
|
|
|
565
586
|
/**
|
|
566
587
|
* Writing lifts the surface: the ring the theme draws for focus, and the
|
|
567
|
-
* shadow one step deeper — in a form the resting lift
|
|
588
|
+
* shadow one step deeper — in a form the resting lift recolored in the
|
|
568
589
|
* ring's ink, the rule every framed control follows; in the chat composer
|
|
569
590
|
* the theme's large shadow, because a surface that is being written on
|
|
570
591
|
* comes forward.
|
|
571
592
|
*/
|
|
572
|
-
[data-ui
|
|
593
|
+
[data-ui-prompt-composer][data-part-root]:has(> [data-part-input]:focus-visible) {
|
|
573
594
|
box-shadow: var(--_lift-focus);
|
|
574
595
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
575
|
-
outline-offset: var(--slotted-focus-ring-offset, 2px);
|
|
596
|
+
outline-offset: var(--slotted-control-focus-ring-offset, var(--slotted-focus-ring-offset, 2px));
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
/* ── Emphasis: the ring ──────────────────────────────────────────────
|
|
600
|
+
*
|
|
601
|
+
* An AI input marked by a ring of turning hues and a soft glow, as Gemini
|
|
602
|
+
* and AI Studio mark theirs. The ring replaces the frame's border, its focus
|
|
603
|
+
* outline and its raised shadow; the controls inside keep their own focus
|
|
604
|
+
* rings. Two marks the binding draws, both `aria-hidden`: the ring, a band
|
|
605
|
+
* the width of `--slotted-prompt-composer-ring-width` cut out of a turning
|
|
606
|
+
* conic gradient, and the glow, the same gradient blurred under the frame's
|
|
607
|
+
* surface, so only its halo outside the frame shows. Each turns a square larger than its box by a
|
|
608
|
+
* `transform`, which the compositor runs at a constant speed.
|
|
609
|
+
*/
|
|
610
|
+
[data-ui-prompt-composer][data-part-root][data-emphasis='ring'] {
|
|
611
|
+
--_ring-width: var(
|
|
612
|
+
--slotted-prompt-composer-ring-width,
|
|
613
|
+
var(--slotted-border-width-thick, 2px)
|
|
614
|
+
);
|
|
615
|
+
--_ring-reach: var(--slotted-prompt-composer-ring-glow-reach, var(--slotted-space-8, 1.5rem));
|
|
616
|
+
--_glow: var(--slotted-prompt-composer-ring-glow-opacity, 0.3);
|
|
617
|
+
|
|
618
|
+
border-color: transparent;
|
|
619
|
+
box-shadow: none;
|
|
620
|
+
isolation: isolate;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
[data-ui-prompt-composer][data-part-root][data-emphasis='ring']:has(
|
|
624
|
+
> [data-part-input]:focus-visible
|
|
625
|
+
) {
|
|
626
|
+
--_glow: var(--slotted-prompt-composer-ring-glow-opacity-focus, 0.55);
|
|
627
|
+
|
|
628
|
+
box-shadow: none;
|
|
629
|
+
outline: none;
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
[data-ui-prompt-composer][data-part-root][data-emphasis='ring']:is(
|
|
633
|
+
[data-loading],
|
|
634
|
+
[data-status='submitted'],
|
|
635
|
+
[data-status='streaming']
|
|
636
|
+
) {
|
|
637
|
+
--_glow: var(--slotted-prompt-composer-ring-glow-opacity-busy, 0.75);
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
[data-ui-prompt-composer] > :is([data-part-ring], [data-part-glow]) {
|
|
641
|
+
border-radius: var(--_radius);
|
|
642
|
+
container-type: size;
|
|
643
|
+
overflow: hidden;
|
|
644
|
+
pointer-events: none;
|
|
645
|
+
position: absolute;
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
[data-ui-prompt-composer] > [data-part-ring] {
|
|
649
|
+
inset: calc(-1 * var(--slotted-control-border-width, 1px));
|
|
650
|
+
mask:
|
|
651
|
+
linear-gradient(#000 0 0) content-box exclude,
|
|
652
|
+
linear-gradient(#000 0 0);
|
|
653
|
+
padding: var(--_ring-width);
|
|
654
|
+
z-index: 1;
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
/**
|
|
658
|
+
* The glow is the frame's own box, blurred: the halo is the blur's ink, which
|
|
659
|
+
* fades to nothing past the edge, and ink adds no overflow to a scrolling
|
|
660
|
+
* ancestor. A box the reach larger, cut by a mask, gave both a hard edge and
|
|
661
|
+
* that overflow. The frame's surface is restated on `::after`, which paints
|
|
662
|
+
* above the glow, so the halo shows outside the frame only.
|
|
663
|
+
*/
|
|
664
|
+
[data-ui-prompt-composer] > [data-part-glow] {
|
|
665
|
+
filter: blur(calc(var(--_ring-reach) / 2));
|
|
666
|
+
inset: calc(-1 * var(--slotted-control-border-width, 1px));
|
|
667
|
+
opacity: var(--_glow);
|
|
668
|
+
transition: opacity var(--slotted-duration-medium) var(--slotted-easing-standard);
|
|
669
|
+
z-index: -1;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
[data-ui-prompt-composer][data-part-root][data-emphasis='ring']::after {
|
|
673
|
+
background-color: inherit;
|
|
674
|
+
border-radius: inherit;
|
|
675
|
+
content: '';
|
|
676
|
+
inset: 0;
|
|
677
|
+
pointer-events: none;
|
|
678
|
+
position: absolute;
|
|
679
|
+
z-index: -1;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
[data-ui-prompt-composer] > :is([data-part-ring], [data-part-glow])::before {
|
|
683
|
+
animation: slotted-prompt-composer-turn
|
|
684
|
+
var(--slotted-prompt-composer-ring-duration, var(--slotted-duration-loop-slow)) linear
|
|
685
|
+
infinite;
|
|
686
|
+
aspect-ratio: 1;
|
|
687
|
+
background: conic-gradient(
|
|
688
|
+
var(
|
|
689
|
+
--slotted-prompt-composer-ring-colors,
|
|
690
|
+
var(--slotted-data-1),
|
|
691
|
+
var(--slotted-data-3),
|
|
692
|
+
var(--slotted-data-5),
|
|
693
|
+
var(--slotted-data-2),
|
|
694
|
+
var(--slotted-data-1)
|
|
695
|
+
)
|
|
696
|
+
);
|
|
697
|
+
content: '';
|
|
698
|
+
inline-size: 150cqmax;
|
|
699
|
+
inset-block-start: 50%;
|
|
700
|
+
inset-inline-start: 50%;
|
|
701
|
+
position: absolute;
|
|
702
|
+
transform: translate(-50%, -50%) rotate(0turn);
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
@keyframes slotted-prompt-composer-turn {
|
|
706
|
+
to {
|
|
707
|
+
transform: translate(-50%, -50%) rotate(1turn);
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
@media (prefers-reduced-motion: reduce) {
|
|
712
|
+
[data-ui-prompt-composer] > :is([data-part-ring], [data-part-glow])::before {
|
|
713
|
+
animation: none;
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
/* The system's colors draw no gradient: the marks go, and the frame's own
|
|
718
|
+
border and focus outline return. */
|
|
719
|
+
@media (forced-colors: active) {
|
|
720
|
+
[data-ui-prompt-composer] > :is([data-part-ring], [data-part-glow]) {
|
|
721
|
+
display: none;
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
[data-ui-prompt-composer][data-part-root][data-emphasis='ring'] {
|
|
725
|
+
border-color: ButtonBorder;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
[data-ui-prompt-composer][data-part-root][data-emphasis='ring']:has(
|
|
729
|
+
> [data-part-input]:focus-visible
|
|
730
|
+
) {
|
|
731
|
+
outline: var(--slotted-focus-ring-width, 2px) solid Highlight;
|
|
732
|
+
outline-offset: var(--slotted-focus-ring-offset, 2px);
|
|
733
|
+
}
|
|
576
734
|
}
|
|
577
735
|
|
|
578
736
|
/**
|
|
@@ -583,13 +741,13 @@
|
|
|
583
741
|
* moment. The dashed edge is a pseudo-element rather than an outline: the
|
|
584
742
|
* outline is the focus ring's, and the two can be on at once.
|
|
585
743
|
*/
|
|
586
|
-
[data-ui
|
|
744
|
+
[data-ui-prompt-composer][data-part-root] {
|
|
587
745
|
position: relative;
|
|
588
746
|
}
|
|
589
747
|
|
|
590
|
-
[data-ui
|
|
748
|
+
[data-ui-prompt-composer][data-part-root]::before {
|
|
591
749
|
/* Unthemed, the dashed edge disappears rather than shouting in a system
|
|
592
|
-
|
|
750
|
+
color; the wash and the frame's edge still say where the drop lands. */
|
|
593
751
|
border: var(--slotted-border-width-medium, 1.5px) dashed
|
|
594
752
|
var(
|
|
595
753
|
--slotted-prompt-composer-drop-border-color,
|
|
@@ -606,12 +764,12 @@
|
|
|
606
764
|
transition: opacity var(--slotted-duration-short) var(--slotted-easing-exit);
|
|
607
765
|
}
|
|
608
766
|
|
|
609
|
-
[data-ui
|
|
767
|
+
[data-ui-prompt-composer][data-part-root][data-drop-target]::before {
|
|
610
768
|
opacity: 1;
|
|
611
769
|
transition-timing-function: var(--slotted-easing-enter);
|
|
612
770
|
}
|
|
613
771
|
|
|
614
|
-
[data-ui
|
|
772
|
+
[data-ui-prompt-composer][data-part-root][data-drop-target] {
|
|
615
773
|
background-color: var(
|
|
616
774
|
--slotted-prompt-composer-drop-background,
|
|
617
775
|
var(--slotted-tone-accent-surface, Canvas)
|
|
@@ -622,7 +780,7 @@
|
|
|
622
780
|
);
|
|
623
781
|
}
|
|
624
782
|
|
|
625
|
-
[data-ui
|
|
783
|
+
[data-ui-prompt-composer][data-part-root][data-invalid] {
|
|
626
784
|
--slotted-focus-ring-color: var(
|
|
627
785
|
--slotted-prompt-composer-invalid-focus-ring-color,
|
|
628
786
|
var(--slotted-focus-ring-color-invalid, Highlight)
|
|
@@ -639,14 +797,14 @@
|
|
|
639
797
|
}
|
|
640
798
|
|
|
641
799
|
/*
|
|
642
|
-
* Width as well as
|
|
800
|
+
* Width as well as color (WCAG 1.4.1), the edge `text-field` draws: in
|
|
643
801
|
* `high-contrast` the danger border is the resting edge's black. It is a
|
|
644
802
|
* border on a box laid over the frame's padding box rather than a shadow on
|
|
645
803
|
* the frame, so the frame keeps its own elevation at rest and under focus —
|
|
646
|
-
* the large one in `raised` — and forced
|
|
804
|
+
* the large one in `raised` — and forced colors, which remove shadows, keep
|
|
647
805
|
* a border. Nothing moves: the box is out of flow.
|
|
648
806
|
*/
|
|
649
|
-
[data-ui
|
|
807
|
+
[data-ui-prompt-composer][data-part-root][data-invalid]::after {
|
|
650
808
|
border: var(--_invalid-edge-width) solid
|
|
651
809
|
var(--slotted-prompt-composer-invalid-border-color, var(--slotted-tone-danger-border));
|
|
652
810
|
border-radius: max(0px, calc(var(--_radius) - var(--slotted-control-border-width, 1px)));
|
|
@@ -656,7 +814,7 @@
|
|
|
656
814
|
position: absolute;
|
|
657
815
|
}
|
|
658
816
|
|
|
659
|
-
[data-ui
|
|
817
|
+
[data-ui-prompt-composer][data-part-root][data-readonly] {
|
|
660
818
|
background-color: var(
|
|
661
819
|
--slotted-prompt-composer-readonly-background,
|
|
662
820
|
var(--slotted-tone-secondary-subtle-hover)
|
|
@@ -664,7 +822,7 @@
|
|
|
664
822
|
cursor: default;
|
|
665
823
|
}
|
|
666
824
|
|
|
667
|
-
[data-ui
|
|
825
|
+
[data-ui-prompt-composer][data-part-root][data-disabled] {
|
|
668
826
|
background-color: var(
|
|
669
827
|
--slotted-prompt-composer-disabled-background,
|
|
670
828
|
var(--slotted-disabled-background)
|