@plexui/styles 0.3.3 → 0.5.0

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.
@@ -316,7 +316,6 @@
316
316
  .Alert:where(:not([data-mobile-actions="own"])) .Actions > :where(button, a, [role="link"]) {
317
317
  --button-size: var(--button-size-xl, 50px);
318
318
  --button-font-size: var(--button-font-size-xl, 17px);
319
- --button-font-weight: var(--font-weight-semibold);
320
319
  --button-gutter: var(--button-gutter-xl, 20px);
321
320
  --button-radius: var(--radius-full);
322
321
  flex: 1 0 auto;
@@ -445,7 +444,6 @@
445
444
  :where([data-plex-layout="phone"]) .Alert:where(:not([data-mobile-actions="own"])) .Actions > :where(button, a, [role="link"]) {
446
445
  --button-size: var(--button-size-xl, 50px);
447
446
  --button-font-size: var(--button-font-size-xl, 17px);
448
- --button-font-weight: var(--font-weight-semibold);
449
447
  --button-gutter: var(--button-gutter-xl, 20px);
450
448
  --button-radius: var(--radius-full);
451
449
  flex: 1 0 auto;
@@ -167,10 +167,10 @@
167
167
  Notes hold their symbols (IMG_5734, 5736: Back alone, then one capsule of three symbols). A group in a Toolbar is one by itself, the same capsule as Toolbar.Group;
168
168
  elsewhere `mobileMaterial="glass"` asks for it, for controls that float over the content, as the column of map
169
169
  controls. Liquid Glass belongs to the controls over the content, so a group in the content keeps its joined
170
- look, and `mobileMaterial="flat"` keeps it in a Toolbar. A group of a field and buttons stays joined anywhere.
170
+ look, and `mobileMaterial="flat"` keeps it in a Toolbar. A field among glass buttons comes apart from them (below).
171
171
  Without touch.css the glass tokens are unset and the capsule has no fill. */@media (max-width: 767.98px) {
172
172
  /* Every group in a glass context, the row of capsules around nested groups included: no joined edges. */
173
- .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]), > [data-slot="button-group"] > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) {
173
+ .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]), > [data-slot="button-group"] > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) {
174
174
  --button-group-joined-radius: var(--radius-full);
175
175
  --button-group-joined-overlap: 0px;
176
176
  --button-group-joined-clip: none;
@@ -186,7 +186,7 @@
186
186
  }
187
187
 
188
188
  /* The capsule: a group of buttons alone. */
189
- .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) {
189
+ .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) {
190
190
  gap: var(--button-group-glass-gap);
191
191
  padding: 0 var(--button-group-glass-padding);
192
192
  border-radius: var(--radius-full);
@@ -197,28 +197,39 @@
197
197
  }
198
198
 
199
199
  /* One button is a capsule of its own, as Back beside a group. */
200
- .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))):not(:has(> * + *)) {
200
+ .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))):not(:has(> * + *)) {
201
201
  padding: 0;
202
202
  }
203
203
 
204
- .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"])))[data-orientation="vertical"] {
204
+ /* A column: each button takes its half of the gaps beside it, so its pressed shape fills its share of the capsule
205
+ and the first and last are as round as the capsule's ends (owner 13.11: a 48px circle 4px under the top read
206
+ as shifted). The symbols stand where the kit puts them: 4 + 48 + 6 + 48 + 4. */
207
+ .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"])))[data-orientation="vertical"] {
205
208
  --button-group-glass-item-size: var(--button-group-glass-vertical-item-size);
206
- gap: var(--button-group-glass-vertical-gap);
207
- padding: var(--button-group-glass-vertical-padding) 0;
209
+ gap: 0;
210
+ padding: calc(var(--button-group-glass-vertical-padding) - var(--button-group-glass-vertical-gap) / 2) 0;
208
211
  }
209
212
 
210
- .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"])))[data-orientation="vertical"]:not(:has(> * + *)) {
213
+ .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"])))[data-orientation="vertical"] > :where(button, a, [role="link"]) {
214
+ height: calc(var(--button-group-glass-vertical-item-size) + var(--button-group-glass-vertical-gap));
215
+ }
216
+
217
+ .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"])))[data-orientation="vertical"]:not(:has(> * + *)) {
211
218
  padding: 0;
212
219
  }
213
220
 
221
+ .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"])))[data-orientation="vertical"]:not(:has(> * + *)) > :where(button, a, [role="link"]) {
222
+ height: var(--button-size);
223
+ }
224
+
214
225
  /* The kit's capsule draws no line between its buttons. */
215
- .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) > [data-slot="button-group-separator"] {
226
+ .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) > [data-slot="button-group-separator"] {
216
227
  display: none;
217
228
  }
218
229
 
219
230
  /* Each button is a bar button with no surface of its own: the capsule is its glass, and a press tints it. A
220
231
  disabled ButtonLink renders a span with the link role. */
