@plexui/styles 0.6.0 → 0.8.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.
@@ -280,7 +280,8 @@
280
280
  padding-inline-start: 0;
281
281
  }
282
282
 
283
- .Alert:has(> .CloseButton) .Message > :first-child {
283
+ /* The message holds a title or a description, named here: a :has() left of a subject of no class or attribute makes every change to the page restyle all of it */
284
+ .Alert:has(> .CloseButton) .Message > :first-child:where(.Title, .Description) {
284
285
  padding-inline-end: 34px;
285
286
  }
286
287
 
@@ -408,7 +409,8 @@
408
409
  padding-inline-start: 0;
409
410
  }
410
411
 
411
- :where([data-plex-layout="phone"]) .Alert:has(> .CloseButton) .Message > :first-child {
412
+ /* The message holds a title or a description, named here: a :has() left of a subject of no class or attribute makes every change to the page restyle all of it */
413
+ :where([data-plex-layout="phone"]) .Alert:has(> .CloseButton) .Message > :first-child:where(.Title, .Description) {
412
414
  padding-inline-end: 34px;
413
415
  }
414
416
 
@@ -2,7 +2,7 @@
2
2
  display: flex;
3
3
  }
4
4
 
5
- .Group > * ~ * {
5
+ .Group > :where(:not(:first-child)) {
6
6
  box-shadow: 0 0 0 var(--avatar-group-cutout-width) var(--avatar-group-cutout-color);
7
7
 
8
8
  /*
@@ -17,10 +17,10 @@
17
17
  flex-direction: row-reverse;
18
18
  }
19
19
 
20
- .Group[data-stack="start"] > * ~ * {
20
+ .Group[data-stack="start"] > :where(:not(:first-child)) {
21
21
  margin-inline-end: var(--avatar-group-spacing);
22
22
  }
23
- .Group[data-stack="end"] > * ~ * {
23
+ .Group[data-stack="end"] > :where(:not(:first-child)) {
24
24
  margin-inline-start: var(--avatar-group-spacing);
25
25
  }
26
26
  }
@@ -206,7 +206,7 @@
206
206
  padding: 0 calc(var(--badge-gutter) * var(--control-gutter-pill-scaling));
207
207
  }/* =============================================
208
208
  Remove
209
- ============================================= */.Badge:has(> .Remove) > span:not(.Remove) {
209
+ ============================================= *//* The text before the remove button (it comes last), found from the text's side: a :has() left of a subject of a tag alone makes every change to the page restyle much of it */.Badge > span:not(.Remove):has(~ .Remove) {
210
210
  min-width: 0;
211
211
  overflow: hidden;
212
212
  text-overflow: ellipsis;
@@ -97,12 +97,13 @@
97
97
  margin-inline-end: calc(var(--button-gutter) * var(--control-gutter-pill-scaling) * -1);
98
98
  }
99
99
 
100
- /* Uniform buttons zero-out button-gutter, requiring custom calcs */
101
- .Button:where([data-optically-align="start"][data-uniform]) {
100
+ /* Uniform buttons zero-out button-gutter, requiring custom calcs. They weigh as the pill rules above, which would
101
+ otherwise take a uniform pill back to its zero gutter. */
102
+ .Button:where([data-optically-align="start"])[data-uniform] {
102
103
  margin-inline-start: calc(((var(--button-size) - var(--button-icon-size)) / 2) * -1);
103
104
  }
104
105
 
105
- .Button:where([data-optically-align="end"][data-uniform]) {
106
+ .Button:where([data-optically-align="end"])[data-uniform] {
106
107
  margin-inline-end: calc(((var(--button-size) - var(--button-icon-size)) / 2) * -1);
107
108
  }
108
109
 
@@ -186,6 +186,8 @@
186
186
  }
187
187
 
188
188
  /* The capsule: a group of buttons alone. */
189
+ /* The buttons under these rules are named by their variant too (:where keeps the weight): with a :has() on the
190
+ group to their left, a subject of tags alone makes every change to the page restyle much of it */
189
191
  .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
192
  gap: var(--button-group-glass-gap);
191
193
  padding: 0 var(--button-group-glass-padding);
@@ -197,7 +199,7 @@
197
199
  }
198
200
 
199
201
  /* 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] *, [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(> * + *)) {
202
+ .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(> :not(:first-child))) {
201
203
  padding: 0;
202
204
  }
203
205
 
@@ -210,15 +212,15 @@
210
212
  padding: calc(var(--button-group-glass-vertical-padding) - var(--button-group-glass-vertical-gap) / 2) 0;
211
213
  }
212
214
 
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"]) {
215
+ .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"]):where([data-variant]) {
214
216
  height: calc(var(--button-group-glass-vertical-item-size) + var(--button-group-glass-vertical-gap));
215
217
  }
216
218
 
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(> * + *)) {
219
+ .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(> :not(:first-child))) {
218
220
  padding: 0;
219
221
  }
220
222
 
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"]) {
223
+ .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(> :not(:first-child))) > :where(button, a, [role="link"]):where([data-variant]) {
222
224
  height: var(--button-size);
223
225
  }
224
226
 
@@ -229,7 +231,7 @@
229
231
 
230
232
  /* Each button is a bar button with no surface of its own: the capsule is its glass, and a press tints it. A
231
233
  disabled ButtonLink renders a span with the link role. */
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"]) {
234
+ .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([data-variant]) {
233
235
  --button-size: var(--button-group-glass-item-size);
234
236
  --button-uniform-size: var(--button-group-glass-item-size);
235
237
  --button-radius: var(--radius-full);
@@ -240,24 +242,24 @@
240
242
  font-weight: var(--toolbar-label-font-weight);
241
243
  }
242
244
 
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"] {
245
+ .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([data-variant])[data-variant="solid"] {
244
246
  font-weight: var(--toolbar-label-prominent-font-weight);
245
247
  }
246
248
 
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])) {
249
+ .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([data-variant]):where(:not([data-navigation-action])) {
248
250
  --button-icon-size: var(--toolbar-icon-size);
249
251
  }
250
252
 
251
253
  /* A symbol with less ink takes the bar's smaller box, as in Toolbar.Group (see --toolbar-icon-size-sm). */
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])) {
254
+ .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([data-variant])[data-icon-size="sm"]:where(:not([data-navigation-action])) {
253
255
  --button-icon-size: var(--toolbar-icon-size-sm);
254
256
  }
255
257
 
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])) {
258
+ .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([data-variant]):where(:not([data-navigation-action], [data-uniform])) {
257
259
  --button-gutter: var(--button-group-glass-label-gutter);
258
260
  }
259
261
 
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"])) {
262
+ .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([data-variant]):where(:not([data-variant="solid"])) {
261
263
  --button-mobile-material-background: transparent;
262
264
  --button-mobile-material-sheen: none;
263
265
  --button-mobile-material-shadow: 0 0 #00000000;
@@ -274,7 +276,7 @@
274
276
  }
275
277
 
276
278
  /* A neutral symbol or label is the primary label, as the kit draws it; a disabled one keeps the tertiary. */
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"])) {
279
+ .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([data-variant])[data-color="secondary"]:where(:not([data-disabled], [data-variant="solid"])) {
278
280
  --button-text-color: var(--color-text);
279
281
  --button-text-color-hover: var(--color-text);
280
282
  }
@@ -304,7 +306,7 @@
304
306
  }
