@plexui/styles 0.1.33 → 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 (80) hide show
  1. package/dist/es/components/Accordion/Accordion.module.css +26 -1
  2. package/dist/es/components/Alert/Alert.module.css +213 -1
  3. package/dist/es/components/Badge/Badge.module.css +37 -0
  4. package/dist/es/components/Breadcrumb/Breadcrumb.module.css +63 -0
  5. package/dist/es/components/Button/Button.module.css +123 -22
  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 +31 -6
  9. package/dist/es/components/Checkbox/Checkbox.module.css +26 -72
  10. package/dist/es/components/CodeBlock/CodeBlock.module.css +34 -1
  11. package/dist/es/components/ColorPicker/ColorPicker.module.css +414 -0
  12. package/dist/es/components/ContextMenu/ContextMenu.module.css +55 -0
  13. package/dist/es/components/DataTable/DataTable.module.css +4 -0
  14. package/dist/es/components/DatePicker/Calendar.module.css +279 -6
  15. package/dist/es/components/DatePicker/CalendarNavigationIcon.module.css +10 -0
  16. package/dist/es/components/DateRangePicker/Calendar.module.css +226 -4
  17. package/dist/es/components/DateRangePicker/Trigger.module.css +45 -2
  18. package/dist/es/components/Dialog/Dialog.module.css +871 -89
  19. package/dist/es/components/EmptyMessage/EmptyMessage.module.css +52 -0
  20. package/dist/es/components/Field/Field.module.css +574 -24
  21. package/dist/es/components/FieldGroup/FieldGroup.module.css +188 -3
  22. package/dist/es/components/FileUpload/FileUpload.module.css +74 -1
  23. package/dist/es/components/FloatingLabelInput/FloatingLabelInput.module.css +40 -1
  24. package/dist/es/components/FloatingLabelSelect/FloatingLabelSelect.module.css +28 -1
  25. package/dist/es/components/IndexBar/IndexBar.module.css +146 -0
  26. package/dist/es/components/Indicator/LoadingIndicator.module.css +14 -7
  27. package/dist/es/components/Input/Input.module.css +198 -1
  28. package/dist/es/components/InputGroup/InputGroup.module.css +4 -0
  29. package/dist/es/components/MarkdownEditor/MarkdownEditor.module.css +18 -0
  30. package/dist/es/components/Menu/Menu.module.css +544 -34
  31. package/dist/es/components/OTPInput/OTPInput.module.css +6 -1
  32. package/dist/es/components/Page/Page.module.css +391 -31
  33. package/dist/es/components/PageControl/PageControl.module.css +81 -0
  34. package/dist/es/components/PhoneLayout/PhoneLayout.module.css +10 -0
  35. package/dist/es/components/Popover/Popover.module.css +17 -1
  36. package/dist/es/components/Select/Select.module.css +201 -9
  37. package/dist/es/components/SelectControl/SelectControl.module.css +151 -4
  38. package/dist/es/components/Sidebar/Sidebar.module.css +624 -71
  39. package/dist/es/components/Slider/Slider.module.css +132 -45
  40. package/dist/es/components/Sortable/Sortable.module.css +7 -3
  41. package/dist/es/components/Stepper/Stepper.module.css +98 -0
  42. package/dist/es/components/SwipeActions/SwipeActions.module.css +166 -0
  43. package/dist/es/components/Switch/Switch.module.css +59 -4
  44. package/dist/es/components/TabBar/TabBar.module.css +478 -0
  45. package/dist/es/components/Tabs/Tabs.module.css +315 -3
  46. package/dist/es/components/TagInput/TagInput.module.css +50 -9
  47. package/dist/es/components/Textarea/Textarea.module.css +6 -0
  48. package/dist/es/components/Tip/Tip.module.css +456 -0
  49. package/dist/es/components/Toast/Toast.module.css +197 -9
  50. package/dist/es/components/Toolbar/Toolbar.module.css +850 -21
  51. package/dist/es/styles/katex-fonts/KaTeX_AMS-Regular.woff2 +0 -0
  52. package/dist/es/styles/katex-fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  53. package/dist/es/styles/katex-fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  54. package/dist/es/styles/katex-fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  55. package/dist/es/styles/katex-fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  56. package/dist/es/styles/katex-fonts/KaTeX_Main-Bold.woff2 +0 -0
  57. package/dist/es/styles/katex-fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  58. package/dist/es/styles/katex-fonts/KaTeX_Main-Italic.woff2 +0 -0
  59. package/dist/es/styles/katex-fonts/KaTeX_Main-Regular.woff2 +0 -0
  60. package/dist/es/styles/katex-fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  61. package/dist/es/styles/katex-fonts/KaTeX_Math-Italic.woff2 +0 -0
  62. package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  63. package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  64. package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  65. package/dist/es/styles/katex-fonts/KaTeX_Script-Regular.woff2 +0 -0
  66. package/dist/es/styles/katex-fonts/KaTeX_Size1-Regular.woff2 +0 -0
  67. package/dist/es/styles/katex-fonts/KaTeX_Size2-Regular.woff2 +0 -0
  68. package/dist/es/styles/katex-fonts/KaTeX_Size3-Regular.woff2 +0 -0
  69. package/dist/es/styles/katex-fonts/KaTeX_Size4-Regular.woff2 +0 -0
  70. package/dist/es/styles/katex-fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  71. package/dist/es/styles/katex-fonts/LICENSE +21 -0
  72. package/dist/es/styles/katex.min.css +666 -730
  73. package/dist/es/styles/mobile-materials.css +145 -14
  74. package/dist/es/styles/mobile-surfaces.css +82 -32
  75. package/dist/es/styles/touch.css +940 -92
  76. package/dist/es/styles/variables-components.css +356 -17
  77. package/package.json +1 -1
  78. package/postcss/parseLightDark.mjs +20 -2
  79. package/postcss/phoneLayoutScope.mjs +134 -0
  80. package/postcss.config.mjs +3 -0