221
- .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) > :where(button, a, [role="link"]) {
232
+ .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) > :where(button, a, [role="link"]) {
222
233
  --button-size: var(--button-group-glass-item-size);
223
234
  --button-uniform-size: var(--button-group-glass-item-size);
224
235
  --button-radius: var(--radius-full);
@@ -229,24 +240,24 @@
229
240
  font-weight: var(--toolbar-label-font-weight);
230
241
  }
231
242
 
232
- .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) > :where(button, a, [role="link"])[data-variant="solid"] {
243
+ .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) > :where(button, a, [role="link"])[data-variant="solid"] {
233
244
  font-weight: var(--toolbar-label-prominent-font-weight);
234
245
  }
235
246
 
236
- .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) > :where(button, a, [role="link"]):where(:not([data-navigation-action])) {
247
+ .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) > :where(button, a, [role="link"]):where(:not([data-navigation-action])) {
237
248
  --button-icon-size: var(--toolbar-icon-size);
238
249
  }
239
250
 
240
251
  /* A symbol with less ink takes the bar's smaller box, as in Toolbar.Group (see --toolbar-icon-size-sm). */
241
- .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) > :where(button, a, [role="link"])[data-icon-size="sm"]:where(:not([data-navigation-action])) {
252
+ .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) > :where(button, a, [role="link"])[data-icon-size="sm"]:where(:not([data-navigation-action])) {
242
253
  --button-icon-size: var(--toolbar-icon-size-sm);
243
254
  }
244
255
 
245
- .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) > :where(button, a, [role="link"]):where(:not([data-navigation-action], [data-uniform])) {
256
+ .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) > :where(button, a, [role="link"]):where(:not([data-navigation-action], [data-uniform])) {
246
257
  --button-gutter: var(--button-group-glass-label-gutter);
247
258
  }
248
259
 
249
- .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) > :where(button, a, [role="link"]):where(:not([data-variant="solid"])) {
260
+ .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) > :where(button, a, [role="link"]):where(:not([data-variant="solid"])) {
250
261
  --button-mobile-material-background: transparent;
251
262
  --button-mobile-material-sheen: none;
252
263
  --button-mobile-material-shadow: 0 0 #00000000;
@@ -263,7 +274,7 @@
263
274
  }
264
275
 
265
276
  /* A neutral symbol or label is the primary label, as the kit draws it; a disabled one keeps the tertiary. */
266
- .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) > :where(button, a, [role="link"])[data-color="secondary"]:where(:not([data-disabled], [data-variant="solid"])) {
277
+ .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) > :where(button, a, [role="link"])[data-color="secondary"]:where(:not([data-disabled], [data-variant="solid"])) {
267
278
  --button-text-color: var(--color-text);
268
279
  --button-text-color-hover: var(--color-text);
269
280
  }
@@ -271,9 +282,152 @@
271
282
  [data-toolbar][data-placement="bottom"] .Root {
272
283
  --button-group-glass-label-gutter: var(--toolbar-bottom-label-gutter);
273
284
  }
