@plexui/styles 0.1.34 → 0.1.35

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.
Files changed (50) hide show
  1. package/dist/es/components/Accordion/Accordion.module.css +12 -1
  2. package/dist/es/components/Alert/Alert.module.css +101 -0
  3. package/dist/es/components/Badge/Badge.module.css +37 -0
  4. package/dist/es/components/Breadcrumb/Breadcrumb.module.css +29 -0
  5. package/dist/es/components/Button/Button.module.css +53 -0
  6. package/dist/es/components/Button/NavigationButton.module.css +17 -0
  7. package/dist/es/components/ButtonGroup/ButtonGroup.module.css +227 -20
  8. package/dist/es/components/Card/Card.module.css +9 -0
  9. package/dist/es/components/CodeBlock/CodeBlock.module.css +14 -1
  10. package/dist/es/components/ColorPicker/ColorPicker.module.css +19 -1
  11. package/dist/es/components/DatePicker/Calendar.module.css +262 -2
  12. package/dist/es/components/DatePicker/CalendarNavigationIcon.module.css +10 -0
  13. package/dist/es/components/DateRangePicker/Calendar.module.css +207 -3
  14. package/dist/es/components/DateRangePicker/Trigger.module.css +17 -2
  15. package/dist/es/components/Dialog/Dialog.module.css +660 -13
  16. package/dist/es/components/EmptyMessage/EmptyMessage.module.css +21 -0
  17. package/dist/es/components/Field/Field.module.css +387 -2
  18. package/dist/es/components/FieldGroup/FieldGroup.module.css +129 -3
  19. package/dist/es/components/FileUpload/FileUpload.module.css +74 -1
  20. package/dist/es/components/FloatingLabelInput/FloatingLabelInput.module.css +19 -1
  21. package/dist/es/components/FloatingLabelSelect/FloatingLabelSelect.module.css +12 -1
  22. package/dist/es/components/IndexBar/IndexBar.module.css +146 -0
  23. package/dist/es/components/Input/Input.module.css +129 -1
  24. package/dist/es/components/MarkdownEditor/MarkdownEditor.module.css +18 -0
  25. package/dist/es/components/Menu/Menu.module.css +267 -7
  26. package/dist/es/components/OTPInput/OTPInput.module.css +6 -1
  27. package/dist/es/components/Page/Page.module.css +302 -10
  28. package/dist/es/components/PhoneLayout/PhoneLayout.module.css +10 -0
  29. package/dist/es/components/Popover/Popover.module.css +7 -0
  30. package/dist/es/components/Select/Select.module.css +148 -0
  31. package/dist/es/components/SelectControl/SelectControl.module.css +113 -1
  32. package/dist/es/components/Sidebar/Sidebar.module.css +354 -20
  33. package/dist/es/components/Slider/Slider.module.css +80 -0
  34. package/dist/es/components/SwipeActions/SwipeActions.module.css +166 -0
  35. package/dist/es/components/Switch/Switch.module.css +59 -4
  36. package/dist/es/components/TabBar/TabBar.module.css +255 -10
  37. package/dist/es/components/Tabs/Tabs.module.css +166 -1
  38. package/dist/es/components/TagInput/TagInput.module.css +50 -9
  39. package/dist/es/components/Textarea/Textarea.module.css +6 -0
  40. package/dist/es/components/Tip/Tip.module.css +456 -0
  41. package/dist/es/components/Toast/Toast.module.css +148 -5
  42. package/dist/es/components/Toolbar/Toolbar.module.css +642 -3
  43. package/dist/es/styles/mobile-materials.css +94 -5
  44. package/dist/es/styles/mobile-surfaces.css +43 -0
  45. package/dist/es/styles/touch.css +618 -8
  46. package/dist/es/styles/variables-components.css +125 -5
  47. package/package.json +1 -1
  48. package/postcss/parseLightDark.mjs +20 -2
  49. package/postcss/phoneLayoutScope.mjs +134 -0
  50. package/postcss.config.mjs +3 -0