305
307
 
306
308
  .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"]) {
309
+ .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([data-variant]) {
308
310
  flex: none;
309
311
  }
310
312
 
@@ -378,7 +380,7 @@
378
380
  }
379
381
 
380
382
  /* 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"]) {
383
+ .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([data-variant]) {
382
384
  --button-size: var(--button-group-glass-item-size);
383
385
  --button-uniform-size: var(--button-group-glass-item-size);
384
386
  --button-radius: var(--radius-full);
@@ -388,19 +390,19 @@
388
390
  font-weight: var(--toolbar-label-font-weight);
389
391
  }
390
392
 
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])) {
393
+ .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([data-variant]):where(:not([data-navigation-action])) {
392
394
  --button-icon-size: var(--toolbar-icon-size);
393
395
  }
394
396
 
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])) {
397
+ .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([data-variant])[data-icon-size="sm"]:where(:not([data-navigation-action])) {
396
398
  --button-icon-size: var(--toolbar-icon-size-sm);
397
399
  }
398
400
 
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])) {
401
+ .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([data-variant]):where(:not([data-navigation-action], [data-uniform])) {
400
402
  --button-gutter: var(--button-group-glass-label-gutter);
401
403
  }
402
404
 
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"]) {
405
+ .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([data-variant]):where(:not([data-disabled])):where([data-color="primary"], [data-color="secondary"]):where([data-variant="soft"], [data-variant="ghost"]) {
404
406
  --button-mobile-material-background: var(--mobile-glass-background);
405
407
  --button-mobile-material-sheen: var(--mobile-glass-sheen);
406
408
  --button-mobile-material-shadow: var(--mobile-glass-shadow);
@@ -411,7 +413,7 @@
411
413
  --button-mobile-material-active: var(--mobile-glass-background-active);
412
414
  }
413
415
 
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"])) {
416
+ .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([data-variant])[data-color="secondary"]:where(:not([data-disabled], [data-variant="solid"])) {
415
417
  --button-text-color: var(--color-text);
416
418
  --button-text-color-hover: var(--color-text);
417
419
  }
@@ -443,6 +445,8 @@
443
445
  }
444
446
 
445
447
  /* The capsule: a group of buttons alone. */
