@plexui/styles 0.1.33 → 0.1.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/dist/es/components/Accordion/Accordion.module.css +26 -1
  2. package/dist/es/components/Alert/Alert.module.css +213 -1
  3. package/dist/es/components/Badge/Badge.module.css +37 -0
  4. package/dist/es/components/Breadcrumb/Breadcrumb.module.css +63 -0
  5. package/dist/es/components/Button/Button.module.css +123 -22
  6. package/dist/es/components/Button/NavigationButton.module.css +17 -0
  7. package/dist/es/components/ButtonGroup/ButtonGroup.module.css +227 -20
  8. package/dist/es/components/Card/Card.module.css +31 -6
  9. package/dist/es/components/Checkbox/Checkbox.module.css +26 -72
  10. package/dist/es/components/CodeBlock/CodeBlock.module.css +34 -1
  11. package/dist/es/components/ColorPicker/ColorPicker.module.css +414 -0
  12. package/dist/es/components/ContextMenu/ContextMenu.module.css +55 -0
  13. package/dist/es/components/DataTable/DataTable.module.css +4 -0
  14. package/dist/es/components/DatePicker/Calendar.module.css +279 -6
  15. package/dist/es/components/DatePicker/CalendarNavigationIcon.module.css +10 -0
  16. package/dist/es/components/DateRangePicker/Calendar.module.css +226 -4
  17. package/dist/es/components/DateRangePicker/Trigger.module.css +45 -2
  18. package/dist/es/components/Dialog/Dialog.module.css +871 -89
  19. package/dist/es/components/EmptyMessage/EmptyMessage.module.css +52 -0
  20. package/dist/es/components/Field/Field.module.css +574 -24
  21. package/dist/es/components/FieldGroup/FieldGroup.module.css +188 -3
  22. package/dist/es/components/FileUpload/FileUpload.module.css +74 -1
  23. package/dist/es/components/FloatingLabelInput/FloatingLabelInput.module.css +40 -1
  24. package/dist/es/components/FloatingLabelSelect/FloatingLabelSelect.module.css +28 -1
  25. package/dist/es/components/IndexBar/IndexBar.module.css +146 -0
  26. package/dist/es/components/Indicator/LoadingIndicator.module.css +14 -7
  27. package/dist/es/components/Input/Input.module.css +198 -1
  28. package/dist/es/components/InputGroup/InputGroup.module.css +4 -0
  29. package/dist/es/components/MarkdownEditor/MarkdownEditor.module.css +18 -0
  30. package/dist/es/components/Menu/Menu.module.css +544 -34
  31. package/dist/es/components/OTPInput/OTPInput.module.css +6 -1
  32. package/dist/es/components/Page/Page.module.css +391 -31
  33. package/dist/es/components/PageControl/PageControl.module.css +81 -0
  34. package/dist/es/components/PhoneLayout/PhoneLayout.module.css +10 -0
  35. package/dist/es/components/Popover/Popover.module.css +17 -1
  36. package/dist/es/components/Select/Select.module.css +201 -9
  37. package/dist/es/components/SelectControl/SelectControl.module.css +151 -4
  38. package/dist/es/components/Sidebar/Sidebar.module.css +624 -71
  39. package/dist/es/components/Slider/Slider.module.css +132 -45
  40. package/dist/es/components/Sortable/Sortable.module.css +7 -3
  41. package/dist/es/components/Stepper/Stepper.module.css +98 -0
  42. package/dist/es/components/SwipeActions/SwipeActions.module.css +166 -0
  43. package/dist/es/components/Switch/Switch.module.css +59 -4
  44. package/dist/es/components/TabBar/TabBar.module.css +478 -0
  45. package/dist/es/components/Tabs/Tabs.module.css +315 -3
  46. package/dist/es/components/TagInput/TagInput.module.css +50 -9
  47. package/dist/es/components/Textarea/Textarea.module.css +6 -0
  48. package/dist/es/components/Tip/Tip.module.css +456 -0
  49. package/dist/es/components/Toast/Toast.module.css +197 -9
  50. package/dist/es/components/Toolbar/Toolbar.module.css +850 -21
  51. package/dist/es/styles/katex-fonts/KaTeX_AMS-Regular.woff2 +0 -0
  52. package/dist/es/styles/katex-fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  53. package/dist/es/styles/katex-fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  54. package/dist/es/styles/katex-fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  55. package/dist/es/styles/katex-fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  56. package/dist/es/styles/katex-fonts/KaTeX_Main-Bold.woff2 +0 -0
  57. package/dist/es/styles/katex-fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  58. package/dist/es/styles/katex-fonts/KaTeX_Main-Italic.woff2 +0 -0
  59. package/dist/es/styles/katex-fonts/KaTeX_Main-Regular.woff2 +0 -0
  60. package/dist/es/styles/katex-fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  61. package/dist/es/styles/katex-fonts/KaTeX_Math-Italic.woff2 +0 -0
  62. package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  63. package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  64. package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  65. package/dist/es/styles/katex-fonts/KaTeX_Script-Regular.woff2 +0 -0
  66. package/dist/es/styles/katex-fonts/KaTeX_Size1-Regular.woff2 +0 -0
  67. package/dist/es/styles/katex-fonts/KaTeX_Size2-Regular.woff2 +0 -0
  68. package/dist/es/styles/katex-fonts/KaTeX_Size3-Regular.woff2 +0 -0
  69. package/dist/es/styles/katex-fonts/KaTeX_Size4-Regular.woff2 +0 -0
  70. package/dist/es/styles/katex-fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  71. package/dist/es/styles/katex-fonts/LICENSE +21 -0
  72. package/dist/es/styles/katex.min.css +666 -730
  73. package/dist/es/styles/mobile-materials.css +145 -14
  74. package/dist/es/styles/mobile-surfaces.css +82 -32
  75. package/dist/es/styles/touch.css +940 -92
  76. package/dist/es/styles/variables-components.css +356 -17
  77. package/package.json +1 -1
  78. package/postcss/parseLightDark.mjs +20 -2
  79. package/postcss/phoneLayoutScope.mjs +134 -0
  80. package/postcss.config.mjs +3 -0
