@plexui/styles 0.3.2 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,7 @@
1
- @layer components {/* A phone toolbar. A desktop layout has its own composition, so the toolbar never renders there. */.Toolbar {
1
+ @layer components {/* A phone toolbar. A desktop layout has its own composition, so the toolbar never renders there, nor the large title
2
+ it keeps at the top of a page's content. */.Toolbar,
3
+ .Heading[data-in-content],
4
+ .Row[data-in-content] {
2
5
  display: none;
3
6
  }@media (max-width: 767.98px) {
4
7
  .Toolbar {
@@ -18,10 +21,9 @@
18
21
  color: var(--color-text);
19
22
  }
20
23
 
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). */
24
+ /* Soft scroll edge: the canvas color over the bar and --page-bar-soft-tail past it, over a light blur. A top bar
25
+ thins it to the veil of iOS 27.2 and adds the blur that hides the content under it; a bottom bar covers its
26
+ content from the items down. */
25
27
  .Toolbar::before {
26
28
  position: absolute;
27
29
  z-index: -1;
@@ -52,9 +54,40 @@
52
54
  opacity: 0;
53
55
  }
54
56
 
55
- /* The line of a hard or glass bar faces the content: under a top bar, above a bottom one. */
57
+ /* The soft edge of a top bar is iOS 27.2's (--page-bar-soft-veil): the canvas color through the veil, over a light
58
+ blur, and on `::after` the stronger blur that hides the content under the bar and lets go past it. It shows once
59
+ content is under the bar: native's edge meets only content scrolled under it, and a large title at rest stands
60
+ clear under the row (ref-app nav-large-s0). The line of a hard or glass bar faces the content: under a top bar,
61
+ above a bottom one. */
62
+ .Toolbar[data-placement="top"][data-background="soft"]::before {
63
+ -webkit-mask-image: var(--page-bar-soft-veil);
64
+ mask-image: var(--page-bar-soft-veil);
65
+ }
66
+
67
+ .Toolbar[data-placement="top"][data-background="soft"]::after {
68
+ position: absolute;
69
+ z-index: -1;
70
+ inset: 0 0 calc(-1 * var(--page-bar-soft-tail, 32px));
71
+ border-radius: inherit;
72
+ backdrop-filter: blur(var(--page-bar-soft-blur));
73
+ content: "";
74
+ -webkit-mask-image: var(--page-bar-soft-blur-mask);
75
+ mask-image: var(--page-bar-soft-blur-mask);
76
+ pointer-events: none;
77
+ }
78
+
79
+ .Toolbar[data-placement="top"][data-background="soft"]::before,
80
+ .Toolbar[data-placement="top"][data-background="soft"]::after {
81
+ transition: opacity var(--transition-duration-basic);
82
+ }
83
+
84
+ .Toolbar[data-placement="top"][data-background="soft"]:not([data-scrolled])::before,
85
+ .Toolbar[data-placement="top"][data-background="soft"]:not([data-scrolled])::after {
86
+ opacity: 0;
87
+ }
88
+
56
89
  .Toolbar[data-placement="top"][data-background="hard"]::before {
57
- border-bottom: 1px solid transparent;
90
+ border-bottom: 0.5px solid transparent;
58
91
  }
59
92
 
60
93
  .Toolbar[data-placement="top"][data-background="glass"]::before {
@@ -69,6 +102,34 @@
69
102
  opacity: 1;
70
103
  }
71
104
 
105
+ /* Blur (--page-bar-blur-*): no fill and no line, the content under the bar blurred a little over the bar and its
106
+ tail, and heavily toward the screen's edge, once content is under the bar. */
107
+ .Toolbar[data-placement="top"][data-background="blur"]::before {
108
+ inset: 0 0 calc(-1 * var(--page-bar-soft-tail, 32px));
109
+ background: none;
110
+ backdrop-filter: blur(var(--page-bar-blur-light));
111
+ -webkit-mask-image: var(--page-bar-blur-top-mask);
112
+ mask-image: var(--page-bar-blur-top-mask);
113
+ }
114
+
115
+ .Toolbar[data-placement="top"][data-background="blur"]::after {
116
+ position: absolute;
117
+ z-index: -1;
118
+ inset: 0 0 calc(-1 * var(--page-bar-soft-tail, 32px));
119
+ border-radius: inherit;
120
+ backdrop-filter: blur(var(--page-bar-blur-heavy));
121
+ content: "";
122
+ -webkit-mask-image: var(--page-bar-blur-top-heavy-mask);
123
+ mask-image: var(--page-bar-blur-top-heavy-mask);
124
+ pointer-events: none;
125
+ transition: opacity var(--transition-duration-basic);
126
+ }
127
+
128
+ .Toolbar[data-placement="top"][data-background="blur"]:not([data-scrolled])::before,
129
+ .Toolbar[data-placement="top"][data-background="blur"]:not([data-scrolled])::after {
130
+ opacity: 0;
131
+ }
132
+
72
133
  .Toolbar[data-placement="bottom"] {
73
134
  --toolbar-item-size: var(--toolbar-bottom-item-size);
74
135
  --toolbar-item-gap: var(--toolbar-bottom-item-gap);
@@ -96,7 +157,7 @@
96
157
  }
97
158
 
98
159
  .Toolbar[data-placement="bottom"][data-background="hard"]::before {
99
- border-top: 1px solid transparent;
160
+ border-top: 0.5px solid transparent;
100
161
  }
101
162
 
102
163
  .Toolbar[data-placement="bottom"][data-background="glass"]::before {
@@ -111,14 +172,65 @@
111
172
  opacity: 1;
112
173
  }
113
174
 
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
- }
175
+ /* Blur, turned: heavy toward the screen's bottom edge, light over the bar and its tail above it, while content
176
+ continues below. */
177
+ .Toolbar[data-placement="bottom"][data-background="blur"]::before {
178
+ inset: calc(-1 * var(--page-bar-soft-tail, 32px)) 0 0;
179
+ background: none;
180
+ backdrop-filter: blur(var(--page-bar-blur-light));
181
+ -webkit-mask-image: var(--page-bar-blur-bottom-mask);
182
+ mask-image: var(--page-bar-blur-bottom-mask);
183
+ }
184
+
185
+ .Toolbar[data-placement="bottom"][data-background="blur"]::after {
186
+ position: absolute;
187
+ z-index: -1;
188
+ inset: calc(-1 * var(--page-bar-soft-tail, 32px)) 0 0;
189
+ border-radius: inherit;
190
+ backdrop-filter: blur(var(--page-bar-blur-heavy));
191
+ content: "";
192
+ -webkit-mask-image: var(--page-bar-blur-bottom-heavy-mask);
193
+ mask-image: var(--page-bar-blur-bottom-heavy-mask);
194
+ pointer-events: none;
195
+ transition: opacity var(--transition-duration-basic);
196
+ }
197
+
198
+ .Toolbar[data-placement="bottom"][data-background="blur"]:not([data-content-below])::before,
199
+ .Toolbar[data-placement="bottom"][data-background="blur"]:not([data-content-below])::after {
200
+ opacity: 0;
201
+ }
202
+
203
+ /* On a page the soft edge of a bottom bar is iOS 27.2's (owner 13.11 «soft правильный? выглядит как none»; ref-app
204
+ bottomedge-soft): no band, the top bar's veil and blur turned over (--page-bar-soft-bottom-*), from 34pt above the
205
+ items to the screen's edge, once content runs on under the bar. Plan 172 had none (iOS 26 Mail, IMG_5534; owner
206
+ 08.11 «ios по дефолту разве добавляет фон? внизу»): 27.2 draws no band either, only this edge. A sheet keeps its
207
+ own soft edge: its list fades into the panel above a bottom search field (Country or region, IMG_5491), and so
208
+ does a Page laid out inside one. */
209
+ .Toolbar[data-placement="bottom"][data-background="soft"]:not([data-host="dialog"], [data-mobile-variant="sheet"] *)::before,
210
+ .Toolbar[data-placement="bottom"][data-background="soft"]:not([data-host="dialog"], [data-mobile-variant="sheet"] *)::after {
211
+ inset: calc(var(--toolbar-bottom-item-top) - var(--page-bar-soft-bottom-reach)) 0 0;
212
+ transition: opacity var(--transition-duration-basic);
213
+ }
214
+
215
+ .Toolbar[data-placement="bottom"][data-background="soft"]:not([data-host="dialog"], [data-mobile-variant="sheet"] *)::before {
216
+ -webkit-mask-image: var(--page-bar-soft-bottom-veil);
217
+ mask-image: var(--page-bar-soft-bottom-veil);
218
+ }
219
+
220
+ .Toolbar[data-placement="bottom"][data-background="soft"]:not([data-host="dialog"], [data-mobile-variant="sheet"] *)::after {
221
+ position: absolute;
222
+ z-index: -1;
223
+ backdrop-filter: blur(var(--page-bar-soft-blur));
224
+ content: "";
225
+ -webkit-mask-image: var(--page-bar-soft-bottom-blur-mask);
226
+ mask-image: var(--page-bar-soft-bottom-blur-mask);
227
+ pointer-events: none;
228
+ }
229
+
230
+ .Toolbar[data-placement="bottom"][data-background="soft"]:not([data-host="dialog"], [data-mobile-variant="sheet"] *):not([data-content-below])::before,
231
+ .Toolbar[data-placement="bottom"][data-background="soft"]:not([data-host="dialog"], [data-mobile-variant="sheet"] *):not([data-content-below])::after {
232
+ opacity: 0;
233
+ }
122
234
 
123
235
  /* With content under it, a bottom bar's glass casts the raised shadow, as a top bar's does once scrolled.
124
236
  A sheet's bar keeps the glass of the sheet (Dialog). */
@@ -126,15 +238,13 @@
126
238
  --mobile-glass-shadow: var(--mobile-glass-shadow-raised);
127
239
  }
128
240
 
129
- /* A bottom bar on a band (glass, hard or solid) is the top bar turned over (owner 12.11 «паддинги явно не верные»):
130
- above its items the top bar's air under them (10), its side items at the bar's gutter, where the top bar's
131
- corner items and the edges of a grouped list's rows stand (16, 20 from 414), and under them that gutter or
132
- the home indicator's inset less 6. The iOS 26 kit's 4 above and 28 at the sides are for rounds standing on
133
- the content with no band: a soft bar keeps them, and so do a sheet's bar and a single wide action. */
134
- .Toolbar[data-placement="bottom"]:not([data-background="soft"], [data-host="dialog"]):not(:has(> .Content[data-fill] > :where(button, a, [role="link"]))) {
135
- --toolbar-bottom-gutter: var(--toolbar-gutter);
241
+ /* The background never moves a bottom bar's items (owner 13.11 «фон влияет на позицию кнопок - это ок?»): iOS
242
+ 27.2 stands them at the same place over a soft and a hard edge (ref-app bottomedge-soft and bottomedge-hard: the
243
+ round 27.3pt from the side, the items 28 above the screen's edge). A band (glass or hard) only starts higher:
244
+ the hard edge's hairline lies 9.3 above the items, the top bar's air under its own (10, owner 12.11 «паддинги
245
+ явно не верные»), and the bar stands on the screen's bottom, so its items stay put. */
246
+ .Toolbar[data-placement="bottom"]:not([data-background="soft"], [data-background="blur"], [data-host="dialog"]):not(:has(> .Content[data-fill] > :where(button, a, [role="link"]))) {
136
247
  --toolbar-bottom-padding-top: var(--toolbar-padding-bottom);
137
- --toolbar-bottom-padding-bottom: max(var(--toolbar-gutter), calc(var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)) - 6px));
138
248
  }