@@ -18,48 +18,118 @@
18
18
  color: var(--color-text);
19
19
  }
20
20
 
21
- /* Soft scroll edge: the canvas color fades out over the content, which shows only once content
22
- is under the bar. It reaches 16px past the bar, as the reference effect does. */
21
+ /* Soft scroll edge: the canvas color covers content scrolled under the bar down to its bottom and fades
22
+ out past it over --page-bar-soft-tail. Native iOS 26 bars hide content under the row almost entirely
23
+ (IMG_5484, 5503: text behind the title at 7-10% of its contrast) and keep that cover through the bar's
24
+ bottom padding (IMG_5503). */
23
25
  .Toolbar::before {
24
26
  position: absolute;
25
27
  z-index: -1;
26
- inset: 0 0 -16px;
28
+ inset: 0 0 calc(-1 * var(--page-bar-soft-tail, 32px));
27
29
  background: var(--toolbar-background, var(--dialog-panel-background, var(--page-background)));
28
30
  backdrop-filter: blur(var(--toolbar-edge-blur));
29
31
  content: "";
30
- -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
31
- mask-image: linear-gradient(to bottom, #000, transparent);
32
+ -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--page-bar-soft-tail, 32px)), transparent);
33
+ mask-image: linear-gradient(to bottom, #000 calc(100% - var(--page-bar-soft-tail, 32px)), transparent);
32
34
  pointer-events: none;
33
35
  }
34
36
 