285
+
286
+ /* A field among glass buttons. iOS 27.2 never joins a field and its buttons: each is a glass shape of its own, side
287
+ by side, as the composer of Messages (a 40pt circle of the plus, 12 from a 40pt field, both 16 from the screen's
288
+ sides) and the bottom bar of Contacts (the search field and New Contact, 48pt, 12 apart) draw them. A group of
289
+ buttons beside the field is a capsule (above), a button alone a circle. Floating (`mobileMaterial="glass"`) the
290
+ group takes the composer's sizes, in a Toolbar the bar's. The field is a Plex Input or Select: an InputGroup frames
291
+ its own addons and a bare <input> has no field of its own, so a group with either keeps its joined look (the
292
+ context and capsule rules above leave it out). */
293
+ .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):has(> :is([data-slot="input"], [data-slot="select-control"]), > [data-slot="button-group"] > :is([data-slot="input"], [data-slot="select-control"])):not(:has(> [data-slot="input-group"], > [data-slot="button-group"] > [data-slot="input-group"])) {
294
+ --button-group-joined-radius: var(--radius-full);
295
+ --button-group-joined-overlap: 0px;
296
+ --button-group-joined-clip: none;
297
+ align-items: center;
298
+ gap: var(--button-group-glass-field-gap);
299
+ }
300
+
301
+ /* The outer group spans its row, the field takes what the buttons leave. */
302
+ .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):has(> :is([data-slot="input"], [data-slot="select-control"]), > [data-slot="button-group"] > :is([data-slot="input"], [data-slot="select-control"])):not(:has(> [data-slot="input-group"], > [data-slot="button-group"] > [data-slot="input-group"])):not([data-slot="button-group"] > *) {
303
+ width: 100%;
304
+ }
305
+
306
+ .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):has(> :is([data-slot="input"], [data-slot="select-control"]), > [data-slot="button-group"] > :is([data-slot="input"], [data-slot="select-control"])):not(:has(> [data-slot="input-group"], > [data-slot="button-group"] > [data-slot="input-group"])) > [data-slot="button-group"]:not(:has(> [data-slot="input"])),
307
+ .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):has(> :is([data-slot="input"], [data-slot="select-control"]), > [data-slot="button-group"] > :is([data-slot="input"], [data-slot="select-control"])):not(:has(> [data-slot="input-group"], > [data-slot="button-group"] > [data-slot="input-group"])) > :where(button, a, [role="link"]) {
308
+ flex: none;
309
+ }
310
+
311
+ .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):has(> :is([data-slot="input"], [data-slot="select-control"]), > [data-slot="button-group"] > :is([data-slot="input"], [data-slot="select-control"])):not(:has(> [data-slot="input-group"], > [data-slot="button-group"] > [data-slot="input-group"])) > [data-slot="button-group"]:has(> [data-slot="input"]) {
312
+ min-width: 0;
313
+ }
314
+
315
+ /* The field: the glass capsule of a bar's search field, its text 17pt Regular 16 from the edge, as the composer
316
+ of Messages sets it (the caret 15.67 inside). A magnifier first makes it the bar's search field. The extra
317
+ attribute outweighs the field's own outline, hover and focus. */
318
+ .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):has(> :is([data-slot="input"], [data-slot="select-control"]), > [data-slot="button-group"] > :is([data-slot="input"], [data-slot="select-control"])):not(:has(> [data-slot="input-group"], > [data-slot="button-group"] > [data-slot="input-group"])) > [data-slot="input"][data-variant] {
319
+ --input-size: var(--button-group-glass-item-size);
320
+ --input-font-size: var(--toolbar-label-font-size);
321
+ --input-gutter: var(--button-group-glass-field-gutter);
322
+ --input-adornment-offset: 0px;
323
+ --control-gutter-pill-scaling: 1;
324
+ --input-placeholder-text-color: var(--toolbar-search-placeholder-color);
325
+ flex: 1 1 auto;
326
+ min-width: 0;
327
+ border-radius: var(--radius-full);
328
+ background-color: var(--mobile-glass-background);
329
+ background-image: var(--mobile-glass-sheen);
330
+ box-shadow: var(--mobile-glass-shadow);
331
+ font-weight: var(--toolbar-search-font-weight);
332
+ backdrop-filter: var(--mobile-glass-backdrop-filter);
333
+ }
334
+
335
+ .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):has(> :is([data-slot="input"], [data-slot="select-control"]), > [data-slot="button-group"] > :is([data-slot="input"], [data-slot="select-control"])):not(:has(> [data-slot="input-group"], > [data-slot="button-group"] > [data-slot="input-group"])) > [data-slot="input"][data-variant]:has(> svg:first-child) {
336
+ --input-gutter: var(--toolbar-search-gutter);
337
+ --input-gap: var(--toolbar-search-icon-gap);
338
+ }
339
+
340
+ .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):has(> :is([data-slot="input"], [data-slot="select-control"]), > [data-slot="button-group"] > :is([data-slot="input"], [data-slot="select-control"])):not(:has(> [data-slot="input-group"], > [data-slot="button-group"] > [data-slot="input-group"])) > [data-slot="input"][data-variant] > svg:first-child {
341
+ flex: none;
342
+ width: var(--toolbar-search-icon-size);
343
+ height: var(--toolbar-search-icon-size);
344
+ }
345
+
346
+ /* An invalid field keeps the Input's error line over the glass. */
347
+ .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):has(> :is([data-slot="input"], [data-slot="select-control"]), > [data-slot="button-group"] > :is([data-slot="input"], [data-slot="select-control"])):not(:has(> [data-slot="input-group"], > [data-slot="button-group"] > [data-slot="input-group"])) > [data-slot="input"][data-variant][data-invalid] {
348
+ box-shadow: 0 0 0 1px var(--input-border-color-invalid) inset, var(--mobile-glass-shadow);
349
+ }
350
+
351
+ /* A button in the field (the microphone of the composer) keeps its 44px target around the field's line
352
+ without growing the 40px field, as in a row of a list. */
353
+ .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):has(> :is([data-slot="input"], [data-slot="select-control"]), > [data-slot="button-group"] > :is([data-slot="input"], [data-slot="select-control"])):not(:has(> [data-slot="input-group"], > [data-slot="button-group"] > [data-slot="input-group"])) > [data-slot="input"][data-variant] > button {
354
+ margin-block: calc((var(--input-size) - var(--input-adornment-hit-size, 44px)) / 2);
355
+ }
356
+
357
+ /* A select: the glass capsule of a bar's pull-down button, its label 17pt Medium 16 from the edge. */
358
+ .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):has(> :is([data-slot="input"], [data-slot="select-control"]), > [data-slot="button-group"] > :is([data-slot="input"], [data-slot="select-control"])):not(:has(> [data-slot="input-group"], > [data-slot="button-group"] > [data-slot="input-group"])) > [data-slot="select-control"] {
359
+ --select-control-size: var(--button-group-glass-item-size);
360
+ --select-control-gutter: var(--button-group-glass-label-gutter);
361
+ --select-control-radius: var(--radius-full);
362
+ --select-control-font-size: var(--toolbar-label-font-size);
363
+ --select-control-font-weight: var(--toolbar-label-font-weight);
364
+ --control-gutter-pill-scaling: 1;
365
+ backdrop-filter: var(--mobile-glass-backdrop-filter);
366
+ }
367
+
368
+ /* The glass shows at rest, a ghost select's too; an invalid one keeps its error line over it. */
369
+ .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):has(> :is([data-slot="input"], [data-slot="select-control"]), > [data-slot="button-group"] > :is([data-slot="input"], [data-slot="select-control"])):not(:has(> [data-slot="input-group"], > [data-slot="button-group"] > [data-slot="input-group"])) > [data-slot="select-control"]::before {
370
+ background-color: var(--mobile-glass-background);
371
+ background-image: var(--mobile-glass-sheen);
372
+ box-shadow: var(--mobile-glass-shadow);
373
+ opacity: 1;
374
+ }
375
+
376
+ .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):has(> :is([data-slot="input"], [data-slot="select-control"]), > [data-slot="button-group"] > :is([data-slot="input"], [data-slot="select-control"])):not(:has(> [data-slot="input-group"], > [data-slot="button-group"] > [data-slot="input-group"])) > [data-slot="select-control"][data-invalid]::before {
377
+ box-shadow: 0 0 0 1px var(--input-border-color-invalid) inset, var(--mobile-glass-shadow);
378
+ }
379
+
380
+ /* A button beside the field: a glass circle of its own, the bar's symbol in it. */
381
+ .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):has(> :is([data-slot="input"], [data-slot="select-control"]), > [data-slot="button-group"] > :is([data-slot="input"], [data-slot="select-control"])):not(:has(> [data-slot="input-group"], > [data-slot="button-group"] > [data-slot="input-group"])) > :where(button, a, [role="link"]) {
382
+ --button-size: var(--button-group-glass-item-size);
383
+ --button-uniform-size: var(--button-group-glass-item-size);
384
+ --button-radius: var(--radius-full);
385
+ --button-font-size: var(--toolbar-label-font-size);
386
+ --button-line-height: var(--toolbar-label-line-height);
387
+ --button-font-weight: var(--toolbar-label-font-weight);
388
+ font-weight: var(--toolbar-label-font-weight);
389
+ }
390
+
391
+ .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):has(> :is([data-slot="input"], [data-slot="select-control"]), > [data-slot="button-group"] > :is([data-slot="input"], [data-slot="select-control"])):not(:has(> [data-slot="input-group"], > [data-slot="button-group"] > [data-slot="input-group"])) > :where(button, a, [role="link"]):where(:not([data-navigation-action])) {
392
+ --button-icon-size: var(--toolbar-icon-size);
393
+ }
394
+
395
+ .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):has(> :is([data-slot="input"], [data-slot="select-control"]), > [data-slot="button-group"] > :is([data-slot="input"], [data-slot="select-control"])):not(:has(> [data-slot="input-group"], > [data-slot="button-group"] > [data-slot="input-group"])) > :where(button, a, [role="link"])[data-icon-size="sm"]:where(:not([data-navigation-action])) {
396
+ --button-icon-size: var(--toolbar-icon-size-sm);
397
+ }
398
+
399
+ .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):has(> :is([data-slot="input"], [data-slot="select-control"]), > [data-slot="button-group"] > :is([data-slot="input"], [data-slot="select-control"])):not(:has(> [data-slot="input-group"], > [data-slot="button-group"] > [data-slot="input-group"])) > :where(button, a, [role="link"]):where(:not([data-navigation-action], [data-uniform])) {
400
+ --button-gutter: var(--button-group-glass-label-gutter);
401
+ }
402
+
403
+ .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):has(> :is([data-slot="input"], [data-slot="select-control"]), > [data-slot="button-group"] > :is([data-slot="input"], [data-slot="select-control"])):not(:has(> [data-slot="input-group"], > [data-slot="button-group"] > [data-slot="input-group"])) > :where(button, a, [role="link"]):where(:not([data-disabled])):where([data-color="primary"], [data-color="secondary"]):where([data-variant="soft"], [data-variant="ghost"]) {
404
+ --button-mobile-material-background: var(--mobile-glass-background);
405
+ --button-mobile-material-sheen: var(--mobile-glass-sheen);
406
+ --button-mobile-material-shadow: var(--mobile-glass-shadow);
407
+ --button-mobile-material-backdrop-filter: var(--mobile-glass-backdrop-filter);
408
+ --button-mobile-material-opacity: 1;
409
+ --button-mobile-material-scale: 1;
410
+ --button-mobile-material-hover: var(--mobile-glass-background-hover);
411
+ --button-mobile-material-active: var(--mobile-glass-background-active);
412
+ }
413
+
414
+ .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):has(> :is([data-slot="input"], [data-slot="select-control"]), > [data-slot="button-group"] > :is([data-slot="input"], [data-slot="select-control"])):not(:has(> [data-slot="input-group"], > [data-slot="button-group"] > [data-slot="input-group"])) > :where(button, a, [role="link"])[data-color="secondary"]:where(:not([data-disabled], [data-variant="solid"])) {
415
+ --button-text-color: var(--color-text);
416
+ --button-text-color-hover: var(--color-text);
417
+ }
418
+
419
+ /* Floating over the content, the composer of Messages: 40pt shapes 12 apart. In a bar the bar's sizes stand. */
420
+ .Root[data-mobile-material="glass"]:not([data-toolbar] *, [data-toolbar-row] *):has(> :is([data-slot="input"], [data-slot="select-control"]), > [data-slot="button-group"] > :is([data-slot="input"], [data-slot="select-control"])):not(:has(> [data-slot="input-group"], > [data-slot="button-group"] > [data-slot="input-group"])) {
421
+ --button-group-glass-item-size: var(--button-group-glass-field-size);
422
+ }
423
+
424
+ /* A bar's row keeps the bar's gap, under a large title too, where it stands in the content (the top bar's 10). */
425
+ :is([data-toolbar], [data-toolbar-row]) .Root {
426
+ --button-group-glass-field-gap: var(--toolbar-item-gap, var(--toolbar-top-item-gap));
427
+ }
274
428
  }