139
249
 
140
250
  /* A single wide action (Apps 2.4 Fullsize) leaves 12px above it. A disabled ButtonLink renders a span with the link
@@ -157,18 +267,26 @@
157
267
  mask-image: none;
158
268
  }
159
269
 
270
+ .Toolbar[data-placement="top"]:has(> .Content[data-fill])[data-background="soft"]::after {
271
+ display: none;
272
+ }
273
+
160
274
  /* A top bar of controls alone, with no title, leaves the content clear under its controls: on a page the soft
161
275
  edge covers only the status bar and fades out to its bottom, as in Notes (IMG_5734, 5736: text at 18% of its
162
276
  contrast at the top and at 44%, blurred, 37pt down, clear from 53pt; a top safe area of 59pt). Each glass
163
- control stands out by itself, as on a bottom bar. With a title the edge covers the row, as in Contacts
164
- (IMG_5737) and Settings (IMG_5484, 5503): the title needs it. A Page laid out inside a Sheet keeps the full
165
- edge, as its bottom bar does: the frames show no sheet without a title. */
166
- .Toolbar[data-host="page"][data-placement="top"][data-background="soft"]:not([data-mobile-variant="sheet"] *):not(:has(> .Heading, > .Content[data-fill]))::before {
167
- inset: 0 0 auto;
168
- height: var(--toolbar-padding-top, 0px);
169
- -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
170
- mask-image: linear-gradient(to bottom, #000, transparent);
171
- }
277
+ control stands out by itself, as on a bottom bar. With a title, a large one in the content too, the edge lies
278
+ over the row, as in Contacts (IMG_5737): the title needs it. A Page laid out inside a Sheet keeps the full edge,
279
+ as its bottom bar does: the frames show no sheet without a title. */
280
+ .Toolbar[data-host="page"][data-placement="top"][data-background="soft"]:not([data-mobile-variant="sheet"] *):not(:has(> .Heading, > .CollapsedTitle, > .Content[data-fill]))::before {
281
+ inset: 0 0 auto;
282
+ height: var(--toolbar-padding-top, 0px);
283
+ -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
284
+ mask-image: linear-gradient(to bottom, #000, transparent);
285
+ }
286
+
287
+ .Toolbar[data-host="page"][data-placement="top"][data-background="soft"]:not([data-mobile-variant="sheet"] *):not(:has(> .Heading, > .CollapsedTitle, > .Content[data-fill]))::after {
288
+ display: none;
289
+ }
172
290
 
173
291
  /* Leading alignment, compact titles and filled content share one row from the start edge. */
174
292
  .Toolbar:is([data-title-align="start"], [data-title-style="compact-large"], [data-title-style="compact-medium"]),
@@ -209,22 +327,17 @@
209
327
  }
210
328
 
211
329
  /* Large title: the controls stay in their own row and the title sits below it. The row keeps the controls'
212
- height with none in it, as Settings' title stands where Files' does under its buttons. With a subtitle the
213
- title stands 3pt lower, as UIKit sets one with navigationItem.subtitle on iOS 27.2 (title-uikit-subtitle:
214
- «F» from 130). */
330
+ height with none in it, as Settings' title stands where Files' does under its buttons. A subtitle goes under
331
+ the title, which stays where it stands without one: the title does not move when a subtitle comes or goes
332
+ (owner 13.11 «позиция не должна прыгать»; UIKit on iOS 27.2 sets it 3pt lower, title-uikit-subtitle). */
215
333
  .Toolbar[data-title-style="large"] {
216
334
  --toolbar-edge-blur: var(--toolbar-edge-blur-large);
217
- --toolbar-large-title-row-gap: var(--toolbar-large-title-gap);
218
335
  grid-template-areas:
219
336
  "leading . trailing"
220
337
  "heading heading heading";
221
338
  grid-template-columns: max-content minmax(0, 1fr) max-content;
222
339
  grid-template-rows: minmax(var(--toolbar-item-size), auto) auto;
223
- row-gap: var(--toolbar-large-title-row-gap);
224
- }
225
-
226
- .Toolbar[data-title-style="large"]:has(> .Heading > .Subtitle) {
227
- --toolbar-large-title-row-gap: calc(var(--toolbar-large-title-gap) + 3px);
340
+ row-gap: var(--toolbar-large-title-gap);
228
341
  }
229
342
 
230
343
  .Toolbar:is([data-title-style="compact-large"], [data-title-style="compact-medium"]),
@@ -277,6 +390,38 @@
277
390
  grid-area: content;
278
391
  }
