@plexui/styles 0.3.3 → 0.5.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.
@@ -905,8 +905,8 @@
905
905
  /* The bars of a Sheet meet the content scrolled under them by their `background`, as the bars of a
906
906
  phone Toolbar do: by default the soft scroll edge of iOS 26. The material sits on a pseudo-element, so
907
907
  Header does not become a backdrop root: HeaderAction and the sibling Close sample the same content.
908
- Soft: under the header the panel color covers the content to its bottom and fades out past it, as a
909
- Toolbar's soft edge does; over the
908
+ Soft: under the header the scroll edge of a top Toolbar (--page-bar-soft-veil): the panel color through the
909
+ veil over a light blur, and on `::before` the stronger blur that hides the content under the bar; over the
910
910
  footer it starts 27px above the actions (IMG_5491) and covers the content fully from their top, so no text
911
911
  shows through a soft action such as Decline (owner 07.11). */
912
912
  .Content[data-mobile-variant="sheet"] .Header::after,
@@ -923,8 +923,20 @@
923
923
  .Content[data-mobile-variant="sheet"] .Header::after {
924
924
  inset: 0 0 calc(-1 * var(--page-bar-soft-tail, 32px));
925
925
  border-radius: var(--dialog-panel-radius);
926
- -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--page-bar-soft-tail, 32px)), transparent);
927
- mask-image: linear-gradient(to bottom, #000 calc(100% - var(--page-bar-soft-tail, 32px)), transparent);
926
+ -webkit-mask-image: var(--page-bar-soft-veil);
927
+ mask-image: var(--page-bar-soft-veil);
928
+ }
929
+
930
+ .Content[data-mobile-variant="sheet"] .Header[data-background="soft"]::before {
931
+ position: absolute;
932
+ z-index: -1;
933
+ inset: 0 0 calc(-1 * var(--page-bar-soft-tail, 32px));
934
+ border-radius: var(--dialog-panel-radius);
935
+ backdrop-filter: blur(var(--page-bar-soft-blur));
936
+ content: "";
937
+ -webkit-mask-image: var(--page-bar-soft-blur-mask);
938
+ mask-image: var(--page-bar-soft-blur-mask);
939
+ pointer-events: none;
928
940
  }
929
941
 
930
942
  .Content[data-mobile-variant="sheet"] .Footer::before {
@@ -951,7 +963,7 @@
951
963
  }
952
964
 
953
965
  .Content[data-mobile-variant="sheet"] .Header[data-background="hard"]::after {
954
- border-bottom: 1px solid transparent;
966
+ border-bottom: 0.5px solid transparent;
955
967
  }
956
968
 
957
969
  .Content[data-mobile-variant="sheet"] .Header[data-background="glass"]::after {
@@ -959,7 +971,7 @@
959
971
  }
960
972
 
961
973
  .Content[data-mobile-variant="sheet"] .Footer[data-background="hard"]::before {
962
- border-top: 1px solid transparent;
974
+ border-top: 0.5px solid transparent;
963
975
  }
964
976
 
965
977
  .Content[data-mobile-variant="sheet"] .Footer[data-background="glass"]::before {
@@ -979,6 +991,56 @@
979
991
  opacity: 1;
980
992
  }
981
993
 