35
- .Toolbar[data-background="solid"]::before {
37
+ /* The other backgrounds fill the bar itself (scroll edge styles of iOS 26, `BarBackground`). Hard and
38
+ solid are opaque: the kit's Hard edge (Materials 5661:26978) blurs under an opaque fill, which shows
39
+ nothing. Glass is the translucent, blurred bar of earlier iOS. Hard and glass draw a line once content
40
+ is under the bar, and glass shows itself only then. */
41
+ .Toolbar:not([data-background="soft"])::before {
36
42
  inset: 0;
37
43
  backdrop-filter: none;
38
44
  -webkit-mask-image: none;
39
45
  mask-image: none;
46
+ transition: opacity var(--transition-duration-basic), border-color var(--transition-duration-basic);
47
+ }
48
+
49
+ .Toolbar[data-background="glass"]::before {
50
+ background: color-mix(in srgb, var(--toolbar-background, var(--dialog-panel-background, var(--page-background))) var(--page-bar-veil-opacity), transparent);
51
+ backdrop-filter: var(--page-bar-glass-filter);
52
+ opacity: 0;
53
+ }
54
+
55
+ /* The line of a hard or glass bar faces the content: under a top bar, above a bottom one. */
56
+ .Toolbar[data-placement="top"][data-background="hard"]::before {
57
+ border-bottom: 1px solid transparent;
58
+ }
59
+
60
+ .Toolbar[data-placement="top"][data-background="glass"]::before {
61
+ border-bottom: 0.5px solid var(--page-bar-line);
62
+ }
63
+
64
+ .Toolbar[data-placement="top"][data-scrolled][data-background="hard"]::before {
65
+ border-bottom-color: var(--page-bar-hard-line);
66
+ }
67
+
68
+ .Toolbar[data-placement="top"][data-scrolled][data-background="glass"]::before {
69
+ opacity: 1;
40
70
  }
41
71
 
42
72
  .Toolbar[data-placement="bottom"] {
43
73
  --toolbar-item-size: var(--toolbar-bottom-item-size);
44
74
  --toolbar-item-gap: var(--toolbar-bottom-item-gap);
75
+ /* The space above the bar's items: the edge is measured from the items, so it moves with this space. */
76
+ --toolbar-bottom-item-top: var(--toolbar-bottom-padding-top);
45
77
  grid-template-areas: "leading content trailing";
46
- padding: var(--toolbar-bottom-padding-top) var(--toolbar-bottom-gutter) var(--toolbar-bottom-padding-bottom);
78
+ padding: var(--toolbar-bottom-item-top) var(--toolbar-bottom-gutter) var(--toolbar-bottom-padding-bottom);
47
79
  }
48
80
 
81
+ /* The edge starts 27pt above the items, as on native iOS 26 (IMG_5491), and covers the content fully from the
82
+ items' top down to the bottom of the screen: no content shows through a soft or glass item (owner 07.11;
83
+ the native glass capsule hid 33pt more of the fade). */
49
84
  .Toolbar[data-placement="bottom"]::before {
50
- inset: -16px 0 0;
51
- -webkit-mask-image: linear-gradient(to top, #000, transparent);
52
- mask-image: linear-gradient(to top, #000, transparent);
85
+ inset: calc(var(--toolbar-bottom-item-top) - 27px) 0 0;
86
+ -webkit-mask-image: linear-gradient(to bottom, transparent, #000 27px);
87
+ mask-image: linear-gradient(to bottom, transparent, #000 27px);
53
88
  }
54
89
 
55
- .Toolbar[data-placement="bottom"][data-background="solid"]::before {
90
+ /* The other backgrounds start at the top of the bar: the edge's place and mask, which come later than
91
+ the shared rule, go too. */
92
+ .Toolbar[data-placement="bottom"]:not([data-background="soft"])::before {
56
93
  inset: 0;
94
+ -webkit-mask-image: none;
95
+ mask-image: none;
57
96
  }
58
97
 
98
+ .Toolbar[data-placement="bottom"][data-background="hard"]::before {
99
+ border-top: 1px solid transparent;
100
+ }
101
+
102
+ .Toolbar[data-placement="bottom"][data-background="glass"]::before {
103
+ border-top: 0.5px solid var(--page-bar-line);
104
+ }
105
+
106
+ .Toolbar[data-placement="bottom"][data-content-below][data-background="hard"]::before {
107
+ border-top-color: var(--page-bar-hard-line);
108
+ }
109
+
110
+ .Toolbar[data-placement="bottom"][data-content-below][data-background="glass"]::before {
111
+ opacity: 1;
112
+ }
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
+
59
129
  /* A single wide action (Apps 2.4 Fullsize) leaves 12px above it. */
60
130
  .Toolbar[data-placement="bottom"]:has(> .Content[data-fill] > :where(button, a)) {
61
131
  --toolbar-edge-blur: var(--toolbar-edge-blur-large);
62
- padding-top: var(--toolbar-bottom-fill-padding-top);
132
+ --toolbar-bottom-item-top: var(--toolbar-bottom-fill-padding-top);
63
133
  }
64
134
 
65
135
  /* Apps 2.4 Toolbar Search: a flat bar of the canvas color, 14px below the field. */
@@ -67,7 +137,7 @@
67
137
  --toolbar-padding-bottom: var(--toolbar-search-padding-bottom);
68
138
  }
69
139
 
70
- .Toolbar[data-placement="top"]:has(> .Content[data-fill]):not([data-background="solid"])::before {
140
+ .Toolbar[data-placement="top"]:has(> .Content[data-fill])[data-background="soft"]::before {
71
141
  inset: 0;
72
142
  background: color-mix(in srgb, var(--toolbar-background, var(--dialog-panel-background, var(--page-background))) var(--toolbar-flat-opacity), transparent);
73
143
  backdrop-filter: blur(var(--toolbar-flat-blur));
@@ -75,6 +145,19 @@
75
145
  mask-image: none;
76
146
  }
77
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
+
78
161
  /* Leading alignment, compact titles and filled content share one row from the start edge. */
79
162
  .Toolbar:is([data-title-align="start"], [data-title-style="compact-large"], [data-title-style="compact-medium"]),
80
163
  .Toolbar:has(> .Content[data-fill]) {
@@ -183,7 +266,8 @@
183
266
  --mobile-glass-backdrop-filter: none;
184
267
  }
185
268
 
186
- .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"] {
187
271
  --toolbar-group-gap: var(--toolbar-bottom-group-gap);
188
272
  --toolbar-group-padding: var(--toolbar-bottom-group-padding);
189
273
  }
@@ -203,11 +287,16 @@
203
287
  --button-font-weight: var(--toolbar-label-font-weight);
204
288
  }
205
289
 
206
- /* iOS 26 kit: a symbol is set at 17pt in a 36pt frame, about 20px of ink, in both bars. */
290
+ /* A bar symbol, sized by its drawn glyph (--toolbar-icon-size: the kit's 29pt box, about 22pt of ink). */
207
291
  .Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a):not([data-navigation-action]) {
208
292
  --button-icon-size: var(--toolbar-icon-size);
209
293
  }
210
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
+
211
300
  .Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a):not([data-navigation-action], [data-uniform]) {
212
301
  --button-gutter: var(--toolbar-label-gutter);
213
302
  }
@@ -227,6 +316,45 @@
227
316
  --button-mobile-material-active: var(--mobile-glass-background-active);
228
317
  }
229
318
 
319
+ /* Disabled (iOS 26 kit _Button - Symbol, Text and Back, State=Disabled): a bar button keeps the glass of its
320
+ capsule, which inside a Group is the Group's, and draws its symbol or label in the tertiary label color.
321
+ Button drops the material of a disabled button elsewhere; the extra attribute outweighs it and the shared
322
+ disabled color in any style sheet order. */
323
+ .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"]) {
324
+ --button-text-color: var(--mobile-label-tertiary, var(--color-text-tertiary));
325
+ --button-mobile-material-background: var(--mobile-glass-background);
326
+ --button-mobile-material-sheen: var(--mobile-glass-sheen);
327
+ --button-mobile-material-shadow: var(--mobile-glass-shadow);
328
+ --button-mobile-material-backdrop-filter: var(--mobile-glass-backdrop-filter);
329
+ --button-mobile-material-opacity: 1;
330
+ --button-mobile-material-scale: 1;
331
+ }
332
+
333
+ /* A prominent action (NavigationButton confirm, a solid Button) gives up its color when disabled. */
334
+ .Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a)[data-disabled][data-variant="solid"] {
335
+ --button-background-color: var(--toolbar-prominent-disabled-background);
336
+ --button-text-color: var(--toolbar-prominent-disabled-color);
337
+ }
338
+
339
+ /* The gray capsule keeps the outline and the soft shadow of the bar's glass (Calendar, IMG_5433). */
340
+ .Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a)[data-disabled][data-variant="solid"]::before {
341
+ box-shadow: var(--mobile-glass-shadow);
342
+ }
343
+
344
+ /* An enabled prominent action takes the accent tint, with the edge of the glass (see the tokens). An info
345
+ action already is the accent and takes the same edge (View Options Done, owner 08.11). */
346
+ .Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a)[data-variant="solid"]:where([data-color="primary"], [data-color="info"]):not([data-disabled]) {
347
+ --button-background-color: var(--toolbar-prominent-background);
348
+ --button-background-color-hover: var(--toolbar-prominent-background-hover);
349
+ --button-background-color-active: var(--toolbar-prominent-background-active);
350
+ --button-text-color: var(--toolbar-prominent-color);
351
+ }
352
+
353
+ .Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a)[data-variant="solid"]:where([data-color="primary"], [data-color="info"]):not([data-disabled])::before {
354
+ background-image: var(--toolbar-prominent-sheen);
355
+ box-shadow: var(--toolbar-prominent-shadow);
356
+ }
357
+
230
358
  /* A search field (iOS 26 kit Search Top and Bottom): the row height and the glass of the bar buttons.
231
359
  The extra attribute outweighs the field's own focus and hover outlines, which a bar does not draw. */
