@plexui/styles 0.1.34 → 0.1.36

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 +324 -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 +103 -8
  44. package/dist/es/styles/mobile-surfaces.css +43 -0
  45. package/dist/es/styles/touch.css +619 -9
  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 +139 -0
  50. package/postcss.config.mjs +3 -0
@@ -111,6 +111,21 @@
111
111
  opacity: 1;
112
112
  }
113
113
 
114
+ /* On a page the soft edge of a bottom bar is no band at all (plan 172, owner 08.11 «ios по дефолту разве
115
+ добавляет фон? внизу»): native iOS 26 lets content run under and around the bottom controls, at full
116
+ contrast down to the screen's edge (Mail IMG_5534 and 5551, Phone IMG_5615); each glass control stands
117
+ out by itself. A sheet keeps its soft edge: its list fades into the panel above a bottom search field
118
+ (Country or region, IMG_5491), and so does a Page laid out inside one. */
119
+ .Toolbar[data-placement="bottom"][data-background="soft"]:not([data-host="dialog"], [data-mobile-variant="sheet"] *)::before {
120
+ display: none;
121
+ }
122
+
123
+ /* With content under it, a bottom bar's glass casts the raised shadow, as a top bar's does once scrolled.
124
+ A sheet's bar keeps the glass of the sheet (Dialog). */
125
+ .Toolbar[data-placement="bottom"][data-content-below]:not([data-mobile-variant="sheet"] *) {
126
+ --mobile-glass-shadow: var(--mobile-glass-shadow-raised);
127
+ }
128
+
114
129
  /* A single wide action (Apps 2.4 Fullsize) leaves 12px above it. */
115
130
  .Toolbar[data-placement="bottom"]:has(> .Content[data-fill] > :where(button, a)) {
116
131
  --toolbar-edge-blur: var(--toolbar-edge-blur-large);
@@ -130,6 +145,19 @@
130
145
  mask-image: none;
131
146
  }
132
147
 
148
+ /* A top bar of controls alone, with no title, leaves the content clear under its controls: on a page the soft
149
+ edge covers only the status bar and fades out to its bottom, as in Notes (IMG_5734, 5736: text at 18% of its
150
+ contrast at the top and at 44%, blurred, 37pt down, clear from 53pt; a top safe area of 59pt). Each glass
151
+ control stands out by itself, as on a bottom bar. With a title the edge covers the row, as in Contacts
152
+ (IMG_5737) and Settings (IMG_5484, 5503): the title needs it. A Page laid out inside a Sheet keeps the full
153
+ edge, as its bottom bar does: the frames show no sheet without a title. */
154
+ .Toolbar[data-host="page"][data-placement="top"][data-background="soft"]:not([data-mobile-variant="sheet"] *):not(:has(> .Heading, > .Content[data-fill]))::before {
155
+ inset: 0 0 auto;
156
+ height: var(--toolbar-padding-top, 0px);
157
+ -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
158
+ mask-image: linear-gradient(to bottom, #000, transparent);
159
+ }
160
+
133
161
  /* Leading alignment, compact titles and filled content share one row from the start edge. */
134
162
  .Toolbar:is([data-title-align="start"], [data-title-style="compact-large"], [data-title-style="compact-medium"]),
135
163
  .Toolbar:has(> .Content[data-fill]) {
@@ -238,7 +266,8 @@
238
266
  --mobile-glass-backdrop-filter: none;
239
267
  }
240
268
 
241
- .Toolbar[data-placement="bottom"] .Group {
269
+ /* Set on the bar, so a ButtonGroup in it takes the same capsule as a Group (ButtonGroup.module.css). */
270
+ .Toolbar[data-placement="bottom"] {
242
271
  --toolbar-group-gap: var(--toolbar-bottom-group-gap);
243
272
  --toolbar-group-padding: var(--toolbar-bottom-group-padding);
244
273
  }
@@ -263,6 +292,11 @@
263
292
  --button-icon-size: var(--toolbar-icon-size);
264
293
  }
265
294
 
295
+ /* A symbol with less ink (the plus of Contacts, IMG_5737) asks for the smaller box with iconSize="sm". */
296
+ .Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a)[data-icon-size="sm"]:not([data-navigation-action]) {
297
+ --button-icon-size: var(--toolbar-icon-size-sm);
298
+ }
299
+
266
300
  .Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a):not([data-navigation-action], [data-uniform]) {
267
301
  --button-gutter: var(--toolbar-label-gutter);
268
302
  }
@@ -331,11 +365,11 @@
331
365
  --input-adornment-offset: 0px;
332
366
  --control-gutter-pill-scaling: 1;
333
367
  --input-soft-background-color: var(--mobile-glass-background);
334
- --input-placeholder-text-color: var(--mobile-label-tertiary, var(--color-text-tertiary));
368
+ --input-placeholder-text-color: var(--toolbar-search-placeholder-color);
335
369
  border-radius: var(--radius-full);
336
370
  background-image: var(--mobile-glass-sheen);
337
371
  box-shadow: var(--mobile-glass-shadow);
338
- font-weight: var(--toolbar-label-font-weight);
372
+ font-weight: var(--toolbar-search-font-weight);
339
373
  backdrop-filter: var(--mobile-glass-backdrop-filter);