994
+ /* Blur: the blur background of a Toolbar (--page-bar-blur-*), the light blur on the bar's own layer and the heavy
995
+ one on the other, once the body is under the header or continues below the footer. */
996
+ .Content[data-mobile-variant="sheet"] .Header[data-background="blur"]::after,
997
+ .Content[data-mobile-variant="sheet"] .Footer[data-background="blur"]::before {
998
+ background: none;
999
+ backdrop-filter: blur(var(--page-bar-blur-light));
1000
+ }
1001
+
1002
+ .Content[data-mobile-variant="sheet"] .Header[data-background="blur"]::after {
1003
+ inset: 0 0 calc(-1 * var(--page-bar-soft-tail, 32px));
1004
+ -webkit-mask-image: var(--page-bar-blur-top-mask);
1005
+ mask-image: var(--page-bar-blur-top-mask);
1006
+ }
1007
+
1008
+ .Content[data-mobile-variant="sheet"] .Footer[data-background="blur"]::before {
1009
+ inset: calc(-1 * var(--page-bar-soft-tail, 32px)) 0 0;
1010
+ -webkit-mask-image: var(--page-bar-blur-bottom-mask);
1011
+ mask-image: var(--page-bar-blur-bottom-mask);
1012
+ }
1013
+
1014
+ .Content[data-mobile-variant="sheet"] .Header[data-background="blur"]::before,
1015
+ .Content[data-mobile-variant="sheet"] .Footer[data-background="blur"]::after {
1016
+ position: absolute;
1017
+ z-index: -1;
1018
+ backdrop-filter: blur(var(--page-bar-blur-heavy));
1019
+ content: "";
1020
+ pointer-events: none;
1021
+ transition: opacity var(--transition-duration-basic);
1022
+ }
1023
+
1024
+ .Content[data-mobile-variant="sheet"] .Header[data-background="blur"]::before {
1025
+ inset: 0 0 calc(-1 * var(--page-bar-soft-tail, 32px));
1026
+ border-radius: var(--dialog-panel-radius);
1027
+ -webkit-mask-image: var(--page-bar-blur-top-heavy-mask);
1028
+ mask-image: var(--page-bar-blur-top-heavy-mask);
1029
+ }
1030
+
1031
+ .Content[data-mobile-variant="sheet"] .Footer[data-background="blur"]::after {
1032
+ inset: calc(-1 * var(--page-bar-soft-tail, 32px)) 0 0;
1033
+ -webkit-mask-image: var(--page-bar-blur-bottom-heavy-mask);
1034
+ mask-image: var(--page-bar-blur-bottom-heavy-mask);
1035
+ }
1036
+
1037
+ .Content[data-mobile-variant="sheet"] .Header[data-background="blur"]:not([data-scrolled])::before,
1038
+ .Content[data-mobile-variant="sheet"] .Header[data-background="blur"]:not([data-scrolled])::after,
1039
+ .Content[data-mobile-variant="sheet"] .Footer[data-background="blur"]:not([data-content-below])::before,
1040
+ .Content[data-mobile-variant="sheet"] .Footer[data-background="blur"]:not([data-content-below])::after {
1041
+ opacity: 0;
1042
+ }
1043
+
982
1044
  .Content[data-mobile-variant="sheet"] .Footer {
983
1045
  position: relative;
984
1046
  z-index: 2;
@@ -1390,8 +1452,8 @@
1390
1452
  /* The bars of a Sheet meet the content scrolled under them by their `background`, as the bars of a
1391
1453
  phone Toolbar do: by default the soft scroll edge of iOS 26. The material sits on a pseudo-element, so
1392
1454
  Header does not become a backdrop root: HeaderAction and the sibling Close sample the same content.
1393
- Soft: under the header the panel color covers the content to its bottom and fades out past it, as a
1394
- Toolbar's soft edge does; over the
1455
+ Soft: under the header the scroll edge of a top Toolbar (--page-bar-soft-veil): the panel color through the
1456
+ veil over a light blur, and on `::before` the stronger blur that hides the content under the bar; over the
1395
1457
  footer it starts 27px above the actions (IMG_5491) and covers the content fully from their top, so no text
1396
1458
  shows through a soft action such as Decline (owner 07.11). */
1397
1459
  :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Header::after,
@@ -1408,8 +1470,20 @@
1408
1470
  :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Header::after {
1409
1471
  inset: 0 0 calc(-1 * var(--page-bar-soft-tail, 32px));
1410
1472
  border-radius: var(--dialog-panel-radius);
1411
- -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--page-bar-soft-tail, 32px)), transparent);
1412
- mask-image: linear-gradient(to bottom, #000 calc(100% - var(--page-bar-soft-tail, 32px)), transparent);
1473
+ -webkit-mask-image: var(--page-bar-soft-veil);
1474
+ mask-image: var(--page-bar-soft-veil);
1475
+ }
1476
+
1477
+ :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Header[data-background="soft"]::before {
1478
+ position: absolute;
1479
+ z-index: -1;
1480
+ inset: 0 0 calc(-1 * var(--page-bar-soft-tail, 32px));
1481
+ border-radius: var(--dialog-panel-radius);
1482
+ backdrop-filter: blur(var(--page-bar-soft-blur));
1483
+ content: "";
1484
+ -webkit-mask-image: var(--page-bar-soft-blur-mask);
1485
+ mask-image: var(--page-bar-soft-blur-mask);
1486
+ pointer-events: none;
1413
1487
  }
1414
1488
 
1415
1489
  :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Footer::before {
@@ -1436,7 +1510,7 @@
1436
1510
  }
1437
1511
 
1438
1512
  :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Header[data-background="hard"]::after {
1439
- border-bottom: 1px solid transparent;
1513
+ border-bottom: 0.5px solid transparent;
1440
1514
  }
1441
1515
 
1442
1516
  :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Header[data-background="glass"]::after {
@@ -1444,7 +1518,7 @@
1444
1518
  }
1445
1519
 
1446
1520
  :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Footer[data-background="hard"]::before {
1447
- border-top: 1px solid transparent;
1521
+ border-top: 0.5px solid transparent;
1448
1522
  }
1449
1523
 
1450
1524
  :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Footer[data-background="glass"]::before {
@@ -1464,6 +1538,56 @@
1464
1538
  opacity: 1;
1465
1539
  }
1466
1540
 