@@ -70,7 +70,12 @@
70
70
  --field-error-text-align: center;
71
71
  --field-error-content-justify: center;
72
72
  }
73
- }@media (prefers-reduced-motion: reduce) {
73
+ }
74
+ :where([data-plex-layout="phone"]) .ErrorMessage {
75
+ --mobile-field-error-icon-display: none;
76
+ --field-error-text-align: center;
77
+ --field-error-content-justify: center;
78
+ }@media (prefers-reduced-motion: reduce) {
74
79
  .Cell {
75
80
  transition: none;
76
81
  }
@@ -83,42 +83,42 @@
83
83
  }/* No line at rest: it comes when the content has scrolled under the header. An always-on scrollbar
84
84
  narrows the scroll area only, so the band keeps the same gutter, or a centred header would stand
85
85
  beside the content. */@media (min-width: 768px) {
86
- .Page {
86
+ .Page:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
87
87
  --page-gutter: var(--page-gutter-wide);
88
88
  --page-content-padding-top: var(--page-gutter-wide);
89
89
  }
90
90
 
91
- .Header {
91
+ .Header:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
92
92
  overflow: hidden;
93
93
  scrollbar-gutter: stable;
94
94
  container-type: inline-size;
95
95
  }
96
96
 
97
- .Content {
97
+ .Content:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
98
98
  scrollbar-gutter: stable;
99
99
  }
100
100
 
101
- .Content[data-fill] {
101
+ .Content[data-fill]:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
102
102
  padding-bottom: 0;
103
103
  }
104
104
 
105
- .Content[data-fill] > .Column {
105
+ .Content[data-fill] > .Column:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
106
106
  min-height: 0;
107
107
  }
108
108
 
109
- .Head {
109
+ .Head:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
110
110
  padding-bottom: var(--page-header-padding-bottom);
111
111
  border-bottom: 1px solid transparent;
112
112
  transition: border-color var(--transition-duration-basic);
113
113
  }
114
114
 
115
- .Header[data-scrolled][data-divider] > .Head {
115
+ .Header[data-scrolled][data-divider] > .Head:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
116
116
  border-color: var(--color-border);
117
117
  }
118
- }/* One row, the height of Apple's bar. It floats over the page: at rest nothing shows, and content
119
- scrolled under it turns it to glass with a hairline. The blur sits on `::before`: on the bar itself
120
- it would hold the bar's children inside its own backdrop. The first column keeps the place of a
121
- sidebar's menu button. */@media (max-width: 767.98px) {
118
+ }/* One row, the height of Apple's bar. It floats over the page and meets the content scrolled under it
119
+ by its `background`, as a phone Toolbar does: by default the soft scroll edge of iOS 26. The material
120
+ sits on `::before`: on the bar itself a blur would hold the bar's children inside its own backdrop.
121
+ The first column keeps the place of a sidebar's menu button. */@media (max-width: 767.98px) {
122
122
  .Page {
123
123
  --page-top: var(--page-toolbar-height, var(--page-header-height, calc(var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) + var(--page-bar-height-phone) + 10px)));
124
124
  --page-bottom: var(--page-toolbar-bottom-height, var(--page-footer-height, 0px));
@@ -162,27 +162,60 @@
162
162
  padding-block: var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) 10px;
163
163
  }
164
164
 