448
+ /* The buttons under these rules are named by their variant too (:where keeps the weight): with a :has() on the
449
+ group to their left, a subject of tags alone makes every change to the page restyle much of it */
446
450
  :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"]))) {
447
451
  gap: var(--button-group-glass-gap);
448
452
  padding: 0 var(--button-group-glass-padding);
@@ -454,7 +458,7 @@
454
458
  }
455
459
 
456
460
  /* One button is a capsule of its own, as Back beside a group. */
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(> * + *)) {
461
+ :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(> :not(:first-child))) {
458
462
  padding: 0;
459
463
  }
460
464
 
@@ -467,15 +471,15 @@
467
471
  padding: calc(var(--button-group-glass-vertical-padding) - var(--button-group-glass-vertical-gap) / 2) 0;
468
472
  }
469
473
 
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"]) {
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"] > :where(button, a, [role="link"]):where([data-variant]) {
471
475
  height: calc(var(--button-group-glass-vertical-item-size) + var(--button-group-glass-vertical-gap));
472
476
  }
473
477
 
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(> * + *)) {
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(> :not(:first-child))) {
475
479
  padding: 0;
476
480
  }
477
481
 
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"]) {
482
+ :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(> :not(:first-child))) > :where(button, a, [role="link"]):where([data-variant]) {
479
483
  height: var(--button-size);
480
484
  }
481
485
 
@@ -486,7 +490,7 @@
486
490
 
487
491
  /* Each button is a bar button with no surface of its own: the capsule is its glass, and a press tints it. A
488
492
  disabled ButtonLink renders a span with the link role. */
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"]) {
493
+ :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([data-variant]) {
490
494
  --button-size: var(--button-group-glass-item-size);
491
495
  --button-uniform-size: var(--button-group-glass-item-size);
492
496
  --button-radius: var(--radius-full);
@@ -497,24 +501,24 @@
497
501
  font-weight: var(--toolbar-label-font-weight);
498
502
  }
499
503
 
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"] {
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([data-variant])[data-variant="solid"] {
501
505
  font-weight: var(--toolbar-label-prominent-font-weight);
502
506
  }