275
429
  /* Every group in a glass context, the row of capsules around nested groups included: no joined edges. */
276
- :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]), > [data-slot="button-group"] > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) {
430
+ :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]), > [data-slot="button-group"] > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) {
277
431
  --button-group-joined-radius: var(--radius-full);
278
432
  --button-group-joined-overlap: 0px;
279
433
  --button-group-joined-clip: none;
@@ -289,7 +443,7 @@
289
443
  }
290
444
 
291
445
  /* The capsule: a group of buttons alone. */
292
- :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) {
446
+ :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) {
293
447
  gap: var(--button-group-glass-gap);
294
448
  padding: 0 var(--button-group-glass-padding);
295
449
  border-radius: var(--radius-full);
@@ -300,28 +454,39 @@
300
454
  }
301
455
 
302
456
  /* One button is a capsule of its own, as Back beside a group. */
303
- :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))):not(:has(> * + *)) {
457
+ :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))):not(:has(> * + *)) {
304
458
  padding: 0;
305
459
  }
306
460
 
307
- :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"])))[data-orientation="vertical"] {
461
+ /* A column: each button takes its half of the gaps beside it, so its pressed shape fills its share of the capsule
462
+ and the first and last are as round as the capsule's ends (owner 13.11: a 48px circle 4px under the top read
463
+ as shifted). The symbols stand where the kit puts them: 4 + 48 + 6 + 48 + 4. */
464
+ :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"])))[data-orientation="vertical"] {
308
465
  --button-group-glass-item-size: var(--button-group-glass-vertical-item-size);