232
360
  .Toolbar :is(.Leading, .Trailing, .Content) > [data-slot="input"][data-variant] {
@@ -237,11 +365,11 @@
237
365
  --input-adornment-offset: 0px;
238
366
  --control-gutter-pill-scaling: 1;
239
367
  --input-soft-background-color: var(--mobile-glass-background);
240
- --input-placeholder-text-color: var(--mobile-label-tertiary, var(--color-text-tertiary));
368
+ --input-placeholder-text-color: var(--toolbar-search-placeholder-color);
241
369
  border-radius: var(--radius-full);
242
370
  background-image: var(--mobile-glass-sheen);
243
371
  box-shadow: var(--mobile-glass-shadow);
244
- font-weight: var(--toolbar-label-font-weight);
372
+ font-weight: var(--toolbar-search-font-weight);
245
373
  backdrop-filter: var(--mobile-glass-backdrop-filter);
246
374
  }
247
375
 
@@ -251,7 +379,8 @@
251
379
  height: var(--toolbar-search-icon-size);
252
380
  }
253
381
 
254
- /* Title: SF text ink sits 2px below the geometric center of the 44px row. */
382
+ /* Title: centered in the 44px row. Native iOS 26 bars put its cap middle on the buttons' center
383
+ (IMG_5508/5511/5512/5514/5515, within 1px); the kit's text frame sits 2px lower. */
255
384
  .Heading {
256
385
  display: flex;
257
386
  grid-area: heading;
@@ -261,7 +390,6 @@
261
390
  min-width: 0;
262
391
  min-height: var(--toolbar-item-size);
263
392
  text-align: center;
264
- transform: translateY(2px);
265
393
  }