503
507
 
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])) {
508
+ :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([data-variant]):where(:not([data-navigation-action])) {
505
509
  --button-icon-size: var(--toolbar-icon-size);
506
510
  }
507
511
 
508
512
  /* A symbol with less ink takes the bar's smaller box, as in Toolbar.Group (see --toolbar-icon-size-sm). */
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])) {
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([data-variant])[data-icon-size="sm"]:where(:not([data-navigation-action])) {
510
514
  --button-icon-size: var(--toolbar-icon-size-sm);
511
515
  }
512
516
 
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])) {
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([data-variant]):where(:not([data-navigation-action], [data-uniform])) {
514
518
  --button-gutter: var(--button-group-glass-label-gutter);
515
519
  }
516
520
 
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"])) {
521
+ :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([data-variant]):where(:not([data-variant="solid"])) {
518
522
  --button-mobile-material-background: transparent;
519
523
  --button-mobile-material-sheen: none;
520
524
  --button-mobile-material-shadow: 0 0 #00000000;
@@ -531,7 +535,7 @@
531
535
  }
532
536
 
533
537
  /* A neutral symbol or label is the primary label, as the kit draws it; a disabled one keeps the tertiary. */
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"])) {
538
+ :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([data-variant])[data-color="secondary"]:where(:not([data-disabled], [data-variant="solid"])) {
535
539
  --button-text-color: var(--color-text);
536
540
  --button-text-color-hover: var(--color-text);
537
541
  }
@@ -560,7 +564,7 @@
560
564
  width: 100%;
561
565
  }
562
566
 
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"]) {
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"]: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"]):where([data-variant]) {
564
568
  flex: none;
565
569
  }
566
570
 
@@ -634,7 +638,7 @@
634
638
  }
635
639
 
636
640
  /* 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"]) {
641
+ :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([data-variant]) {
638
642
  --button-size: var(--button-group-glass-item-size);
639
643
  --button-uniform-size: var(--button-group-glass-item-size);
640
644
  --button-radius: var(--radius-full);
@@ -644,19 +648,19 @@
644
648
  font-weight: var(--toolbar-label-font-weight);
645
649
  }
646
650
 
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])) {
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"]):where([data-variant]):where(:not([data-navigation-action])) {
648
652
  --button-icon-size: var(--toolbar-icon-size);
649
653
  }
650
654
 
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])) {
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([data-variant])[data-icon-size="sm"]:where(:not([data-navigation-action])) {
652
656
  --button-icon-size: var(--toolbar-icon-size-sm);
653
657
  }
654
658
 
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])) {
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([data-variant]):where(:not([data-navigation-action], [data-uniform])) {
656
660
  --button-gutter: var(--button-group-glass-label-gutter);
657
661
  }
658
662
 
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"]) {
663
+ :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([data-variant]):where(:not([data-disabled])):where([data-color="primary"], [data-color="secondary"]):where([data-variant="soft"], [data-variant="ghost"]) {
660
664
  --button-mobile-material-background: var(--mobile-glass-background);
661
665
  --button-mobile-material-sheen: var(--mobile-glass-sheen);
662
666
  --button-mobile-material-shadow: var(--mobile-glass-shadow);
@@ -667,7 +671,7 @@
667
671
  --button-mobile-material-active: var(--mobile-glass-background-active);
668
672
  }
669
673
 
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"])) {
674
+ :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([data-variant])[data-color="secondary"]:where(:not([data-disabled], [data-variant="solid"])) {
671
675
  --button-text-color: var(--color-text);
672
676
  --button-text-color-hover: var(--color-text);
673
677
  }
@@ -455,7 +455,9 @@
455
455
  .Content .CloseButton[data-navigation-action]:focus-visible { outline-offset: -4px; }
456
456
 
457
457
 
458
- .Panel:has(> .CloseButton) > .Header > :first-child {
458
+ /* The close button comes first in the panel, so a plain sibling combinator finds it: a :has() on the panel with a
459
+ child of any kind as the subject makes every change to the page restyle all of it */
460
+ .Panel > .CloseButton ~ .Header > :first-child {
459
461
  padding-inline-end: calc(var(--dialog-mobile-action-size) - 0.75rem);
460
462
  }
461
463
 
@@ -543,7 +545,9 @@
543
545
  :where([data-plex-layout="phone"]) .Content .CloseButton[data-navigation-action]:focus-visible { outline-offset: -4px; }
544
546
 
545
547
 