279
392
 
393
+ /* A row under the controls, part of the bar (owner 13.11): a segmented control that switches the screen's views, as
394
+ a chat list shows its folders under its bar, or a search field. It spans the bar between its gutters, under the
395
+ bar's controls, so the bar's background, edge and line take it in. Several rows stand in their order, 10 apart: a
396
+ search field over a segmented control, as iOS 27.2 sets a safeAreaBar under the search field of the bar's drawer
397
+ (ref-app segsearch-inline; owner 13.11 «первый ряд - кнопки и тайтл, второй ряд поиск, третий ряд - сегментед
398
+ контрол»). A SegmentedControl in it is the small plain one at its default size, as native's (touch.css), and fills
399
+ the row (its segments share the width, and scroll when they do not fit; a block one shortens its labels instead). */
400
+ .Row {
401
+ display: flex;
402
+ grid-column: 1 / -1;
403
+ align-items: center;
404
+ min-width: 0;
405
+ /* The row takes the bar's width, never its content's: segments wider than the bar scroll in it. */
406
+ contain: inline-size;
407
+ }
408
+
409
+ .Row > * {
410
+ flex: 1 1 auto;
411
+ min-width: 0;
412
+ }
413
+
414
+ .Toolbar:not([data-title-style="large"]):has(> .Row) {
415
+ row-gap: var(--toolbar-row-gap);
416
+ }
417
+
418
+ /* Under a large title on a page the rows stand under it at the top of the content (Page.Content keeps their place
419
+ and pins them under the bar). A search field there keeps the bar's size. */
420
+ .Row[data-in-content] {
421
+ --toolbar-item-size: var(--toolbar-top-item-size);
422
+ display: flex;
423
+ }
424
+
280
425
  /* Several buttons in one capsule, as iOS 27.2 groups a bar's symbols: 10 apart with 1 at the ends on top, 8 apart
281
426
  with 2 at the ends at the bottom. The capsule carries the shared mobile glass; the buttons inside it stay clear. */
282
427
  .Group {
@@ -399,9 +544,11 @@
399
544
  box-shadow: var(--toolbar-prominent-shadow);
400
545
  }
401
546
 