@@ -83,36 +83,36 @@
83
83
  }/* No line at rest: it comes when the content has scrolled under the header. An always-on scrollbar
84
84
  narrows the scroll area only, so the band keeps the same gutter, or a centred header would stand
85
85
  beside the content. */@media (min-width: 768px) {
86
- .Page {
86
+ .Page:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
87
87
  --page-gutter: var(--page-gutter-wide);
88
88
  --page-content-padding-top: var(--page-gutter-wide);
89
89
  }
90
90
 
91
- .Header {
91
+ .Header:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
92
92
  overflow: hidden;
93
93
  scrollbar-gutter: stable;
94
94
  container-type: inline-size;
95
95
  }
96
96
 
97
- .Content {
97
+ .Content:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
98
98
  scrollbar-gutter: stable;
99
99
  }
100
100
 
101
- .Content[data-fill] {
101
+ .Content[data-fill]:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
102
102
  padding-bottom: 0;
103
103
  }
104
104
 
105
- .Content[data-fill] > .Column {
105
+ .Content[data-fill] > .Column:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
106
106
  min-height: 0;
107
107
  }
108
108
 
109
- .Head {
109
+ .Head:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
110
110
  padding-bottom: var(--page-header-padding-bottom);
111
111
  border-bottom: 1px solid transparent;
112
112
  transition: border-color var(--transition-duration-basic);
113
113
  }
114
114
 
115
- .Header[data-scrolled][data-divider] > .Head {
115
+ .Header[data-scrolled][data-divider] > .Head:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
116
116
  border-color: var(--color-border);
117
117
  }
118
118
  }/* One row, the height of Apple's bar. It floats over the page and meets the content scrolled under it
@@ -177,6 +177,15 @@
177
177
  transition: opacity var(--transition-duration-basic), border-color var(--transition-duration-basic);
178
178
  }
179
179
 
180
+ /* A bar of controls alone covers only the status bar and leaves the content clear under its controls, as a
181
+ top Toolbar without a title does (Notes, IMG_5734 and 5736). A Page inside a Sheet keeps the full edge. */
182
+ .Header[data-background="soft"]:not([data-mobile-variant="sheet"] *):not(:has(:is(.Heading, .Title)))::before {
183
+ inset: 0 0 auto;
184
+ height: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
185
+ -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
186
+ mask-image: linear-gradient(to bottom, #000, transparent);
187
+ }
188
+
180
189
  /* Hard and solid are opaque, glass is translucent and shows itself once content is under the bar.
181
190
  Hard and glass then draw a line, unless `divider` is off. */
182
191
  .Header:not([data-background="soft"])::before {
@@ -323,9 +332,9 @@
323
332
  padding-left: 8px;
324
333
  }
325
334
 
326
- /* The footer meets the content scrolled under it by its `background`, as a bottom Toolbar does. Soft:
327
- the canvas starts 27px above the actions and covers the content fully from their top (native
328
- iOS 26 bottom bars, IMG_5491). */
335
+ /* The footer meets the content scrolled under it by its `background`, as a bottom Toolbar does. Soft is no
336
+ band on a page: content runs under and around the actions as under native iOS 26 bottom bars (Mail
337
+ IMG_5534 and 5551, Phone IMG_5615; plan 172, owner 08.11), and the glass of each action sets it off. */
329
338
  .Footer {
330
339
  position: relative;
331
340
  z-index: 5;
@@ -371,6 +380,10 @@
371
380
  opacity: 1;
372
381
  }
373
382
 
383
+ .Footer[data-background="soft"]:not([data-mobile-variant="sheet"] *)::before {
384
+ display: none;
385
+ }
386
+
374
387
  .Content {
375
388
  scrollbar-width: none;
376
389
  }
@@ -387,5 +400,284 @@
387
400
  padding-top: calc(var(--page-top) + var(--page-content-padding-top));
388
401
  scroll-padding-top: calc(var(--page-top) + var(--page-content-padding-top));
389
402
  }