546
- :where([data-plex-layout="phone"]) .Panel:has(> .CloseButton) > .Header > :first-child {
548
+ /* The close button comes first in the panel, so a plain sibling combinator finds it: a :has() on the panel with a
549
+ child of any kind as the subject makes every change to the page restyle all of it */
550
+ :where([data-plex-layout="phone"]) .Panel > .CloseButton ~ .Header > :first-child {
547
551
  padding-inline-end: calc(var(--dialog-mobile-action-size) - 0.75rem);
548
552
  }
549
553
 
@@ -680,11 +684,15 @@
680
684
  gap: 10px 16px;
681
685
  }
682
686
 
683
- .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"], :has(> :nth-child(3))) > *, .Content .Footer[data-mobile-layout="inline"] > * {
684
- flex: 1 0 auto;
685
- width: auto;
686
- min-width: calc(50% - 8px);
687
- }
687
+ /* The actions of a footer of fewer than three are told by their own places (the first of at most two, or the
688
+ second and last), not by a :has() on the footer: with a child of any kind as its subject such a rule makes
689
+ every change to the page restyle all of it */
690
+ .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"]) > :where(:first-child:nth-last-child(-n + 2), :nth-child(2):last-child),
691
+ .Content .Footer[data-mobile-layout="inline"] > * {
692
+ flex: 1 0 auto;
693
+ width: auto;
694
+ min-width: calc(50% - 8px);
695
+ }
688
696
 
689
697
  .Content .Footer[data-mobile-layout="inline"] > * {
690
698
  max-width: 100%;
@@ -731,9 +739,9 @@
731
739
  gap: var(--dialog-alert-action-gap, 8px);
732
740
  }
733
741
 
734
- .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"], :has(> :nth-child(3))) > * {
735
- min-width: calc(50% - var(--dialog-alert-action-gap, 8px) / 2);
736
- }
742
+ .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"]) > :where(:first-child:nth-last-child(-n + 2), :nth-child(2):last-child) {
743
+ min-width: calc(50% - var(--dialog-alert-action-gap, 8px) / 2);
744
+ }
737
745
 
738
746
  .Content[data-mobile-variant="sheet"] {
739
747
  --field-group-radius: 26px;
@@ -1075,22 +1083,24 @@
1075
1083
  Manually centred 35pt below it; owner 12.11, «нет такого в iOS»). A footer is written with its main action
1076
1084
  last, where a desktop row ends; Dialog.Footer turns the order in the page on a phone. Beside a solid action a
1077
1085
  soft, outline or ghost one takes the iOS tint (--color-accent, as the prominent bar button) or red for danger, at the