1541
+ /* Blur: the blur background of a Toolbar (--page-bar-blur-*), the light blur on the bar's own layer and the heavy
1542
+ one on the other, once the body is under the header or continues below the footer. */
1543
+ :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Header[data-background="blur"]::after,
1544
+ :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Footer[data-background="blur"]::before {
1545
+ background: none;
1546
+ backdrop-filter: blur(var(--page-bar-blur-light));
1547
+ }
1548
+
1549
+ :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Header[data-background="blur"]::after {
1550
+ inset: 0 0 calc(-1 * var(--page-bar-soft-tail, 32px));
1551
+ -webkit-mask-image: var(--page-bar-blur-top-mask);
1552
+ mask-image: var(--page-bar-blur-top-mask);
1553
+ }
1554
+
1555
+ :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Footer[data-background="blur"]::before {
1556
+ inset: calc(-1 * var(--page-bar-soft-tail, 32px)) 0 0;
1557
+ -webkit-mask-image: var(--page-bar-blur-bottom-mask);
1558
+ mask-image: var(--page-bar-blur-bottom-mask);
1559
+ }
1560
+
1561
+ :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Header[data-background="blur"]::before,
1562
+ :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Footer[data-background="blur"]::after {
1563
+ position: absolute;
1564
+ z-index: -1;
1565
+ backdrop-filter: blur(var(--page-bar-blur-heavy));
1566
+ content: "";
1567
+ pointer-events: none;
1568
+ transition: opacity var(--transition-duration-basic);
1569
+ }
1570
+
1571
+ :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Header[data-background="blur"]::before {
1572
+ inset: 0 0 calc(-1 * var(--page-bar-soft-tail, 32px));
1573
+ border-radius: var(--dialog-panel-radius);
1574
+ -webkit-mask-image: var(--page-bar-blur-top-heavy-mask);
1575
+ mask-image: var(--page-bar-blur-top-heavy-mask);
1576
+ }
1577
+
1578
+ :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Footer[data-background="blur"]::after {
1579
+ inset: calc(-1 * var(--page-bar-soft-tail, 32px)) 0 0;
1580
+ -webkit-mask-image: var(--page-bar-blur-bottom-heavy-mask);
1581
+ mask-image: var(--page-bar-blur-bottom-heavy-mask);
1582
+ }
1583
+
1584
+ :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Header[data-background="blur"]:not([data-scrolled])::before,
1585
+ :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Header[data-background="blur"]:not([data-scrolled])::after,
1586
+ :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Footer[data-background="blur"]:not([data-content-below])::before,
1587
+ :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Footer[data-background="blur"]:not([data-content-below])::after {
1588
+ opacity: 0;
1589
+ }
1590
+
1467
1591
  :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Footer {
1468
1592
  position: relative;
1469
1593
  z-index: 2;
@@ -570,15 +570,15 @@
570
570
  pointer-events: none;
571
571
  transition: background-color var(--transition-duration-basic) var(--transition-ease-basic);
572
572
  }@media (max-width: 767px) {
573
- /* A search field (type="search") is the search field of iOS 27.2 that stands in the content: under a large title
574
- (Files, a search tab, UIKit's stacked placement) or at the top of a sheet (Settings, IMG_5834). It takes the
575
- magnifier of a Toolbar's search field (from 14px, as native) and sets its text 1px nearer (from 40.67px:
576
- native 40.7 here, 42.3 in the bar's glass field), Regular, with the placeholder in the secondary label;
577
- `variant="soft" pill` gives it the fill and the capsule. A Toolbar gives its own field the glass of its buttons,
578
- and a row keeps its own value column and placeholder for a search Input in it. */
573
+ /* A search field (type="search") that stands in the content: under a large title or at the top of a sheet. It is
574
+ the search field of a Toolbar, one look wherever it stands (owner 13.11 «почему разный стиль? должно быть
575
+ одинаково везде же так? стекло»): the bar's magnifier (from 14px), its text where the bar's starts, Regular,
576
+ with the placeholder in the secondary label; `variant="soft" pill` gives it the capsule, and touch.css the glass
577
+ of the bar's field in place of the soft fill (iOS 27 draws a flat gray field there, in Files and a search tab:
578
+ the owner chose one look). A row keeps its own value column and placeholder for a search Input in it. */
579
579
  .Container:has(> .Input[type="search"]):not(:where([data-row] *)) {
580
580
  --input-gutter: var(--toolbar-search-gutter);
581
- --input-gap: calc(var(--toolbar-search-icon-gap) - 1px);
581
+ --input-gap: var(--toolbar-search-icon-gap);
582
582
  --input-adornment-offset: 0px;
583
583
  --control-gutter-pill-scaling: 1;
584
584
  --input-placeholder-text-color: var(--toolbar-search-placeholder-color);
@@ -734,15 +734,15 @@
734
734
  height: 19px;
735
735
  }
736
736
  }