340
374
  }
341
375
 
@@ -576,4 +610,609 @@
576
610
  --toolbar-background: var(--dialog-panel-background);
577
611
  }
578
612
  }
613
+ :where([data-plex-layout="phone"]) .Toolbar {
614
+ --toolbar-item-size: var(--toolbar-top-item-size);
615
+ --toolbar-item-gap: var(--toolbar-top-item-gap);
616
+ --toolbar-edge-blur: var(--toolbar-edge-blur-small);
617
+ --navigation-button-size: var(--toolbar-item-size);
618
+ position: relative;
619
+ z-index: 5;
620
+ display: grid;
621
+ flex: none;
622
+ grid-template-areas: "leading heading trailing";
623
+ grid-template-columns: minmax(max-content, 1fr) minmax(0, auto) minmax(max-content, 1fr);
624
+ align-items: center;
625
+ min-width: 0;
626
+ padding: var(--toolbar-padding-top, 0px) var(--toolbar-gutter) var(--toolbar-padding-bottom) var(--toolbar-gutter);
627
+ color: var(--color-text);
628
+ }
629
+
630
+ /* Soft scroll edge: the canvas color covers content scrolled under the bar down to its bottom and fades
631
+ out past it over --page-bar-soft-tail. Native iOS 26 bars hide content under the row almost entirely
632
+ (IMG_5484, 5503: text behind the title at 7-10% of its contrast) and keep that cover through the bar's
633
+ bottom padding (IMG_5503). */
634
+ :where([data-plex-layout="phone"]) .Toolbar::before {
635
+ position: absolute;
636
+ z-index: -1;
637
+ inset: 0 0 calc(-1 * var(--page-bar-soft-tail, 32px));
638
+ background: var(--toolbar-background, var(--dialog-panel-background, var(--page-background)));
639
+ backdrop-filter: blur(var(--toolbar-edge-blur));
640
+ content: "";
641
+ -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--page-bar-soft-tail, 32px)), transparent);
642
+ mask-image: linear-gradient(to bottom, #000 calc(100% - var(--page-bar-soft-tail, 32px)), transparent);
643
+ pointer-events: none;
644
+ }
645
+
646
+ /* The other backgrounds fill the bar itself (scroll edge styles of iOS 26, `BarBackground`). Hard and
647
+ solid are opaque: the kit's Hard edge (Materials 5661:26978) blurs under an opaque fill, which shows
648
+ nothing. Glass is the translucent, blurred bar of earlier iOS. Hard and glass draw a line once content
649
+ is under the bar, and glass shows itself only then. */
650
+ :where([data-plex-layout="phone"]) .Toolbar:not([data-background="soft"])::before {
651
+ inset: 0;
652
+ backdrop-filter: none;
653
+ -webkit-mask-image: none;
654
+ mask-image: none;
655
+ transition: opacity var(--transition-duration-basic), border-color var(--transition-duration-basic);
656
+ }
657
+
658
+ :where([data-plex-layout="phone"]) .Toolbar[data-background="glass"]::before {
659
+ background: color-mix(in srgb, var(--toolbar-background, var(--dialog-panel-background, var(--page-background))) var(--page-bar-veil-opacity), transparent);
660
+ backdrop-filter: var(--page-bar-glass-filter);
661
+ opacity: 0;
662
+ }
663
+
664
+ /* The line of a hard or glass bar faces the content: under a top bar, above a bottom one. */
665
+ :where([data-plex-layout="phone"]) .Toolbar[data-placement="top"][data-background="hard"]::before {
666
+ border-bottom: 1px solid transparent;
667
+ }
668
+
669
+ :where([data-plex-layout="phone"]) .Toolbar[data-placement="top"][data-background="glass"]::before {
670
+ border-bottom: 0.5px solid var(--page-bar-line);
671
+ }
672
+
673
+ :where([data-plex-layout="phone"]) .Toolbar[data-placement="top"][data-scrolled][data-background="hard"]::before {
674
+ border-bottom-color: var(--page-bar-hard-line);
675
+ }
676
+
677
+ :where([data-plex-layout="phone"]) .Toolbar[data-placement="top"][data-scrolled][data-background="glass"]::before {
678
+ opacity: 1;
679
+ }
680
+
681
+ :where([data-plex-layout="phone"]) .Toolbar[data-placement="bottom"] {
682
+ --toolbar-item-size: var(--toolbar-bottom-item-size);
683
+ --toolbar-item-gap: var(--toolbar-bottom-item-gap);
684
+ /* The space above the bar's items: the edge is measured from the items, so it moves with this space. */
685
+ --toolbar-bottom-item-top: var(--toolbar-bottom-padding-top);
686
+ grid-template-areas: "leading content trailing";
687
+ padding: var(--toolbar-bottom-item-top) var(--toolbar-bottom-gutter) var(--toolbar-bottom-padding-bottom);
688
+ }
689
+
690
+ /* The edge starts 27pt above the items, as on native iOS 26 (IMG_5491), and covers the content fully from the
691
+ items' top down to the bottom of the screen: no content shows through a soft or glass item (owner 07.11;
692
+ the native glass capsule hid 33pt more of the fade). */
693
+ :where([data-plex-layout="phone"]) .Toolbar[data-placement="bottom"]::before {
694
+ inset: calc(var(--toolbar-bottom-item-top) - 27px) 0 0;
695
+ -webkit-mask-image: linear-gradient(to bottom, transparent, #000 27px);
696
+ mask-image: linear-gradient(to bottom, transparent, #000 27px);
697
+ }
698
+
699
+ /* The other backgrounds start at the top of the bar: the edge's place and mask, which come later than
700
+ the shared rule, go too. */
701
+ :where([data-plex-layout="phone"]) .Toolbar[data-placement="bottom"]:not([data-background="soft"])::before {
702
+ inset: 0;
703
+ -webkit-mask-image: none;
704
+ mask-image: none;
705
+ }
706
+
707
+ :where([data-plex-layout="phone"]) .Toolbar[data-placement="bottom"][data-background="hard"]::before {
708
+ border-top: 1px solid transparent;
709
+ }
710
+
711
+ :where([data-plex-layout="phone"]) .Toolbar[data-placement="bottom"][data-background="glass"]::before {
712
+ border-top: 0.5px solid var(--page-bar-line);
713
+ }
714
+
715
+ :where([data-plex-layout="phone"]) .Toolbar[data-placement="bottom"][data-content-below][data-background="hard"]::before {
716
+ border-top-color: var(--page-bar-hard-line);
717
+ }
718
+
719
+ :where([data-plex-layout="phone"]) .Toolbar[data-placement="bottom"][data-content-below][data-background="glass"]::before {
720
+ opacity: 1;
721
+ }
722
+
723
+ /* On a page the soft edge of a bottom bar is no band at all (plan 172, owner 08.11 «ios по дефолту разве
724
+ добавляет фон? внизу»): native iOS 26 lets content run under and around the bottom controls, at full
725
+ contrast down to the screen's edge (Mail IMG_5534 and 5551, Phone IMG_5615); each glass control stands
726
+ out by itself. A sheet keeps its soft edge: its list fades into the panel above a bottom search field
727
+ (Country or region, IMG_5491), and so does a Page laid out inside one. */
728
+ :where([data-plex-layout="phone"]) .Toolbar[data-placement="bottom"][data-background="soft"]:not([data-host="dialog"], [data-mobile-variant="sheet"] *)::before {
729
+ display: none;
730
+ }
731
+
732
+ /* With content under it, a bottom bar's glass casts the raised shadow, as a top bar's does once scrolled.
733
+ A sheet's bar keeps the glass of the sheet (Dialog). */
734
+ :where([data-plex-layout="phone"]) .Toolbar[data-placement="bottom"][data-content-below]:not([data-mobile-variant="sheet"] *) {
735
+ --mobile-glass-shadow: var(--mobile-glass-shadow-raised);
736
+ }
737
+
738
+ /* A single wide action (Apps 2.4 Fullsize) leaves 12px above it. */
739
+ :where([data-plex-layout="phone"]) .Toolbar[data-placement="bottom"]:has(> .Content[data-fill] > :where(button, a)) {
740
+ --toolbar-edge-blur: var(--toolbar-edge-blur-large);
741
+ --toolbar-bottom-item-top: var(--toolbar-bottom-fill-padding-top);
742
+ }
743
+
744
+ /* Apps 2.4 Toolbar Search: a flat bar of the canvas color, 14px below the field. */
745
+ :where([data-plex-layout="phone"]) .Toolbar[data-placement="top"]:has(> .Content[data-fill]) {
746
+ --toolbar-padding-bottom: var(--toolbar-search-padding-bottom);
747
+ }
748
+
749
+ :where([data-plex-layout="phone"]) .Toolbar[data-placement="top"]:has(> .Content[data-fill])[data-background="soft"]::before {
750
+ inset: 0;
751
+ background: color-mix(in srgb, var(--toolbar-background, var(--dialog-panel-background, var(--page-background))) var(--toolbar-flat-opacity), transparent);
752
+ backdrop-filter: blur(var(--toolbar-flat-blur));
753
+ -webkit-mask-image: none;
754
+ mask-image: none;
755
+ }
756
+
757
+ /* A top bar of controls alone, with no title, leaves the content clear under its controls: on a page the soft
758
+ edge covers only the status bar and fades out to its bottom, as in Notes (IMG_5734, 5736: text at 18% of its
759
+ contrast at the top and at 44%, blurred, 37pt down, clear from 53pt; a top safe area of 59pt). Each glass
760
+ control stands out by itself, as on a bottom bar. With a title the edge covers the row, as in Contacts
761
+ (IMG_5737) and Settings (IMG_5484, 5503): the title needs it. A Page laid out inside a Sheet keeps the full
762
+ edge, as its bottom bar does: the frames show no sheet without a title. */
763
+ :where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-placement="top"][data-background="soft"]:not([data-mobile-variant="sheet"] *):not(:has(> .Heading, > .Content[data-fill]))::before {
764
+ inset: 0 0 auto;
765
+ height: var(--toolbar-padding-top, 0px);
766
+ -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
767
+ mask-image: linear-gradient(to bottom, #000, transparent);
768
+ }
769
+
770
+ /* Leading alignment, compact titles and filled content share one row from the start edge. */
771
+ :where([data-plex-layout="phone"]) .Toolbar:is([data-title-align="start"], [data-title-style="compact-large"], [data-title-style="compact-medium"]), :where([data-plex-layout="phone"]) .Toolbar:has(> .Content[data-fill]) {
772
+ grid-template-columns: max-content minmax(0, 1fr) max-content;
773
+ -moz-column-gap: var(--toolbar-item-gap);
774
+ column-gap: var(--toolbar-item-gap);
775
+ }
776
+
777
+ :where([data-plex-layout="phone"]) .Toolbar:has(> .Content[data-fill]) {
778
+ grid-template-areas: "leading content trailing";
779
+ }
780
+
781
+ :where([data-plex-layout="phone"]) .Toolbar:is([data-title-align="start"], [data-title-style="compact-large"], [data-title-style="compact-medium"]):not(:has(> .Leading)), :where([data-plex-layout="phone"]) .Toolbar:has(> .Content[data-fill]):not(:has(> .Leading)) {
782
+ grid-template-areas: "heading trailing";
783
+ grid-template-columns: minmax(0, 1fr) max-content;
784
+ }
785
+
786
+ :where([data-plex-layout="phone"]) .Toolbar:has(> .Content[data-fill]):not(:has(> .Leading)) {
787
+ grid-template-areas: "content trailing";
788
+ }
789
+
790
+ :where([data-plex-layout="phone"]) .Toolbar:has(> .Content[data-fill]):not(:has(> .Leading)):not(:has(> .Trailing)) {
791
+ grid-template-areas: "content";
792
+ grid-template-columns: minmax(0, 1fr);
793
+ }
794
+
795
+ /* Large title: the controls stay in their own row and the title sits below it. */
796
+ :where([data-plex-layout="phone"]) .Toolbar[data-title-style="large"] {
797
+ --toolbar-edge-blur: var(--toolbar-edge-blur-large);
798
+ grid-template-areas:
799
+ "leading . trailing"
800
+ "heading heading heading";
801
+ grid-template-columns: max-content minmax(0, 1fr) max-content;
802
+ row-gap: var(--toolbar-large-title-gap);
803
+ }
804
+
805
+ :where([data-plex-layout="phone"]) .Toolbar:is([data-title-style="compact-large"], [data-title-style="compact-medium"]), :where([data-plex-layout="phone"]) .Toolbar:has(> .Heading > .Subtitle) {
806
+ --toolbar-edge-blur: var(--toolbar-edge-blur-large);
807
+ }
808
+
809
+ :where([data-plex-layout="phone"]) .Leading,
810
+ :where([data-plex-layout="phone"]) .Trailing,
811
+ :where([data-plex-layout="phone"]) .Group {
812
+ display: flex;
813
+ align-items: center;
814
+ gap: var(--toolbar-item-gap);
815
+ min-width: 0;
816
+ min-height: var(--toolbar-item-size);
817
+ }
818
+
819
+ :where([data-plex-layout="phone"]) .Leading {
820
+ grid-area: leading;
821
+ justify-self: start;
822
+ }
823
+
824
+ :where([data-plex-layout="phone"]) .Trailing {
825
+ grid-area: trailing;
826
+ justify-content: flex-end;
827
+ justify-self: end;
828
+ }
829
+
830
+ :where([data-plex-layout="phone"]) .Content {
831
+ display: flex;
832
+ grid-area: heading;
833
+ align-items: center;
834
+ justify-content: center;
835
+ gap: var(--toolbar-item-gap);
836
+ min-width: 0;
837
+ min-height: var(--toolbar-item-size);
838
+ }
839
+
840
+ :where([data-plex-layout="phone"]) .Content[data-fill] {
841
+ grid-area: content;
842
+ justify-content: stretch;
843
+ }
844
+
845
+ :where([data-plex-layout="phone"]) .Content[data-fill] > * {
846
+ flex: 1 1 auto;
847
+ min-width: 0;
848
+ }
849
+
850
+ :where([data-plex-layout="phone"]) .Toolbar[data-placement="bottom"] > .Content:not([data-fill]) {
851
+ grid-area: content;
852
+ }
853
+
854
+ /* Several buttons in one capsule (iOS 26 kit Buttons Top and Bottom: 2 to 6 Symbols). The capsule
855
+ carries the shared mobile glass; the buttons inside it stay clear. */
856
+ :where([data-plex-layout="phone"]) .Group {
857
+ gap: var(--toolbar-group-gap);
858
+ padding-inline: var(--toolbar-group-padding);
859
+ border-radius: var(--radius-full);
860
+ background-color: var(--mobile-glass-background);
861
+ background-image: var(--mobile-glass-sheen);
862
+ box-shadow: var(--mobile-glass-shadow);
863
+ backdrop-filter: var(--mobile-glass-backdrop-filter);
864
+ }
865
+
866
+ :where([data-plex-layout="phone"]) .Group > :where(button, a) {
867
+ --mobile-glass-background: transparent;
868
+ --mobile-glass-sheen: none;
869
+ --mobile-glass-background-hover: var(--toolbar-group-item-hover);
870
+ --mobile-glass-background-active: var(--toolbar-group-item-active);
871
+ --mobile-glass-shadow: none;
872
+ --mobile-glass-backdrop-filter: none;
873
+ }
874
+
875
+ /* Set on the bar, so a ButtonGroup in it takes the same capsule as a Group (ButtonGroup.module.css). */
876
+ :where([data-plex-layout="phone"]) .Toolbar[data-placement="bottom"] {
877
+ --toolbar-group-gap: var(--toolbar-bottom-group-gap);
878
+ --toolbar-group-padding: var(--toolbar-bottom-group-padding);
879
+ }
880
+
881
+ /* No shadow at rest: the glass casts one once content has scrolled under the bar. */
882
+ :where([data-plex-layout="phone"]) .Toolbar[data-scrolled] {
883
+ --mobile-glass-shadow: var(--mobile-glass-shadow-raised);
884
+ }
885
+
886
+ /* The extra class outweighs the sizes of Button itself, whatever order the style sheets load in. */
887
+ :where([data-plex-layout="phone"]) .Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a) {
888
+ --button-size: var(--toolbar-item-size);
889
+ --button-uniform-size: var(--toolbar-item-size);
890
+ --button-radius: var(--radius-full);
891
+ --button-font-size: var(--toolbar-label-font-size);
892
+ --button-line-height: var(--toolbar-label-line-height);
893
+ --button-font-weight: var(--toolbar-label-font-weight);
894
+ }
895
+
896
+ /* A bar symbol, sized by its drawn glyph (--toolbar-icon-size: the kit's 29pt box, about 22pt of ink). */
897
+ :where([data-plex-layout="phone"]) .Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a):not([data-navigation-action]) {
898
+ --button-icon-size: var(--toolbar-icon-size);
899
+ }
900
+
901
+ /* A symbol with less ink (the plus of Contacts, IMG_5737) asks for the smaller box with iconSize="sm". */
902
+ :where([data-plex-layout="phone"]) .Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a)[data-icon-size="sm"]:not([data-navigation-action]) {
903
+ --button-icon-size: var(--toolbar-icon-size-sm);
904
+ }
905
+
906
+ :where([data-plex-layout="phone"]) .Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a):not([data-navigation-action], [data-uniform]) {
907
+ --button-gutter: var(--toolbar-label-gutter);
908
+ }
909
+
910
+ :where([data-plex-layout="phone"]) .Toolbar[data-placement="bottom"] :is(.Leading, .Trailing, .Content, .Group) > :where(button, a):not([data-navigation-action], [data-uniform]) {
911
+ --button-gutter: var(--toolbar-bottom-label-gutter);
912
+ }
913
+
914
+ :where([data-plex-layout="phone"]) :is(.Leading, .Trailing, .Content, .Group) > :where(button, a):where(:not([data-disabled], [data-mobile-material="flat"])):where([data-color="primary"], [data-color="secondary"]):where([data-variant="soft"], [data-variant="ghost"]) {
915
+ --button-mobile-material-background: var(--mobile-glass-background);
916
+ --button-mobile-material-sheen: var(--mobile-glass-sheen);
917
+ --button-mobile-material-shadow: var(--mobile-glass-shadow);
918
+ --button-mobile-material-backdrop-filter: var(--mobile-glass-backdrop-filter);
919
+ --button-mobile-material-opacity: 1;
920
+ --button-mobile-material-scale: 1;
921
+ --button-mobile-material-hover: var(--mobile-glass-background-hover);
922
+ --button-mobile-material-active: var(--mobile-glass-background-active);
923
+ }
924
+
925
+ /* Disabled (iOS 26 kit _Button - Symbol, Text and Back, State=Disabled): a bar button keeps the glass of its
926
+ capsule, which inside a Group is the Group's, and draws its symbol or label in the tertiary label color.
927
+ Button drops the material of a disabled button elsewhere; the extra attribute outweighs it and the shared
928
+ disabled color in any style sheet order. */
929
+ :where([data-plex-layout="phone"]) .Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a)[data-disabled][data-variant]:where(:not([data-mobile-material="flat"])):where([data-color="primary"], [data-color="secondary"]):where([data-variant="soft"], [data-variant="ghost"]) {
930
+ --button-text-color: var(--mobile-label-tertiary, var(--color-text-tertiary));
931
+ --button-mobile-material-background: var(--mobile-glass-background);
932
+ --button-mobile-material-sheen: var(--mobile-glass-sheen);
933
+ --button-mobile-material-shadow: var(--mobile-glass-shadow);
934
+ --button-mobile-material-backdrop-filter: var(--mobile-glass-backdrop-filter);
935
+ --button-mobile-material-opacity: 1;
936
+ --button-mobile-material-scale: 1;
937
+ }
938
+
939
+ /* A prominent action (NavigationButton confirm, a solid Button) gives up its color when disabled. */
940
+ :where([data-plex-layout="phone"]) .Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a)[data-disabled][data-variant="solid"] {
941
+ --button-background-color: var(--toolbar-prominent-disabled-background);
942
+ --button-text-color: var(--toolbar-prominent-disabled-color);
943
+ }
944
+
945
+ /* The gray capsule keeps the outline and the soft shadow of the bar's glass (Calendar, IMG_5433). */
946
+ :where([data-plex-layout="phone"]) .Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a)[data-disabled][data-variant="solid"]::before {
947
+ box-shadow: var(--mobile-glass-shadow);
948
+ }
949
+
950
+ /* An enabled prominent action takes the accent tint, with the edge of the glass (see the tokens). An info
951
+ action already is the accent and takes the same edge (View Options Done, owner 08.11). */
952
+ :where([data-plex-layout="phone"]) .Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a)[data-variant="solid"]:where([data-color="primary"], [data-color="info"]):not([data-disabled]) {
953
+ --button-background-color: var(--toolbar-prominent-background);
954
+ --button-background-color-hover: var(--toolbar-prominent-background-hover);
955
+ --button-background-color-active: var(--toolbar-prominent-background-active);
956
+ --button-text-color: var(--toolbar-prominent-color);
957
+ }
958
+
959
+ :where([data-plex-layout="phone"]) .Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a)[data-variant="solid"]:where([data-color="primary"], [data-color="info"]):not([data-disabled])::before {
960
+ background-image: var(--toolbar-prominent-sheen);
961
+ box-shadow: var(--toolbar-prominent-shadow);
962
+ }
963
+
964
+ /* A search field (iOS 26 kit Search Top and Bottom): the row height and the glass of the bar buttons.
965
+ The extra attribute outweighs the field's own focus and hover outlines, which a bar does not draw. */
966
+ :where([data-plex-layout="phone"]) .Toolbar :is(.Leading, .Trailing, .Content) > [data-slot="input"][data-variant] {
967
+ --input-size: var(--toolbar-item-size);
968
+ --input-font-size: var(--toolbar-label-font-size);
969
+ --input-gutter: var(--toolbar-search-gutter);
970
+ --input-gap: var(--toolbar-search-icon-gap);
971
+ --input-adornment-offset: 0px;
972
+ --control-gutter-pill-scaling: 1;
973
+ --input-soft-background-color: var(--mobile-glass-background);
974
+ --input-placeholder-text-color: var(--toolbar-search-placeholder-color);
975
+ border-radius: var(--radius-full);
976
+ background-image: var(--mobile-glass-sheen);
977
+ box-shadow: var(--mobile-glass-shadow);
978
+ font-weight: var(--toolbar-search-font-weight);
979
+ backdrop-filter: var(--mobile-glass-backdrop-filter);
980
+ }
981
+
982
+ :where([data-plex-layout="phone"]) .Toolbar :is(.Leading, .Trailing, .Content) > [data-slot="input"][data-variant] > svg {
983
+ flex: none;
984
+ width: var(--toolbar-search-icon-size);
985
+ height: var(--toolbar-search-icon-size);
986
+ }
987
+
988
+ /* Title: centered in the 44px row. Native iOS 26 bars put its cap middle on the buttons' center
989
+ (IMG_5508/5511/5512/5514/5515, within 1px); the kit's text frame sits 2px lower. */
990
+ :where([data-plex-layout="phone"]) .Heading {
991
+ display: flex;
992
+ grid-area: heading;
993
+ flex-direction: column;
994
+ align-items: center;
995
+ justify-content: center;
996
+ min-width: 0;
997
+ min-height: var(--toolbar-item-size);
998
+ text-align: center;
999
+ }
1000
+
1001
+ :where([data-plex-layout="phone"]) .Title {
1002
+ max-width: 100%;
1003
+ margin: 0;
1004
+ overflow: hidden;
1005
+ color: var(--color-text);
1006
+ font-size: var(--toolbar-title-font-size);
1007
+ font-weight: var(--toolbar-title-font-weight);
1008
+ line-height: var(--toolbar-title-line-height);
1009
+ text-overflow: ellipsis;
1010
+ white-space: nowrap;
1011
+ }
1012
+
1013
+ :where([data-plex-layout="phone"]) .Subtitle {
1014
+ max-width: 100%;
1015
+ margin: -2px 0 0;
1016
+ overflow: hidden;
1017
+ color: var(--mobile-label-secondary, var(--color-text-secondary));
1018
+ font-size: var(--toolbar-subtitle-font-size);
1019
+ font-weight: var(--toolbar-subtitle-font-weight);
1020
+ line-height: var(--toolbar-subtitle-line-height);
1021
+ text-overflow: ellipsis;
1022
+ white-space: nowrap;
1023
+ }
1024
+
1025
+ /* Two lines: title 15/20 at 6px, subtitle 12/16 below it. The title of a Dialog's bar can sit in a wrapper of
1026
+ its own (one that takes focus when the Sheet opens). */
1027
+ :where([data-plex-layout="phone"]) .Heading:has(> .Subtitle) {
1028
+ transform: translateY(1px);
1029
+ }
1030
+
1031
+ :where([data-plex-layout="phone"]) .Heading:has(> .Subtitle) .Title {
1032
+ font-size: var(--toolbar-title-compact-font-size);
1033
+ line-height: var(--toolbar-title-compact-line-height);
1034
+ }
1035
+
1036
+ :where([data-plex-layout="phone"]) .Toolbar:is([data-title-align="start"], [data-title-style="compact-large"], [data-title-style="compact-medium"], [data-title-style="large"]) > .Heading {
1037
+ align-items: flex-start;
1038
+ text-align: start;
1039
+ }
1040
+
1041
+ /* The large title spans the columns of the row of controls above it, so a long one would widen their max-content
1042
+ tracks and push the trailing button off the screen; with no width of its own it takes the row's and truncates. */
1043
+ :where([data-plex-layout="phone"]) .Toolbar[data-title-style="large"] > .Heading {
1044
+ contain: inline-size;
1045
+ min-height: 0;
1046
+ transform: none;
1047
+ }
1048
+
1049
+ :where([data-plex-layout="phone"]) .Toolbar[data-title-style="large"] > .Heading > .Title {
1050
+ font-size: var(--toolbar-large-title-font-size);
1051
+ font-weight: var(--font-weight-bold);
1052
+ line-height: var(--toolbar-large-title-line-height);
1053
+ }
1054
+
1055
+ :where([data-plex-layout="phone"]) .Toolbar[data-title-style="large"] > .Heading > .Subtitle {
1056
+ margin: 0;
1057
+ font-size: var(--toolbar-large-subtitle-font-size);
1058
+ font-weight: var(--font-weight-normal);
1059
+ line-height: var(--toolbar-large-subtitle-line-height);
1060
+ }
1061
+
1062
+ :where([data-plex-layout="phone"]) .Toolbar[data-title-style="compact-large"] > .Heading {
1063
+ align-self: start;
1064
+ min-height: 0;
1065
+ transform: none;
1066
+ }
1067
+
1068
+ :where([data-plex-layout="phone"]) .Toolbar[data-title-style="compact-large"] > .Heading > .Title {
1069
+ font-size: var(--toolbar-large-title-font-size);
1070
+ font-weight: var(--font-weight-bold);
1071
+ line-height: var(--toolbar-large-title-line-height);
1072
+ }
1073
+
1074
+ :where([data-plex-layout="phone"]) .Toolbar[data-title-style="compact-medium"] > .Heading {
1075
+ transform: none;
1076
+ }
1077
+
1078
+ :where([data-plex-layout="phone"]) .Toolbar[data-title-style="compact-medium"] > .Heading > .Title {
1079
+ font-size: var(--toolbar-medium-title-font-size);
1080
+ font-weight: var(--font-weight-bold);
1081
+ line-height: var(--toolbar-medium-title-line-height);
1082
+ }
1083
+
1084
+ /* Hosts: a Page puts the top bar over its content under the status bar, a Sheet below its grabber. */
1085
+ :where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-placement="top"] {
1086
+ --toolbar-padding-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
1087
+ position: absolute;
1088
+ inset: 0 0 auto;
1089
+ }
1090
+
1091
+ /* A large title on a page sits at the top of the content and scrolls up with it under the row of
1092
+ controls, which then shows the title inline, as UIKit does in iOS 26 (WWDC25 "Build a UIKit app
1093
+ with the new design": large titles scroll with the content underneath the bar). Page.Content
1094
+ writes its scroll offset to --page-scroll-y and the Toolbar measures how far the title travels.
1095
+ The title fades out over 8px as it passes under the row; the soft edge then covers the row only,
1096
+ as it does for an inline title. */
1097
+ :where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-title-style="large"] {
1098
+ /* Until the Toolbar has measured how far the title travels (a server-rendered page before it hydrates), the
1099
+ title has not gone: the large title shows, and the row's inline copy and the bar's line stay hidden. A
1100
+ travel of 0 showed the inline title in the row for the first frames, then swapped it for the large one. */
1101
+ --toolbar-large-title-travel: 100000;
1102
+ --toolbar-edge-blur: var(--toolbar-edge-blur-small);
1103
+ --toolbar-large-title-scroll: calc(min(var(--page-scroll-y, 0), var(--toolbar-large-title-travel, 0) + 16) * 1px);
1104
+ grid-template-areas:
1105
+ "leading collapsed trailing"
1106
+ "heading heading heading";
1107
+ grid-template-columns: minmax(max-content, 1fr) minmax(0, auto) minmax(max-content, 1fr);
1108
+ /* Content scrolled into the place of the title stays under the pointer. */
1109
+ pointer-events: none;
1110
+ }
1111
+
1112
+ :where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-title-style="large"]::before {
1113
+ inset: 0 0 auto;
1114
+ height: calc(var(--toolbar-padding-top, 0px) + var(--toolbar-item-size) + var(--toolbar-padding-bottom) + 16px);
1115
+ }
1116
+
1117
+ :where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-title-style="large"]:not([data-background="soft"])::before {
1118
+ height: calc(var(--toolbar-padding-top, 0px) + var(--toolbar-item-size) + var(--toolbar-padding-bottom));
1119
+ }
1120
+
1121
+ /* The large title is the content under the row until it has gone: a hard or glass bar shows its line
1122
+ with the inline title, over the same last 8px. */
1123
+ :where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-title-style="large"][data-scrolled][data-background="hard"]::before {
1124
+ border-bottom-color: color-mix(in srgb, var(--page-bar-hard-line) calc(clamp(0, (var(--page-scroll-y, 0) - var(--toolbar-large-title-travel, 0) + 8) / 8, 1) * 100%), transparent);
1125
+ }
1126
+
1127
+ :where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-title-style="large"][data-scrolled][data-background="glass"]::before {
1128
+ opacity: clamp(0, (var(--page-scroll-y, 0) - var(--toolbar-large-title-travel, 0) + 8) / 8, 1);
1129
+ }
1130
+
1131
+ :where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-title-style="large"] > :is(.Leading, .Trailing, .Content), :where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-title-style="large"]:not([data-scrolled]) > .Heading {
1132
+ pointer-events: auto;
1133
+ }
1134
+
1135
+ :where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-title-style="large"] > .Heading {
1136
+ transform: translateY(calc(-1 * var(--toolbar-large-title-scroll)));
1137
+ -webkit-mask-image: linear-gradient(to bottom, transparent calc(var(--toolbar-large-title-scroll) - var(--toolbar-large-title-gap)), #000 calc(var(--toolbar-large-title-scroll) - var(--toolbar-large-title-gap) + 8px));
1138
+ mask-image: linear-gradient(to bottom, transparent calc(var(--toolbar-large-title-scroll) - var(--toolbar-large-title-gap)), #000 calc(var(--toolbar-large-title-scroll) - var(--toolbar-large-title-gap) + 8px));
1139
+ }
1140
+
1141
+ /* The inline title fades in over the last 8px of the large title's way. */
1142
+ :where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-title-style="large"] > .CollapsedTitle {
1143
+ grid-area: collapsed;
1144
+ min-width: 0;
1145
+ overflow: hidden;
1146
+ color: var(--color-text);
1147
+ font-size: var(--toolbar-title-font-size);
1148
+ font-weight: var(--toolbar-title-font-weight);
1149
+ line-height: var(--toolbar-title-line-height);
1150
+ text-align: center;
1151
+ text-overflow: ellipsis;
1152
+ white-space: nowrap;
1153
+ opacity: clamp(0, (var(--page-scroll-y, 0) - var(--toolbar-large-title-travel, 0) + 8) / 8, 1);
1154
+ }
1155
+
1156
+ /* With a subtitle the inline copy takes two lines, as the inline title does: 15/20 and 12/16 in the
1157
+ secondary label (iOS 26 kit Toolbar - Top - iPhone, Title 2 Line: 15 semibold over 12 medium). */
1158
+ :where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-title-style="large"] > .CollapsedTitle:has(> .CollapsedSubtitle) {
1159
+ display: flex;
1160
+ flex-direction: column;
1161
+ align-items: center;
1162
+ justify-content: center;
1163
+ font-size: var(--toolbar-title-compact-font-size);
1164
+ line-height: var(--toolbar-title-compact-line-height);
1165
+ transform: translateY(1px);
1166
+ }
1167
+
1168
+ :where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-title-style="large"] > .CollapsedTitle > :is(.CollapsedLine, .CollapsedSubtitle) {
1169
+ max-width: 100%;
1170
+ overflow: hidden;
1171
+ text-overflow: ellipsis;
1172
+ white-space: nowrap;
1173
+ }
1174
+
1175
+ :where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-title-style="large"] > .CollapsedTitle > .CollapsedSubtitle {
1176
+ margin-top: -2px;
1177
+ color: var(--mobile-label-secondary, var(--color-text-secondary));
1178
+ font-size: var(--toolbar-subtitle-font-size);
1179
+ font-weight: var(--toolbar-subtitle-font-weight);
1180
+ line-height: var(--toolbar-subtitle-line-height);
1181
+ }
1182
+
1183
+ :where([data-plex-layout="phone"]) .Toolbar[data-host="dialog"][data-placement="top"] {
1184
+ --toolbar-background: var(--dialog-panel-background);
1185
+ --toolbar-padding-top: var(--toolbar-sheet-padding-top);
1186
+ /* The panel radius is a shorthand (top corners only for a Sheet), so it goes to the shorthand too:
1187
+ a longhand would drop it and leave square corners that smear the Sheet's rounded top. */
1188
+ border-radius: var(--dialog-panel-radius, 0px);
1189
+ }
1190
+
1191
+ :where([data-plex-layout="phone"]) .Toolbar[data-host="dialog"][data-placement="top"]::before {
1192
+ border-radius: inherit;
1193
+ }
1194
+
1195
+ /* Grabber (iOS 26 kit Grabber: 36 × 5 at 5px). */
1196
+ :where([data-plex-layout="phone"]) .Toolbar[data-host="dialog"][data-placement="top"]::after {
1197
+ position: absolute;
1198
+ top: 5px;
1199
+ left: calc(50% - 18px);
1200
+ width: 36px;
1201
+ height: 5px;
1202
+ border-radius: var(--radius-full);
1203
+ background: var(--mobile-grabber-color, var(--color-background-secondary-soft-alpha));
1204
+ content: "";
1205
+ }
1206
+
1207
+ :where([data-plex-layout="phone"]) :where([data-mobile-placement="fullscreen"]) .Toolbar[data-host="dialog"][data-placement="top"] {
1208
+ --toolbar-padding-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
1209
+ }
1210
+
1211
+ :where([data-plex-layout="phone"]) :where([data-mobile-placement="fullscreen"]) .Toolbar[data-host="dialog"][data-placement="top"]::after {
1212
+ display: none;
1213
+ }
1214
+
1215
+ :where([data-plex-layout="phone"]) .Toolbar[data-host="dialog"][data-placement="bottom"] {
1216
+ --toolbar-background: var(--dialog-panel-background);
1217
+ }
579
1218
  }