1078
- regular weight; a disabled one keeps the Button's disabled color. */
1079
- .Content[data-mobile-variant="sheet"] .Footer:not([data-mobile-layout="inline"]):has(> :where(button, a, [role="link"])[data-variant="solid"]) > :where(button, a, [role="link"]):not([data-variant="solid"]) {
1086
+ regular weight; a disabled one keeps the Button's disabled color. The other action is named by its variant
1087
+ (:where keeps the weight of the rule): a :has() on the footer with a subject of no class or attribute makes every
1088
+ change to the page restyle much of it. */
1089
+ .Content[data-mobile-variant="sheet"] .Footer:not([data-mobile-layout="inline"]):has(> :where(button, a, [role="link"])[data-variant="solid"]) > :where(button, a, [role="link"]):where([data-variant]):not([data-variant="solid"]) {
1080
1090
  font-weight: var(--font-weight-normal);
1081
1091
  }
1082
1092
 
1083
- .Content[data-mobile-variant="sheet"] .Footer:not([data-mobile-layout="inline"]):has(> :where(button, a, [role="link"])[data-variant="solid"]) > :where(button, a, [role="link"]):not([data-variant="solid"]):where(:not([data-disabled])) {
1093
+ .Content[data-mobile-variant="sheet"] .Footer:not([data-mobile-layout="inline"]):has(> :where(button, a, [role="link"])[data-variant="solid"]) > :where(button, a, [role="link"]):where([data-variant]):not([data-variant="solid"]):where(:not([data-disabled])) {
1084
1094
  --button-text-color: var(--color-text-accent);
1085
1095
  --button-text-color-hover: var(--color-text-accent);
1086
1096
  }
1087
1097
 
1088
- .Content[data-mobile-variant="sheet"] .Footer:not([data-mobile-layout="inline"]):has(> :where(button, a, [role="link"])[data-variant="solid"]) > :where(button, a, [role="link"]):not([data-variant="solid"]):where([data-color="danger"]:not([data-disabled])) {
1098
+ .Content[data-mobile-variant="sheet"] .Footer:not([data-mobile-layout="inline"]):has(> :where(button, a, [role="link"])[data-variant="solid"]) > :where(button, a, [role="link"]):where([data-variant]):not([data-variant="solid"]):where([data-color="danger"]:not([data-disabled])) {
1089
1099
  --button-text-color: var(--color-text-danger);
1090
1100
  --button-text-color-hover: var(--color-text-danger);
1091
1101
  }
1092
1102
 
1093
- .Content[data-mobile-variant="sheet"] .Footer:not([data-mobile-layout="inline"]):has(> :where(button, a, [role="link"])[data-variant="solid"]) > :where(button, a, [role="link"]):not([data-variant="solid"])::before {
1103
+ .Content[data-mobile-variant="sheet"] .Footer:not([data-mobile-layout="inline"]):has(> :where(button, a, [role="link"])[data-variant="solid"]) > :where(button, a, [role="link"]):where([data-variant]):not([data-variant="solid"])::before {
1094
1104
  background: none;
1095
1105
  box-shadow: none;
1096
1106
  }
@@ -1227,11 +1237,14 @@
1227
1237
  gap: 10px 16px;
1228
1238
  }
1229
1239
 
1230
- :where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"], :has(> :nth-child(3))) > *, :where([data-plex-layout="phone"]) .Content .Footer[data-mobile-layout="inline"] > * {
1231
- flex: 1 0 auto;
1232
- width: auto;
1233
- min-width: calc(50% - 8px);
1234
- }
1240
+ /* The actions of a footer of fewer than three are told by their own places (the first of at most two, or the
1241
+ second and last), not by a :has() on the footer: with a child of any kind as its subject such a rule makes
1242
+ every change to the page restyle all of it */
1243
+ :where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"]) > :where(:first-child:nth-last-child(-n + 2), :nth-child(2):last-child), :where([data-plex-layout="phone"]) .Content .Footer[data-mobile-layout="inline"] > * {
1244
+ flex: 1 0 auto;
1245
+ width: auto;
1246
+ min-width: calc(50% - 8px);
1247
+ }
1235
1248
 
1236
1249
  :where([data-plex-layout="phone"]) .Content .Footer[data-mobile-layout="inline"] > * {
1237
1250
  max-width: 100%;
@@ -1278,9 +1291,9 @@
1278
1291
  gap: var(--dialog-alert-action-gap, 8px);
1279
1292
  }
1280
1293
 
1281
- :where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"], :has(> :nth-child(3))) > * {
1282
- min-width: calc(50% - var(--dialog-alert-action-gap, 8px) / 2);
1283
- }
1294
+ :where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"]) > :where(:first-child:nth-last-child(-n + 2), :nth-child(2):last-child) {
1295
+ min-width: calc(50% - var(--dialog-alert-action-gap, 8px) / 2);
1296
+ }
1284
1297
 
1285
1298
  :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] {
1286
1299
  --field-group-radius: 26px;
@@ -1622,22 +1635,24 @@
1622
1635
  Manually centred 35pt below it; owner 12.11, «нет такого в iOS»). A footer is written with its main action
1623
1636
  last, where a desktop row ends; Dialog.Footer turns the order in the page on a phone. Beside a solid action a
1624
1637
  soft, outline or ghost one takes the iOS tint (--color-accent, as the prominent bar button) or red for danger, at the