403
+ }
404
+ :where([data-plex-layout="phone"]) .Page {
405
+ --page-top: var(--page-toolbar-height, var(--page-header-height, calc(var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) + var(--page-bar-height-phone) + 10px)));
406
+ --page-bottom: var(--page-toolbar-bottom-height, var(--page-footer-height, 0px));
407
+ --mobile-surface-primary: var(--mobile-surface-plain-primary, var(--color-surface));
408
+ --mobile-surface-secondary: var(--mobile-surface-plain-secondary, var(--color-background-secondary-soft-alpha));
409
+ --mobile-surface-tertiary: var(--mobile-surface-plain-tertiary, var(--color-surface));
410
+ --page-background: var(--mobile-surface-primary);
411
+ --page-footer-padding-top: 12px;
412
+ --page-footer-gutter: 16px;
413
+ --page-footer-padding-bottom: max(16px, var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
414
+ --field-group-background: var(--mobile-surface-secondary);
415
+ --file-upload-list-background: transparent;
416
+ --file-upload-list-border-width: 1px;
417
+ --mobile-neutral-outline-background: initial;
418
+ --mobile-neutral-outline-hover: initial;
419
+ --mobile-neutral-outline-active: initial;
420
+ --page-bar-veil: color-mix(in srgb, var(--page-background) var(--page-bar-veil-opacity), transparent);
421
+ }
422
+
423
+ :where([data-plex-layout="phone"]) .Page[data-surface="grouped"] {
424
+ --mobile-surface-primary: var(--mobile-surface-grouped-primary, var(--color-surface-secondary));
425
+ --mobile-surface-secondary: var(--mobile-surface-grouped-secondary, var(--color-surface));
426
+ --mobile-surface-tertiary: var(--mobile-surface-grouped-tertiary, var(--color-surface-secondary));
427
+ --file-upload-list-background: var(--mobile-surface-secondary);
428
+ --file-upload-list-border-width: 0px;
429
+ --mobile-neutral-outline-background: var(--mobile-surface-secondary);
430
+ --mobile-neutral-outline-hover: color-mix(in srgb, var(--mobile-surface-secondary) 96%, var(--color-text));
431
+ --mobile-neutral-outline-active: color-mix(in srgb, var(--mobile-surface-secondary) 94%, var(--color-text));
432
+ }
433
+
434
+ /* A phone Toolbar takes the place of the bar on its side. */
435
+ :where([data-plex-layout="phone"]) .Page:has(> [data-toolbar][data-placement="top"]) > .Header,
436
+ :where([data-plex-layout="phone"]) .Page:has(> [data-toolbar][data-placement="bottom"]) > .Footer {
437
+ display: none;
438
+ }
439
+
440
+ :where([data-plex-layout="phone"]) .Header {
441
+ position: absolute;
442
+ z-index: 5;
443
+ inset: 0 0 auto;
444
+ padding-block: var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) 10px;
445
+ }
446
+
447
+ /* Soft: the canvas covers content under the bar and fades out past it, as the soft edge of a top
448
+ Toolbar does. */
449
+ :where([data-plex-layout="phone"]) .Header::before {
450
+ position: absolute;
451
+ z-index: -1;
452
+ inset: 0 0 calc(-1 * var(--page-bar-soft-tail, 32px));
453
+ background: var(--page-background);
454
+ backdrop-filter: blur(var(--toolbar-edge-blur-small));
455
+ content: "";
456
+ -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--page-bar-soft-tail, 32px)), transparent);
457
+ mask-image: linear-gradient(to bottom, #000 calc(100% - var(--page-bar-soft-tail, 32px)), transparent);
458
+ pointer-events: none;
459
+ transition: opacity var(--transition-duration-basic), border-color var(--transition-duration-basic);
460
+ }
461
+
462
+ /* A bar of controls alone covers only the status bar and leaves the content clear under its controls, as a
463
+ top Toolbar without a title does (Notes, IMG_5734 and 5736). A Page inside a Sheet keeps the full edge. */
464
+ :where([data-plex-layout="phone"]) .Header[data-background="soft"]:not([data-mobile-variant="sheet"] *):not(:has(:is(.Heading, .Title)))::before {
465
+ inset: 0 0 auto;
466
+ height: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
467
+ -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
468
+ mask-image: linear-gradient(to bottom, #000, transparent);
469
+ }
470
+
471
+ /* Hard and solid are opaque, glass is translucent and shows itself once content is under the bar.
472
+ Hard and glass then draw a line, unless `divider` is off. */
473
+ :where([data-plex-layout="phone"]) .Header:not([data-background="soft"])::before {
474
+ inset: 0;
475
+ backdrop-filter: none;
476
+ -webkit-mask-image: none;
477
+ mask-image: none;
478
+ }
479
+
480
+ :where([data-plex-layout="phone"]) .Header[data-background="hard"]::before {
481
+ border-bottom: 1px solid transparent;
482
+ }
483
+
484
+ :where([data-plex-layout="phone"]) .Header[data-background="glass"]::before {
485
+ border-bottom: 0.5px solid transparent;
486
+ background: var(--page-bar-veil);
487
+ backdrop-filter: var(--page-bar-glass-filter);
488
+ opacity: 0;
489
+ }
490
+
491
+ :where([data-plex-layout="phone"]) .Header[data-scrolled][data-background="glass"]::before {
492
+ opacity: 1;
493
+ }
494
+
495
+ :where([data-plex-layout="phone"]) .Header[data-scrolled][data-divider][data-background="hard"]::before {
496
+ border-bottom-color: var(--page-bar-hard-line);
497
+ }
498
+
499
+ :where([data-plex-layout="phone"]) .Header[data-scrolled][data-divider][data-background="glass"]::before {
500
+ border-bottom-color: var(--page-bar-line);
501
+ }
502
+
503
+ /* The bar's glass buttons cast a shadow only over content scrolled under them. */
504
+ :where([data-plex-layout="phone"]) .Header[data-scrolled] {
505
+ --mobile-glass-shadow: var(--mobile-glass-shadow-raised);
506
+ }
507
+
508
+ :where([data-plex-layout="phone"]) .Bar {
509
+ display: grid;
510
+ grid-template-columns: var(--page-bar-side-width, 44px) minmax(0, 1fr) var(--page-bar-side-width, 44px);
511
+ gap: 0;
512
+ min-height: var(--page-bar-height-phone);
513
+ }
514
+
515
+ :where([data-plex-layout="phone"]) .Bar > .Heading,
516
+ :where([data-plex-layout="phone"]) .Bar > .Title {
517
+ grid-column: 2;
518
+ grid-row: 1;
519
+ align-self: center;
520
+ min-width: 0;
521
+ /* Centered in the 44px bar: native iOS 26 bars put the title's cap middle on the buttons' center
522
+ (IMG_5508/5511/5512/5514/5515, within 1px). The kit's text frame sits 2px lower than that. */
523
+ }
524
+
525
+ :where([data-plex-layout="phone"]) .Heading {
526
+ flex-direction: column;
527
+ gap: 0;
528
+ min-width: 0;
529
+ }
530
+
531
+ :where([data-plex-layout="phone"]) .Heading:has(> .Subtitle > *) {
532
+ gap: 2px;
533
+ }
534
+
535
+ :where([data-plex-layout="phone"]) .Title {
536
+ display: block;
537
+ min-height: 0;
538
+ overflow: hidden;
539
+ font-size: 17px;
540
+ font-weight: 590;
541
+ line-height: 22px;
542
+ text-align: center;
543
+ text-overflow: ellipsis;
544
+ white-space: nowrap;
545
+ }
546
+
547
+ :where([data-plex-layout="phone"]) .Subtitle {
548
+ flex-wrap: wrap;
549
+ justify-content: center;
550
+ row-gap: 4px;
551
+ max-width: 100%;
552
+ overflow: hidden;
553
+ font-size: 13px;
554
+ line-height: 18px;
555
+ text-overflow: ellipsis;
556
+ white-space: normal;
557
+ }
558
+
559
+ :where([data-plex-layout="phone"]) .Leading,
560
+ :where([data-plex-layout="phone"]) .Actions {
561
+ width: -moz-max-content;
562
+ width: max-content;
563
+ }
564
+
565
+ :where([data-plex-layout="phone"]) .Leading {
566
+ grid-column: 1;
567
+ grid-row: 1;
568
+ justify-self: start;
569
+ min-width: 0;
570
+ }
571
+
572
+ /* A bar's text button is the Liquid Glass text button of the iOS 27 kit (Button - Liquid Glass - Text
573
+ 5473:21667): 17px Medium, the label of a Toolbar's items. */
574
+ :where([data-plex-layout="phone"]) .Leading > :is(button, a), :where([data-plex-layout="phone"]) .Actions > :is(button, a) {
575
+ --button-size: 44px;
576
+ /* A uniform bar button is the 44px glass circle of a bar, as a Toolbar's; elsewhere on a phone a uniform
577
+ button is the circle of its step (touch.css) */
578
+ --button-uniform-size: 44px;
579
+ --button-font-size: var(--toolbar-label-font-size);
580
+ --button-line-height: var(--toolbar-label-line-height);
581
+ --button-font-weight: var(--toolbar-label-font-weight);
582
+ --button-radius: var(--radius-full);
583
+ }
584
+
585
+ :where([data-plex-layout="phone"]) .Leading > :is(button, a):not([data-navigation-action]), :where([data-plex-layout="phone"]) .Actions > :is(button, a):not([data-navigation-action]) {
586
+ --button-icon-size: 17px;
587
+ }
588
+
589
+ /* An icon alone in the circle is a bar symbol, as in a Toolbar: Files' More (IMG_5686) and Freeform's
590
+ ellipsis (IMG_5684) draw it 19.7pt wide, not at the size of a label beside text (owner 08.11). */
591
+ :where([data-plex-layout="phone"]) :is(.Leading, .Actions) > :is(button, a)[data-uniform]:not([data-navigation-action]) {
592
+ --button-icon-size: var(--toolbar-icon-size);
593
+ }
594
+
595
+ :where([data-plex-layout="phone"]) :is(.Leading, .Actions) > :where(button, a)[data-uniform]:where(:not([data-disabled], [data-mobile-material="flat"])):where([data-color="primary"], [data-color="secondary"]):where([data-variant="soft"], [data-variant="ghost"]) {
596
+ --button-mobile-material-background: var(--mobile-glass-background);
597
+ --button-mobile-material-sheen: var(--mobile-glass-sheen);
598
+ --button-mobile-material-shadow: var(--mobile-glass-shadow);
599
+ --button-mobile-material-backdrop-filter: var(--mobile-glass-backdrop-filter);
600
+ --button-mobile-material-opacity: 1;
601
+ --button-mobile-material-scale: 1;
602
+ --button-mobile-material-hover: var(--mobile-glass-background-hover);
603
+ --button-mobile-material-active: var(--mobile-glass-background-active);
604
+ }
605
+
606
+ :where([data-plex-layout="phone"]) .Actions {
607
+ grid-column: 3;
608
+ grid-row: 1;
609
+ justify-content: flex-end;
610
+ justify-self: end;
611
+ min-width: 0;
612
+ padding-left: 8px;
613
+ }
614
+
615
+ /* The footer meets the content scrolled under it by its `background`, as a bottom Toolbar does. Soft is no
616
+ band on a page: content runs under and around the actions as under native iOS 26 bottom bars (Mail
617
+ IMG_5534 and 5551, Phone IMG_5615; plan 172, owner 08.11), and the glass of each action sets it off. */
618
+ :where([data-plex-layout="phone"]) .Footer {
619
+ position: relative;
620
+ z-index: 5;
621
+ background: none;
622
+ }
623
+
624
+ :where([data-plex-layout="phone"]) .Footer::before {
625
+ position: absolute;
626
+ z-index: -1;
627
+ inset: calc(var(--page-footer-padding-top) - 27px) 0 0;
628
+ background: var(--page-background);
629
+ backdrop-filter: blur(var(--toolbar-edge-blur-small));
630
+ content: "";
631
+ -webkit-mask-image: linear-gradient(to bottom, transparent, #000 27px);
632
+ mask-image: linear-gradient(to bottom, transparent, #000 27px);
633
+ pointer-events: none;
634
+ transition: opacity var(--transition-duration-basic), border-color var(--transition-duration-basic);
635
+ }
636
+
637
+ :where([data-plex-layout="phone"]) .Footer:not([data-background="soft"])::before {
638
+ inset: 0;
639
+ backdrop-filter: none;
640
+ -webkit-mask-image: none;
641
+ mask-image: none;
642
+ }
643
+
644
+ :where([data-plex-layout="phone"]) .Footer[data-background="hard"]::before {
645
+ border-top: 1px solid transparent;
646
+ }
647
+
648
+ :where([data-plex-layout="phone"]) .Footer[data-background="glass"]::before {
649
+ border-top: 0.5px solid var(--page-bar-line);
650
+ background: var(--page-bar-veil);
651
+ backdrop-filter: var(--page-bar-glass-filter);
652
+ opacity: 0;
653
+ }
654
+
655
+ :where([data-plex-layout="phone"]) .Footer[data-content-below][data-background="hard"]::before {
656
+ border-top-color: var(--page-bar-hard-line);
657
+ }
658
+
659
+ :where([data-plex-layout="phone"]) .Footer[data-content-below][data-background="glass"]::before {
660
+ opacity: 1;
661
+ }
662
+
663
+ :where([data-plex-layout="phone"]) .Footer[data-background="soft"]:not([data-mobile-variant="sheet"] *)::before {
664
+ display: none;
665
+ }
666
+
667
+ :where([data-plex-layout="phone"]) .Content {
668
+ scrollbar-width: none;
669
+ }
670
+
671
+ :where([data-plex-layout="phone"]) .Content::-webkit-scrollbar {
672
+ display: none;
673
+ }
674
+
675
+ :where([data-plex-layout="phone"]) .Content {
676
+
677
+ margin-bottom: calc(-1 * var(--page-bottom));
678
+ padding-bottom: calc(var(--page-content-padding-bottom) + var(--page-bottom));
679
+ scroll-padding-bottom: calc(var(--page-content-padding-bottom) + var(--page-bottom));
680
+ padding-top: calc(var(--page-top) + var(--page-content-padding-top));
681
+ scroll-padding-top: calc(var(--page-top) + var(--page-content-padding-top));
390
682
  }
391
683
  }
@@ -0,0 +1,10 @@
1
+ @layer components {/* What a PhoneLayout holds is laid out as on a phone at any window width: the style sheets apply their phone rules
2
+ inside `[data-plex-layout="phone"]` (postcss/phoneLayoutScope.mjs). The box is the screen of that phone: dialogs
3
+ portal into it, and with layout containment it is the containing block of their fixed layers, so they cover the
4
+ box and not the window. Overflow is clipped as a screen clips it; the owner's class can change it. */.PhoneLayout {
5
+ position: relative;
6
+ contain: layout;
7
+ }:where(.PhoneLayout) {
8
+ overflow: clip;
9
+ }
10
+ }
@@ -69,6 +69,13 @@
69
69
  :where([data-theme="dark"]) .Popover {
70
70
  backdrop-filter: var(--popover-mobile-backdrop-filter, none);
71
71
  }
72
+ }
73
+ :where([data-plex-layout="phone"]) .Popover {
74
+ background: var(--popover-mobile-background, var(--color-surface-elevated));
75
+ }
76
+
77
+ :where([data-plex-layout="phone"]) :where([data-theme="dark"]) .Popover {
78
+ backdrop-filter: var(--popover-mobile-backdrop-filter, none);
72
79
  }@keyframes shake {
73
80
  0% {
74
81
  transform: translateX(0);
@@ -496,4 +496,152 @@ background: var(--gray-25);
496
496
  inset-inline: 8px;
497
497
  }
498
498
  }
499
+ /* Dark lists are glass, as the Menu is (see --menu-mobile-background). */
500
+ :where([data-plex-layout="phone"]) .MenuList {
501
+ background: var(--menu-mobile-background, var(--color-surface-elevated));
502
+ }
503
+
504
+ :where([data-plex-layout="phone"]) :where([data-theme="dark"]) .MenuList {
505
+ backdrop-filter: var(--menu-mobile-backdrop-filter, none);
506
+ }
507
+
508
+ :where([data-plex-layout="phone"]) .Option,
509
+ :where([data-plex-layout="phone"]) .Option[data-selected],
510
+ :where([data-plex-layout="phone"]) .Option:has(.OptionDescription) {
511
+ font-weight: var(--font-weight-normal);
512
+ }
513
+
514
+ :where([data-plex-layout="phone"]) .Option {
515
+ letter-spacing: var(--menu-letter-spacing, normal);
516
+ }
517
+
518
+ /* The capsule is the press: Safari's gray tap rectangle would stack on it */
519
+ :where([data-plex-layout="phone"]) .Option,
520
+ :where([data-plex-layout="phone"]) .Action {
521
+ -webkit-tap-highlight-color: transparent;
522
+ }
523
+
524
+ :where([data-plex-layout="phone"]) .Search,
525
+ :where([data-plex-layout="phone"]) .ActionsContainer {
526
+ flex-shrink: 0;
527
+ }
528
+
529
+ :where([data-plex-layout="phone"]) .OptionsList {
530
+ min-height: 0;
531
+ }
532
+
533
+ /* Text grows naturally; the pressed surface covers the complete 44px target. */
534
+ :where([data-plex-layout="phone"]) .Option:has(> .PressableInner > .OptionLeading) {
535
+ display: grid;
536
+ grid-template-columns: minmax(0, 1fr);
537
+ align-content: center;
538
+ min-height: 44px;
539
+ padding-block: 0;
540
+ }
541
+
542
+ /* The pressed capsule of a menu row (Menu.module.css, Files, the owner's shots of 08.11): 10px from the panel's
543
+ edges, not the option's 16, the whole row, round at its ends, in one even fill (--menu-press-background). It
544
+ shows the moment the finger lands and fades when it lifts. */
545
+ :where([data-plex-layout="phone"]) .Option::before {
546
+ position: absolute;
547
+ inset-block: 0;
548
+ inset-inline: calc(var(--menu-gutter) - var(--menu-padding-inline, var(--menu-gutter)));
549
+ background: var(--menu-press-background, var(--menu-item-background-color));
550
+ }
551
+
552
+ :where([data-plex-layout="phone"]) .Option:active::before {
553
+ opacity: 1;
554
+ transition-duration: 0s;
555
+ }
556
+
557
+ :where([data-plex-layout="phone"]) .PressableInner:has(> .OptionLeading) {
558
+ grid-area: 1 / 1;
559
+ align-items: center;
560
+ }
561
+
562
+ :where([data-plex-layout="phone"]) .OptionLeading {
563
+ gap: 2px;
564
+ padding-block: 10px;
565
+ }
566
+
567
+ :where([data-plex-layout="phone"]) .OptionLeading > .OptionInner {
568
+ min-width: 0;
569
+ gap: 8px;
570
+ }
571
+
572
+ /* The checkmark column of a native iOS 26 pop-up menu, as Menu draws it (iOS-menu IMG_5687 and IMG_5688 Files at
573
+ @3x): 10.3 to 10.7pt of ink centred 28pt from the panel's edge, labels from 43.5pt. A row's content starts 22px in,
574
+ so the column is 13px and the label follows 8.5px after it (touch.css tokens). The iOS 27 kit draws a 15pt
575
+ checkmark centred at 34 and labels from 52; the device wins. The checkmark leads every row, so the desktop end
576
+ position moves to the start on a phone. */
577
+ :where([data-plex-layout="phone"]) .OptionIndicatorSlot {
578
+ justify-content: center;
579
+ width: var(--menu-check-column, 13px);
580
+ height: 22px;
581
+ }
582
+
583
+ :where([data-plex-layout="phone"]) :is(.PressableInner, .OptionHardLimitHeading):has(> .OptionIndicatorSlot) {
584
+ gap: var(--menu-check-gap, 8.5px);
585
+ }
586
+
587
+ /* In a list with checkmarks, section titles, the note under a long list, the row that shows more options and the
588
+ actions start where the labels do, as "Filter:" and New Folder in Files (IMG_5687). A list without them keeps its
589
+ labels, and these, at the row's start. */
590
+ :where([data-plex-layout="phone"]) .MenuList:has(.OptionIndicatorSlot[data-position]) :is(
591
+ .OptionGroupHeading,
592
+ .OptionHardLimitHeading:not(:has(> .OptionIndicatorSlot)),
593
+ .OptionsLimit > .PressableInner:not(:has(> .OptionIndicatorSlot)),
594
+ .ActionInner
595
+ ) {
596
+ padding-inline-start: var(--menu-check-label-inset, calc(8px + 13px + 8.5px));
597
+ }
598
+
599
+ :where([data-plex-layout="phone"]) .PressableInner > .OptionIndicatorSlot[data-position="end"] {
600
+ order: -1;
601
+ margin-left: 0;
602
+ }
603
+
604
+ /* The 18px Check icon draws 10.6 by 9.9, centred in its column with the overflow on both sides. */
605
+ :where([data-plex-layout="phone"]) .OptionCheck {
606
+ width: var(--menu-check-size, 18px);
607
+ height: var(--menu-check-size, 18px);
608
+ }
609
+
610
+ :where([data-plex-layout="phone"]) .OptionDescription {
611
+ font-size: 13px;
612
+ line-height: 18px;
613
+ letter-spacing: normal;
614
+ color: var(--menu-description-color, var(--color-text-secondary));
615
+ }
616
+
617
+ /* Rich descriptions may contain their own controls; only plain subtitles truncate. */
618
+ :where([data-plex-layout="phone"]) .OptionDescription:not(:has(*)) {
619
+ display: block;
620
+ overflow: hidden;
621
+ text-overflow: ellipsis;
622
+ white-space: nowrap;
623
+ }
624
+
625
+ :where([data-plex-layout="phone"]) .Option[data-disabled] {
626
+ color: var(--menu-disabled-label-color, var(--color-text-tertiary));
627
+ opacity: 1;
628
+ }
629
+
630
+ :where([data-plex-layout="phone"]) .Option[data-disabled] .OptionDescription {
631
+ color: var(--menu-disabled-description-color, var(--color-text-tertiary));
632
+ }
633
+
634
+ :where([data-plex-layout="phone"]) .Option[data-disabled] .OptionIndicatorSlot {
635
+ color: var(--color-text);
636
+ }
637
+
638
+ :where([data-plex-layout="phone"]) .OptionGroupHeading {
639
+ margin-top: 21px;
640
+ color: var(--color-text-tertiary);
641
+ }
642
+
643
+ :where([data-plex-layout="phone"]) .OptionGroup:not(:first-child) > .OptionGroupHeading::before {
644
+ top: -11px;
645
+ inset-inline: 8px;
646
+ }
499
647
  }