266
394
 
267
395
  .Title {
@@ -288,12 +416,13 @@
288
416
  white-space: nowrap;
289
417
  }
290
418
 
291
- /* Two lines: title 15/20 at 6px, subtitle 12/16 below it. */
419
+ /* 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
420
+ its own (one that takes focus when the Sheet opens). */
292
421
  .Heading:has(> .Subtitle) {
293
422
  transform: translateY(1px);
294
423
  }
295
424
 
296
- .Heading:has(> .Subtitle) > .Title {
425
+ .Heading:has(> .Subtitle) .Title {
297
426
  font-size: var(--toolbar-title-compact-font-size);
298
427
  line-height: var(--toolbar-title-compact-line-height);
299
428
  }
@@ -303,7 +432,10 @@
303
432
  text-align: start;
304
433
  }
305
434
 
435
+ /* The large title spans the columns of the row of controls above it, so a long one would widen their max-content
436
+ tracks and push the trailing button off the screen; with no width of its own it takes the row's and truncates. */
306
437
  .Toolbar[data-title-style="large"] > .Heading {
438
+ contain: inline-size;
307
439
  min-height: 0;
308
440
  transform: none;
309
441
  }
@@ -350,6 +482,98 @@
350
482
  inset: 0 0 auto;
351
483
  }
352
484
 