737
- /* A search field (type="search") is the search field of iOS 27.2 that stands in the content: under a large title
738
- (Files, a search tab, UIKit's stacked placement) or at the top of a sheet (Settings, IMG_5834). It takes the
739
- magnifier of a Toolbar's search field (from 14px, as native) and sets its text 1px nearer (from 40.67px:
740
- native 40.7 here, 42.3 in the bar's glass field), Regular, with the placeholder in the secondary label;
741
- `variant="soft" pill` gives it the fill and the capsule. A Toolbar gives its own field the glass of its buttons,
742
- and a row keeps its own value column and placeholder for a search Input in it. */
737
+ /* A search field (type="search") that stands in the content: under a large title or at the top of a sheet. It is
738
+ the search field of a Toolbar, one look wherever it stands (owner 13.11 «почему разный стиль? должно быть
739
+ одинаково везде же так? стекло»): the bar's magnifier (from 14px), its text where the bar's starts, Regular,
740
+ with the placeholder in the secondary label; `variant="soft" pill` gives it the capsule, and touch.css the glass
741
+ of the bar's field in place of the soft fill (iOS 27 draws a flat gray field there, in Files and a search tab:
742
+ the owner chose one look). A row keeps its own value column and placeholder for a search Input in it. */
743
743
  :where([data-plex-layout="phone"]) .Container:has(> .Input[type="search"]):not(:where([data-row] *)) {
744
744
  --input-gutter: var(--toolbar-search-gutter);
745
- --input-gap: calc(var(--toolbar-search-icon-gap) - 1px);
745
+ --input-gap: var(--toolbar-search-icon-gap);
746
746
  --input-adornment-offset: 0px;
747
747
  --control-gutter-pill-scaling: 1;
748
748
  --input-placeholder-text-color: var(--toolbar-search-placeholder-color);
@@ -67,6 +67,9 @@
67
67
  display: flex;
68
68
  align-items: center;
69
69
  gap: 8px;
70
+ }/* The place of a large Toolbar title at the top of the content. It holds the title's margins, so they never merge
71
+ with the margins of the content after it. */.LargeTitle {
72
+ display: flow-root;
70
73
  }.Content {
71
74
  position: relative;
72
75
  flex: 1 1 0;
@@ -167,8 +170,8 @@
167
170
  padding-block: max(var(--page-gutter), var(--safe-area-inset-top, env(safe-area-inset-top, 0px))) 10px;
168
171
  }
169
172
 
170
- /* Soft: the canvas covers content under the bar and fades out past it, as the soft edge of a top
171
- Toolbar does. */
173
+ /* Soft: the scroll edge of a top Toolbar (--page-bar-soft-veil): the canvas color through the veil over a light
174
+ blur, and on `::after` the stronger blur that hides the content under the bar, once content is under it. */
172
175
  .Header::before {
173
176
  position: absolute;
174
177
  z-index: -1;
@@ -176,12 +179,29 @@
176
179
  background: var(--page-background);
177
180
  backdrop-filter: blur(var(--toolbar-edge-blur-small));
178
181
  content: "";
179
- -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--page-bar-soft-tail, 32px)), transparent);
180
- mask-image: linear-gradient(to bottom, #000 calc(100% - var(--page-bar-soft-tail, 32px)), transparent);
182
+ -webkit-mask-image: var(--page-bar-soft-veil);
183
+ mask-image: var(--page-bar-soft-veil);
181
184
  pointer-events: none;
182
185
  transition: opacity var(--transition-duration-basic), border-color var(--transition-duration-basic);
183
186
  }
184
187
 
188
+ .Header[data-background="soft"]::after {
189
+ position: absolute;
190
+ z-index: -1;
191
+ inset: 0 0 calc(-1 * var(--page-bar-soft-tail, 32px));
192
+ backdrop-filter: blur(var(--page-bar-soft-blur));
193
+ content: "";
194
+ -webkit-mask-image: var(--page-bar-soft-blur-mask);
195
+ mask-image: var(--page-bar-soft-blur-mask);
196
+ pointer-events: none;
197
+ transition: opacity var(--transition-duration-basic);
198
+ }
199
+
200
+ .Header[data-background="soft"]:not([data-scrolled])::before,
201
+ .Header[data-background="soft"]:not([data-scrolled])::after {
202
+ opacity: 0;
203
+ }
204
+
185
205
  /* A bar of controls alone covers only the status bar and leaves the content clear under its controls, as a
186
206
  top Toolbar without a title does (Notes, IMG_5734 and 5736). A Page inside a Sheet keeps the full edge. */