1625
- regular weight; a disabled one keeps the Button's disabled color. */
1626
- :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Footer:not([data-mobile-layout="inline"]):has(> :where(button, a, [role="link"])[data-variant="solid"]) > :where(button, a, [role="link"]):not([data-variant="solid"]) {
1638
+ regular weight; a disabled one keeps the Button's disabled color. The other action is named by its variant
1639
+ (:where keeps the weight of the rule): a :has() on the footer with a subject of no class or attribute makes every
1640
+ change to the page restyle much of it. */
1641
+ :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Footer:not([data-mobile-layout="inline"]):has(> :where(button, a, [role="link"])[data-variant="solid"]) > :where(button, a, [role="link"]):where([data-variant]):not([data-variant="solid"]) {
1627
1642
  font-weight: var(--font-weight-normal);
1628
1643
  }
1629
1644
 
1630
- :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Footer:not([data-mobile-layout="inline"]):has(> :where(button, a, [role="link"])[data-variant="solid"]) > :where(button, a, [role="link"]):not([data-variant="solid"]):where(:not([data-disabled])) {
1645
+ :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Footer:not([data-mobile-layout="inline"]):has(> :where(button, a, [role="link"])[data-variant="solid"]) > :where(button, a, [role="link"]):where([data-variant]):not([data-variant="solid"]):where(:not([data-disabled])) {
1631
1646
  --button-text-color: var(--color-text-accent);
1632
1647
  --button-text-color-hover: var(--color-text-accent);
1633
1648
  }
1634
1649
 
1635
- :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Footer:not([data-mobile-layout="inline"]):has(> :where(button, a, [role="link"])[data-variant="solid"]) > :where(button, a, [role="link"]):not([data-variant="solid"]):where([data-color="danger"]:not([data-disabled])) {
1650
+ :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Footer:not([data-mobile-layout="inline"]):has(> :where(button, a, [role="link"])[data-variant="solid"]) > :where(button, a, [role="link"]):where([data-variant]):not([data-variant="solid"]):where([data-color="danger"]:not([data-disabled])) {
1636
1651
  --button-text-color: var(--color-text-danger);
1637
1652
  --button-text-color-hover: var(--color-text-danger);
1638
1653
  }
1639
1654
 
1640
- :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Footer:not([data-mobile-layout="inline"]):has(> :where(button, a, [role="link"])[data-variant="solid"]) > :where(button, a, [role="link"]):not([data-variant="solid"])::before {
1655
+ :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Footer:not([data-mobile-layout="inline"]):has(> :where(button, a, [role="link"])[data-variant="solid"]) > :where(button, a, [role="link"]):where([data-variant]):not([data-variant="solid"])::before {
1641
1656
  background: none;
1642
1657
  box-shadow: none;
1643
1658
  }
@@ -1769,5 +1784,31 @@
1769
1784
  .Step[data-exiting] {
1770
1785
  visibility: hidden;
1771
1786
  }
1787
+ }/* The question before a close with changes (`confirmClose`) at a phone Sheet's Close: an iOS confirmation over the
1788
+ sheet, measured on the iOS 27.2 simulator (a sheet's Close with confirmationDialog, iPhone 17): a glass popover
1789
+ 240 wide over the Close, its corner 6 before the button's, 10 from the screen's edge (width, offsets and
1790
+ collision padding are Dialog's props on the Popover); the question 17/22 regular, 21 under the top and 29 from
1791
+ the sides; 17 under it a full-width 48px pill, 16 from the edges, the fill of an alert's actions with a red
1792
+ label. The glass, the shadow and the 34px corner are the phone popover's own. */.ConfirmClose {
1793
+ --button-size-md: 48px;
1794
+ --button-font-size-md: 17px;
1795
+ --button-line-height-md: 22px;
1796
+ --button-gutter-md: 16px;
1797
+
1798
+ padding: 21px 16px 16px;
1799
+ }.ConfirmCloseMessage {
1800
+ margin: 0 13px 17px;
1801
+ color: var(--color-text);
1802
+ font-size: 17px;
1803
+ font-weight: var(--font-weight-normal);
1804
+ line-height: 22px;
1805
+ }.ConfirmClose .ConfirmCloseAction[data-color="danger"] {
1806
+ --button-background-color: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
1807
+ --button-background-color-hover: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
1808
+ --button-background-color-active: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
1809
+ --button-text-color: var(--color-text-danger);
1810
+ --button-text-color-hover: var(--color-text-danger);
1811
+
1812
+ font-weight: var(--dialog-alert-action-font-weight, 510);
1772
1813
  }
1773
1814
  }