165
+ /* Soft: the canvas covers content under the bar and fades out past it, as the soft edge of a top
166
+ Toolbar does. */
165
167
  .Header::before {
166
168
  position: absolute;
167
169
  z-index: -1;
170
+ inset: 0 0 calc(-1 * var(--page-bar-soft-tail, 32px));
171
+ background: var(--page-background);
172
+ backdrop-filter: blur(var(--toolbar-edge-blur-small));
173
+ content: "";
174
+ -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--page-bar-soft-tail, 32px)), transparent);
175
+ mask-image: linear-gradient(to bottom, #000 calc(100% - var(--page-bar-soft-tail, 32px)), transparent);
176
+ pointer-events: none;
177
+ transition: opacity var(--transition-duration-basic), border-color var(--transition-duration-basic);
178
+ }
179
+
180
+ /* A bar of controls alone covers only the status bar and leaves the content clear under its controls, as a
181
+ top Toolbar without a title does (Notes, IMG_5734 and 5736). A Page inside a Sheet keeps the full edge. */
182
+ .Header[data-background="soft"]:not([data-mobile-variant="sheet"] *):not(:has(:is(.Heading, .Title)))::before {
183
+ inset: 0 0 auto;
184
+ height: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
185
+ -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
186
+ mask-image: linear-gradient(to bottom, #000, transparent);
187
+ }
188
+
189
+ /* Hard and solid are opaque, glass is translucent and shows itself once content is under the bar.
190
+ Hard and glass then draw a line, unless `divider` is off. */
191
+ .Header:not([data-background="soft"])::before {
168
192
  inset: 0;
193
+ backdrop-filter: none;
194
+ -webkit-mask-image: none;
195
+ mask-image: none;
196
+ }
197
+
198
+ .Header[data-background="hard"]::before {
199
+ border-bottom: 1px solid transparent;
200
+ }
201
+
202
+ .Header[data-background="glass"]::before {
169
203
  border-bottom: 0.5px solid transparent;
170
204
  background: var(--page-bar-veil);
171
- backdrop-filter: blur(20px) saturate(180%);
172
- content: "";
205
+ backdrop-filter: var(--page-bar-glass-filter);
173
206
  opacity: 0;
174
- pointer-events: none;
175
- transition: opacity var(--transition-duration-basic);
176
207
  }
177
208
 
178
- .Header[data-background="solid"]::before {
179
- background: var(--page-background);
180
- backdrop-filter: none;
209
+ .Header[data-scrolled][data-background="glass"]::before {
181
210
  opacity: 1;
182
211
  }
183
212
 
184
- .Header[data-scrolled]::before {
185
- opacity: 1;
213
+ .Header[data-scrolled][data-divider][data-background="hard"]::before {
214
+ border-bottom-color: var(--page-bar-hard-line);
215
+ }
216
+
217
+ .Header[data-scrolled][data-divider][data-background="glass"]::before {
218
+ border-bottom-color: var(--page-bar-line);
186
219
  }
187
220
 
188
221
  /* The bar's glass buttons cast a shadow only over content scrolled under them. */
@@ -190,10 +223,6 @@
190
223
  --mobile-glass-shadow: var(--mobile-glass-shadow-raised);
191
224
  }
192
225
 
193
- .Header[data-scrolled][data-divider]::before {
194
- border-bottom-color: var(--page-bar-line);
195
- }
196
-
197
226
  .Bar {
198
227
  display: grid;
199
228
  grid-template-columns: var(--page-bar-side-width, 44px) minmax(0, 1fr) var(--page-bar-side-width, 44px);
@@ -207,8 +236,8 @@
207
236
  grid-row: 1;
208
237
  align-self: center;
209
238
  min-width: 0;
210
- /* SF text ink sits 2px below the geometric center in Apple's 44px bar. */
211
- transform: translateY(2px);
239
+ /* Centered in the 44px bar: native iOS 26 bars put the title's cap middle on the buttons' center
240
+ (IMG_5508/5511/5512/5514/5515, within 1px). The kit's text frame sits 2px lower than that. */
212
241
  }
213
242
 
214
243
  .Heading {
@@ -258,11 +287,17 @@
258
287
  min-width: 0;
259
288
  }
260
289
 
290
+ /* A bar's text button is the Liquid Glass text button of the iOS 27 kit (Button - Liquid Glass - Text
291
+ 5473:21667): 17px Medium, the label of a Toolbar's items. */
261
292
  .Leading > :is(button, a),
262
293
  .Actions > :is(button, a) {
263
294
  --button-size: 44px;
264
- --button-font-size: 17px;
265
- --button-line-height: 22px;
295
+ /* A uniform bar button is the 44px glass circle of a bar, as a Toolbar's; elsewhere on a phone a uniform
296
+ button is the circle of its step (touch.css) */
297
+ --button-uniform-size: 44px;
298
+ --button-font-size: var(--toolbar-label-font-size);
299
+ --button-line-height: var(--toolbar-label-line-height);
300
+ --button-font-weight: var(--toolbar-label-font-weight);
266
301
  --button-radius: var(--radius-full);
267
302
  }
268
303
 
@@ -271,6 +306,12 @@
271
306
  --button-icon-size: 17px;
272
307
  }
273
308
 
309
+ /* An icon alone in the circle is a bar symbol, as in a Toolbar: Files' More (IMG_5686) and Freeform's
310
+ ellipsis (IMG_5684) draw it 19.7pt wide, not at the size of a label beside text (owner 08.11). */
311
+ :is(.Leading, .Actions) > :is(button, a)[data-uniform]:not([data-navigation-action]) {
312
+ --button-icon-size: var(--toolbar-icon-size);
313
+ }
314
+
274
315
  :is(.Leading, .Actions) > :where(button, a)[data-uniform]:where(:not([data-disabled], [data-mobile-material="flat"])):where([data-color="primary"], [data-color="secondary"]):where([data-variant="soft"], [data-variant="ghost"]) {
275
316
  --button-mobile-material-background: var(--mobile-glass-background);
276
317
  --button-mobile-material-sheen: var(--mobile-glass-sheen);
@@ -291,16 +332,56 @@
291
332
  padding-left: 8px;
292
333
  }
293
334
 
335
+ /* The footer meets the content scrolled under it by its `background`, as a bottom Toolbar does. Soft is no
336
+ band on a page: content runs under and around the actions as under native iOS 26 bottom bars (Mail
337
+ IMG_5534 and 5551, Phone IMG_5615; plan 172, owner 08.11), and the glass of each action sets it off. */
294
338
  .Footer {
295
339
  position: relative;
296
340
  z-index: 5;
297
- background: var(--page-bar-veil);
298
- backdrop-filter: blur(20px) saturate(180%);
341
+ background: none;
299
342
  }
300
343
 
301
- .Footer[data-background="solid"] {
344
+ .Footer::before {
345
+ position: absolute;
346
+ z-index: -1;
347
+ inset: calc(var(--page-footer-padding-top) - 27px) 0 0;
302
348
  background: var(--page-background);
349
+ backdrop-filter: blur(var(--toolbar-edge-blur-small));
350
+ content: "";
351
+ -webkit-mask-image: linear-gradient(to bottom, transparent, #000 27px);
352
+ mask-image: linear-gradient(to bottom, transparent, #000 27px);
353
+ pointer-events: none;
354
+ transition: opacity var(--transition-duration-basic), border-color var(--transition-duration-basic);
355
+ }
356
+
357
+ .Footer:not([data-background="soft"])::before {
358
+ inset: 0;
303
359
  backdrop-filter: none;
360
+ -webkit-mask-image: none;
361
+ mask-image: none;
362
+ }
363
+
364
+ .Footer[data-background="hard"]::before {
365
+ border-top: 1px solid transparent;
366
+ }
367
+
368
+ .Footer[data-background="glass"]::before {
369
+ border-top: 0.5px solid var(--page-bar-line);
370
+ background: var(--page-bar-veil);
371
+ backdrop-filter: var(--page-bar-glass-filter);
372
+ opacity: 0;
373
+ }
374
+
375
+ .Footer[data-content-below][data-background="hard"]::before {
376
+ border-top-color: var(--page-bar-hard-line);
377
+ }
378
+
379
+ .Footer[data-content-below][data-background="glass"]::before {
380
+ opacity: 1;
381
+ }
382
+
383
+ .Footer[data-background="soft"]:not([data-mobile-variant="sheet"] *)::before {
384
+ display: none;
304
385
  }
305
386
 
306
387
  .Content {
@@ -319,5 +400,284 @@
319
400
  padding-top: calc(var(--page-top) + var(--page-content-padding-top));
320
401
  scroll-padding-top: calc(var(--page-top) + var(--page-content-padding-top));
321
402
  }
403
+ }
404
+ :where([data-plex-layout="phone"]) .Page {
405
+ --page-top: var(--page-toolbar-height, var(--page-header-height, calc(var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) + var(--page-bar-height-phone) + 10px)));
406
+ --page-bottom: var(--page-toolbar-bottom-height, var(--page-footer-height, 0px));
407
+ --mobile-surface-primary: var(--mobile-surface-plain-primary, var(--color-surface));
408
+ --mobile-surface-secondary: var(--mobile-surface-plain-secondary, var(--color-background-secondary-soft-alpha));
409
+ --mobile-surface-tertiary: var(--mobile-surface-plain-tertiary, var(--color-surface));
410
+ --page-background: var(--mobile-surface-primary);
411
+ --page-footer-padding-top: 12px;
412
+ --page-footer-gutter: 16px;
413
+ --page-footer-padding-bottom: max(16px, var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
414
+ --field-group-background: var(--mobile-surface-secondary);
415
+ --file-upload-list-background: transparent;
416
+ --file-upload-list-border-width: 1px;
417
+ --mobile-neutral-outline-background: initial;
418
+ --mobile-neutral-outline-hover: initial;
419
+ --mobile-neutral-outline-active: initial;
420
+ --page-bar-veil: color-mix(in srgb, var(--page-background) var(--page-bar-veil-opacity), transparent);
421
+ }
422
+
423
+ :where([data-plex-layout="phone"]) .Page[data-surface="grouped"] {
424
+ --mobile-surface-primary: var(--mobile-surface-grouped-primary, var(--color-surface-secondary));
425
+ --mobile-surface-secondary: var(--mobile-surface-grouped-secondary, var(--color-surface));
426
+ --mobile-surface-tertiary: var(--mobile-surface-grouped-tertiary, var(--color-surface-secondary));
427
+ --file-upload-list-background: var(--mobile-surface-secondary);
428
+ --file-upload-list-border-width: 0px;
429
+ --mobile-neutral-outline-background: var(--mobile-surface-secondary);
430
+ --mobile-neutral-outline-hover: color-mix(in srgb, var(--mobile-surface-secondary) 96%, var(--color-text));
431
+ --mobile-neutral-outline-active: color-mix(in srgb, var(--mobile-surface-secondary) 94%, var(--color-text));
432
+ }
433
+
434
+ /* A phone Toolbar takes the place of the bar on its side. */
435
+ :where([data-plex-layout="phone"]) .Page:has(> [data-toolbar][data-placement="top"]) > .Header,
436
+ :where([data-plex-layout="phone"]) .Page:has(> [data-toolbar][data-placement="bottom"]) > .Footer {
437
+ display: none;
438
+ }
439
+
440
+ :where([data-plex-layout="phone"]) .Header {
441
+ position: absolute;
442
+ z-index: 5;
443
+ inset: 0 0 auto;
444
+ padding-block: var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) 10px;
445
+ }
446
+
447
+ /* Soft: the canvas covers content under the bar and fades out past it, as the soft edge of a top
448
+ Toolbar does. */
449
+ :where([data-plex-layout="phone"]) .Header::before {
450
+ position: absolute;
451
+ z-index: -1;
452
+ inset: 0 0 calc(-1 * var(--page-bar-soft-tail, 32px));
453
+ background: var(--page-background);
454
+ backdrop-filter: blur(var(--toolbar-edge-blur-small));
455
+ content: "";
456
+ -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--page-bar-soft-tail, 32px)), transparent);
457
+ mask-image: linear-gradient(to bottom, #000 calc(100% - var(--page-bar-soft-tail, 32px)), transparent);
458
+ pointer-events: none;
459
+ transition: opacity var(--transition-duration-basic), border-color var(--transition-duration-basic);
460
+ }
461
+
462
+ /* A bar of controls alone covers only the status bar and leaves the content clear under its controls, as a
463
+ top Toolbar without a title does (Notes, IMG_5734 and 5736). A Page inside a Sheet keeps the full edge. */
464
+ :where([data-plex-layout="phone"]) .Header[data-background="soft"]:not([data-mobile-variant="sheet"] *):not(:has(:is(.Heading, .Title)))::before {
465
+ inset: 0 0 auto;
466
+ height: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
467
+ -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
468
+ mask-image: linear-gradient(to bottom, #000, transparent);
469
+ }
470
+
471
+ /* Hard and solid are opaque, glass is translucent and shows itself once content is under the bar.
472
+ Hard and glass then draw a line, unless `divider` is off. */
473
+ :where([data-plex-layout="phone"]) .Header:not([data-background="soft"])::before {
474
+ inset: 0;
475
+ backdrop-filter: none;
476
+ -webkit-mask-image: none;
477
+ mask-image: none;
478
+ }
479
+
480
+ :where([data-plex-layout="phone"]) .Header[data-background="hard"]::before {
481
+ border-bottom: 1px solid transparent;
482
+ }
483
+
484
+ :where([data-plex-layout="phone"]) .Header[data-background="glass"]::before {
485
+ border-bottom: 0.5px solid transparent;
486
+ background: var(--page-bar-veil);
487
+ backdrop-filter: var(--page-bar-glass-filter);
488
+ opacity: 0;
489
+ }
490
+
491
+ :where([data-plex-layout="phone"]) .Header[data-scrolled][data-background="glass"]::before {
492
+ opacity: 1;
493
+ }
494
+
495
+ :where([data-plex-layout="phone"]) .Header[data-scrolled][data-divider][data-background="hard"]::before {
496
+ border-bottom-color: var(--page-bar-hard-line);
497
+ }
498
+
499
+ :where([data-plex-layout="phone"]) .Header[data-scrolled][data-divider][data-background="glass"]::before {
500
+ border-bottom-color: var(--page-bar-line);
501
+ }
502
+
503
+ /* The bar's glass buttons cast a shadow only over content scrolled under them. */
504
+ :where([data-plex-layout="phone"]) .Header[data-scrolled] {
505
+ --mobile-glass-shadow: var(--mobile-glass-shadow-raised);
506
+ }
507
+
508
+ :where([data-plex-layout="phone"]) .Bar {
509
+ display: grid;
510
+ grid-template-columns: var(--page-bar-side-width, 44px) minmax(0, 1fr) var(--page-bar-side-width, 44px);
511
+ gap: 0;
512
+ min-height: var(--page-bar-height-phone);
513
+ }
514
+
515
+ :where([data-plex-layout="phone"]) .Bar > .Heading,
516
+ :where([data-plex-layout="phone"]) .Bar > .Title {
517
+ grid-column: 2;
518
+ grid-row: 1;
519
+ align-self: center;
520
+ min-width: 0;
521
+ /* Centered in the 44px bar: native iOS 26 bars put the title's cap middle on the buttons' center
522
+ (IMG_5508/5511/5512/5514/5515, within 1px). The kit's text frame sits 2px lower than that. */
523
+ }
524
+
525
+ :where([data-plex-layout="phone"]) .Heading {
526
+ flex-direction: column;
527
+ gap: 0;
528
+ min-width: 0;
529
+ }
530
+
531
+ :where([data-plex-layout="phone"]) .Heading:has(> .Subtitle > *) {
532
+ gap: 2px;
533
+ }
534
+
535
+ :where([data-plex-layout="phone"]) .Title {
536
+ display: block;
537
+ min-height: 0;
538
+ overflow: hidden;
539
+ font-size: 17px;
540
+ font-weight: 590;
541
+ line-height: 22px;
542
+ text-align: center;
543
+ text-overflow: ellipsis;
544
+ white-space: nowrap;
545
+ }
546
+
547
+ :where([data-plex-layout="phone"]) .Subtitle {
548
+ flex-wrap: wrap;
549
+ justify-content: center;
550
+ row-gap: 4px;
551
+ max-width: 100%;
552
+ overflow: hidden;
553
+ font-size: 13px;
554
+ line-height: 18px;
555
+ text-overflow: ellipsis;
556
+ white-space: normal;
557
+ }
558
+
559
+ :where([data-plex-layout="phone"]) .Leading,
560
+ :where([data-plex-layout="phone"]) .Actions {
561
+ width: -moz-max-content;
562
+ width: max-content;
563
+ }
564
+
565
+ :where([data-plex-layout="phone"]) .Leading {
566
+ grid-column: 1;
567
+ grid-row: 1;
568
+ justify-self: start;
569
+ min-width: 0;
570
+ }
571
+
572
+ /* A bar's text button is the Liquid Glass text button of the iOS 27 kit (Button - Liquid Glass - Text
573
+ 5473:21667): 17px Medium, the label of a Toolbar's items. */
574
+ :where([data-plex-layout="phone"]) .Leading > :is(button, a), :where([data-plex-layout="phone"]) .Actions > :is(button, a) {
575
+ --button-size: 44px;
576
+ /* A uniform bar button is the 44px glass circle of a bar, as a Toolbar's; elsewhere on a phone a uniform
577
+ button is the circle of its step (touch.css) */
578
+ --button-uniform-size: 44px;
579
+ --button-font-size: var(--toolbar-label-font-size);
580
+ --button-line-height: var(--toolbar-label-line-height);
581
+ --button-font-weight: var(--toolbar-label-font-weight);
582
+ --button-radius: var(--radius-full);
583
+ }
584
+
585
+ :where([data-plex-layout="phone"]) .Leading > :is(button, a):not([data-navigation-action]), :where([data-plex-layout="phone"]) .Actions > :is(button, a):not([data-navigation-action]) {
586
+ --button-icon-size: 17px;
587
+ }
588
+
589
+ /* An icon alone in the circle is a bar symbol, as in a Toolbar: Files' More (IMG_5686) and Freeform's
590
+ ellipsis (IMG_5684) draw it 19.7pt wide, not at the size of a label beside text (owner 08.11). */
591
+ :where([data-plex-layout="phone"]) :is(.Leading, .Actions) > :is(button, a)[data-uniform]:not([data-navigation-action]) {
592
+ --button-icon-size: var(--toolbar-icon-size);
593
+ }
594
+
595
+ :where([data-plex-layout="phone"]) :is(.Leading, .Actions) > :where(button, a)[data-uniform]:where(:not([data-disabled], [data-mobile-material="flat"])):where([data-color="primary"], [data-color="secondary"]):where([data-variant="soft"], [data-variant="ghost"]) {
596
+ --button-mobile-material-background: var(--mobile-glass-background);
597
+ --button-mobile-material-sheen: var(--mobile-glass-sheen);
598
+ --button-mobile-material-shadow: var(--mobile-glass-shadow);
599
+ --button-mobile-material-backdrop-filter: var(--mobile-glass-backdrop-filter);
600
+ --button-mobile-material-opacity: 1;
601
+ --button-mobile-material-scale: 1;
602
+ --button-mobile-material-hover: var(--mobile-glass-background-hover);
603
+ --button-mobile-material-active: var(--mobile-glass-background-active);
604
+ }
605
+
606
+ :where([data-plex-layout="phone"]) .Actions {
607
+ grid-column: 3;
608
+ grid-row: 1;
609
+ justify-content: flex-end;
610
+ justify-self: end;
611
+ min-width: 0;
612
+ padding-left: 8px;
613
+ }
614
+
615
+ /* The footer meets the content scrolled under it by its `background`, as a bottom Toolbar does. Soft is no
616
+ band on a page: content runs under and around the actions as under native iOS 26 bottom bars (Mail
617
+ IMG_5534 and 5551, Phone IMG_5615; plan 172, owner 08.11), and the glass of each action sets it off. */
618
+ :where([data-plex-layout="phone"]) .Footer {
619
+ position: relative;
620
+ z-index: 5;
621
+ background: none;
622
+ }
623
+
624
+ :where([data-plex-layout="phone"]) .Footer::before {
625
+ position: absolute;
626
+ z-index: -1;
627
+ inset: calc(var(--page-footer-padding-top) - 27px) 0 0;
628
+ background: var(--page-background);
629
+ backdrop-filter: blur(var(--toolbar-edge-blur-small));
630
+ content: "";
631
+ -webkit-mask-image: linear-gradient(to bottom, transparent, #000 27px);
632
+ mask-image: linear-gradient(to bottom, transparent, #000 27px);
633
+ pointer-events: none;
634
+ transition: opacity var(--transition-duration-basic), border-color var(--transition-duration-basic);
635
+ }
636
+
637
+ :where([data-plex-layout="phone"]) .Footer:not([data-background="soft"])::before {
638
+ inset: 0;
639
+ backdrop-filter: none;
640
+ -webkit-mask-image: none;
641
+ mask-image: none;
642
+ }
643
+
644
+ :where([data-plex-layout="phone"]) .Footer[data-background="hard"]::before {
645
+ border-top: 1px solid transparent;
646
+ }
647
+
648
+ :where([data-plex-layout="phone"]) .Footer[data-background="glass"]::before {
649
+ border-top: 0.5px solid var(--page-bar-line);
650
+ background: var(--page-bar-veil);
651
+ backdrop-filter: var(--page-bar-glass-filter);
652
+ opacity: 0;
653
+ }
654
+
655
+ :where([data-plex-layout="phone"]) .Footer[data-content-below][data-background="hard"]::before {
656
+ border-top-color: var(--page-bar-hard-line);
657
+ }
658
+
659
+ :where([data-plex-layout="phone"]) .Footer[data-content-below][data-background="glass"]::before {
660
+ opacity: 1;
661
+ }
662
+
663
+ :where([data-plex-layout="phone"]) .Footer[data-background="soft"]:not([data-mobile-variant="sheet"] *)::before {
664
+ display: none;
665
+ }
666
+
667
+ :where([data-plex-layout="phone"]) .Content {
668
+ scrollbar-width: none;
669
+ }
670
+
671
+ :where([data-plex-layout="phone"]) .Content::-webkit-scrollbar {
672
+ display: none;
673
+ }
674
+
675
+ :where([data-plex-layout="phone"]) .Content {
676
+
677
+ margin-bottom: calc(-1 * var(--page-bottom));
678
+ padding-bottom: calc(var(--page-content-padding-bottom) + var(--page-bottom));
679
+ scroll-padding-bottom: calc(var(--page-content-padding-bottom) + var(--page-bottom));
680
+ padding-top: calc(var(--page-top) + var(--page-content-padding-top));
681
+ scroll-padding-top: calc(var(--page-top) + var(--page-content-padding-top));
322
682
  }
323
683
  }
@@ -0,0 +1,81 @@
1
+ @layer components {/* One dot for each page, after the iOS 26 kit Page control (507:24679): 8px dots 8px apart in a 24px capsule
2
+ with 12px ends, the current dot in the primary label and the others at 30%. Past the window of full dots two
3
+ dots shrink to 6px (in an 8px slot) and 4px (in a 6px slot). The capsule fills only while a pointer presses or
4
+ scrubs (`automatic`), always (`prominent`) or never (`minimal`), as UIPageControl background styles do. */.PageControl {
5
+ position: relative;
6
+ display: inline-flex;
7
+ flex-shrink: 0;
8
+ align-items: center;
9
+ justify-content: center;
10
+ gap: var(--page-control-gap);
11
+ height: var(--page-control-height);
12
+ padding-inline: var(--page-control-padding-inline);
13
+ border-radius: calc(var(--page-control-height) / 2);
14
+ background: transparent;
15
+ vertical-align: middle;
16
+ cursor: pointer;
17
+ -moz-user-select: none;
18
+ user-select: none;
19
+ -webkit-user-select: none;
20
+ -webkit-touch-callout: none;
21
+ /* A horizontal drag scrubs; the page still scrolls vertically. */
22
+ touch-action: pan-y;
23
+ -webkit-tap-highlight-color: transparent;
24
+ transition: background-color var(--page-control-transition-duration, 200ms) ease;
25
+ }
26
+
27
+ .PageControl[data-background="prominent"],
28
+ .PageControl[data-background="automatic"][data-interacting] {
29
+ background: var(--page-control-background);
30
+ }
31
+
32
+ .PageControl:focus {
33
+ outline: none;
34
+ }
35
+
36
+ .PageControl:focus-visible {
37
+ outline: 2px solid var(--color-ring);
38
+ outline-offset: 2px;
39
+ }
40
+
41
+ /* The target reaches 44px where the capsule is shorter. */
42
+ .PageControl::after {
43
+ position: absolute;
44
+ inset: min(0px, calc((var(--page-control-height) - var(--page-control-target-size, 0px)) / 2)) 0;
45
+ content: "";
46
+ }.Dot {
47
+ flex-shrink: 0;
48
+ width: var(--page-control-dot-size);
49
+ height: var(--page-control-dot-size);
50
+ border-radius: 50%;
51
+ background: var(--page-control-dot-color);
52
+ transition-property: background-color, width, height, margin;
53
+ transition-duration: var(--page-control-transition-duration, 200ms);
54
+ transition-timing-function: ease;
55
+ }
56
+
57
+ .Dot[data-current] {
58
+ background: var(--page-control-dot-color-current);
59
+ }
60
+
61
+ .Dot[data-size="small"] {
62
+ width: var(--page-control-dot-size-small);
63
+ height: var(--page-control-dot-size-small);
64
+ margin-inline: calc((var(--page-control-dot-size) - var(--page-control-dot-size-small)) / 2);
65
+ }
66
+
67
+ .Dot[data-size="smaller"] {
68
+ width: var(--page-control-dot-size-smaller);
69
+ height: var(--page-control-dot-size-smaller);
70
+ margin-inline: calc((var(--page-control-dot-size-small) - var(--page-control-dot-size-smaller)) / 2);
71
+ }
72
+
73
+ .Dot[data-size="hidden"] {
74
+ display: none;
75
+ }@media (prefers-reduced-motion: reduce) {
76
+ .PageControl,
77
+ .Dot {
78
+ transition-duration: 0ms;
79
+ }
80
+ }
81
+ }
@@ -0,0 +1,10 @@
1
+ @layer components {/* What a PhoneLayout holds is laid out as on a phone at any window width: the style sheets apply their phone rules
2
+ inside `[data-plex-layout="phone"]` (postcss/phoneLayoutScope.mjs). The box is the screen of that phone: dialogs
3
+ portal into it, and with layout containment it is the containing block of their fixed layers, so they cover the
4
+ box and not the window. Overflow is clipped as a screen clips it; the owner's class can change it. */.PhoneLayout {
5
+ position: relative;
6
+ contain: layout;
7
+ }:where(.PhoneLayout) {
8
+ overflow: clip;
9
+ }
10
+ }
@@ -60,7 +60,23 @@
60
60
  transition-duration: var(--motion-exit);
61
61
  transition-property: opacity, transform;
62
62
  transition-timing-function: var(--cubic-exit-snappy);
63
- }@keyframes shake {
63
+ }/* iPhone: the panel takes the phone popover material, the menus' elevated surface in light and their glass
64
+ in dark, and the phone radius. A translucent panel and the DatePicker calendar keep their own surface. */@media (max-width: 767px) {
65
+ .Popover {
66
+ background: var(--popover-mobile-background, var(--color-surface-elevated));
67
+ }
68
+
69
+ :where([data-theme="dark"]) .Popover {
70
+ backdrop-filter: var(--popover-mobile-backdrop-filter, none);
71
+ }
72
+ }
73
+ :where([data-plex-layout="phone"]) .Popover {
74
+ background: var(--popover-mobile-background, var(--color-surface-elevated));
75
+ }
76
+
77
+ :where([data-plex-layout="phone"]) :where([data-theme="dark"]) .Popover {
78
+ backdrop-filter: var(--popover-mobile-backdrop-filter, none);
79
+ }@keyframes shake {
64
80
  0% {
65
81
  transform: translateX(0);
66
82
  }