187
207
  .Header[data-background="soft"]:not([data-mobile-variant="sheet"] *):not(:has(:is(.Heading, .Title)))::before {
@@ -191,6 +211,10 @@
191
211
  mask-image: linear-gradient(to bottom, #000, transparent);
192
212
  }
193
213
 
214
+ .Header[data-background="soft"]:not([data-mobile-variant="sheet"] *):not(:has(:is(.Heading, .Title)))::after {
215
+ display: none;
216
+ }
217
+
194
218
  /* Hard and solid are opaque, glass is translucent and shows itself once content is under the bar.
195
219
  Hard and glass then draw a line, unless `divider` is off. */
196
220
  .Header:not([data-background="soft"])::before {
@@ -201,7 +225,7 @@
201
225
  }
202
226
 
203
227
  .Header[data-background="hard"]::before {
204
- border-bottom: 1px solid transparent;
228
+ border-bottom: 0.5px solid transparent;
205
229
  }
206
230
 
207
231
  .Header[data-background="glass"]::before {
@@ -223,6 +247,32 @@
223
247
  border-bottom-color: var(--page-bar-line);
224
248
  }
225
249
 
250
+ /* Blur: the blur background of a top Toolbar (--page-bar-blur-*), once content is under the bar. */
251
+ .Header[data-background="blur"]::before {
252
+ inset: 0 0 calc(-1 * var(--page-bar-soft-tail, 32px));
253
+ background: none;
254
+ backdrop-filter: blur(var(--page-bar-blur-light));
255
+ -webkit-mask-image: var(--page-bar-blur-top-mask);
256
+ mask-image: var(--page-bar-blur-top-mask);
257
+ }
258
+
259
+ .Header[data-background="blur"]::after {
260
+ position: absolute;
261
+ z-index: -1;
262
+ inset: 0 0 calc(-1 * var(--page-bar-soft-tail, 32px));
263
+ backdrop-filter: blur(var(--page-bar-blur-heavy));
264
+ content: "";
265
+ -webkit-mask-image: var(--page-bar-blur-top-heavy-mask);
266
+ mask-image: var(--page-bar-blur-top-heavy-mask);
267
+ pointer-events: none;
268
+ transition: opacity var(--transition-duration-basic);
269
+ }
270
+
271
+ .Header[data-background="blur"]:not([data-scrolled])::before,
272
+ .Header[data-background="blur"]:not([data-scrolled])::after {
273
+ opacity: 0;
274
+ }
275
+
226
276
  /* The bar's glass buttons cast a shadow only over content scrolled under them. */
227
277
  .Header[data-scrolled] {
228
278
  --mobile-glass-shadow: var(--mobile-glass-shadow-raised);
@@ -384,7 +434,7 @@
384
434
  }
385
435
 
386
436
  .Footer[data-background="hard"]::before {
387
- border-top: 1px solid transparent;
437
+ border-top: 0.5px solid transparent;
388
438
  }
389
439
 
390
440
  .Footer[data-background="glass"]::before {
@@ -402,7 +452,77 @@
402
452
  opacity: 1;
403
453
  }
404
454
 
405
- .Footer[data-background="soft"]:not([data-mobile-variant="sheet"] *)::before {
455
+ /* Blur: the blur background of a bottom Toolbar, while content continues below. */
456
+ .Footer[data-background="blur"]::before {
457
+ inset: calc(-1 * var(--page-bar-soft-tail, 32px)) 0 0;
458
+ background: none;
459
+ backdrop-filter: blur(var(--page-bar-blur-light));
460
+ -webkit-mask-image: var(--page-bar-blur-bottom-mask);
461
+ mask-image: var(--page-bar-blur-bottom-mask);
462
+ }
463
+
464
+ .Footer[data-background="blur"]::after {
465
+ position: absolute;
466
+ z-index: -1;
467
+ inset: calc(-1 * var(--page-bar-soft-tail, 32px)) 0 0;
468
+ backdrop-filter: blur(var(--page-bar-blur-heavy));
469
+ content: "";
470
+ -webkit-mask-image: var(--page-bar-blur-bottom-heavy-mask);
471
+ mask-image: var(--page-bar-blur-bottom-heavy-mask);
472
+ pointer-events: none;
473
+ transition: opacity var(--transition-duration-basic);
474
+ }
475
+
476
+ .Footer[data-background="blur"]:not([data-content-below])::before,
477
+ .Footer[data-background="blur"]:not([data-content-below])::after {
478
+ opacity: 0;
479
+ }
480
+
481
+ /* Soft: iOS 27.2's bottom edge, as a bottom Toolbar's (Toolbar.module.css), from 34pt above the footer's
482
+ content to the screen's edge, once content runs on under it. */
483
+ .Footer[data-background="soft"]:not([data-mobile-variant="sheet"] *)::before,
484
+ .Footer[data-background="soft"]:not([data-mobile-variant="sheet"] *)::after {
485
+ inset: calc(var(--page-footer-padding-top) - var(--page-bar-soft-bottom-reach)) 0 0;
486
+ transition: opacity var(--transition-duration-basic);
487
+ }
488
+
489
+ .Footer[data-background="soft"]:not([data-mobile-variant="sheet"] *)::before {
490
+ -webkit-mask-image: var(--page-bar-soft-bottom-veil);
491
+ mask-image: var(--page-bar-soft-bottom-veil);
492
+ }
493
+
494
+ .Footer[data-background="soft"]:not([data-mobile-variant="sheet"] *)::after {
495
+ position: absolute;
496
+ z-index: -1;
497
+ backdrop-filter: blur(var(--page-bar-soft-blur));
498
+ content: "";
499
+ -webkit-mask-image: var(--page-bar-soft-bottom-blur-mask);
500
+ mask-image: var(--page-bar-soft-bottom-blur-mask);
501
+ pointer-events: none;
502
+ }
503
+
504
+ .Footer[data-background="soft"]:not([data-mobile-variant="sheet"] *):not([data-content-below])::before,
505
+ .Footer[data-background="soft"]:not([data-mobile-variant="sheet"] *):not([data-content-below])::after {
506
+ opacity: 0;
507
+ }
508
+
509
+ /* The rows of a large title's bar (Toolbar.Row) stand under the title, where the content would start, and the
510
+ content starts as far under them (iOS 27.2 sets a safeAreaBar 16 under a large title's baseline, ref-app
511
+ segrow-large). Scrolled up to the bar they stay under its controls, 10 under them as in the bar, over the content,
512
+ and the bar's background reaches under them (Toolbar data-rows-pinned), as iOS 27.2 pins a safeAreaBar under a
513
+ large title's bar (ref-app segrow-large-scrolled; owner 13.11 «Да, закрепить»). A sticky box keeps clear of the
514
+ scroller's padding, which here ends --page-content-padding-top under the bar: `top` is counted from there. */
515
+ .LargeTitleRows {
516
+ position: sticky;
517
+ z-index: 6;
518
+ top: calc(var(--toolbar-row-gap) - var(--toolbar-padding-bottom) - var(--page-content-padding-top, 16px));
519
+ display: flex;
520
+ flex-direction: column;
521
+ gap: var(--toolbar-row-gap);
522
+ margin-bottom: var(--page-content-padding-top, 16px);
523
+ }
524
+
525
+ .LargeTitleRows:empty {
406
526
  display: none;
407
527
  }
408
528
 
@@ -422,6 +542,14 @@
422
542
  padding-top: calc(var(--page-top) + var(--page-content-padding-top));
423
543
  scroll-padding-top: calc(var(--page-top) + var(--page-content-padding-top));
424
544
  }
545
+
546
+ /* With a large title's rows a target scrolled into view lands under them, pinned, where the bar's background ends,
547
+ not behind them (Codex #7). */
548
+ .Content:has(> .Column > .LargeTitleRows > *) {
549
+ scroll-padding-top: calc(
550
+ var(--page-top) + var(--page-content-padding-top) + var(--toolbar-row-gap) + var(--page-toolbar-rows-height, 0px)
551
+ );
552
+ }
425
553
  }