309
- gap: var(--button-group-glass-vertical-gap);
310
- padding: var(--button-group-glass-vertical-padding) 0;
466
+ gap: 0;
467
+ padding: calc(var(--button-group-glass-vertical-padding) - var(--button-group-glass-vertical-gap) / 2) 0;
311
468
  }
312
469
 
313
- :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"])))[data-orientation="vertical"]:not(:has(> * + *)) {
470
+ :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"])))[data-orientation="vertical"] > :where(button, a, [role="link"]) {
471
+ height: calc(var(--button-group-glass-vertical-item-size) + var(--button-group-glass-vertical-gap));
472
+ }
473
+
474
+ :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"])))[data-orientation="vertical"]:not(:has(> * + *)) {
314
475
  padding: 0;
315
476
  }
316
477
 
478
+ :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"])))[data-orientation="vertical"]:not(:has(> * + *)) > :where(button, a, [role="link"]) {
479
+ height: var(--button-size);
480
+ }
481
+
317
482
  /* The kit's capsule draws no line between its buttons. */
318
- :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) > [data-slot="button-group-separator"] {
483
+ :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) > [data-slot="button-group-separator"] {
319
484
  display: none;
320
485
  }
321
486
 
322
487
  /* Each button is a bar button with no surface of its own: the capsule is its glass, and a press tints it. A
323
488
  disabled ButtonLink renders a span with the link role. */
324
- :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) > :where(button, a, [role="link"]) {
489
+ :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) > :where(button, a, [role="link"]) {
325
490
  --button-size: var(--button-group-glass-item-size);
326
491
  --button-uniform-size: var(--button-group-glass-item-size);
327
492
  --button-radius: var(--radius-full);
@@ -332,24 +497,24 @@
332
497
  font-weight: var(--toolbar-label-font-weight);
333
498
  }
334
499
 
335
- :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) > :where(button, a, [role="link"])[data-variant="solid"] {
500
+ :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) > :where(button, a, [role="link"])[data-variant="solid"] {
336
501
  font-weight: var(--toolbar-label-prominent-font-weight);
337
502
  }
338
503
 
339
- :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) > :where(button, a, [role="link"]):where(:not([data-navigation-action])) {
504
+ :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) > :where(button, a, [role="link"]):where(:not([data-navigation-action])) {
340
505
  --button-icon-size: var(--toolbar-icon-size);
341
506
  }
342
507
 
343
508
  /* A symbol with less ink takes the bar's smaller box, as in Toolbar.Group (see --toolbar-icon-size-sm). */