@@ -545,6 +545,18 @@
545
545
  min-height: 44px;
546
546
  }
547
547
 
548
+ /* Disabled, the value and its chevrons are the tertiary label, as the iOS 27 kit's Pop-up Button (410:50387,
549
+ Is Enabled=False: 60,60,67 at 30%) and as a disabled Button on a phone. */
550
+ .SelectControl[data-disabled][data-variant] {
551
+ color: var(--mobile-label-tertiary, var(--color-text-disabled));
552
+ }
553
+
554
+ /* At full opacity: the tertiary label already is the dimmed color (the chevrons rest at 75%). */
555
+ .SelectControl[data-disabled][data-variant] .DropdownIcon {
556
+ color: var(--mobile-label-tertiary, var(--color-text-disabled));
557
+ opacity: 1;
558
+ }
559
+
548
560
  /* Keep the dropdown's own space. A wider clear slot reduces the text's
549
561
  available width instead of extending an invisible target over the icon. */
550
562
  .IndicatorWrapper:has(> .Clear) {
@@ -564,7 +576,42 @@
564
576
  height: var(--button-size);
565
577
  margin: auto;
566
578
  }
567
- }.DropdownIcon {
579
+ }
580
+ :where([data-plex-layout="phone"]) .SelectControl:has(> .IndicatorWrapper > .Clear) {
581
+ min-height: 44px;
582
+ }
583
+
584
+ /* Disabled, the value and its chevrons are the tertiary label, as the iOS 27 kit's Pop-up Button (410:50387,
585
+ Is Enabled=False: 60,60,67 at 30%) and as a disabled Button on a phone. */
586
+ :where([data-plex-layout="phone"]) .SelectControl[data-disabled][data-variant] {
587
+ color: var(--mobile-label-tertiary, var(--color-text-disabled));
588
+ }
589
+
590
+ /* At full opacity: the tertiary label already is the dimmed color (the chevrons rest at 75%). */
591
+ :where([data-plex-layout="phone"]) .SelectControl[data-disabled][data-variant] .DropdownIcon {
592
+ color: var(--mobile-label-tertiary, var(--color-text-disabled));
593
+ opacity: 1;
594
+ }
595
+
596
+ /* Keep the dropdown's own space. A wider clear slot reduces the text's
597
+ available width instead of extending an invisible target over the icon. */
598
+ :where([data-plex-layout="phone"]) .IndicatorWrapper:has(> .Clear) {
599
+ flex-shrink: 0;
600
+ }
601
+
602
+ :where([data-plex-layout="phone"]) .Clear {
603
+ min-width: 44px;
604
+ min-height: 44px;
605
+
606
+ /* Button's size token remains the face size, including the solid-only
607
+ variant. The background and ring stay compact inside the touch slot. */
608
+ }
609
+ :where([data-plex-layout="phone"]) .Clear::before,
610
+ :where([data-plex-layout="phone"]) .Clear::after {
611
+ width: var(--button-size);
612
+ height: var(--button-size);
613
+ margin: auto;
614
+ }.DropdownIcon {
568
615
  position: relative;
569
616
  display: inline-flex;
570
617
  width: var(--dropdown-icon-width, 8px);
@@ -671,4 +718,69 @@
671
718
  line-height: 18px;
672
719
  }