426
554
  :where([data-plex-layout="phone"]) .Page {
427
555
  --page-top: var(--page-toolbar-height, var(--page-header-height, calc(max(var(--page-gutter), var(--safe-area-inset-top, env(safe-area-inset-top, 0px))) + var(--page-bar-height-phone) + 10px)));
@@ -467,8 +595,8 @@
467
595
  padding-block: max(var(--page-gutter), var(--safe-area-inset-top, env(safe-area-inset-top, 0px))) 10px;
468
596
  }
469
597
 
470
- /* Soft: the canvas covers content under the bar and fades out past it, as the soft edge of a top
471
- Toolbar does. */
598
+ /* Soft: the scroll edge of a top Toolbar (--page-bar-soft-veil): the canvas color through the veil over a light
599
+ blur, and on `::after` the stronger blur that hides the content under the bar, once content is under it. */
472
600
  :where([data-plex-layout="phone"]) .Header::before {
473
601
  position: absolute;
474
602
  z-index: -1;
@@ -476,12 +604,29 @@
476
604
  background: var(--page-background);
477
605
  backdrop-filter: blur(var(--toolbar-edge-blur-small));
478
606
  content: "";
479
- -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--page-bar-soft-tail, 32px)), transparent);
480
- mask-image: linear-gradient(to bottom, #000 calc(100% - var(--page-bar-soft-tail, 32px)), transparent);
607
+ -webkit-mask-image: var(--page-bar-soft-veil);
608
+ mask-image: var(--page-bar-soft-veil);
481
609
  pointer-events: none;
482
610
  transition: opacity var(--transition-duration-basic), border-color var(--transition-duration-basic);
483
611
  }
484
612
 