402
- /* A search field (iOS 26 kit Search Top and Bottom): the row height and the glass of the bar buttons.
403
- The extra attribute outweighs the field's own focus and hover outlines, which a bar does not draw. */
404
- .Toolbar :is(.Leading, .Trailing, .Content) > [data-slot="input"][data-variant] {
547
+ /* A search field (iOS 26 kit Search Top and Bottom): the row height and the glass of the bar buttons, in the bar
548
+ and in a row of it (iOS 27.2 draws the search field of a bar's drawer as the bar's: 44pt of glass, 16 from the
549
+ sides, ref-app segsearch-inline). The extra attribute outweighs the field's own focus and hover outlines, which a
550
+ bar does not draw. */
551
+ :is(.Toolbar :is(.Leading, .Trailing, .Content), .Row) > [data-slot="input"][data-variant] {
405
552
  --input-size: var(--toolbar-item-size);
406
553
  --input-font-size: var(--toolbar-label-font-size);
407
554
  --input-gutter: var(--toolbar-search-gutter);
@@ -417,7 +564,7 @@
417
564
  backdrop-filter: var(--mobile-glass-backdrop-filter);
418
565
  }
419
566
 
420
- .Toolbar :is(.Leading, .Trailing, .Content) > [data-slot="input"][data-variant] > svg {
567
+ :is(.Toolbar :is(.Leading, .Trailing, .Content), .Row) > [data-slot="input"][data-variant] > svg {
421
568
  flex: none;
422
569
  width: var(--toolbar-search-icon-size);
423
570
  height: var(--toolbar-search-icon-size);
@@ -533,64 +680,61 @@
533
680
  inset: 0 0 auto;
534
681
  }
535
682
 
536
- /* A large title on a page sits at the top of the content and scrolls up with it under the row of
537
- controls, which then shows the title inline, as UIKit does in iOS 26 (WWDC25 "Build a UIKit app
538
- with the new design": large titles scroll with the content underneath the bar). Page.Content
539
- writes its scroll offset to --page-scroll-y and the Toolbar measures how far the title travels.
540
- The title fades out over 8px as it passes under the row; the soft edge then covers the row only,
541
- as it does for an inline title. */
683
+ /* A large title on a page lives at the top of the content (Page.Content keeps a place for it), so the browser
684
+ scrolls it with the content, overscroll included, as UIKit does in iOS 26 (WWDC25 "Build a UIKit app with the
685
+ new design": large titles scroll with the content underneath the bar; iOS 27.2 in the simulator moves it with
686
+ the list through the bounce). The bar keeps the row of controls. Once the title has gone under the bar, the row
687
+ shows it inline: the two swap over --toolbar-large-title-swap-duration, not with the scroll, as iOS 27.2 does,
688
+ and a hard or glass bar shows its line with the inline title: until then the large title is the content under
689
+ the row. */
542
690
  .Toolbar[data-host="page"][data-title-style="large"] {
543
- /* Until the Toolbar has measured how far the title travels (a server-rendered page before it hydrates), the
544
- title has not gone: the large title shows, and the row's inline copy and the bar's line stay hidden. A
545
- travel of 0 showed the inline title in the row for the first frames, then swapped it for the large one. */
546
- --toolbar-large-title-travel: 100000;
547
691
  --toolbar-edge-blur: var(--toolbar-edge-blur-small);
548
- --toolbar-large-title-scroll: calc(min(var(--page-scroll-y, 0), var(--toolbar-large-title-travel, 0) + 16) * 1px);
549
- grid-template-areas:
550
- "leading collapsed trailing"
551
- "heading heading heading";
692
+ grid-template-areas: "leading collapsed trailing";
552
693
  grid-template-columns: minmax(max-content, 1fr) minmax(0, auto) minmax(max-content, 1fr);
553
- /* Content scrolled into the place of the title stays under the pointer. */
554
- pointer-events: none;
694
+ grid-template-rows: minmax(var(--toolbar-item-size), auto);
555
695
  }
556
696
 
557
- .Toolbar[data-host="page"][data-title-style="large"]::before {
558
- inset: 0 0 auto;
559
- height: calc(var(--toolbar-padding-top, 0px) + var(--toolbar-item-size) + var(--toolbar-padding-bottom) + 16px);
697
+ /* Until the content has made its place (a server-rendered page before it hydrates), the title stands in the
698
+ bar's second row, where it will stand in the content. */
699
+ .Toolbar[data-host="page"][data-title-style="large"]:has(> .Heading) {
700
+ grid-template-areas:
701
+ "leading collapsed trailing"
702
+ "heading heading heading";
703
+ grid-template-rows: minmax(var(--toolbar-item-size), auto) auto;
560
704
  }
561
705
 
562
- .Toolbar[data-host="page"][data-title-style="large"]:not([data-background="soft"])::before {
563
- height: calc(var(--toolbar-padding-top, 0px) + var(--toolbar-item-size) + var(--toolbar-padding-bottom));
706
+ .Toolbar[data-host="page"][data-title-style="large"][data-background="hard"]::before,
707
+ .Toolbar[data-host="page"][data-title-style="large"][data-background="glass"]::before {
708
+ transition: opacity var(--toolbar-large-title-swap-duration), border-color var(--toolbar-large-title-swap-duration);
564
709
  }
565
710
 
566
- /* The large title is the content under the row until it has gone: a hard or glass bar shows its line
567
- with the inline title, over the same last 8px. */
568
- .Toolbar[data-host="page"][data-title-style="large"][data-scrolled][data-background="hard"]::before {
569
- 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);
711
+ .Toolbar[data-host="page"][data-title-style="large"][data-scrolled]:not([data-title-collapsed])[data-background="hard"]::before {
712
+ border-bottom-color: transparent;
570
713
  }
571
714
 
572
- .Toolbar[data-host="page"][data-title-style="large"][data-scrolled][data-background="glass"]::before {
573
- opacity: clamp(0, (var(--page-scroll-y, 0) - var(--toolbar-large-title-travel, 0) + 8) / 8, 1);
715
+ .Toolbar[data-host="page"][data-title-style="large"][data-scrolled]:not([data-title-collapsed])[data-background="glass"]::before {
716
+ opacity: 0;
574
717
  }
575
718
 
576
- .Toolbar[data-host="page"][data-title-style="large"] > :is(.Leading, .Trailing, .Content), .Toolbar[data-host="page"][data-title-style="large"]:not([data-scrolled]) > .Heading {
577
- pointer-events: auto;
719
+ /* Rows pinned under the controls (Toolbar.Row: Page.Content keeps them there once scrolled up to the bar, owner
720
+ 13.11 «Да, закрепить»): the background, edge and line reach under them as under a row in the bar, the bar's
721
+ bottom padding under the last one, as iOS 27.2 draws its edge under a pinned safeAreaBar (ref-app
722
+ segrow-large-scrolled). */
723
+ .Toolbar[data-host="page"][data-title-style="large"][data-rows-pinned]::before,
724
+ .Toolbar[data-host="page"][data-title-style="large"][data-rows-pinned]::after {
725
+ margin-bottom: calc(-1 * (var(--toolbar-row-gap) + var(--page-toolbar-rows-height, 0px)));
578
726
  }
579
727
 
580
- /* The bar ends at the title's last baseline: the content starts 16pt under it (iOS 27.2: baseline 152,
581
- content 168, in Files, Settings, UIKit and SwiftUI; with a subtitle, 16.6 under the subtitle's). */
728
+ /* The bar ends at the title's last baseline: the content starts 16pt under it (iOS 27.2: baseline 152, content
729
+ 168, in Files, Settings, UIKit and SwiftUI; with a subtitle, 16.6 under the subtitle's). */
582
730
  .Toolbar[data-host="page"][data-title-style="large"] > .Heading {
583
731
  margin-bottom: calc(-1 * (var(--toolbar-padding-bottom) + var(--toolbar-large-title-descent)));
584
- transform: translateY(calc(-1 * var(--toolbar-large-title-scroll)));
585
- -webkit-mask-image: linear-gradient(to bottom, transparent calc(var(--toolbar-large-title-scroll) - var(--toolbar-large-title-row-gap)), #000 calc(var(--toolbar-large-title-scroll) - var(--toolbar-large-title-row-gap) + 8px));
586
- mask-image: linear-gradient(to bottom, transparent calc(var(--toolbar-large-title-scroll) - var(--toolbar-large-title-row-gap)), #000 calc(var(--toolbar-large-title-scroll) - var(--toolbar-large-title-row-gap) + 8px));
587
732
  }
588
733
 
589
734
  .Toolbar[data-host="page"][data-title-style="large"] > .Heading:has(> .Subtitle) {
590
735
  margin-bottom: calc(-1 * (var(--toolbar-padding-bottom) + var(--toolbar-large-subtitle-descent)));
591
736
  }
592
737
 
593
- /* The inline title fades in over the last 8px of the large title's way. */
594
738
  .Toolbar[data-host="page"][data-title-style="large"] > .CollapsedTitle {
595
739
  grid-area: collapsed;
596
740
  min-width: 0;
@@ -602,7 +746,12 @@
602
746
  text-align: center;
603
747
  text-overflow: ellipsis;
604
748
  white-space: nowrap;
605
- opacity: clamp(0, (var(--page-scroll-y, 0) - var(--toolbar-large-title-travel, 0) + 8) / 8, 1);
749
+ opacity: 0;
750
+ transition: opacity var(--toolbar-large-title-swap-duration);
751
+ }
752
+
753
+ .Toolbar[data-host="page"][data-title-style="large"][data-title-collapsed] > .CollapsedTitle {
754
+ opacity: 1;
606
755
  }
607
756
 
608
757
  /* With a subtitle the inline copy takes two lines, as the inline title does: 15/20 and 12/16 in the
@@ -632,6 +781,36 @@
632
781
  line-height: var(--toolbar-subtitle-line-height);
633
782
  }
634
783
 
784
+ /* The large title in the content stands where it stood in the bar: its capitals 22pt under the row of controls
785
+ (--toolbar-large-title-gap under the row, which ends --toolbar-padding-bottom above the content's padding), and
786
+ the content 16pt under its last baseline. */
787
+ .Heading[data-in-content] {
788
+ display: flex;
789
+ align-items: flex-start;
790
+ min-height: 0;
791
+ margin: calc(var(--toolbar-large-title-gap) - var(--toolbar-padding-bottom) - var(--page-content-padding-top, 16px)) 0 calc(var(--page-content-padding-top, 16px) - var(--toolbar-large-title-descent));
792
+ text-align: start;
793
+ transform: none;
794
+ }
795
+
796
+ .Heading[data-in-content] > .Title {
797
+ font-size: var(--toolbar-large-title-font-size);
798
+ font-weight: var(--font-weight-bold);
799
+ line-height: var(--toolbar-large-title-line-height);
800
+ }
801
+
802
+ .Heading[data-in-content] > .Subtitle {
803
+ margin: 0;
804
+ font-size: var(--toolbar-large-subtitle-font-size);
805
+ font-weight: var(--font-weight-normal);
806
+ line-height: var(--toolbar-large-subtitle-line-height);
807
+ }
808
+
809
+ /* With a subtitle the title stays put and the content starts 16pt under the subtitle's baseline. */
810
+ .Heading[data-in-content]:has(> .Subtitle) {
811
+ margin-bottom: calc(var(--page-content-padding-top, 16px) - var(--toolbar-large-subtitle-descent));
812
+ }
813
+
635
814
  .Toolbar[data-host="dialog"][data-placement="top"] {
636
815
  --toolbar-background: var(--dialog-panel-background);
637
816
  --toolbar-padding-top: var(--toolbar-sheet-padding-top);
@@ -669,10 +848,9 @@
669
848
  color: var(--color-text);
670
849
  }
671
850
 
672
- /* Soft scroll edge: the canvas color covers content scrolled under the bar down to its bottom and fades
673
- out past it over --page-bar-soft-tail. Native iOS 26 bars hide content under the row almost entirely
674
- (IMG_5484, 5503: text behind the title at 7-10% of its contrast) and keep that cover through the bar's
675
- bottom padding (IMG_5503). */
851
+ /* Soft scroll edge: the canvas color over the bar and --page-bar-soft-tail past it, over a light blur. A top bar
852
+ thins it to the veil of iOS 27.2 and adds the blur that hides the content under it; a bottom bar covers its
853
+ content from the items down. */
676
854
  :where([data-plex-layout="phone"]) .Toolbar::before {
677
855
  position: absolute;
678
856
  z-index: -1;
@@ -703,9 +881,40 @@
703
881
  opacity: 0;
704
882
  }
705
883
 
706
- /* The line of a hard or glass bar faces the content: under a top bar, above a bottom one. */
884
+ /* The soft edge of a top bar is iOS 27.2's (--page-bar-soft-veil): the canvas color through the veil, over a light
885
+ blur, and on `::after` the stronger blur that hides the content under the bar and lets go past it. It shows once
886
+ content is under the bar: native's edge meets only content scrolled under it, and a large title at rest stands
887
+ clear under the row (ref-app nav-large-s0). The line of a hard or glass bar faces the content: under a top bar,
888
+ above a bottom one. */
889
+ :where([data-plex-layout="phone"]) .Toolbar[data-placement="top"][data-background="soft"]::before {
890
+ -webkit-mask-image: var(--page-bar-soft-veil);
891
+ mask-image: var(--page-bar-soft-veil);
892
+ }
893
+
894
+ :where([data-plex-layout="phone"]) .Toolbar[data-placement="top"][data-background="soft"]::after {
895
+ position: absolute;
896
+ z-index: -1;
897
+ inset: 0 0 calc(-1 * var(--page-bar-soft-tail, 32px));
898
+ border-radius: inherit;
899
+ backdrop-filter: blur(var(--page-bar-soft-blur));
900
+ content: "";
901
+ -webkit-mask-image: var(--page-bar-soft-blur-mask);
902
+ mask-image: var(--page-bar-soft-blur-mask);
903
+ pointer-events: none;
904
+ }
905
+
906
+ :where([data-plex-layout="phone"]) .Toolbar[data-placement="top"][data-background="soft"]::before,
907
+ :where([data-plex-layout="phone"]) .Toolbar[data-placement="top"][data-background="soft"]::after {
908
+ transition: opacity var(--transition-duration-basic);
909
+ }
910
+
911
+ :where([data-plex-layout="phone"]) .Toolbar[data-placement="top"][data-background="soft"]:not([data-scrolled])::before,
912
+ :where([data-plex-layout="phone"]) .Toolbar[data-placement="top"][data-background="soft"]:not([data-scrolled])::after {
913
+ opacity: 0;
914
+ }
915
+
707
916
  :where([data-plex-layout="phone"]) .Toolbar[data-placement="top"][data-background="hard"]::before {
708
- border-bottom: 1px solid transparent;
917
+ border-bottom: 0.5px solid transparent;
709
918
  }
710
919
 
711
920
  :where([data-plex-layout="phone"]) .Toolbar[data-placement="top"][data-background="glass"]::before {
@@ -720,6 +929,34 @@
720
929
  opacity: 1;
721
930
  }
722
931
 
932
+ /* Blur (--page-bar-blur-*): no fill and no line, the content under the bar blurred a little over the bar and its
933
+ tail, and heavily toward the screen's edge, once content is under the bar. */
934
+ :where([data-plex-layout="phone"]) .Toolbar[data-placement="top"][data-background="blur"]::before {
935
+ inset: 0 0 calc(-1 * var(--page-bar-soft-tail, 32px));
936
+ background: none;
937
+ backdrop-filter: blur(var(--page-bar-blur-light));
938
+ -webkit-mask-image: var(--page-bar-blur-top-mask);
939
+ mask-image: var(--page-bar-blur-top-mask);
940
+ }
941
+
942
+ :where([data-plex-layout="phone"]) .Toolbar[data-placement="top"][data-background="blur"]::after {
943
+ position: absolute;
944
+ z-index: -1;
945
+ inset: 0 0 calc(-1 * var(--page-bar-soft-tail, 32px));
946
+ border-radius: inherit;
947
+ backdrop-filter: blur(var(--page-bar-blur-heavy));
948
+ content: "";
949
+ -webkit-mask-image: var(--page-bar-blur-top-heavy-mask);
950
+ mask-image: var(--page-bar-blur-top-heavy-mask);
951
+ pointer-events: none;
952
+ transition: opacity var(--transition-duration-basic);
953
+ }
954
+
955
+ :where([data-plex-layout="phone"]) .Toolbar[data-placement="top"][data-background="blur"]:not([data-scrolled])::before,
956
+ :where([data-plex-layout="phone"]) .Toolbar[data-placement="top"][data-background="blur"]:not([data-scrolled])::after {
957
+ opacity: 0;
958
+ }
959
+
723
960
  :where([data-plex-layout="phone"]) .Toolbar[data-placement="bottom"] {
724
961
  --toolbar-item-size: var(--toolbar-bottom-item-size);
725
962
  --toolbar-item-gap: var(--toolbar-bottom-item-gap);
@@ -747,7 +984,7 @@
747
984
  }
748
985
 
749
986
  :where([data-plex-layout="phone"]) .Toolbar[data-placement="bottom"][data-background="hard"]::before {
750
- border-top: 1px solid transparent;
987
+ border-top: 0.5px solid transparent;
751
988
  }
752
989
 
753
990
  :where([data-plex-layout="phone"]) .Toolbar[data-placement="bottom"][data-background="glass"]::before {
@@ -762,14 +999,63 @@
762
999
  opacity: 1;
763
1000
  }
764
1001
 
765
- /* On a page the soft edge of a bottom bar is no band at all (plan 172, owner 08.11 «ios по дефолту разве
766
- добавляет фон? внизу»): native iOS 26 lets content run under and around the bottom controls, at full
767
- contrast down to the screen's edge (Mail IMG_5534 and 5551, Phone IMG_5615); each glass control stands
768
- out by itself. A sheet keeps its soft edge: its list fades into the panel above a bottom search field
769
- (Country or region, IMG_5491), and so does a Page laid out inside one. */
770
- :where([data-plex-layout="phone"]) .Toolbar[data-placement="bottom"][data-background="soft"]:not([data-host="dialog"], [data-mobile-variant="sheet"] *)::before {
771
- display: none;
772
- }
1002
+ /* Blur, turned: heavy toward the screen's bottom edge, light over the bar and its tail above it, while content
1003
+ continues below. */
1004
+ :where([data-plex-layout="phone"]) .Toolbar[data-placement="bottom"][data-background="blur"]::before {
1005
+ inset: calc(-1 * var(--page-bar-soft-tail, 32px)) 0 0;
1006
+ background: none;
1007
+ backdrop-filter: blur(var(--page-bar-blur-light));
1008
+ -webkit-mask-image: var(--page-bar-blur-bottom-mask);
1009
+ mask-image: var(--page-bar-blur-bottom-mask);
1010
+ }
1011
+
1012
+ :where([data-plex-layout="phone"]) .Toolbar[data-placement="bottom"][data-background="blur"]::after {
1013
+ position: absolute;
1014
+ z-index: -1;
1015
+ inset: calc(-1 * var(--page-bar-soft-tail, 32px)) 0 0;
1016
+ border-radius: inherit;
1017
+ backdrop-filter: blur(var(--page-bar-blur-heavy));
1018
+ content: "";
1019
+ -webkit-mask-image: var(--page-bar-blur-bottom-heavy-mask);
1020
+ mask-image: var(--page-bar-blur-bottom-heavy-mask);
1021
+ pointer-events: none;
1022
+ transition: opacity var(--transition-duration-basic);
1023
+ }
1024
+
1025
+ :where([data-plex-layout="phone"]) .Toolbar[data-placement="bottom"][data-background="blur"]:not([data-content-below])::before,
1026
+ :where([data-plex-layout="phone"]) .Toolbar[data-placement="bottom"][data-background="blur"]:not([data-content-below])::after {
1027
+ opacity: 0;
1028
+ }
1029
+
1030
+ /* On a page the soft edge of a bottom bar is iOS 27.2's (owner 13.11 «soft правильный? выглядит как none»; ref-app
1031
+ bottomedge-soft): no band, the top bar's veil and blur turned over (--page-bar-soft-bottom-*), from 34pt above the
1032
+ items to the screen's edge, once content runs on under the bar. Plan 172 had none (iOS 26 Mail, IMG_5534; owner
1033
+ 08.11 «ios по дефолту разве добавляет фон? внизу»): 27.2 draws no band either, only this edge. A sheet keeps its
1034
+ own soft edge: its list fades into the panel above a bottom search field (Country or region, IMG_5491), and so
1035
+ does a Page laid out inside one. */
1036
+ :where([data-plex-layout="phone"]) .Toolbar[data-placement="bottom"][data-background="soft"]:not([data-host="dialog"], [data-mobile-variant="sheet"] *)::before, :where([data-plex-layout="phone"]) .Toolbar[data-placement="bottom"][data-background="soft"]:not([data-host="dialog"], [data-mobile-variant="sheet"] *)::after {
1037
+ inset: calc(var(--toolbar-bottom-item-top) - var(--page-bar-soft-bottom-reach)) 0 0;
1038
+ transition: opacity var(--transition-duration-basic);
1039
+ }
1040
+
1041
+ :where([data-plex-layout="phone"]) .Toolbar[data-placement="bottom"][data-background="soft"]:not([data-host="dialog"], [data-mobile-variant="sheet"] *)::before {
1042
+ -webkit-mask-image: var(--page-bar-soft-bottom-veil);
1043
+ mask-image: var(--page-bar-soft-bottom-veil);
1044
+ }
1045
+
1046
+ :where([data-plex-layout="phone"]) .Toolbar[data-placement="bottom"][data-background="soft"]:not([data-host="dialog"], [data-mobile-variant="sheet"] *)::after {
1047
+ position: absolute;
1048
+ z-index: -1;
1049
+ backdrop-filter: blur(var(--page-bar-soft-blur));
1050
+ content: "";
1051
+ -webkit-mask-image: var(--page-bar-soft-bottom-blur-mask);
1052
+ mask-image: var(--page-bar-soft-bottom-blur-mask);
1053
+ pointer-events: none;
1054
+ }
1055
+
1056
+ :where([data-plex-layout="phone"]) .Toolbar[data-placement="bottom"][data-background="soft"]:not([data-host="dialog"], [data-mobile-variant="sheet"] *):not([data-content-below])::before, :where([data-plex-layout="phone"]) .Toolbar[data-placement="bottom"][data-background="soft"]:not([data-host="dialog"], [data-mobile-variant="sheet"] *):not([data-content-below])::after {
1057
+ opacity: 0;
1058
+ }
773
1059
 
774
1060
  /* With content under it, a bottom bar's glass casts the raised shadow, as a top bar's does once scrolled.
775
1061
  A sheet's bar keeps the glass of the sheet (Dialog). */
@@ -777,15 +1063,13 @@
777
1063
  --mobile-glass-shadow: var(--mobile-glass-shadow-raised);
778
1064
  }
779
1065
 
780
- /* A bottom bar on a band (glass, hard or solid) is the top bar turned over (owner 12.11 «паддинги явно не верные»):
781
- above its items the top bar's air under them (10), its side items at the bar's gutter, where the top bar's
782
- corner items and the edges of a grouped list's rows stand (16, 20 from 414), and under them that gutter or
783
- the home indicator's inset less 6. The iOS 26 kit's 4 above and 28 at the sides are for rounds standing on
784
- the content with no band: a soft bar keeps them, and so do a sheet's bar and a single wide action. */
785
- :where([data-plex-layout="phone"]) .Toolbar[data-placement="bottom"]:not([data-background="soft"], [data-host="dialog"]):not(:has(> .Content[data-fill] > :where(button, a, [role="link"]))) {
786
- --toolbar-bottom-gutter: var(--toolbar-gutter);
1066
+ /* The background never moves a bottom bar's items (owner 13.11 «фон влияет на позицию кнопок - это ок?»): iOS
1067
+ 27.2 stands them at the same place over a soft and a hard edge (ref-app bottomedge-soft and bottomedge-hard: the
1068
+ round 27.3pt from the side, the items 28 above the screen's edge). A band (glass or hard) only starts higher:
1069
+ the hard edge's hairline lies 9.3 above the items, the top bar's air under its own (10, owner 12.11 «паддинги
1070
+ явно не верные»), and the bar stands on the screen's bottom, so its items stay put. */
1071
+ :where([data-plex-layout="phone"]) .Toolbar[data-placement="bottom"]:not([data-background="soft"], [data-background="blur"], [data-host="dialog"]):not(:has(> .Content[data-fill] > :where(button, a, [role="link"]))) {
787
1072
  --toolbar-bottom-padding-top: var(--toolbar-padding-bottom);
788
- --toolbar-bottom-padding-bottom: max(var(--toolbar-gutter), calc(var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)) - 6px));
789
1073
  }
790
1074
 
791
1075
  /* A single wide action (Apps 2.4 Fullsize) leaves 12px above it. A disabled ButtonLink renders a span with the link
@@ -808,18 +1092,26 @@
808
1092
  mask-image: none;
809
1093
  }
810
1094
 
1095
+ :where([data-plex-layout="phone"]) .Toolbar[data-placement="top"]:has(> .Content[data-fill])[data-background="soft"]::after {
1096
+ display: none;
1097
+ }
1098
+
811
1099
  /* A top bar of controls alone, with no title, leaves the content clear under its controls: on a page the soft
812
1100
  edge covers only the status bar and fades out to its bottom, as in Notes (IMG_5734, 5736: text at 18% of its
813
1101
  contrast at the top and at 44%, blurred, 37pt down, clear from 53pt; a top safe area of 59pt). Each glass
814
- control stands out by itself, as on a bottom bar. With a title the edge covers the row, as in Contacts
815
- (IMG_5737) and Settings (IMG_5484, 5503): the title needs it. A Page laid out inside a Sheet keeps the full
816
- edge, as its bottom bar does: the frames show no sheet without a title. */
817
- :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 {
818
- inset: 0 0 auto;
819
- height: var(--toolbar-padding-top, 0px);
820
- -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
821
- mask-image: linear-gradient(to bottom, #000, transparent);
822
- }
1102
+ control stands out by itself, as on a bottom bar. With a title, a large one in the content too, the edge lies
1103
+ over the row, as in Contacts (IMG_5737): the title needs it. A Page laid out inside a Sheet keeps the full edge,
1104
+ as its bottom bar does: the frames show no sheet without a title. */
1105
+ :where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-placement="top"][data-background="soft"]:not([data-mobile-variant="sheet"] *):not(:has(> .Heading, > .CollapsedTitle, > .Content[data-fill]))::before {
1106
+ inset: 0 0 auto;
1107
+ height: var(--toolbar-padding-top, 0px);
1108
+ -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
1109
+ mask-image: linear-gradient(to bottom, #000, transparent);
1110
+ }
1111
+
1112
+ :where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-placement="top"][data-background="soft"]:not([data-mobile-variant="sheet"] *):not(:has(> .Heading, > .CollapsedTitle, > .Content[data-fill]))::after {
1113
+ display: none;
1114
+ }
823
1115
 
824
1116
  /* Leading alignment, compact titles and filled content share one row from the start edge. */
825
1117
  :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]) {
@@ -858,22 +1150,17 @@
858
1150
  }
859
1151
 
860
1152
  /* Large title: the controls stay in their own row and the title sits below it. The row keeps the controls'
861
- height with none in it, as Settings' title stands where Files' does under its buttons. With a subtitle the
862
- title stands 3pt lower, as UIKit sets one with navigationItem.subtitle on iOS 27.2 (title-uikit-subtitle:
863
- «F» from 130). */
1153
+ height with none in it, as Settings' title stands where Files' does under its buttons. A subtitle goes under
1154
+ the title, which stays where it stands without one: the title does not move when a subtitle comes or goes
1155
+ (owner 13.11 «позиция не должна прыгать»; UIKit on iOS 27.2 sets it 3pt lower, title-uikit-subtitle). */
864
1156
  :where([data-plex-layout="phone"]) .Toolbar[data-title-style="large"] {
865
1157
  --toolbar-edge-blur: var(--toolbar-edge-blur-large);
866
- --toolbar-large-title-row-gap: var(--toolbar-large-title-gap);
867
1158
  grid-template-areas:
868
1159
  "leading . trailing"
869
1160
  "heading heading heading";
870
1161
  grid-template-columns: max-content minmax(0, 1fr) max-content;
871
1162
  grid-template-rows: minmax(var(--toolbar-item-size), auto) auto;
872
- row-gap: var(--toolbar-large-title-row-gap);
873
- }
874
-
875
- :where([data-plex-layout="phone"]) .Toolbar[data-title-style="large"]:has(> .Heading > .Subtitle) {
876
- --toolbar-large-title-row-gap: calc(var(--toolbar-large-title-gap) + 3px);
1163
+ row-gap: var(--toolbar-large-title-gap);
877
1164
  }
878
1165
 
879
1166
  :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) {
@@ -925,6 +1212,38 @@
925
1212
  grid-area: content;
926
1213
  }
927
1214
 
1215
+ /* A row under the controls, part of the bar (owner 13.11): a segmented control that switches the screen's views, as
1216
+ a chat list shows its folders under its bar, or a search field. It spans the bar between its gutters, under the
1217
+ bar's controls, so the bar's background, edge and line take it in. Several rows stand in their order, 10 apart: a
1218
+ search field over a segmented control, as iOS 27.2 sets a safeAreaBar under the search field of the bar's drawer
1219
+ (ref-app segsearch-inline; owner 13.11 «первый ряд - кнопки и тайтл, второй ряд поиск, третий ряд - сегментед
1220
+ контрол»). A SegmentedControl in it is the small plain one at its default size, as native's (touch.css), and fills
1221
+ the row (its segments share the width, and scroll when they do not fit; a block one shortens its labels instead). */
1222
+ :where([data-plex-layout="phone"]) .Row {
1223
+ display: flex;
1224
+ grid-column: 1 / -1;
1225
+ align-items: center;
1226
+ min-width: 0;
1227
+ /* The row takes the bar's width, never its content's: segments wider than the bar scroll in it. */
1228
+ contain: inline-size;
1229
+ }
1230
+
1231
+ :where([data-plex-layout="phone"]) .Row > * {
1232
+ flex: 1 1 auto;
1233
+ min-width: 0;
1234
+ }
1235
+
1236
+ :where([data-plex-layout="phone"]) .Toolbar:not([data-title-style="large"]):has(> .Row) {
1237
+ row-gap: var(--toolbar-row-gap);
1238
+ }
1239
+
1240
+ /* Under a large title on a page the rows stand under it at the top of the content (Page.Content keeps their place
1241
+ and pins them under the bar). A search field there keeps the bar's size. */
1242
+ :where([data-plex-layout="phone"]) .Row[data-in-content] {
1243
+ --toolbar-item-size: var(--toolbar-top-item-size);
1244
+ display: flex;
1245
+ }
1246
+
928
1247
  /* Several buttons in one capsule, as iOS 27.2 groups a bar's symbols: 10 apart with 1 at the ends on top, 8 apart
929
1248
  with 2 at the ends at the bottom. The capsule carries the shared mobile glass; the buttons inside it stay clear. */
930
1249
  :where([data-plex-layout="phone"]) .Group {
@@ -1047,9 +1366,11 @@
1047
1366
  box-shadow: var(--toolbar-prominent-shadow);
1048
1367
  }
1049
1368
 
1050
- /* A search field (iOS 26 kit Search Top and Bottom): the row height and the glass of the bar buttons.
1051
- The extra attribute outweighs the field's own focus and hover outlines, which a bar does not draw. */
1052
- :where([data-plex-layout="phone"]) .Toolbar :is(.Leading, .Trailing, .Content) > [data-slot="input"][data-variant] {
1369
+ /* A search field (iOS 26 kit Search Top and Bottom): the row height and the glass of the bar buttons, in the bar
1370
+ and in a row of it (iOS 27.2 draws the search field of a bar's drawer as the bar's: 44pt of glass, 16 from the
1371
+ sides, ref-app segsearch-inline). The extra attribute outweighs the field's own focus and hover outlines, which a
1372
+ bar does not draw. */
1373
+ :where([data-plex-layout="phone"]) :is(.Toolbar :is(.Leading, .Trailing, .Content), .Row) > [data-slot="input"][data-variant] {
1053
1374
  --input-size: var(--toolbar-item-size);
1054
1375
  --input-font-size: var(--toolbar-label-font-size);
1055
1376
  --input-gutter: var(--toolbar-search-gutter);
@@ -1065,7 +1386,7 @@
1065
1386
  backdrop-filter: var(--mobile-glass-backdrop-filter);
1066
1387
  }
1067
1388
 
1068
- :where([data-plex-layout="phone"]) .Toolbar :is(.Leading, .Trailing, .Content) > [data-slot="input"][data-variant] > svg {
1389
+ :where([data-plex-layout="phone"]) :is(.Toolbar :is(.Leading, .Trailing, .Content), .Row) > [data-slot="input"][data-variant] > svg {
1069
1390
  flex: none;
1070
1391
  width: var(--toolbar-search-icon-size);
1071
1392
  height: var(--toolbar-search-icon-size);
@@ -1181,64 +1502,61 @@
1181
1502
  inset: 0 0 auto;
1182
1503
  }
1183
1504
 
1184
- /* A large title on a page sits at the top of the content and scrolls up with it under the row of
1185
- controls, which then shows the title inline, as UIKit does in iOS 26 (WWDC25 "Build a UIKit app
1186
- with the new design": large titles scroll with the content underneath the bar). Page.Content
1187
- writes its scroll offset to --page-scroll-y and the Toolbar measures how far the title travels.
1188
- The title fades out over 8px as it passes under the row; the soft edge then covers the row only,
1189
- as it does for an inline title. */
1505
+ /* A large title on a page lives at the top of the content (Page.Content keeps a place for it), so the browser
1506
+ scrolls it with the content, overscroll included, as UIKit does in iOS 26 (WWDC25 "Build a UIKit app with the
1507
+ new design": large titles scroll with the content underneath the bar; iOS 27.2 in the simulator moves it with
1508
+ the list through the bounce). The bar keeps the row of controls. Once the title has gone under the bar, the row
1509
+ shows it inline: the two swap over --toolbar-large-title-swap-duration, not with the scroll, as iOS 27.2 does,
1510
+ and a hard or glass bar shows its line with the inline title: until then the large title is the content under
1511
+ the row. */
1190
1512
  :where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-title-style="large"] {
1191
- /* Until the Toolbar has measured how far the title travels (a server-rendered page before it hydrates), the
1192
- title has not gone: the large title shows, and the row's inline copy and the bar's line stay hidden. A
1193
- travel of 0 showed the inline title in the row for the first frames, then swapped it for the large one. */
1194
- --toolbar-large-title-travel: 100000;
1195
1513
  --toolbar-edge-blur: var(--toolbar-edge-blur-small);
1196
- --toolbar-large-title-scroll: calc(min(var(--page-scroll-y, 0), var(--toolbar-large-title-travel, 0) + 16) * 1px);
1197
- grid-template-areas:
1198
- "leading collapsed trailing"
1199
- "heading heading heading";
1514
+ grid-template-areas: "leading collapsed trailing";
1200
1515
  grid-template-columns: minmax(max-content, 1fr) minmax(0, auto) minmax(max-content, 1fr);
1201
- /* Content scrolled into the place of the title stays under the pointer. */
1202
- pointer-events: none;
1516
+ grid-template-rows: minmax(var(--toolbar-item-size), auto);
1203
1517
  }
1204
1518
 
1205
- :where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-title-style="large"]::before {
1206
- inset: 0 0 auto;
1207
- height: calc(var(--toolbar-padding-top, 0px) + var(--toolbar-item-size) + var(--toolbar-padding-bottom) + 16px);
1519
+ /* Until the content has made its place (a server-rendered page before it hydrates), the title stands in the
1520
+ bar's second row, where it will stand in the content. */
1521
+ :where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-title-style="large"]:has(> .Heading) {
1522
+ grid-template-areas:
1523
+ "leading collapsed trailing"
1524
+ "heading heading heading";
1525
+ grid-template-rows: minmax(var(--toolbar-item-size), auto) auto;
1208
1526
  }
1209
1527
 
1210
- :where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-title-style="large"]:not([data-background="soft"])::before {
1211
- height: calc(var(--toolbar-padding-top, 0px) + var(--toolbar-item-size) + var(--toolbar-padding-bottom));
1528
+ :where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-title-style="large"][data-background="hard"]::before,
1529
+ :where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-title-style="large"][data-background="glass"]::before {
1530
+ transition: opacity var(--toolbar-large-title-swap-duration), border-color var(--toolbar-large-title-swap-duration);
1212
1531
  }
1213
1532
 
1214
- /* The large title is the content under the row until it has gone: a hard or glass bar shows its line
1215
- with the inline title, over the same last 8px. */
1216
- :where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-title-style="large"][data-scrolled][data-background="hard"]::before {
1217
- 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);
1533
+ :where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-title-style="large"][data-scrolled]:not([data-title-collapsed])[data-background="hard"]::before {
1534
+ border-bottom-color: transparent;
1218
1535
  }