673
720
  }
721
+ :where([data-plex-layout="phone"]) :where([data-row]) .DropdownIcon:not(.DropdownIconChevron) {
722
+ align-items: center;
723
+ justify-content: center;
724
+ width: 10px;
725
+ height: 22px;
726
+ margin-inline: 0;
727
+ color: var(--mobile-accessory-secondary, var(--color-text-secondary));
728
+ opacity: 1;
729
+ }
730
+
731
+ :where([data-plex-layout="phone"]) :where([data-row]) .DropdownIcon > .DropdownGlyph {
732
+ display: none;
733
+ }
734
+
735
+ /* The compact date capsule of a row (Field) shows no pop-up chevrons, as in the iOS 26 kit. */
736
+ :where([data-plex-layout="phone"]) :where([data-row][data-orientation="horizontal"]) .SelectControl[data-date-picker] .DropdownIcon {
737
+ display: none;
738
+ }
739
+
740
+ /* Without the chevrons its indicator wrapper is empty; the trigger's gap before it would leave the date 8px off
741
+ the capsule's center and the capsules 8px short of the row's edge. A clear button keeps the wrapper. Both rules
742
+ follow each other: wherever a row hides a date's chevrons, it hides the wrapper they leave empty. */
743
+ :where([data-plex-layout="phone"]) :where([data-row][data-orientation="horizontal"]) .SelectControl[data-date-picker] .IndicatorWrapper:not(:has(> :not(.DropdownIcon))) {
744
+ display: none;
745
+ }
746
+
747
+ :where([data-plex-layout="phone"]) :where([data-row]) .DropdownIcon > .MobileDropdownGlyph {
748
+ display: block;
749
+ flex-shrink: 0;
750
+ width: 20px;
751
+ height: 20px;
752
+ }
753
+
754
+ :where([data-plex-layout="phone"]) :where([data-row]) :is([disabled], [data-disabled], [aria-disabled="true"]) .DropdownIcon:not(.DropdownIconChevron) {
755
+ color: var(--color-text-disabled);
756
+ }
757
+
758
+ /* A pop-up at the end of a labeled row shows its value in the secondary label, as the option rows of
759
+ iOS 26 Reminders and Calendar do (iOS IMG_5442: the value and its chevrons at 138 on white; iOS2
760
+ IMG_5523). Files shows its View Options values in the primary label beside the same gray chevrons
761
+ (iOS-menu IMG_5686: the value at 3, the chevrons at 122 on 215): such a screen sets
762
+ --field-row-popup-value-color. In columns the value is the row's data and stays primary, as in an Apple
763
+ Account billing address (IMG_5489). Disabled, the value and the chevrons take the tertiary label. */
764
+ :where([data-plex-layout="phone"]) :where([data-row][data-orientation="horizontal"]:not([data-field-columns] *)) .SelectControl[data-selected="true"]:not([data-disabled]) {
765
+ color: var(--field-row-popup-value-color, var(--mobile-label-secondary, var(--color-text-secondary)));
766
+ }
767
+
768
+ :where([data-plex-layout="phone"]) :where([data-row][data-orientation="horizontal"]:not([data-field-columns] *)) .SelectControl[data-disabled][data-variant],
769
+ :where([data-plex-layout="phone"]) :where([data-row][data-orientation="horizontal"]:not([data-field-columns] *)) .SelectControl[data-disabled] .DropdownIcon:not(.DropdownIconChevron) {
770
+ color: var(--mobile-label-tertiary, var(--color-text-disabled));
771
+ }
772
+
773
+ /* In columns the chevrons step back to the tertiary label next to the primary value, as in an Apple
774
+ Account billing address (iOS IMG_5489: the value at 0, its chevrons at 197 on white), enabled or not. */
775
+ :where([data-plex-layout="phone"]) :where([data-field-columns] [data-row][data-orientation="horizontal"]) .DropdownIcon:not(.DropdownIconChevron),
776
+ :where([data-plex-layout="phone"]) :where([data-field-columns] [data-row][data-orientation="horizontal"]) .SelectControl[data-disabled] .DropdownIcon:not(.DropdownIconChevron) {
777
+ color: var(--mobile-label-tertiary, var(--color-text-tertiary));
778
+ }
779
+
780
+ :where([data-plex-layout="phone"]) .SelectControl[data-variant="ghost"]:not([data-row] *) {
781
+ --select-control-size: 44px;
782
+ --select-control-gutter: 0px;
783
+ --select-control-gap: 3px;
784
+ line-height: 18px;
785
+ }
674
786
  }