485
+ /* A large title on a page sits at the top of the content and scrolls up with it under the row of
486
+ controls, which then shows the title inline, as UIKit does in iOS 26 (WWDC25 "Build a UIKit app
487
+ with the new design": large titles scroll with the content underneath the bar). Page.Content
488
+ writes its scroll offset to --page-scroll-y and the Toolbar measures how far the title travels.
489
+ The title fades out over 8px as it passes under the row; the soft edge then covers the row only,
490
+ as it does for an inline title. */
491
+ .Toolbar[data-host="page"][data-title-style="large"] {
492
+ /* Until the Toolbar has measured how far the title travels (a server-rendered page before it hydrates), the
493
+ title has not gone: the large title shows, and the row's inline copy and the bar's line stay hidden. A
494
+ travel of 0 showed the inline title in the row for the first frames, then swapped it for the large one. */
495
+ --toolbar-large-title-travel: 100000;
496
+ --toolbar-edge-blur: var(--toolbar-edge-blur-small);
497
+ --toolbar-large-title-scroll: calc(min(var(--page-scroll-y, 0), var(--toolbar-large-title-travel, 0) + 16) * 1px);
498
+ grid-template-areas:
499
+ "leading collapsed trailing"
500
+ "heading heading heading";
501
+ grid-template-columns: minmax(max-content, 1fr) minmax(0, auto) minmax(max-content, 1fr);
502
+ /* Content scrolled into the place of the title stays under the pointer. */
503
+ pointer-events: none;
504
+ }
505
+
506
+ .Toolbar[data-host="page"][data-title-style="large"]::before {
507
+ inset: 0 0 auto;
508
+ height: calc(var(--toolbar-padding-top, 0px) + var(--toolbar-item-size) + var(--toolbar-padding-bottom) + 16px);
509
+ }
510
+
511
+ .Toolbar[data-host="page"][data-title-style="large"]:not([data-background="soft"])::before {
512
+ height: calc(var(--toolbar-padding-top, 0px) + var(--toolbar-item-size) + var(--toolbar-padding-bottom));
513
+ }
514
+
515
+ /* The large title is the content under the row until it has gone: a hard or glass bar shows its line
516
+ with the inline title, over the same last 8px. */
517
+ .Toolbar[data-host="page"][data-title-style="large"][data-scrolled][data-background="hard"]::before {
518
+ 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);
519
+ }
520
+
521
+ .Toolbar[data-host="page"][data-title-style="large"][data-scrolled][data-background="glass"]::before {
522
+ opacity: clamp(0, (var(--page-scroll-y, 0) - var(--toolbar-large-title-travel, 0) + 8) / 8, 1);
523
+ }
524
+
525
+ .Toolbar[data-host="page"][data-title-style="large"] > :is(.Leading, .Trailing, .Content), .Toolbar[data-host="page"][data-title-style="large"]:not([data-scrolled]) > .Heading {
526
+ pointer-events: auto;
527
+ }
528
+
529
+ .Toolbar[data-host="page"][data-title-style="large"] > .Heading {
530
+ transform: translateY(calc(-1 * var(--toolbar-large-title-scroll)));
531
+ -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));
532
+ 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));
533
+ }
534
+
535
+ /* The inline title fades in over the last 8px of the large title's way. */
536
+ .Toolbar[data-host="page"][data-title-style="large"] > .CollapsedTitle {
537
+ grid-area: collapsed;
538
+ min-width: 0;
539
+ overflow: hidden;
540
+ color: var(--color-text);
541
+ font-size: var(--toolbar-title-font-size);
542
+ font-weight: var(--toolbar-title-font-weight);
543
+ line-height: var(--toolbar-title-line-height);
544
+ text-align: center;
545
+ text-overflow: ellipsis;
546
+ white-space: nowrap;
547
+ opacity: clamp(0, (var(--page-scroll-y, 0) - var(--toolbar-large-title-travel, 0) + 8) / 8, 1);
548
+ }
549
+
550
+ /* With a subtitle the inline copy takes two lines, as the inline title does: 15/20 and 12/16 in the
551
+ secondary label (iOS 26 kit Toolbar - Top - iPhone, Title 2 Line: 15 semibold over 12 medium). */
552
+ .Toolbar[data-host="page"][data-title-style="large"] > .CollapsedTitle:has(> .CollapsedSubtitle) {
553
+ display: flex;
554
+ flex-direction: column;
555
+ align-items: center;
556
+ justify-content: center;
557
+ font-size: var(--toolbar-title-compact-font-size);
558
+ line-height: var(--toolbar-title-compact-line-height);
559
+ transform: translateY(1px);
560
+ }
561
+
562
+ .Toolbar[data-host="page"][data-title-style="large"] > .CollapsedTitle > :is(.CollapsedLine, .CollapsedSubtitle) {
563
+ max-width: 100%;
564
+ overflow: hidden;
565
+ text-overflow: ellipsis;
566
+ white-space: nowrap;
567
+ }
568
+
569
+ .Toolbar[data-host="page"][data-title-style="large"] > .CollapsedTitle > .CollapsedSubtitle {
570
+ margin-top: -2px;
571
+ color: var(--mobile-label-secondary, var(--color-text-secondary));
572
+ font-size: var(--toolbar-subtitle-font-size);
573
+ font-weight: var(--toolbar-subtitle-font-weight);
574
+ line-height: var(--toolbar-subtitle-line-height);
575
+ }
576
+
353
577
  .Toolbar[data-host="dialog"][data-placement="top"] {
354
578
  --toolbar-background: var(--dialog-panel-background);
355
579
  --toolbar-padding-top: var(--toolbar-sheet-padding-top);
@@ -386,4 +610,609 @@
386
610
  --toolbar-background: var(--dialog-panel-background);
387
611
  }
388
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
+ }
389
1218
  }