1219
1536
 
1220
- :where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-title-style="large"][data-scrolled][data-background="glass"]::before {
1221
- opacity: clamp(0, (var(--page-scroll-y, 0) - var(--toolbar-large-title-travel, 0) + 8) / 8, 1);
1537
+ :where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-title-style="large"][data-scrolled]:not([data-title-collapsed])[data-background="glass"]::before {
1538
+ opacity: 0;
1222
1539
  }
1223
1540
 
1224
- :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 {
1225
- pointer-events: auto;
1541
+ /* Rows pinned under the controls (Toolbar.Row: Page.Content keeps them there once scrolled up to the bar, owner
1542
+ 13.11 «Да, закрепить»): the background, edge and line reach under them as under a row in the bar, the bar's
1543
+ bottom padding under the last one, as iOS 27.2 draws its edge under a pinned safeAreaBar (ref-app
1544
+ segrow-large-scrolled). */
1545
+ :where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-title-style="large"][data-rows-pinned]::before,
1546
+ :where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-title-style="large"][data-rows-pinned]::after {
1547
+ margin-bottom: calc(-1 * (var(--toolbar-row-gap) + var(--page-toolbar-rows-height, 0px)));
1226
1548
  }
1227
1549
 
1228
- /* The bar ends at the title's last baseline: the content starts 16pt under it (iOS 27.2: baseline 152,
1229
- content 168, in Files, Settings, UIKit and SwiftUI; with a subtitle, 16.6 under the subtitle's). */
1550
+ /* The bar ends at the title's last baseline: the content starts 16pt under it (iOS 27.2: baseline 152, content
1551
+ 168, in Files, Settings, UIKit and SwiftUI; with a subtitle, 16.6 under the subtitle's). */
1230
1552
  :where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-title-style="large"] > .Heading {
1231
1553
  margin-bottom: calc(-1 * (var(--toolbar-padding-bottom) + var(--toolbar-large-title-descent)));
1232
- transform: translateY(calc(-1 * var(--toolbar-large-title-scroll)));
1233
- -webkit-mask-image: linear-gradient(to bottom, transparent calc(var(--toolbar-large-title-scroll) - var(--toolbar-large-title-row-gap)), #000 calc(var(--toolbar-large-title-scroll) - var(--toolbar-large-title-row-gap) + 8px));
1234
- mask-image: linear-gradient(to bottom, transparent calc(var(--toolbar-large-title-scroll) - var(--toolbar-large-title-row-gap)), #000 calc(var(--toolbar-large-title-scroll) - var(--toolbar-large-title-row-gap) + 8px));
1235
1554
  }
1236
1555
 
1237
1556
  :where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-title-style="large"] > .Heading:has(> .Subtitle) {
1238
1557
  margin-bottom: calc(-1 * (var(--toolbar-padding-bottom) + var(--toolbar-large-subtitle-descent)));
1239
1558
  }
1240
1559
 
1241
- /* The inline title fades in over the last 8px of the large title's way. */
1242
1560
  :where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-title-style="large"] > .CollapsedTitle {
1243
1561
  grid-area: collapsed;
1244
1562
  min-width: 0;
@@ -1250,7 +1568,12 @@
1250
1568
  text-align: center;
1251
1569
  text-overflow: ellipsis;
1252
1570
  white-space: nowrap;
1253
- opacity: clamp(0, (var(--page-scroll-y, 0) - var(--toolbar-large-title-travel, 0) + 8) / 8, 1);
1571
+ opacity: 0;
1572
+ transition: opacity var(--toolbar-large-title-swap-duration);
1573
+ }
1574
+
1575
+ :where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-title-style="large"][data-title-collapsed] > .CollapsedTitle {
1576
+ opacity: 1;
1254
1577
  }