613
+ :where([data-plex-layout="phone"]) .Header[data-background="soft"]::after {
614
+ position: absolute;
615
+ z-index: -1;
616
+ inset: 0 0 calc(-1 * var(--page-bar-soft-tail, 32px));
617
+ backdrop-filter: blur(var(--page-bar-soft-blur));
618
+ content: "";
619
+ -webkit-mask-image: var(--page-bar-soft-blur-mask);
620
+ mask-image: var(--page-bar-soft-blur-mask);
621
+ pointer-events: none;
622
+ transition: opacity var(--transition-duration-basic);
623
+ }
624
+
625
+ :where([data-plex-layout="phone"]) .Header[data-background="soft"]:not([data-scrolled])::before,
626
+ :where([data-plex-layout="phone"]) .Header[data-background="soft"]:not([data-scrolled])::after {
627
+ opacity: 0;
628
+ }
629
+
485
630
  /* A bar of controls alone covers only the status bar and leaves the content clear under its controls, as a
486
631
  top Toolbar without a title does (Notes, IMG_5734 and 5736). A Page inside a Sheet keeps the full edge. */
487
632
  :where([data-plex-layout="phone"]) .Header[data-background="soft"]:not([data-mobile-variant="sheet"] *):not(:has(:is(.Heading, .Title)))::before {
@@ -491,6 +636,10 @@
491
636
  mask-image: linear-gradient(to bottom, #000, transparent);
492
637
  }
493
638
 
639
+ :where([data-plex-layout="phone"]) .Header[data-background="soft"]:not([data-mobile-variant="sheet"] *):not(:has(:is(.Heading, .Title)))::after {
640
+ display: none;
641
+ }
642
+
494
643
  /* Hard and solid are opaque, glass is translucent and shows itself once content is under the bar.
495
644
  Hard and glass then draw a line, unless `divider` is off. */
496
645
  :where([data-plex-layout="phone"]) .Header:not([data-background="soft"])::before {
@@ -501,7 +650,7 @@
501
650
  }
502
651
 
503
652
  :where([data-plex-layout="phone"]) .Header[data-background="hard"]::before {
504
- border-bottom: 1px solid transparent;
653
+ border-bottom: 0.5px solid transparent;
505
654
  }
506
655
 
507
656
  :where([data-plex-layout="phone"]) .Header[data-background="glass"]::before {
@@ -523,6 +672,32 @@
523
672
  border-bottom-color: var(--page-bar-line);
524
673
  }
525
674
 
675
+ /* Blur: the blur background of a top Toolbar (--page-bar-blur-*), once content is under the bar. */
676
+ :where([data-plex-layout="phone"]) .Header[data-background="blur"]::before {
677
+ inset: 0 0 calc(-1 * var(--page-bar-soft-tail, 32px));
678
+ background: none;
679
+ backdrop-filter: blur(var(--page-bar-blur-light));
680
+ -webkit-mask-image: var(--page-bar-blur-top-mask);
681
+ mask-image: var(--page-bar-blur-top-mask);
682
+ }
683
+
684
+ :where([data-plex-layout="phone"]) .Header[data-background="blur"]::after {
685
+ position: absolute;
686
+ z-index: -1;
687
+ inset: 0 0 calc(-1 * var(--page-bar-soft-tail, 32px));
688
+ backdrop-filter: blur(var(--page-bar-blur-heavy));
689
+ content: "";
690
+ -webkit-mask-image: var(--page-bar-blur-top-heavy-mask);
691
+ mask-image: var(--page-bar-blur-top-heavy-mask);
692
+ pointer-events: none;
693
+ transition: opacity var(--transition-duration-basic);
694
+ }
695
+
696
+ :where([data-plex-layout="phone"]) .Header[data-background="blur"]:not([data-scrolled])::before,
697
+ :where([data-plex-layout="phone"]) .Header[data-background="blur"]:not([data-scrolled])::after {
698
+ opacity: 0;
699
+ }
700
+
526
701
  /* The bar's glass buttons cast a shadow only over content scrolled under them. */
527
702
  :where([data-plex-layout="phone"]) .Header[data-scrolled] {
528
703
  --mobile-glass-shadow: var(--mobile-glass-shadow-raised);
@@ -682,7 +857,7 @@
682
857
  }
683
858
 
684
859
  :where([data-plex-layout="phone"]) .Footer[data-background="hard"]::before {
685
- border-top: 1px solid transparent;
860
+ border-top: 0.5px solid transparent;
686
861
  }
687
862
 
688
863
  :where([data-plex-layout="phone"]) .Footer[data-background="glass"]::before {
@@ -700,7 +875,77 @@
700
875
  opacity: 1;
701
876
  }
702
877
 
703
- :where([data-plex-layout="phone"]) .Footer[data-background="soft"]:not([data-mobile-variant="sheet"] *)::before {
878
+ /* Blur: the blur background of a bottom Toolbar, while content continues below. */
879
+ :where([data-plex-layout="phone"]) .Footer[data-background="blur"]::before {
880
+ inset: calc(-1 * var(--page-bar-soft-tail, 32px)) 0 0;
881
+ background: none;
882
+ backdrop-filter: blur(var(--page-bar-blur-light));
883
+ -webkit-mask-image: var(--page-bar-blur-bottom-mask);
884
+ mask-image: var(--page-bar-blur-bottom-mask);
885
+ }
886
+
887
+ :where([data-plex-layout="phone"]) .Footer[data-background="blur"]::after {
888
+ position: absolute;
889
+ z-index: -1;
890
+ inset: calc(-1 * var(--page-bar-soft-tail, 32px)) 0 0;
891
+ backdrop-filter: blur(var(--page-bar-blur-heavy));
892
+ content: "";
893
+ -webkit-mask-image: var(--page-bar-blur-bottom-heavy-mask);
894
+ mask-image: var(--page-bar-blur-bottom-heavy-mask);
895
+ pointer-events: none;
896
+ transition: opacity var(--transition-duration-basic);
897
+ }
898
+
899
+ :where([data-plex-layout="phone"]) .Footer[data-background="blur"]:not([data-content-below])::before,
900
+ :where([data-plex-layout="phone"]) .Footer[data-background="blur"]:not([data-content-below])::after {
901
+ opacity: 0;
902
+ }
903
+
904
+ /* Soft: iOS 27.2's bottom edge, as a bottom Toolbar's (Toolbar.module.css), from 34pt above the footer's
905
+ content to the screen's edge, once content runs on under it. */
906
+ :where([data-plex-layout="phone"]) .Footer[data-background="soft"]:not([data-mobile-variant="sheet"] *)::before,
907
+ :where([data-plex-layout="phone"]) .Footer[data-background="soft"]:not([data-mobile-variant="sheet"] *)::after {
908
+ inset: calc(var(--page-footer-padding-top) - var(--page-bar-soft-bottom-reach)) 0 0;
909
+ transition: opacity var(--transition-duration-basic);
910
+ }
911
+
912
+ :where([data-plex-layout="phone"]) .Footer[data-background="soft"]:not([data-mobile-variant="sheet"] *)::before {
913
+ -webkit-mask-image: var(--page-bar-soft-bottom-veil);
914
+ mask-image: var(--page-bar-soft-bottom-veil);
915
+ }
916
+
917
+ :where([data-plex-layout="phone"]) .Footer[data-background="soft"]:not([data-mobile-variant="sheet"] *)::after {
918
+ position: absolute;
919
+ z-index: -1;
920
+ backdrop-filter: blur(var(--page-bar-soft-blur));
921
+ content: "";
922
+ -webkit-mask-image: var(--page-bar-soft-bottom-blur-mask);
923
+ mask-image: var(--page-bar-soft-bottom-blur-mask);
924
+ pointer-events: none;
925
+ }
926
+
927
+ :where([data-plex-layout="phone"]) .Footer[data-background="soft"]:not([data-mobile-variant="sheet"] *):not([data-content-below])::before,
928
+ :where([data-plex-layout="phone"]) .Footer[data-background="soft"]:not([data-mobile-variant="sheet"] *):not([data-content-below])::after {
929
+ opacity: 0;
930
+ }
931
+
932
+ /* The rows of a large title's bar (Toolbar.Row) stand under the title, where the content would start, and the
933
+ content starts as far under them (iOS 27.2 sets a safeAreaBar 16 under a large title's baseline, ref-app
934
+ segrow-large). Scrolled up to the bar they stay under its controls, 10 under them as in the bar, over the content,
935
+ and the bar's background reaches under them (Toolbar data-rows-pinned), as iOS 27.2 pins a safeAreaBar under a
936
+ large title's bar (ref-app segrow-large-scrolled; owner 13.11 «Да, закрепить»). A sticky box keeps clear of the
937
+ scroller's padding, which here ends --page-content-padding-top under the bar: `top` is counted from there. */
938
+ :where([data-plex-layout="phone"]) .LargeTitleRows {
939
+ position: sticky;
940
+ z-index: 6;
941
+ top: calc(var(--toolbar-row-gap) - var(--toolbar-padding-bottom) - var(--page-content-padding-top, 16px));
942
+ display: flex;
943
+ flex-direction: column;
944
+ gap: var(--toolbar-row-gap);
945
+ margin-bottom: var(--page-content-padding-top, 16px);
946
+ }
947
+
948
+ :where([data-plex-layout="phone"]) .LargeTitleRows:empty {
704
949
  display: none;
705
950
  }
706
951
 
@@ -720,4 +965,12 @@
720
965
  padding-top: calc(var(--page-top) + var(--page-content-padding-top));
721
966
  scroll-padding-top: calc(var(--page-top) + var(--page-content-padding-top));
722
967
  }
968
+
969
+ /* With a large title's rows a target scrolled into view lands under them, pinned, where the bar's background ends,
970
+ not behind them (Codex #7). */
971
+ :where([data-plex-layout="phone"]) .Content:has(> .Column > .LargeTitleRows > *) {
972
+ scroll-padding-top: calc(
973
+ var(--page-top) + var(--page-content-padding-top) + var(--toolbar-row-gap) + var(--page-toolbar-rows-height, 0px)
974
+ );
975
+ }
723
976
  }