344
- :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) > :where(button, a, [role="link"])[data-icon-size="sm"]:where(:not([data-navigation-action])) {
509
+ :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) > :where(button, a, [role="link"])[data-icon-size="sm"]:where(:not([data-navigation-action])) {
345
510
  --button-icon-size: var(--toolbar-icon-size-sm);
346
511
  }
347
512
 
348
- :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) > :where(button, a, [role="link"]):where(:not([data-navigation-action], [data-uniform])) {
513
+ :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) > :where(button, a, [role="link"]):where(:not([data-navigation-action], [data-uniform])) {
349
514
  --button-gutter: var(--button-group-glass-label-gutter);
350
515
  }
351
516
 
352
- :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) > :where(button, a, [role="link"]):where(:not([data-variant="solid"])) {
517
+ :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) > :where(button, a, [role="link"]):where(:not([data-variant="solid"])) {
353
518
  --button-mobile-material-background: transparent;
354
519
  --button-mobile-material-sheen: none;
355
520
  --button-mobile-material-shadow: 0 0 #00000000;
@@ -366,7 +531,7 @@
366
531
  }
367
532
 
368
533
  /* A neutral symbol or label is the primary label, as the kit draws it; a disabled one keeps the tertiary. */
369
- :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) > :where(button, a, [role="link"])[data-color="secondary"]:where(:not([data-disabled], [data-variant="solid"])) {
534
+ :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) > :where(button, a, [role="link"])[data-color="secondary"]:where(:not([data-disabled], [data-variant="solid"])) {
370
535
  --button-text-color: var(--color-text);
371
536
  --button-text-color-hover: var(--color-text);
372
537
  }
@@ -374,4 +539,146 @@
374
539
  :where([data-plex-layout="phone"]) [data-toolbar][data-placement="bottom"] .Root {
375
540
  --button-group-glass-label-gutter: var(--toolbar-bottom-label-gutter);
376
541
  }