1255
1578
 
1256
1579
  /* With a subtitle the inline copy takes two lines, as the inline title does: 15/20 and 12/16 in the
@@ -1280,6 +1603,36 @@
1280
1603
  line-height: var(--toolbar-subtitle-line-height);
1281
1604
  }
1282
1605
 
1606
+ /* The large title in the content stands where it stood in the bar: its capitals 22pt under the row of controls
1607
+ (--toolbar-large-title-gap under the row, which ends --toolbar-padding-bottom above the content's padding), and
1608
+ the content 16pt under its last baseline. */
1609
+ :where([data-plex-layout="phone"]) .Heading[data-in-content] {
1610
+ display: flex;
1611
+ align-items: flex-start;
1612
+ min-height: 0;
1613
+ margin: calc(var(--toolbar-large-title-gap) - var(--toolbar-padding-bottom) - var(--page-content-padding-top, 16px)) 0 calc(var(--page-content-padding-top, 16px) - var(--toolbar-large-title-descent));
1614
+ text-align: start;
1615
+ transform: none;
1616
+ }
1617
+
1618
+ :where([data-plex-layout="phone"]) .Heading[data-in-content] > .Title {
1619
+ font-size: var(--toolbar-large-title-font-size);
1620
+ font-weight: var(--font-weight-bold);
1621
+ line-height: var(--toolbar-large-title-line-height);
1622
+ }
1623
+
1624
+ :where([data-plex-layout="phone"]) .Heading[data-in-content] > .Subtitle {
1625
+ margin: 0;
1626
+ font-size: var(--toolbar-large-subtitle-font-size);
1627
+ font-weight: var(--font-weight-normal);
1628
+ line-height: var(--toolbar-large-subtitle-line-height);
1629
+ }
1630
+
1631
+ /* With a subtitle the title stays put and the content starts 16pt under the subtitle's baseline. */
1632
+ :where([data-plex-layout="phone"]) .Heading[data-in-content]:has(> .Subtitle) {
1633
+ margin-bottom: calc(var(--page-content-padding-top, 16px) - var(--toolbar-large-subtitle-descent));
1634
+ }
1635
+
1283
1636
  :where([data-plex-layout="phone"]) .Toolbar[data-host="dialog"][data-placement="top"] {
1284
1637
  --toolbar-background: var(--dialog-panel-background);
1285
1638
  --toolbar-padding-top: var(--toolbar-sheet-padding-top);