@plexui/styles 0.1.46 → 0.2.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/Accordion/Accordion.module.css +54 -1
- package/dist/es/components/Alert/Alert.module.css +75 -37
- package/dist/es/components/Button/Button.module.css +36 -28
- package/dist/es/components/ButtonGroup/ButtonGroup.module.css +15 -3
- package/dist/es/components/ColorPicker/ColorPicker.module.css +42 -70
- package/dist/es/components/ContextMenu/ContextMenu.module.css +1 -1
- package/dist/es/components/DatePicker/Calendar.module.css +16 -14
- package/dist/es/components/DateRangePicker/Calendar.module.css +16 -68
- package/dist/es/components/Dialog/Dialog.module.css +98 -59
- package/dist/es/components/Field/Field.module.css +56 -22
- package/dist/es/components/Input/Input.module.css +100 -18
- package/dist/es/components/Menu/Menu.module.css +30 -34
- package/dist/es/components/Page/Page.module.css +38 -0
- package/dist/es/components/Popover/Popover.module.css +10 -11
- package/dist/es/components/ProgressSteps/ProgressSteps.module.css +17 -0
- package/dist/es/components/RadioGroup/RadioGroup.module.css +7 -3
- package/dist/es/components/Select/Select.module.css +300 -38
- package/dist/es/components/SelectControl/SelectControl.module.css +34 -10
- package/dist/es/components/Sidebar/Sidebar.module.css +4 -2
- package/dist/es/components/Slider/Slider.module.css +46 -2
- package/dist/es/components/Sortable/Sortable.module.css +3 -2
- package/dist/es/components/StatsCard/StatsCard.module.css +269 -0
- package/dist/es/components/Stepper/Stepper.module.css +7 -4
- package/dist/es/components/SwipeActions/SwipeActions.module.css +32 -17
- package/dist/es/components/Switch/Switch.module.css +6 -5
- package/dist/es/components/TabBar/TabBar.module.css +128 -12
- package/dist/es/components/Tabs/Tabs.module.css +238 -43
- package/dist/es/components/Toast/Toast.module.css +4 -3
- package/dist/es/components/Toolbar/Toolbar.module.css +92 -58
- package/dist/es/styles/mobile-materials.css +65 -24
- package/dist/es/styles/touch.css +321 -121
- package/dist/es/styles/variables-components.css +236 -124
- package/package.json +1 -1
- package/dist/es/components/StatCard/StatCard.module.css +0 -234
|
@@ -167,6 +167,8 @@
|
|
|
167
167
|
}.OptionDescription {
|
|
168
168
|
font-weight: var(--font-weight-normal);
|
|
169
169
|
color: var(--color-text-secondary);
|
|
170
|
+
}/* A tooltip's text under the label is the phone's form of it (below); a desktop shows the info symbol */.OptionTooltipText {
|
|
171
|
+
display: none;
|
|
170
172
|
}/* Option group: the `group` around a heading and its rows. No box of its own:
|
|
171
173
|
a plain block in the list's block flow, with no padding or border, so the
|
|
172
174
|
rows sit exactly where they would as the list's own children and the
|
|
@@ -347,14 +349,33 @@ background: var(--gray-25);
|
|
|
347
349
|
white-space: nowrap;
|
|
348
350
|
pointer-events: none;
|
|
349
351
|
}/* iPhone menu selection geometry. Search and multiple selection keep their behavior. */@media (max-width: 767px) {
|
|
350
|
-
/*
|
|
352
|
+
/* Lists are glass, as the Menu is (see --menu-mobile-background). */
|
|
351
353
|
.MenuList {
|
|
352
354
|
background: var(--menu-mobile-background, var(--color-surface-elevated));
|
|
355
|
+
backdrop-filter: var(--menu-mobile-backdrop-filter, none);
|
|
353
356
|
}
|
|
354
357
|
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
+
/* A list is the 250pt of an iOS menu, as the pop-up menu of a picker is (ref-app pickers, block 8: 250pt over a
|
|
359
|
+
value of 76pt, which it covers, Select.tsx), whatever its options: a long label or description wraps
|
|
360
|
+
(pickers-desc-uikit: Owner's description on three lines, the panel still 250pt). A wider trigger keeps its width,
|
|
361
|
+
and a list's own minimum width wins. A list given its own width (data-list-sized) keeps it, as on a larger
|
|
362
|
+
screen, and a maximum below the 250pt caps it. */
|
|
363
|
+
.MenuList:not([data-list-sized]) {
|
|
364
|
+
min-width: var(
|
|
365
|
+
--select-list-min-width,
|
|
366
|
+
max(min(var(--menu-default-min-width, 0px), var(--select-list-max-width, 100vw)), var(--radix-popover-trigger-width))
|
|
367
|
+
);
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
.MenuList[data-list-width="auto"] {
|
|
371
|
+
width: var(--menu-default-width, auto);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
/* A list is as tall as its rows, up to the screen's edge, as a menu is (Menu.module.css; iOS-menu IMG_5704, 5706: a
|
|
375
|
+
native menu scrolls only past the screen), not the desktop's 400px; a list's own maximum still wins. */
|
|
376
|
+
.MenuInner {
|
|
377
|
+
max-height: min(var(--select-list-max-height, 1200px), var(--radix-popover-content-available-height));
|
|
378
|
+
}
|
|
358
379
|
|
|
359
380
|
.Option,
|
|
360
381
|
.Option[data-selected],
|
|
@@ -372,21 +393,83 @@ background: var(--gray-25);
|
|
|
372
393
|
-webkit-tap-highlight-color: transparent;
|
|
373
394
|
}
|
|
374
395
|
|
|
375
|
-
.
|
|
396
|
+
/* A phone's list has no search (Select.tsx: an iOS menu has none, a long list scrolls, IMG_5490) */
|
|
376
397
|
.ActionsContainer {
|
|
377
398
|
flex-shrink: 0;
|
|
378
399
|
}
|
|
379
400
|
|
|
401
|
+
/* Actions follow the options as a section of a menu does (ref-app pickers-actions-uikit: a pop-up menu with a
|
|
402
|
+
selection, then Create project and Organization overview): an inset line 24pt from the panel's edges, 10pt
|
|
403
|
+
above and below it, as Menu's separator (--menu-separator-gutter), and no fade over the list. A row is 42pt with
|
|
404
|
+
a 20px symbol centred 40pt in and its label from 66; in a list with checkmarks the symbol stands after their
|
|
405
|
+
column, centred at 55.7pt, and the label starts at 79.7 (native 54.3 and 79.3), as Menu's rows (touch.css). A
|
|
406
|
+
long label wraps, as Organization overview does. */
|
|
407
|
+
.ActionsContainer {
|
|
408
|
+
border-top: 0;
|
|
409
|
+
padding-top: calc(var(--menu-gutter) + 1px);
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.ActionsContainer::before {
|
|
413
|
+
inset: 0 calc(var(--menu-padding-inline, var(--menu-gutter)) + 8px) auto;
|
|
414
|
+
width: auto;
|
|
415
|
+
height: 1px;
|
|
416
|
+
margin: 0;
|
|
417
|
+
background: var(--menu-separator-background-color);
|
|
418
|
+
-webkit-mask-image: none;
|
|
419
|
+
mask-image: none;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
.Action {
|
|
423
|
+
display: flex;
|
|
424
|
+
align-items: center;
|
|
425
|
+
min-height: var(--menu-row-min-height, 42px);
|
|
426
|
+
padding-block: 0;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
.Action::before {
|
|
430
|
+
inset-block: 0;
|
|
431
|
+
inset-inline: calc(var(--menu-gutter) - var(--menu-padding-inline, var(--menu-gutter)));
|
|
432
|
+
background: var(--menu-press-background, var(--menu-item-background-color));
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.Action:active::before {
|
|
436
|
+
opacity: 1;
|
|
437
|
+
transition-duration: 0s;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
.ActionInner {
|
|
441
|
+
flex: 1;
|
|
442
|
+
gap: var(--menu-leading-icon-gap, 8px);
|
|
443
|
+
padding-block: var(--menu-row-padding-block, 10px);
|
|
444
|
+
line-height: var(--menu-line-height);
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
.Action svg {
|
|
448
|
+
width: var(--menu-leading-icon-size, 20px);
|
|
449
|
+
height: var(--menu-leading-icon-size, 20px);
|
|
450
|
+
margin-inline: calc((var(--menu-leading-icon-slot, 36px) - var(--menu-leading-icon-size, 20px)) / 2);
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
.MenuList:has(.OptionIndicatorSlot[data-position]) .ActionInner {
|
|
454
|
+
gap: var(--menu-check-icon-gap, 14px);
|
|
455
|
+
padding-inline-start: calc(var(--menu-check-column, 13px) + var(--menu-check-gap, 8.5px));
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
.MenuList:has(.OptionIndicatorSlot[data-position]) .Action svg {
|
|
459
|
+
margin-inline: var(--menu-check-icon-offset, 2px) 0;
|
|
460
|
+
}
|
|
461
|
+
|
|
380
462
|
.OptionsList {
|
|
381
463
|
min-height: 0;
|
|
382
464
|
}
|
|
383
465
|
|
|
384
|
-
/*
|
|
466
|
+
/* A row is 42pt, as a menu row is (Menu.module.css) and the rows of a picker's pop-up menu are (ref-app pickers,
|
|
467
|
+
block 8: labels 126px apart at @3x); text grows naturally, and the pressed surface covers the whole row. */
|
|
385
468
|
.Option:has(> .PressableInner > .OptionLeading) {
|
|
386
469
|
display: grid;
|
|
387
470
|
grid-template-columns: minmax(0, 1fr);
|
|
388
471
|
align-content: center;
|
|
389
|
-
min-height:
|
|
472
|
+
min-height: var(--menu-row-min-height, 42px);
|
|
390
473
|
padding-block: 0;
|
|
391
474
|
}
|
|
392
475
|
|
|
@@ -412,7 +495,7 @@ background: var(--gray-25);
|
|
|
412
495
|
|
|
413
496
|
.OptionLeading {
|
|
414
497
|
gap: 2px;
|
|
415
|
-
padding-block: 10px;
|
|
498
|
+
padding-block: var(--menu-row-padding-block, 10px);
|
|
416
499
|
}
|
|
417
500
|
|
|
418
501
|
.OptionLeading > .OptionInner {
|
|
@@ -428,7 +511,7 @@ background: var(--gray-25);
|
|
|
428
511
|
.OptionIndicatorSlot {
|
|
429
512
|
justify-content: center;
|
|
430
513
|
width: var(--menu-check-column, 13px);
|
|
431
|
-
height: 22px;
|
|
514
|
+
height: var(--menu-check-slot-height, 22px);
|
|
432
515
|
}
|
|
433
516
|
|
|
434
517
|
:is(.PressableInner, .OptionHardLimitHeading):has(> .OptionIndicatorSlot) {
|
|
@@ -441,8 +524,7 @@ background: var(--gray-25);
|
|
|
441
524
|
.MenuList:has(.OptionIndicatorSlot[data-position]) :is(
|
|
442
525
|
.OptionGroupHeading,
|
|
443
526
|
.OptionHardLimitHeading:not(:has(> .OptionIndicatorSlot)),
|
|
444
|
-
.OptionsLimit > .PressableInner:not(:has(> .OptionIndicatorSlot))
|
|
445
|
-
.ActionInner
|
|
527
|
+
.OptionsLimit > .PressableInner:not(:has(> .OptionIndicatorSlot))
|
|
446
528
|
) {
|
|
447
529
|
padding-inline-start: var(--menu-check-label-inset, calc(8px + 13px + 8.5px));
|
|
448
530
|
}
|
|
@@ -458,19 +540,35 @@ background: var(--gray-25);
|
|
|
458
540
|
height: var(--menu-check-size, 18px);
|
|
459
541
|
}
|
|
460
542
|
|
|
543
|
+
/* With the weight of a menu's checkmark (--menu-check-stroke, touch.css) */
|
|
544
|
+
.OptionCheck path {
|
|
545
|
+
stroke: currentColor;
|
|
546
|
+
stroke-width: var(--menu-check-stroke, 0);
|
|
547
|
+
stroke-linejoin: round;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
/* A subtitle wraps, as a UIAction's does in an iOS 27.2 menu (ref-app pickers-desc-uikit: 13pt on 18pt lines,
|
|
551
|
+
Owner's on three); the kit's one truncated line gives way to the simulator. */
|
|
461
552
|
.OptionDescription {
|
|
462
|
-
font-size: 13px;
|
|
463
|
-
line-height: 18px;
|
|
553
|
+
font-size: var(--menu-description-font-size, 13px);
|
|
554
|
+
line-height: var(--menu-description-line-height, 18px);
|
|
464
555
|
letter-spacing: normal;
|
|
465
556
|
color: var(--menu-description-color, var(--color-text-secondary));
|
|
466
557
|
}
|
|
467
558
|
|
|
468
|
-
/*
|
|
469
|
-
|
|
559
|
+
/* An iOS menu has no tooltips (owner 10.11): on a phone an option's tooltip is its subtitle, as a UIAction's
|
|
560
|
+
(ref-app pickers-desc-uikit; Files' Date, Newest to Oldest, iOS-menu IMG_5704), and the info symbol is gone. */
|
|
561
|
+
.OptionTooltipIcon {
|
|
562
|
+
display: none;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
.OptionTooltipText {
|
|
470
566
|
display: block;
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
567
|
+
font-size: var(--menu-description-font-size, 13px);
|
|
568
|
+
font-weight: var(--font-weight-normal);
|
|
569
|
+
line-height: var(--menu-description-line-height, 18px);
|
|
570
|
+
letter-spacing: normal;
|
|
571
|
+
color: var(--menu-description-color, var(--color-text-secondary));
|
|
474
572
|
}
|
|
475
573
|
|
|
476
574
|
.Option[data-disabled] {
|
|
@@ -478,7 +576,7 @@ background: var(--gray-25);
|
|
|
478
576
|
opacity: 1;
|
|
479
577
|
}
|
|
480
578
|
|
|
481
|
-
.Option[data-disabled] .OptionDescription {
|
|
579
|
+
.Option[data-disabled] :is(.OptionDescription, .OptionTooltipText) {
|
|
482
580
|
color: var(--menu-disabled-description-color, var(--color-text-tertiary));
|
|
483
581
|
}
|
|
484
582
|
|
|
@@ -495,15 +593,68 @@ background: var(--gray-25);
|
|
|
495
593
|
top: -11px;
|
|
496
594
|
inset-inline: 8px;
|
|
497
595
|
}
|
|
596
|
+
|
|
597
|
+
/* A clearable list's None row (Select.tsx) is a section of its own, as a pop-up button's None is (Reminders' Early
|
|
598
|
+
Reminder, iOS-menu IMG_5821: None, a line, the times). Its line is a menu section's, as the actions' is: 24pt
|
|
599
|
+
from the panel's edges, 10pt above and below it. Before groups it leaves the line to the first group's heading,
|
|
600
|
+
which draws one. */
|
|
601
|
+
.NoneSection {
|
|
602
|
+
position: relative;
|
|
603
|
+
padding-bottom: 21px;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
.NoneSection::after {
|
|
607
|
+
position: absolute;
|
|
608
|
+
inset: auto 8px 10px;
|
|
609
|
+
height: 1px;
|
|
610
|
+
background: var(--menu-separator-background-color);
|
|
611
|
+
content: "";
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
.NoneSection:has(+ .OptionGroup) {
|
|
615
|
+
padding-bottom: 0;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
.NoneSection:has(+ .OptionGroup)::after {
|
|
619
|
+
content: none;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
/* With no options the row stands alone */
|
|
623
|
+
.NoneSection:last-child {
|
|
624
|
+
padding-bottom: 0;
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
.NoneSection:last-child::after {
|
|
628
|
+
content: none;
|
|
629
|
+
}
|
|
498
630
|
}
|
|
499
|
-
/*
|
|
631
|
+
/* Lists are glass, as the Menu is (see --menu-mobile-background). */
|
|
500
632
|
:where([data-plex-layout="phone"]) .MenuList {
|
|
501
633
|
background: var(--menu-mobile-background, var(--color-surface-elevated));
|
|
634
|
+
backdrop-filter: var(--menu-mobile-backdrop-filter, none);
|
|
502
635
|
}
|
|
503
636
|
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
637
|
+
/* A list is the 250pt of an iOS menu, as the pop-up menu of a picker is (ref-app pickers, block 8: 250pt over a
|
|
638
|
+
value of 76pt, which it covers, Select.tsx), whatever its options: a long label or description wraps
|
|
639
|
+
(pickers-desc-uikit: Owner's description on three lines, the panel still 250pt). A wider trigger keeps its width,
|
|
640
|
+
and a list's own minimum width wins. A list given its own width (data-list-sized) keeps it, as on a larger
|
|
641
|
+
screen, and a maximum below the 250pt caps it. */
|
|
642
|
+
:where([data-plex-layout="phone"]) .MenuList:not([data-list-sized]) {
|
|
643
|
+
min-width: var(
|
|
644
|
+
--select-list-min-width,
|
|
645
|
+
max(min(var(--menu-default-min-width, 0px), var(--select-list-max-width, 100vw)), var(--radix-popover-trigger-width))
|
|
646
|
+
);
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
:where([data-plex-layout="phone"]) .MenuList[data-list-width="auto"] {
|
|
650
|
+
width: var(--menu-default-width, auto);
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
/* A list is as tall as its rows, up to the screen's edge, as a menu is (Menu.module.css; iOS-menu IMG_5704, 5706: a
|
|
654
|
+
native menu scrolls only past the screen), not the desktop's 400px; a list's own maximum still wins. */
|
|
655
|
+
:where([data-plex-layout="phone"]) .MenuInner {
|
|
656
|
+
max-height: min(var(--select-list-max-height, 1200px), var(--radix-popover-content-available-height));
|
|
657
|
+
}
|
|
507
658
|
|
|
508
659
|
:where([data-plex-layout="phone"]) .Option,
|
|
509
660
|
:where([data-plex-layout="phone"]) .Option[data-selected],
|
|
@@ -521,21 +672,83 @@ background: var(--gray-25);
|
|
|
521
672
|
-webkit-tap-highlight-color: transparent;
|
|
522
673
|
}
|
|
523
674
|
|
|
524
|
-
|
|
675
|
+
/* A phone's list has no search (Select.tsx: an iOS menu has none, a long list scrolls, IMG_5490) */
|
|
525
676
|
:where([data-plex-layout="phone"]) .ActionsContainer {
|
|
526
677
|
flex-shrink: 0;
|
|
527
678
|
}
|
|
528
679
|
|
|
680
|
+
/* Actions follow the options as a section of a menu does (ref-app pickers-actions-uikit: a pop-up menu with a
|
|
681
|
+
selection, then Create project and Organization overview): an inset line 24pt from the panel's edges, 10pt
|
|
682
|
+
above and below it, as Menu's separator (--menu-separator-gutter), and no fade over the list. A row is 42pt with
|
|
683
|
+
a 20px symbol centred 40pt in and its label from 66; in a list with checkmarks the symbol stands after their
|
|
684
|
+
column, centred at 55.7pt, and the label starts at 79.7 (native 54.3 and 79.3), as Menu's rows (touch.css). A
|
|
685
|
+
long label wraps, as Organization overview does. */
|
|
686
|
+
:where([data-plex-layout="phone"]) .ActionsContainer {
|
|
687
|
+
border-top: 0;
|
|
688
|
+
padding-top: calc(var(--menu-gutter) + 1px);
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
:where([data-plex-layout="phone"]) .ActionsContainer::before {
|
|
692
|
+
inset: 0 calc(var(--menu-padding-inline, var(--menu-gutter)) + 8px) auto;
|
|
693
|
+
width: auto;
|
|
694
|
+
height: 1px;
|
|
695
|
+
margin: 0;
|
|
696
|
+
background: var(--menu-separator-background-color);
|
|
697
|
+
-webkit-mask-image: none;
|
|
698
|
+
mask-image: none;
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
:where([data-plex-layout="phone"]) .Action {
|
|
702
|
+
display: flex;
|
|
703
|
+
align-items: center;
|
|
704
|
+
min-height: var(--menu-row-min-height, 42px);
|
|
705
|
+
padding-block: 0;
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
:where([data-plex-layout="phone"]) .Action::before {
|
|
709
|
+
inset-block: 0;
|
|
710
|
+
inset-inline: calc(var(--menu-gutter) - var(--menu-padding-inline, var(--menu-gutter)));
|
|
711
|
+
background: var(--menu-press-background, var(--menu-item-background-color));
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
:where([data-plex-layout="phone"]) .Action:active::before {
|
|
715
|
+
opacity: 1;
|
|
716
|
+
transition-duration: 0s;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
:where([data-plex-layout="phone"]) .ActionInner {
|
|
720
|
+
flex: 1;
|
|
721
|
+
gap: var(--menu-leading-icon-gap, 8px);
|
|
722
|
+
padding-block: var(--menu-row-padding-block, 10px);
|
|
723
|
+
line-height: var(--menu-line-height);
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
:where([data-plex-layout="phone"]) .Action svg {
|
|
727
|
+
width: var(--menu-leading-icon-size, 20px);
|
|
728
|
+
height: var(--menu-leading-icon-size, 20px);
|
|
729
|
+
margin-inline: calc((var(--menu-leading-icon-slot, 36px) - var(--menu-leading-icon-size, 20px)) / 2);
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
:where([data-plex-layout="phone"]) .MenuList:has(.OptionIndicatorSlot[data-position]) .ActionInner {
|
|
733
|
+
gap: var(--menu-check-icon-gap, 14px);
|
|
734
|
+
padding-inline-start: calc(var(--menu-check-column, 13px) + var(--menu-check-gap, 8.5px));
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
:where([data-plex-layout="phone"]) .MenuList:has(.OptionIndicatorSlot[data-position]) .Action svg {
|
|
738
|
+
margin-inline: var(--menu-check-icon-offset, 2px) 0;
|
|
739
|
+
}
|
|
740
|
+
|
|
529
741
|
:where([data-plex-layout="phone"]) .OptionsList {
|
|
530
742
|
min-height: 0;
|
|
531
743
|
}
|
|
532
744
|
|
|
533
|
-
/*
|
|
745
|
+
/* A row is 42pt, as a menu row is (Menu.module.css) and the rows of a picker's pop-up menu are (ref-app pickers,
|
|
746
|
+
block 8: labels 126px apart at @3x); text grows naturally, and the pressed surface covers the whole row. */
|
|
534
747
|
:where([data-plex-layout="phone"]) .Option:has(> .PressableInner > .OptionLeading) {
|
|
535
748
|
display: grid;
|
|
536
749
|
grid-template-columns: minmax(0, 1fr);
|
|
537
750
|
align-content: center;
|
|
538
|
-
min-height:
|
|
751
|
+
min-height: var(--menu-row-min-height, 42px);
|
|
539
752
|
padding-block: 0;
|
|
540
753
|
}
|
|
541
754
|
|
|
@@ -561,7 +774,7 @@ background: var(--gray-25);
|
|
|
561
774
|
|
|
562
775
|
:where([data-plex-layout="phone"]) .OptionLeading {
|
|
563
776
|
gap: 2px;
|
|
564
|
-
padding-block: 10px;
|
|
777
|
+
padding-block: var(--menu-row-padding-block, 10px);
|
|
565
778
|
}
|
|
566
779
|
|
|
567
780
|
:where([data-plex-layout="phone"]) .OptionLeading > .OptionInner {
|
|
@@ -577,7 +790,7 @@ background: var(--gray-25);
|
|
|
577
790
|
:where([data-plex-layout="phone"]) .OptionIndicatorSlot {
|
|
578
791
|
justify-content: center;
|
|
579
792
|
width: var(--menu-check-column, 13px);
|
|
580
|
-
height: 22px;
|
|
793
|
+
height: var(--menu-check-slot-height, 22px);
|
|
581
794
|
}
|
|
582
795
|
|
|
583
796
|
:where([data-plex-layout="phone"]) :is(.PressableInner, .OptionHardLimitHeading):has(> .OptionIndicatorSlot) {
|
|
@@ -590,8 +803,7 @@ background: var(--gray-25);
|
|
|
590
803
|
:where([data-plex-layout="phone"]) .MenuList:has(.OptionIndicatorSlot[data-position]) :is(
|
|
591
804
|
.OptionGroupHeading,
|
|
592
805
|
.OptionHardLimitHeading:not(:has(> .OptionIndicatorSlot)),
|
|
593
|
-
.OptionsLimit > .PressableInner:not(:has(> .OptionIndicatorSlot))
|
|
594
|
-
.ActionInner
|
|
806
|
+
.OptionsLimit > .PressableInner:not(:has(> .OptionIndicatorSlot))
|
|
595
807
|
) {
|
|
596
808
|
padding-inline-start: var(--menu-check-label-inset, calc(8px + 13px + 8.5px));
|
|
597
809
|
}
|
|
@@ -607,19 +819,35 @@ background: var(--gray-25);
|
|
|
607
819
|
height: var(--menu-check-size, 18px);
|
|
608
820
|
}
|
|
609
821
|
|
|
822
|
+
/* With the weight of a menu's checkmark (--menu-check-stroke, touch.css) */
|
|
823
|
+
:where([data-plex-layout="phone"]) .OptionCheck path {
|
|
824
|
+
stroke: currentColor;
|
|
825
|
+
stroke-width: var(--menu-check-stroke, 0);
|
|
826
|
+
stroke-linejoin: round;
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
/* A subtitle wraps, as a UIAction's does in an iOS 27.2 menu (ref-app pickers-desc-uikit: 13pt on 18pt lines,
|
|
830
|
+
Owner's on three); the kit's one truncated line gives way to the simulator. */
|
|
610
831
|
:where([data-plex-layout="phone"]) .OptionDescription {
|
|
611
|
-
font-size: 13px;
|
|
612
|
-
line-height: 18px;
|
|
832
|
+
font-size: var(--menu-description-font-size, 13px);
|
|
833
|
+
line-height: var(--menu-description-line-height, 18px);
|
|
613
834
|
letter-spacing: normal;
|
|
614
835
|
color: var(--menu-description-color, var(--color-text-secondary));
|
|
615
836
|
}
|
|
616
837
|
|
|
617
|
-
/*
|
|
618
|
-
|
|
838
|
+
/* An iOS menu has no tooltips (owner 10.11): on a phone an option's tooltip is its subtitle, as a UIAction's
|
|
839
|
+
(ref-app pickers-desc-uikit; Files' Date, Newest to Oldest, iOS-menu IMG_5704), and the info symbol is gone. */
|
|
840
|
+
:where([data-plex-layout="phone"]) .OptionTooltipIcon {
|
|
841
|
+
display: none;
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
:where([data-plex-layout="phone"]) .OptionTooltipText {
|
|
619
845
|
display: block;
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
846
|
+
font-size: var(--menu-description-font-size, 13px);
|
|
847
|
+
font-weight: var(--font-weight-normal);
|
|
848
|
+
line-height: var(--menu-description-line-height, 18px);
|
|
849
|
+
letter-spacing: normal;
|
|
850
|
+
color: var(--menu-description-color, var(--color-text-secondary));
|
|
623
851
|
}
|
|
624
852
|
|
|
625
853
|
:where([data-plex-layout="phone"]) .Option[data-disabled] {
|
|
@@ -627,7 +855,7 @@ background: var(--gray-25);
|
|
|
627
855
|
opacity: 1;
|
|
628
856
|
}
|
|
629
857
|
|
|
630
|
-
:where([data-plex-layout="phone"]) .Option[data-disabled] .OptionDescription {
|
|
858
|
+
:where([data-plex-layout="phone"]) .Option[data-disabled] :is(.OptionDescription, .OptionTooltipText) {
|
|
631
859
|
color: var(--menu-disabled-description-color, var(--color-text-tertiary));
|
|
632
860
|
}
|
|
633
861
|
|
|
@@ -644,4 +872,38 @@ background: var(--gray-25);
|
|
|
644
872
|
top: -11px;
|
|
645
873
|
inset-inline: 8px;
|
|
646
874
|
}
|
|
875
|
+
|
|
876
|
+
/* A clearable list's None row (Select.tsx) is a section of its own, as a pop-up button's None is (Reminders' Early
|
|
877
|
+
Reminder, iOS-menu IMG_5821: None, a line, the times). Its line is a menu section's, as the actions' is: 24pt
|
|
878
|
+
from the panel's edges, 10pt above and below it. Before groups it leaves the line to the first group's heading,
|
|
879
|
+
which draws one. */
|
|
880
|
+
:where([data-plex-layout="phone"]) .NoneSection {
|
|
881
|
+
position: relative;
|
|
882
|
+
padding-bottom: 21px;
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
:where([data-plex-layout="phone"]) .NoneSection::after {
|
|
886
|
+
position: absolute;
|
|
887
|
+
inset: auto 8px 10px;
|
|
888
|
+
height: 1px;
|
|
889
|
+
background: var(--menu-separator-background-color);
|
|
890
|
+
content: "";
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
:where([data-plex-layout="phone"]) .NoneSection:has(+ .OptionGroup) {
|
|
894
|
+
padding-bottom: 0;
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
:where([data-plex-layout="phone"]) .NoneSection:has(+ .OptionGroup)::after {
|
|
898
|
+
content: none;
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
/* With no options the row stands alone */
|
|
902
|
+
:where([data-plex-layout="phone"]) .NoneSection:last-child {
|
|
903
|
+
padding-bottom: 0;
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
:where([data-plex-layout="phone"]) .NoneSection:last-child::after {
|
|
907
|
+
content: none;
|
|
908
|
+
}
|
|
647
909
|
}
|
|
@@ -541,10 +541,17 @@
|
|
|
541
541
|
:where(.SelectControl[data-pill]) .Clear[data-only-child] {
|
|
542
542
|
margin-right: var(--clear-iso-pill-offset);
|
|
543
543
|
}@media (max-width: 767px) {
|
|
544
|
-
.SelectControl:has(> .IndicatorWrapper > .Clear) {
|
|
544
|
+
.SelectControl:has(> .IndicatorWrapper > .Clear):not([data-select-none-row]) {
|
|
545
545
|
min-height: 44px;
|
|
546
546
|
}
|
|
547
547
|
|
|
548
|
+
/* A clearable Select unsets its value with its list's None row on a phone, as an iOS pop-up button does
|
|
549
|
+
(Select.tsx). Its clear button leaves when the page knows the window; until a server-rendered page hydrates it is
|
|
550
|
+
hidden here, so the value does not move. */
|
|
551
|
+
.SelectControl[data-select-none-row] > .IndicatorWrapper > .Clear {
|
|
552
|
+
display: none;
|
|
553
|
+
}
|
|
554
|
+
|
|
548
555
|
/* Disabled, the value and its chevrons are the tertiary label, as the iOS 27 kit's Pop-up Button (410:50387,
|
|
549
556
|
Is Enabled=False: 60,60,67 at 30%) and as a disabled Button on a phone. */
|
|
550
557
|
.SelectControl[data-disabled][data-variant] {
|
|
@@ -566,6 +573,8 @@
|
|
|
566
573
|
.Clear {
|
|
567
574
|
min-width: 44px;
|
|
568
575
|
min-height: 44px;
|
|
576
|
+
/* In a smaller box (a Field row's 34px value) the target reaches past it instead of growing it */
|
|
577
|
+
margin-block: min(0px, calc((var(--select-control-size, 44px) - 44px) / 2));
|
|
569
578
|
|
|
570
579
|
/* Button's size token remains the face size, including the solid-only
|
|
571
580
|
variant. The background and ring stay compact inside the touch slot. */
|
|
@@ -577,10 +586,17 @@
|
|
|
577
586
|
margin: auto;
|
|
578
587
|
}
|
|
579
588
|
}
|
|
580
|
-
:where([data-plex-layout="phone"]) .SelectControl:has(> .IndicatorWrapper > .Clear) {
|
|
589
|
+
:where([data-plex-layout="phone"]) .SelectControl:has(> .IndicatorWrapper > .Clear):not([data-select-none-row]) {
|
|
581
590
|
min-height: 44px;
|
|
582
591
|
}
|
|
583
592
|
|
|
593
|
+
/* A clearable Select unsets its value with its list's None row on a phone, as an iOS pop-up button does
|
|
594
|
+
(Select.tsx). Its clear button leaves when the page knows the window; until a server-rendered page hydrates it is
|
|
595
|
+
hidden here, so the value does not move. */
|
|
596
|
+
:where([data-plex-layout="phone"]) .SelectControl[data-select-none-row] > .IndicatorWrapper > .Clear {
|
|
597
|
+
display: none;
|
|
598
|
+
}
|
|
599
|
+
|
|
584
600
|
/* Disabled, the value and its chevrons are the tertiary label, as the iOS 27 kit's Pop-up Button (410:50387,
|
|
585
601
|
Is Enabled=False: 60,60,67 at 30%) and as a disabled Button on a phone. */
|
|
586
602
|
:where([data-plex-layout="phone"]) .SelectControl[data-disabled][data-variant] {
|
|
@@ -602,6 +618,8 @@
|
|
|
602
618
|
:where([data-plex-layout="phone"]) .Clear {
|
|
603
619
|
min-width: 44px;
|
|
604
620
|
min-height: 44px;
|
|
621
|
+
/* In a smaller box (a Field row's 34px value) the target reaches past it instead of growing it */
|
|
622
|
+
margin-block: min(0px, calc((var(--select-control-size, 44px) - 44px) / 2));
|
|
605
623
|
|
|
606
624
|
/* Button's size token remains the face size, including the solid-only
|
|
607
625
|
variant. The background and ring stay compact inside the touch slot. */
|
|
@@ -652,12 +670,15 @@
|
|
|
652
670
|
:where(.SelectControl[data-pill]) .LoadingIndicator {
|
|
653
671
|
margin-right: var(--dropdown-icon-pill-offset);
|
|
654
672
|
}/* Standalone native pop-up trigger. Field rows own their control geometry. */@media (max-width: 767px) {
|
|
673
|
+
/* The chevrons of a pop-up in a row are the menu picker's of iOS 27.2: 8.7 x 12.7pt, ending 2pt inside the
|
|
674
|
+
row's content edge, 7.3pt after the value (SwiftUI Picker .menu in a Form on an iPhone 17 and Reminders'
|
|
675
|
+
Priority, IMG_5442, alike). The box is the glyph's, the 17px symbol overflowing it to both sides. */
|
|
655
676
|
:where([data-row]) .DropdownIcon:not(.DropdownIconChevron) {
|
|
656
677
|
align-items: center;
|
|
657
678
|
justify-content: center;
|
|
658
|
-
width:
|
|
679
|
+
width: 8.5px;
|
|
659
680
|
height: 22px;
|
|
660
|
-
margin-inline:
|
|
681
|
+
margin-inline: -2px 2px;
|
|
661
682
|
color: var(--mobile-accessory-secondary, var(--color-text-secondary));
|
|
662
683
|
opacity: 1;
|
|
663
684
|
}
|
|
@@ -681,8 +702,8 @@
|
|
|
681
702
|
:where([data-row]) .DropdownIcon > .MobileDropdownGlyph {
|
|
682
703
|
display: block;
|
|
683
704
|
flex-shrink: 0;
|
|
684
|
-
width:
|
|
685
|
-
height:
|
|
705
|
+
width: 17px;
|
|
706
|
+
height: 17px;
|
|
686
707
|
}
|
|
687
708
|
|
|
688
709
|
:where([data-row]) :is([disabled], [data-disabled], [aria-disabled="true"]) .DropdownIcon:not(.DropdownIconChevron) {
|
|
@@ -718,12 +739,15 @@
|
|
|
718
739
|
line-height: 18px;
|
|
719
740
|
}
|
|
720
741
|
}
|
|
742
|
+
/* The chevrons of a pop-up in a row are the menu picker's of iOS 27.2: 8.7 x 12.7pt, ending 2pt inside the
|
|
743
|
+
row's content edge, 7.3pt after the value (SwiftUI Picker .menu in a Form on an iPhone 17 and Reminders'
|
|
744
|
+
Priority, IMG_5442, alike). The box is the glyph's, the 17px symbol overflowing it to both sides. */
|
|
721
745
|
:where([data-plex-layout="phone"]) :where([data-row]) .DropdownIcon:not(.DropdownIconChevron) {
|
|
722
746
|
align-items: center;
|
|
723
747
|
justify-content: center;
|
|
724
|
-
width:
|
|
748
|
+
width: 8.5px;
|
|
725
749
|
height: 22px;
|
|
726
|
-
margin-inline:
|
|
750
|
+
margin-inline: -2px 2px;
|
|
727
751
|
color: var(--mobile-accessory-secondary, var(--color-text-secondary));
|
|
728
752
|
opacity: 1;
|
|
729
753
|
}
|
|
@@ -747,8 +771,8 @@
|
|
|
747
771
|
:where([data-plex-layout="phone"]) :where([data-row]) .DropdownIcon > .MobileDropdownGlyph {
|
|
748
772
|
display: block;
|
|
749
773
|
flex-shrink: 0;
|
|
750
|
-
width:
|
|
751
|
-
height:
|
|
774
|
+
width: 17px;
|
|
775
|
+
height: 17px;
|
|
752
776
|
}
|
|
753
777
|
|
|
754
778
|
:where([data-plex-layout="phone"]) :where([data-row]) :is([disabled], [data-disabled], [aria-disabled="true"]) .DropdownIcon:not(.DropdownIconChevron) {
|
|
@@ -740,6 +740,7 @@
|
|
|
740
740
|
The glyph and the placeholder take the secondary label, as the kit's Vibrant Secondary. */@media (max-width: 767px) {
|
|
741
741
|
.MobileSidebar .Input > [data-slot="input"][data-variant] {
|
|
742
742
|
--input-size: 44px;
|
|
743
|
+
--input-gutter: 11px;
|
|
743
744
|
--input-gap: 4px;
|
|
744
745
|
--input-adornment-offset: 0px;
|
|
745
746
|
--control-gutter-pill-scaling: 1;
|
|
@@ -757,6 +758,7 @@
|
|
|
757
758
|
}
|
|
758
759
|
:where([data-plex-layout="phone"]) .MobileSidebar .Input > [data-slot="input"][data-variant] {
|
|
759
760
|
--input-size: 44px;
|
|
761
|
+
--input-gutter: 11px;
|
|
760
762
|
--input-gap: 4px;
|
|
761
763
|
--input-adornment-offset: 0px;
|
|
762
764
|
--control-gutter-pill-scaling: 1;
|
|
@@ -948,7 +950,7 @@
|
|
|
948
950
|
display: none;
|
|
949
951
|
}@media (max-width: 767px) {
|
|
950
952
|
.MobileSidebar:not(:where(.App *)) {
|
|
951
|
-
--sidebar-list-inset: var(--sidebar-mobile-list-inset, var(--mobile-
|
|
953
|
+
--sidebar-list-inset: var(--sidebar-mobile-list-inset, var(--mobile-list-inset, 20px));
|
|
952
954
|
--sidebar-list-icon-column: var(--sidebar-mobile-list-icon-column, 40px);
|
|
953
955
|
--sidebar-list-indent: var(--sidebar-mobile-list-indent, 20px);
|
|
954
956
|
--sidebar-row-inset: var(--sidebar-list-inset);
|
|
@@ -1149,7 +1151,7 @@
|
|
|
1149
1151
|
}
|
|
1150
1152
|
}
|
|
1151
1153
|
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) {
|
|
1152
|
-
--sidebar-list-inset: var(--sidebar-mobile-list-inset, var(--mobile-
|
|
1154
|
+
--sidebar-list-inset: var(--sidebar-mobile-list-inset, var(--mobile-list-inset, 20px));
|
|
1153
1155
|
--sidebar-list-icon-column: var(--sidebar-mobile-list-icon-column, 40px);
|
|
1154
1156
|
--sidebar-list-indent: var(--sidebar-mobile-list-indent, 20px);
|
|
1155
1157
|
--sidebar-row-inset: var(--sidebar-list-inset);
|