542
+
543
+ /* A field among glass buttons. iOS 27.2 never joins a field and its buttons: each is a glass shape of its own, side
544
+ by side, as the composer of Messages (a 40pt circle of the plus, 12 from a 40pt field, both 16 from the screen's
545
+ sides) and the bottom bar of Contacts (the search field and New Contact, 48pt, 12 apart) draw them. A group of
546
+ buttons beside the field is a capsule (above), a button alone a circle. Floating (`mobileMaterial="glass"`) the
547
+ group takes the composer's sizes, in a Toolbar the bar's. The field is a Plex Input or Select: an InputGroup frames
548
+ its own addons and a bare <input> has no field of its own, so a group with either keeps its joined look (the
549
+ context and capsule rules above leave it out). */
550
+ :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):has(> :is([data-slot="input"], [data-slot="select-control"]), > [data-slot="button-group"] > :is([data-slot="input"], [data-slot="select-control"])):not(:has(> [data-slot="input-group"], > [data-slot="button-group"] > [data-slot="input-group"])) {
551
+ --button-group-joined-radius: var(--radius-full);
552
+ --button-group-joined-overlap: 0px;
553
+ --button-group-joined-clip: none;
554
+ align-items: center;
555
+ gap: var(--button-group-glass-field-gap);
556
+ }
557
+
558
+ /* The outer group spans its row, the field takes what the buttons leave. */
559
+ :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):has(> :is([data-slot="input"], [data-slot="select-control"]), > [data-slot="button-group"] > :is([data-slot="input"], [data-slot="select-control"])):not(:has(> [data-slot="input-group"], > [data-slot="button-group"] > [data-slot="input-group"])):not([data-slot="button-group"] > *) {
560
+ width: 100%;
561
+ }
562
+
563
+ :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):has(> :is([data-slot="input"], [data-slot="select-control"]), > [data-slot="button-group"] > :is([data-slot="input"], [data-slot="select-control"])):not(:has(> [data-slot="input-group"], > [data-slot="button-group"] > [data-slot="input-group"])) > [data-slot="button-group"]:not(:has(> [data-slot="input"])), :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):has(> :is([data-slot="input"], [data-slot="select-control"]), > [data-slot="button-group"] > :is([data-slot="input"], [data-slot="select-control"])):not(:has(> [data-slot="input-group"], > [data-slot="button-group"] > [data-slot="input-group"])) > :where(button, a, [role="link"]) {
564
+ flex: none;
565
+ }
566
+
567
+ :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):has(> :is([data-slot="input"], [data-slot="select-control"]), > [data-slot="button-group"] > :is([data-slot="input"], [data-slot="select-control"])):not(:has(> [data-slot="input-group"], > [data-slot="button-group"] > [data-slot="input-group"])) > [data-slot="button-group"]:has(> [data-slot="input"]) {
568
+ min-width: 0;
569
+ }
570
+
571
+ /* The field: the glass capsule of a bar's search field, its text 17pt Regular 16 from the edge, as the composer
572
+ of Messages sets it (the caret 15.67 inside). A magnifier first makes it the bar's search field. The extra
573
+ attribute outweighs the field's own outline, hover and focus. */
574
+ :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):has(> :is([data-slot="input"], [data-slot="select-control"]), > [data-slot="button-group"] > :is([data-slot="input"], [data-slot="select-control"])):not(:has(> [data-slot="input-group"], > [data-slot="button-group"] > [data-slot="input-group"])) > [data-slot="input"][data-variant] {
575
+ --input-size: var(--button-group-glass-item-size);
576
+ --input-font-size: var(--toolbar-label-font-size);
577
+ --input-gutter: var(--button-group-glass-field-gutter);
578
+ --input-adornment-offset: 0px;
579
+ --control-gutter-pill-scaling: 1;
580
+ --input-placeholder-text-color: var(--toolbar-search-placeholder-color);
581
+ flex: 1 1 auto;
582
+ min-width: 0;
583
+ border-radius: var(--radius-full);
584
+ background-color: var(--mobile-glass-background);
585
+ background-image: var(--mobile-glass-sheen);
586
+ box-shadow: var(--mobile-glass-shadow);
587
+ font-weight: var(--toolbar-search-font-weight);
588
+ backdrop-filter: var(--mobile-glass-backdrop-filter);
589
+ }
590
+
591
+ :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):has(> :is([data-slot="input"], [data-slot="select-control"]), > [data-slot="button-group"] > :is([data-slot="input"], [data-slot="select-control"])):not(:has(> [data-slot="input-group"], > [data-slot="button-group"] > [data-slot="input-group"])) > [data-slot="input"][data-variant]:has(> svg:first-child) {
592
+ --input-gutter: var(--toolbar-search-gutter);
593
+ --input-gap: var(--toolbar-search-icon-gap);
594
+ }
595
+
596
+ :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):has(> :is([data-slot="input"], [data-slot="select-control"]), > [data-slot="button-group"] > :is([data-slot="input"], [data-slot="select-control"])):not(:has(> [data-slot="input-group"], > [data-slot="button-group"] > [data-slot="input-group"])) > [data-slot="input"][data-variant] > svg:first-child {
597
+ flex: none;
598
+ width: var(--toolbar-search-icon-size);
599
+ height: var(--toolbar-search-icon-size);
600
+ }
601
+
602
+ /* An invalid field keeps the Input's error line over the glass. */
603
+ :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):has(> :is([data-slot="input"], [data-slot="select-control"]), > [data-slot="button-group"] > :is([data-slot="input"], [data-slot="select-control"])):not(:has(> [data-slot="input-group"], > [data-slot="button-group"] > [data-slot="input-group"])) > [data-slot="input"][data-variant][data-invalid] {
604
+ box-shadow: 0 0 0 1px var(--input-border-color-invalid) inset, var(--mobile-glass-shadow);
605
+ }
606
+
607
+ /* A button in the field (the microphone of the composer) keeps its 44px target around the field's line
608
+ without growing the 40px field, as in a row of a list. */
609
+ :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):has(> :is([data-slot="input"], [data-slot="select-control"]), > [data-slot="button-group"] > :is([data-slot="input"], [data-slot="select-control"])):not(:has(> [data-slot="input-group"], > [data-slot="button-group"] > [data-slot="input-group"])) > [data-slot="input"][data-variant] > button {
610
+ margin-block: calc((var(--input-size) - var(--input-adornment-hit-size, 44px)) / 2);
611
+ }
612
+
613
+ /* A select: the glass capsule of a bar's pull-down button, its label 17pt Medium 16 from the edge. */
614
+ :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):has(> :is([data-slot="input"], [data-slot="select-control"]), > [data-slot="button-group"] > :is([data-slot="input"], [data-slot="select-control"])):not(:has(> [data-slot="input-group"], > [data-slot="button-group"] > [data-slot="input-group"])) > [data-slot="select-control"] {
615
+ --select-control-size: var(--button-group-glass-item-size);
616
+ --select-control-gutter: var(--button-group-glass-label-gutter);
617
+ --select-control-radius: var(--radius-full);
618
+ --select-control-font-size: var(--toolbar-label-font-size);
619
+ --select-control-font-weight: var(--toolbar-label-font-weight);
620
+ --control-gutter-pill-scaling: 1;
621
+ backdrop-filter: var(--mobile-glass-backdrop-filter);
622
+ }
623
+
624
+ /* The glass shows at rest, a ghost select's too; an invalid one keeps its error line over it. */
625
+ :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):has(> :is([data-slot="input"], [data-slot="select-control"]), > [data-slot="button-group"] > :is([data-slot="input"], [data-slot="select-control"])):not(:has(> [data-slot="input-group"], > [data-slot="button-group"] > [data-slot="input-group"])) > [data-slot="select-control"]::before {
626
+ background-color: var(--mobile-glass-background);
627
+ background-image: var(--mobile-glass-sheen);
628
+ box-shadow: var(--mobile-glass-shadow);
629
+ opacity: 1;
630
+ }
631
+
632
+ :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):has(> :is([data-slot="input"], [data-slot="select-control"]), > [data-slot="button-group"] > :is([data-slot="input"], [data-slot="select-control"])):not(:has(> [data-slot="input-group"], > [data-slot="button-group"] > [data-slot="input-group"])) > [data-slot="select-control"][data-invalid]::before {
633
+ box-shadow: 0 0 0 1px var(--input-border-color-invalid) inset, var(--mobile-glass-shadow);
634
+ }
635
+
636
+ /* A button beside the field: a glass circle of its own, the bar's symbol in it. */
637
+ :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):has(> :is([data-slot="input"], [data-slot="select-control"]), > [data-slot="button-group"] > :is([data-slot="input"], [data-slot="select-control"])):not(:has(> [data-slot="input-group"], > [data-slot="button-group"] > [data-slot="input-group"])) > :where(button, a, [role="link"]) {
638
+ --button-size: var(--button-group-glass-item-size);
639
+ --button-uniform-size: var(--button-group-glass-item-size);
640
+ --button-radius: var(--radius-full);
641
+ --button-font-size: var(--toolbar-label-font-size);
642
+ --button-line-height: var(--toolbar-label-line-height);
643
+ --button-font-weight: var(--toolbar-label-font-weight);
644
+ font-weight: var(--toolbar-label-font-weight);
645
+ }
646
+
647
+ :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):has(> :is([data-slot="input"], [data-slot="select-control"]), > [data-slot="button-group"] > :is([data-slot="input"], [data-slot="select-control"])):not(:has(> [data-slot="input-group"], > [data-slot="button-group"] > [data-slot="input-group"])) > :where(button, a, [role="link"]):where(:not([data-navigation-action])) {
648
+ --button-icon-size: var(--toolbar-icon-size);
649
+ }
650
+
651
+ :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):has(> :is([data-slot="input"], [data-slot="select-control"]), > [data-slot="button-group"] > :is([data-slot="input"], [data-slot="select-control"])):not(:has(> [data-slot="input-group"], > [data-slot="button-group"] > [data-slot="input-group"])) > :where(button, a, [role="link"])[data-icon-size="sm"]:where(:not([data-navigation-action])) {
652
+ --button-icon-size: var(--toolbar-icon-size-sm);
653
+ }
654
+
655
+ :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):has(> :is([data-slot="input"], [data-slot="select-control"]), > [data-slot="button-group"] > :is([data-slot="input"], [data-slot="select-control"])):not(:has(> [data-slot="input-group"], > [data-slot="button-group"] > [data-slot="input-group"])) > :where(button, a, [role="link"]):where(:not([data-navigation-action], [data-uniform])) {
656
+ --button-gutter: var(--button-group-glass-label-gutter);
657
+ }
658
+
659
+ :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):has(> :is([data-slot="input"], [data-slot="select-control"]), > [data-slot="button-group"] > :is([data-slot="input"], [data-slot="select-control"])):not(:has(> [data-slot="input-group"], > [data-slot="button-group"] > [data-slot="input-group"])) > :where(button, a, [role="link"]):where(:not([data-disabled])):where([data-color="primary"], [data-color="secondary"]):where([data-variant="soft"], [data-variant="ghost"]) {
660
+ --button-mobile-material-background: var(--mobile-glass-background);
661
+ --button-mobile-material-sheen: var(--mobile-glass-sheen);
662
+ --button-mobile-material-shadow: var(--mobile-glass-shadow);
663
+ --button-mobile-material-backdrop-filter: var(--mobile-glass-backdrop-filter);
664
+ --button-mobile-material-opacity: 1;
665
+ --button-mobile-material-scale: 1;
666
+ --button-mobile-material-hover: var(--mobile-glass-background-hover);
667
+ --button-mobile-material-active: var(--mobile-glass-background-active);
668
+ }
669
+
670
+ :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *, [data-toolbar-row] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):has(> :is([data-slot="input"], [data-slot="select-control"]), > [data-slot="button-group"] > :is([data-slot="input"], [data-slot="select-control"])):not(:has(> [data-slot="input-group"], > [data-slot="button-group"] > [data-slot="input-group"])) > :where(button, a, [role="link"])[data-color="secondary"]:where(:not([data-disabled], [data-variant="solid"])) {
671
+ --button-text-color: var(--color-text);
672
+ --button-text-color-hover: var(--color-text);
673
+ }
674
+
675
+ /* Floating over the content, the composer of Messages: 40pt shapes 12 apart. In a bar the bar's sizes stand. */
676
+ :where([data-plex-layout="phone"]) .Root[data-mobile-material="glass"]:not([data-toolbar] *, [data-toolbar-row] *):has(> :is([data-slot="input"], [data-slot="select-control"]), > [data-slot="button-group"] > :is([data-slot="input"], [data-slot="select-control"])):not(:has(> [data-slot="input-group"], > [data-slot="button-group"] > [data-slot="input-group"])) {
677
+ --button-group-glass-item-size: var(--button-group-glass-field-size);
678
+ }
679
+
680
+ /* A bar's row keeps the bar's gap, under a large title too, where it stands in the content (the top bar's 10). */
681
+ :where([data-plex-layout="phone"]) :is([data-toolbar], [data-toolbar-row]) .Root {
682
+ --button-group-glass-field-gap: var(--toolbar-item-gap, var(--toolbar-top-item-gap));
683
+ }
377
684
  }