@plexui/styles 0.4.0 → 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.
- package/dist/es/components/Alert/Alert.module.css +0 -2
- package/dist/es/components/ButtonGroup/ButtonGroup.module.css +312 -5
- package/dist/es/components/Slider/Slider.module.css +25 -19
- package/dist/es/components/Tabs/Tabs.module.css +24 -8
- package/dist/es/styles/touch.css +6 -8
- package/dist/es/styles/variables-components.css +6 -0
- package/package.json +1 -1
|
@@ -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,7 +167,7 @@
|
|
|
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
|
|
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
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"]))) {
|
|
@@ -201,16 +201,27 @@
|
|
|
201
201
|
padding: 0;
|
|
202
202
|
}
|
|
203
203
|
|
|
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. */
|
|
204
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:
|
|
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
|
|
|
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
|
+
|
|
210
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
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;
|
|
@@ -271,6 +282,149 @@
|
|
|
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
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"]))) {
|
|
@@ -304,16 +458,27 @@
|
|
|
304
458
|
padding: 0;
|
|
305
459
|
}
|
|
306
460
|
|
|
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. */
|
|
307
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:
|
|
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
|
|
|
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
|
+
|
|
313
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
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;
|
|
@@ -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
|
}
|
|
@@ -144,13 +144,13 @@
|
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
/* The 2xs ghost button stands as high as the value field beside it; its glyph is the reset arrow alone.
|
|
147
|
-
The data attribute wins over the Button's own size rules. */
|
|
148
|
-
.Reset[data-size="2xs"] {
|
|
147
|
+
The data attribute wins over the Button's own size rules. A phone's reset is uniform, and the Button sizes it. */
|
|
148
|
+
.Reset[data-size="2xs"]:not([data-uniform]) {
|
|
149
149
|
width: var(--slider-reset-size, var(--control-size-2xs));
|
|
150
150
|
height: var(--slider-reset-size, var(--control-size-2xs));
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
.Reset[data-size="2xs"] svg {
|
|
153
|
+
.Reset[data-size="2xs"]:not([data-uniform]) svg {
|
|
154
154
|
width: var(--slider-reset-icon-size, 14px);
|
|
155
155
|
height: var(--slider-reset-icon-size, 14px);
|
|
156
156
|
}/* The value is an outline field of the 2xs size (24px, 6px gutter, the Input's outline borders) that shows
|
|
@@ -248,20 +248,23 @@
|
|
|
248
248
|
margin-inline-end: 0;
|
|
249
249
|
}
|
|
250
250
|
|
|
251
|
+
/* The value is as wide as its digits, so the reset stands 8px from them whatever their count; it stays 44px
|
|
252
|
+
tall, and the row's label focuses it too. */
|
|
251
253
|
.ValueInput {
|
|
252
|
-
min-width: 44px;
|
|
253
254
|
height: 44px;
|
|
254
255
|
}
|
|
255
256
|
|
|
256
|
-
/* The reset
|
|
257
|
-
|
|
258
|
-
.
|
|
259
|
-
|
|
257
|
+
/* The reset, the kit's small round gray button (Slider.tsx), stands 8px before the value, its 44px target
|
|
258
|
+
reaching to the digits and no further. Hidden, it keeps its place, so the value does not move. */
|
|
259
|
+
.SliderLabel {
|
|
260
|
+
gap: 8px;
|
|
260
261
|
}
|
|
261
262
|
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
263
|
+
/* With touch.css the circle is 28px and its target reaches 8px past it, to the digits. A smaller circle (the
|
|
264
|
+
standard 24px without touch.css) stands farther off, so its target never takes a tap on the value. */
|
|
265
|
+
.Reset[data-uniform] {
|
|
266
|
+
margin-inline-end: max(0px, calc((44px - var(--button-uniform-size, 28px)) / 2 - 8px));
|
|
267
|
+
}
|
|
265
268
|
|
|
266
269
|
.SliderWrap[data-orientation="vertical"] .Slider {
|
|
267
270
|
width: max(44px, var(--slider-control-height, 44px));
|
|
@@ -334,20 +337,23 @@
|
|
|
334
337
|
margin-inline-end: 0;
|
|
335
338
|
}
|
|
336
339
|
|
|
340
|
+
/* The value is as wide as its digits, so the reset stands 8px from them whatever their count; it stays 44px
|
|
341
|
+
tall, and the row's label focuses it too. */
|
|
337
342
|
:where([data-plex-layout="phone"]) .ValueInput {
|
|
338
|
-
min-width: 44px;
|
|
339
343
|
height: 44px;
|
|
340
344
|
}
|
|
341
345
|
|
|
342
|
-
/* The reset
|
|
343
|
-
|
|
344
|
-
:where([data-plex-layout="phone"]) .
|
|
345
|
-
|
|
346
|
+
/* The reset, the kit's small round gray button (Slider.tsx), stands 8px before the value, its 44px target
|
|
347
|
+
reaching to the digits and no further. Hidden, it keeps its place, so the value does not move. */
|
|
348
|
+
:where([data-plex-layout="phone"]) .SliderLabel {
|
|
349
|
+
gap: 8px;
|
|
346
350
|
}
|
|
347
351
|
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
352
|
+
/* With touch.css the circle is 28px and its target reaches 8px past it, to the digits. A smaller circle (the
|
|
353
|
+
standard 24px without touch.css) stands farther off, so its target never takes a tap on the value. */
|
|
354
|
+
:where([data-plex-layout="phone"]) .Reset[data-uniform] {
|
|
355
|
+
margin-inline-end: max(0px, calc((44px - var(--button-uniform-size, 28px)) / 2 - 8px));
|
|
356
|
+
}
|
|
351
357
|
|
|
352
358
|
:where([data-plex-layout="phone"]) .SliderWrap[data-orientation="vertical"] .Slider {
|
|
353
359
|
width: max(44px, var(--slider-control-height, 44px));
|
|
@@ -711,17 +711,25 @@
|
|
|
711
711
|
in content (SwiftUI Picker .segmented, iOS 27.2) and on glass in a bar (iOS 27.2, Calendar IMG_5433);
|
|
712
712
|
it has no underline tabs and no vertical segments.
|
|
713
713
|
============================================= */@media (max-width: 767px) {
|
|
714
|
-
/* Horizontal tabs of either variant are the segmented control. Its segments share one width,
|
|
715
|
-
UISegmentedControl
|
|
716
|
-
|
|
714
|
+
/* Horizontal tabs of either variant are the segmented control. Its segments share one width, the
|
|
715
|
+
widest label's, as UISegmentedControl at its own width (iOS 27.2, every kit example is 2 to 5 equal
|
|
716
|
+
segments): the script measures it (segments.ts, asked for by --tabs-equal-segments) and sets the
|
|
717
|
+
track. Where equal segments do not fit, each takes its label and the same air around it, as
|
|
718
|
+
apportionsSegmentWidthsByContent does (ref-app segmented-hug, owner 13.11: a long label 4px from its
|
|
719
|
+
selection beside short ones floating in wide segments read as broken padding). A segment never
|
|
720
|
+
narrows below its content, so tabs that do not fit still scroll. A block control fills its
|
|
717
721
|
container, as the 370px kit examples do, and its labels shorten instead. */
|
|
718
722
|
.Tabs:where([data-orientation="horizontal"]) {
|
|
723
|
+
--tabs-equal-segments: 1;
|
|
724
|
+
|
|
719
725
|
display: inline-grid;
|
|
720
|
-
grid-auto-columns: minmax(max-content,
|
|
726
|
+
grid-auto-columns: var(--tabs-segment-track, minmax(max-content, auto));
|
|
721
727
|
grid-auto-flow: column;
|
|
722
728
|
}
|
|
723
729
|
|
|
724
730
|
.Tabs:where([data-orientation="horizontal"][data-block]) {
|
|
731
|
+
--tabs-equal-segments: 0;
|
|
732
|
+
|
|
725
733
|
display: grid;
|
|
726
734
|
grid-auto-columns: minmax(0, 1fr);
|
|
727
735
|
}
|
|
@@ -963,17 +971,25 @@
|
|
|
963
971
|
visibility: visible;
|
|
964
972
|
}
|
|
965
973
|
}
|
|
966
|
-
/* Horizontal tabs of either variant are the segmented control. Its segments share one width,
|
|
967
|
-
UISegmentedControl
|
|
968
|
-
|
|
974
|
+
/* Horizontal tabs of either variant are the segmented control. Its segments share one width, the
|
|
975
|
+
widest label's, as UISegmentedControl at its own width (iOS 27.2, every kit example is 2 to 5 equal
|
|
976
|
+
segments): the script measures it (segments.ts, asked for by --tabs-equal-segments) and sets the
|
|
977
|
+
track. Where equal segments do not fit, each takes its label and the same air around it, as
|
|
978
|
+
apportionsSegmentWidthsByContent does (ref-app segmented-hug, owner 13.11: a long label 4px from its
|
|
979
|
+
selection beside short ones floating in wide segments read as broken padding). A segment never
|
|
980
|
+
narrows below its content, so tabs that do not fit still scroll. A block control fills its
|
|
969
981
|
container, as the 370px kit examples do, and its labels shorten instead. */
|
|
970
982
|
:where([data-plex-layout="phone"]) .Tabs:where([data-orientation="horizontal"]) {
|
|
983
|
+
--tabs-equal-segments: 1;
|
|
984
|
+
|
|
971
985
|
display: inline-grid;
|
|
972
|
-
grid-auto-columns: minmax(max-content,
|
|
986
|
+
grid-auto-columns: var(--tabs-segment-track, minmax(max-content, auto));
|
|
973
987
|
grid-auto-flow: column;
|
|
974
988
|
}
|
|
975
989
|
|
|
976
990
|
:where([data-plex-layout="phone"]) .Tabs:where([data-orientation="horizontal"][data-block]) {
|
|
991
|
+
--tabs-equal-segments: 0;
|
|
992
|
+
|
|
977
993
|
display: grid;
|
|
978
994
|
grid-auto-columns: minmax(0, 1fr);
|
|
979
995
|
}
|
package/dist/es/styles/touch.css
CHANGED
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
--button-size-3xl: var(--control-size-3xl);
|
|
188
188
|
}
|
|
189
189
|
:where(:is(button, a, [role="link"])[data-variant]:not([data-variant="ghost"])[data-color][data-size]) {
|
|
190
|
-
--button-font-weight:
|
|
190
|
+
--button-font-weight: 510;
|
|
191
191
|
}
|
|
192
192
|
:where(:is(button, a, [role="link"])[data-size]:not([data-uniform])) {
|
|
193
193
|
--button-icon-only-min-width: var(--button-size);
|
|
@@ -477,6 +477,7 @@
|
|
|
477
477
|
--page-control-dot-color: var(--mobile-label-tertiary);
|
|
478
478
|
--toggle-group-round-size: 35px;
|
|
479
479
|
--toggle-group-round-font-size: 17px;
|
|
480
|
+
--toggle-group-round-font-weight: 590;
|
|
480
481
|
--checkbox-target-size: 44px;
|
|
481
482
|
--checkbox-target-offset: 0px;
|
|
482
483
|
--checkbox-label-inset: 11px;
|
|
@@ -501,7 +502,6 @@
|
|
|
501
502
|
--radio-group-ring: none;
|
|
502
503
|
--radio-group-dot-display: none;
|
|
503
504
|
--radio-group-checkmark-display: block;
|
|
504
|
-
--slider-reset-size: 44px;
|
|
505
505
|
--slider-label-height: 44px;
|
|
506
506
|
--slider-label-gap: 0px;
|
|
507
507
|
--slider-label-font-size: 17px;
|
|
@@ -511,8 +511,6 @@
|
|
|
511
511
|
--slider-value-color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
512
512
|
--slider-value-color-focus: var(--color-text);
|
|
513
513
|
--slider-unit-color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
514
|
-
--slider-reset-icon-size: 20px;
|
|
515
|
-
--slider-reset-color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
516
514
|
--slider-control-height: 52px;
|
|
517
515
|
--slider-padding-bottom: 0px;
|
|
518
516
|
--slider-track-size: 6px;
|
|
@@ -735,6 +733,7 @@
|
|
|
735
733
|
--button-font-size-xl: var(--toggle-group-round-font-size);
|
|
736
734
|
--button-font-size-2xl: var(--toggle-group-round-font-size);
|
|
737
735
|
--button-font-size-3xl: var(--toggle-group-round-font-size);
|
|
736
|
+
--button-font-weight: var(--toggle-group-round-font-weight);
|
|
738
737
|
}
|
|
739
738
|
html [data-variant][data-orientation="horizontal"][data-block] {
|
|
740
739
|
--tabs-block-min-width: 0px;
|
|
@@ -848,7 +847,7 @@
|
|
|
848
847
|
--button-size-3xl: var(--control-size-3xl);
|
|
849
848
|
}
|
|
850
849
|
:where([data-plex-layout="phone"]) :where(:is(button, a, [role="link"])[data-variant]:not([data-variant="ghost"])[data-color][data-size]) {
|
|
851
|
-
--button-font-weight:
|
|
850
|
+
--button-font-weight: 510;
|
|
852
851
|
}
|
|
853
852
|
:where([data-plex-layout="phone"]) :where(:is(button, a, [role="link"])[data-size]:not([data-uniform])) {
|
|
854
853
|
--button-icon-only-min-width: var(--button-size);
|
|
@@ -1138,6 +1137,7 @@ html:root :where([data-plex-layout="phone"]) {
|
|
|
1138
1137
|
--page-control-dot-color: var(--mobile-label-tertiary);
|
|
1139
1138
|
--toggle-group-round-size: 35px;
|
|
1140
1139
|
--toggle-group-round-font-size: 17px;
|
|
1140
|
+
--toggle-group-round-font-weight: 590;
|
|
1141
1141
|
--checkbox-target-size: 44px;
|
|
1142
1142
|
--checkbox-target-offset: 0px;
|
|
1143
1143
|
--checkbox-label-inset: 11px;
|
|
@@ -1162,7 +1162,6 @@ html:root :where([data-plex-layout="phone"]) {
|
|
|
1162
1162
|
--radio-group-ring: none;
|
|
1163
1163
|
--radio-group-dot-display: none;
|
|
1164
1164
|
--radio-group-checkmark-display: block;
|
|
1165
|
-
--slider-reset-size: 44px;
|
|
1166
1165
|
--slider-label-height: 44px;
|
|
1167
1166
|
--slider-label-gap: 0px;
|
|
1168
1167
|
--slider-label-font-size: 17px;
|
|
@@ -1172,8 +1171,6 @@ html:root :where([data-plex-layout="phone"]) {
|
|
|
1172
1171
|
--slider-value-color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
1173
1172
|
--slider-value-color-focus: var(--color-text);
|
|
1174
1173
|
--slider-unit-color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
1175
|
-
--slider-reset-icon-size: 20px;
|
|
1176
|
-
--slider-reset-color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
1177
1174
|
--slider-control-height: 52px;
|
|
1178
1175
|
--slider-padding-bottom: 0px;
|
|
1179
1176
|
--slider-track-size: 6px;
|
|
@@ -1393,6 +1390,7 @@ html:root:where([data-theme="dark"]) :where([data-plex-layout="phone"]), html:ro
|
|
|
1393
1390
|
--button-font-size-xl: var(--toggle-group-round-font-size);
|
|
1394
1391
|
--button-font-size-2xl: var(--toggle-group-round-font-size);
|
|
1395
1392
|
--button-font-size-3xl: var(--toggle-group-round-font-size);
|
|
1393
|
+
--button-font-weight: var(--toggle-group-round-font-weight);
|
|
1396
1394
|
}
|
|
1397
1395
|
html :where([data-plex-layout="phone"]) [data-variant][data-orientation="horizontal"][data-block] {
|
|
1398
1396
|
--tabs-block-min-width: 0px;
|
|
@@ -172,6 +172,12 @@
|
|
|
172
172
|
--button-group-glass-vertical-padding: 4px;
|
|
173
173
|
--button-group-glass-nested-gap: var(--toolbar-top-item-gap);
|
|
174
174
|
--button-group-glass-label-gutter: var(--toolbar-label-gutter);
|
|
175
|
+
/* A field among glass buttons floating over the content, the composer of iOS 27.2 Messages (New Message, @3x in the
|
|
176
|
+
simulator): a 40pt circle of the plus and a 40pt field, their edges drawn 0.67 outside, 12 apart, the caret
|
|
177
|
+
15.67 inside the field. In a Toolbar the field and its buttons take the bar's size and gap. */
|
|
178
|
+
--button-group-glass-field-size: 40px;
|
|
179
|
+
--button-group-glass-field-gap: 12px;
|
|
180
|
+
--button-group-glass-field-gutter: 16px;
|
|
175
181
|
|
|
176
182
|
/* =============================================
|
|
177
183
|
Accordion
|