@plexui/styles 0.1.34 → 0.1.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/es/components/Accordion/Accordion.module.css +12 -1
  2. package/dist/es/components/Alert/Alert.module.css +101 -0
  3. package/dist/es/components/Badge/Badge.module.css +37 -0
  4. package/dist/es/components/Breadcrumb/Breadcrumb.module.css +29 -0
  5. package/dist/es/components/Button/Button.module.css +53 -0
  6. package/dist/es/components/Button/NavigationButton.module.css +17 -0
  7. package/dist/es/components/ButtonGroup/ButtonGroup.module.css +227 -20
  8. package/dist/es/components/Card/Card.module.css +9 -0
  9. package/dist/es/components/CodeBlock/CodeBlock.module.css +14 -1
  10. package/dist/es/components/ColorPicker/ColorPicker.module.css +19 -1
  11. package/dist/es/components/DatePicker/Calendar.module.css +262 -2
  12. package/dist/es/components/DatePicker/CalendarNavigationIcon.module.css +10 -0
  13. package/dist/es/components/DateRangePicker/Calendar.module.css +207 -3
  14. package/dist/es/components/DateRangePicker/Trigger.module.css +17 -2
  15. package/dist/es/components/Dialog/Dialog.module.css +660 -13
  16. package/dist/es/components/EmptyMessage/EmptyMessage.module.css +21 -0
  17. package/dist/es/components/Field/Field.module.css +387 -2
  18. package/dist/es/components/FieldGroup/FieldGroup.module.css +129 -3
  19. package/dist/es/components/FileUpload/FileUpload.module.css +74 -1
  20. package/dist/es/components/FloatingLabelInput/FloatingLabelInput.module.css +19 -1
  21. package/dist/es/components/FloatingLabelSelect/FloatingLabelSelect.module.css +12 -1
  22. package/dist/es/components/IndexBar/IndexBar.module.css +146 -0
  23. package/dist/es/components/Input/Input.module.css +129 -1
  24. package/dist/es/components/MarkdownEditor/MarkdownEditor.module.css +18 -0
  25. package/dist/es/components/Menu/Menu.module.css +324 -7
  26. package/dist/es/components/OTPInput/OTPInput.module.css +6 -1
  27. package/dist/es/components/Page/Page.module.css +302 -10
  28. package/dist/es/components/PhoneLayout/PhoneLayout.module.css +10 -0
  29. package/dist/es/components/Popover/Popover.module.css +7 -0
  30. package/dist/es/components/Select/Select.module.css +148 -0
  31. package/dist/es/components/SelectControl/SelectControl.module.css +113 -1
  32. package/dist/es/components/Sidebar/Sidebar.module.css +354 -20
  33. package/dist/es/components/Slider/Slider.module.css +80 -0
  34. package/dist/es/components/SwipeActions/SwipeActions.module.css +166 -0
  35. package/dist/es/components/Switch/Switch.module.css +59 -4
  36. package/dist/es/components/TabBar/TabBar.module.css +255 -10
  37. package/dist/es/components/Tabs/Tabs.module.css +166 -1
  38. package/dist/es/components/TagInput/TagInput.module.css +50 -9
  39. package/dist/es/components/Textarea/Textarea.module.css +6 -0
  40. package/dist/es/components/Tip/Tip.module.css +456 -0
  41. package/dist/es/components/Toast/Toast.module.css +148 -5
  42. package/dist/es/components/Toolbar/Toolbar.module.css +642 -3
  43. package/dist/es/styles/mobile-materials.css +103 -8
  44. package/dist/es/styles/mobile-surfaces.css +43 -0
  45. package/dist/es/styles/touch.css +619 -9
  46. package/dist/es/styles/variables-components.css +125 -5
  47. package/package.json +1 -1
  48. package/postcss/parseLightDark.mjs +20 -2
  49. package/postcss/phoneLayoutScope.mjs +139 -0
  50. package/postcss.config.mjs +3 -0
@@ -106,7 +106,18 @@
106
106
  .Trigger[data-state="open"] .Chevron {
107
107
  transform: rotate(var(--accordion-chevron-open-angle, 180deg));
108
108
  }
109
- }@media (prefers-reduced-motion: reduce) {
109
+ }
110
+ :where([data-plex-layout="phone"]) .Chevron {
111
+ transform: rotate(var(--accordion-chevron-closed-angle, 0deg));
112
+ }
113
+
114
+ :where([data-plex-layout="phone"]) .Chevron:dir(rtl) {
115
+ transform: rotate(calc(var(--accordion-chevron-closed-angle, 0deg) * -1));
116
+ }
117
+
118
+ :where([data-plex-layout="phone"]) .Trigger[data-state="open"] .Chevron {
119
+ transform: rotate(var(--accordion-chevron-open-angle, 180deg));
120
+ }@media (prefers-reduced-motion: reduce) {
110
121
  .Trigger,
111
122
  .Chevron {
112
123
  transition: none;
@@ -318,4 +318,105 @@
318
318
  inset: 7px;
319
319
  }
320
320
  }
321
+ :where([data-plex-layout="phone"]) .Alert {
322
+ position: relative;
323
+ flex-wrap: wrap;
324
+ align-items: flex-start;
325
+ -moz-column-gap: 12px;
326
+ column-gap: 12px;
327
+ row-gap: 22px;
328
+ padding: 22px 16px;
329
+ border-radius: 26px;
330
+ --alert-indicator-size: 28px;
331
+ }
332
+
333
+ :where([data-plex-layout="phone"]) .Alert:has(> .Content > .Actions > :not(.DismissButton)) {
334
+ padding-bottom: 16px;
335
+ }
336
+
337
+ :where([data-plex-layout="phone"]) .Alert[data-banner] {
338
+ border-radius: 0;
339
+ }
340
+
341
+ /* The actions take a line of their own under the icon and the message */
342
+ :where([data-plex-layout="phone"]) .Content {
343
+ display: contents;
344
+ }
345
+
346
+ :where([data-plex-layout="phone"]) .Indicator {
347
+ padding-inline-start: 6px;
348
+ }
349
+
350
+ :where([data-plex-layout="phone"]) .Indicator::before {
351
+ content: none;
352
+ }
353
+
354
+ :where([data-plex-layout="phone"]) .Message {
355
+ padding-inline-start: 6px;
356
+ }
357
+
358
+ :where([data-plex-layout="phone"]) .Indicator + .Content > .Message {
359
+ padding-inline-start: 0;
360
+ }
361
+
362
+ :where([data-plex-layout="phone"]) .Alert:has(> .CloseButton) .Message {
363
+ padding-inline-end: 34px;
364
+ }
365
+
366
+ :where([data-plex-layout="phone"]) .Title {
367
+ font-size: 17px;
368
+ line-height: 22px;
369
+ }
370
+
371
+ :where([data-plex-layout="phone"]) .Title ~ .Description {
372
+ margin-top: 4px;
373
+ }
374
+
375
+ :where([data-plex-layout="phone"]) .Actions {
376
+ flex: 1 0 100%;
377
+ flex-flow: row wrap;
378
+ gap: 10px 12px;
379
+ align-self: stretch;
380
+ margin: 0;
381
+ }
382
+
383
+ :where([data-plex-layout="phone"]) .Actions:not(:has(> :not(.DismissButton))) {
384
+ display: none;
385
+ }
386
+
387
+ :where([data-plex-layout="phone"]) .Alert .Actions > :where(button, a, [role="link"]) {
388
+ --button-size: var(--button-size-xl, 50px);
389
+ --button-font-size: var(--button-font-size-xl, 17px);
390
+ --button-font-weight: var(--font-weight-semibold);
391
+ --button-gutter: var(--button-gutter-xl, 20px);
392
+ --button-radius: var(--radius-full);
393
+ flex: 1 0 auto;
394
+ min-width: calc(50% - 6px);
395
+ max-width: 100%;
396
+ min-height: var(--button-size-xl, 50px);
397
+ height: auto;
398
+ padding-block: 14px;
399
+ line-height: var(--button-line-height-xl, 22px);
400
+ white-space: normal;
401
+ overflow-wrap: anywhere;
402
+ }
403
+
404
+ :where([data-plex-layout="phone"]) .Alert .Actions > .DismissButton {
405
+ display: none;
406
+ }
407
+
408
+ /* A 44px target with its 30px circle (the background and the focus ring) 19 from the edges */
409
+ :where([data-plex-layout="phone"]) .Alert > .CloseButton {
410
+ --button-uniform-size: 44px;
411
+ --button-icon-size: 16px;
412
+ position: absolute;
413
+ top: 12px;
414
+ inset-inline-end: 12px;
415
+ display: inline-flex;
416
+ }
417
+
418
+ :where([data-plex-layout="phone"]) .Alert > .CloseButton::before,
419
+ :where([data-plex-layout="phone"]) .Alert > .CloseButton::after {
420
+ inset: 7px;
421
+ }
321
422
  }
@@ -287,4 +287,41 @@
287
287
  display: none;
288
288
  }
289
289
  }
290
+ :where([data-plex-layout="phone"]) .Badge:has(> button.Remove) {
291
+ position: relative;
292
+ isolation: isolate;
293
+ height: 44px;
294
+ padding-inline-end: 0;
295
+ background-color: transparent;
296
+ box-shadow: none;
297
+ }
298
+
299
+ /* The face stays compact; its complete remove target belongs to this row. */
300
+ :where([data-plex-layout="phone"]) .Badge:has(> button.Remove)::before {
301
+ content: "";
302
+ position: absolute;
303
+ z-index: -1;
304
+ inset: 6px 0;
305
+ border-radius: inherit;
306
+ pointer-events: none;
307
+ }
308
+
309
+ :where([data-plex-layout="phone"]) .Badge:has(> button.Remove)[data-variant="soft"]::before,
310
+ :where([data-plex-layout="phone"]) .Badge:has(> button.Remove)[data-variant="solid"]::before {
311
+ background-color: var(--badge-background-color);
312
+ }
313
+
314
+ :where([data-plex-layout="phone"]) .Badge:has(> button.Remove)[data-variant="outline"]::before {
315
+ box-shadow: 0 0 0 1px var(--badge-border-color) inset;
316
+ }
317
+
318
+ :where([data-plex-layout="phone"]) .Badge:has(> button.Remove) > button.Remove {
319
+ width: 44px;
320
+ height: 44px;
321
+ margin-inline: 0;
322
+ }
323
+
324
+ :where([data-plex-layout="phone"]) .Badge:has(> button.Remove) > button.Remove::after {
325
+ display: none;
326
+ }
290
327
  }
@@ -90,4 +90,33 @@
90
90
  content: "";
91
91
  }
92
92
  }
93
+ :where([data-plex-layout="phone"]) .Breadcrumb,
94
+ :where([data-plex-layout="phone"]) .Breadcrumb[data-size="sm"] {
95
+ --breadcrumb-font-size: 15px;
96
+ --breadcrumb-line-height: 20px;
97
+ --breadcrumb-gap: 6px;
98
+ }
99
+
100
+ :where([data-plex-layout="phone"]) .List {
101
+ row-gap: 0;
102
+ }
103
+
104
+ /* Every line of a wrapping trail is a 44px line, also one without a link */
105
+ :where([data-plex-layout="phone"]) .Item {
106
+ min-height: 44px;
107
+ }
108
+
109
+ :where([data-plex-layout="phone"]) .Item > .Link {
110
+ position: relative;
111
+ display: inline-flex;
112
+ align-items: center;
113
+ min-height: 44px;
114
+ }
115
+
116
+ :where([data-plex-layout="phone"]) .Item > .Link::after {
117
+ position: absolute;
118
+ inset-block: 0;
119
+ inset-inline: min(0px, (100% - 44px) / 2);
120
+ content: "";
121
+ }
93
122
  }
@@ -950,6 +950,14 @@
950
950
  line-height: var(--button-glass-line-height, var(--button-line-height, 1));
951
951
  }
952
952
 
953
+ /* A disabled button labels in the tertiary label, as the iOS 27 kit's content-area button (Button - Content Area
954
+ 40:58696, Is Enabled=False: 60,60,67 at 30%, 196 on white, in every style, destructive too), where the desktop
955
+ gray-400 read 143. Its fill stays the disabled fill (the kit's 118,118,128 at 12% is 239 on white, alpha-05
956
+ 242) and a borderless one has none. Toolbar actions keep the colors of their bar (Toolbar.module.css). */
957
+ .Button[data-disabled][data-variant] {
958
+ --button-text-color: var(--mobile-label-tertiary, var(--color-text-disabled));
959
+ }
960
+
953
961
  .Button:is([data-mobile-material="flat"], [data-disabled]) {
954
962
  --button-mobile-material-background: initial;
955
963
  --button-mobile-material-hover: initial;
@@ -961,4 +969,49 @@
961
969
  --button-mobile-material-scale: initial;
962
970
  }
963
971
  }
972
+ :where([data-plex-layout="phone"]) .Button[data-variant="outline"]:where([data-color="primary"], [data-color="secondary"]) {
973
+ --button-outline-context-background: var(--mobile-neutral-outline-background, var(--button-outline-background));
974
+ }
975
+
976
+ :where([data-plex-layout="phone"]) .Button[data-mobile-material="glass"]:where(:not([data-disabled])):where([data-color="primary"], [data-color="secondary"]):where([data-variant="soft"], [data-variant="ghost"]) {
977
+ --button-mobile-material-background: var(--mobile-glass-background);
978
+ --button-mobile-material-hover: var(--mobile-glass-background-hover);
979
+ --button-mobile-material-active: var(--mobile-glass-background-active);
980
+ --button-mobile-material-sheen: var(--mobile-glass-sheen);
981
+ --button-mobile-material-shadow: var(--mobile-glass-shadow);
982
+ --button-mobile-material-backdrop-filter: var(--mobile-glass-backdrop-filter);
983
+ --button-mobile-material-opacity: 1;
984
+ --button-mobile-material-scale: 1;
985
+ }
986
+
987
+ /* A glass text button is the Liquid Glass text button of the iOS 27 kit (Button - Liquid Glass - Text 5473:21667):
988
+ its label is Medium, and 17px from the medium (34px) size up, where a content-area button keeps Regular 15px
989
+ at 28 and 34 (Button - Content Area 40:58696). With touch.css, as the glass itself; disabled ones keep it. */
990
+ :where([data-plex-layout="phone"]) .Button[data-mobile-material="glass"]:where([data-color="primary"], [data-color="secondary"]):where([data-variant="soft"], [data-variant="ghost"]) {
991
+ font-weight: var(--button-glass-font-weight, var(--button-font-weight));
992
+ }
993
+
994
+ :where([data-plex-layout="phone"]) .Button[data-mobile-material="glass"]:where([data-color="primary"], [data-color="secondary"]):where([data-variant="soft"], [data-variant="ghost"]):where([data-size="md"], [data-size="lg"]) {
995
+ font-size: var(--button-glass-font-size, var(--button-font-size));
996
+ line-height: var(--button-glass-line-height, var(--button-line-height, 1));
997
+ }
998
+
999
+ /* A disabled button labels in the tertiary label, as the iOS 27 kit's content-area button (Button - Content Area
1000
+ 40:58696, Is Enabled=False: 60,60,67 at 30%, 196 on white, in every style, destructive too), where the desktop
1001
+ gray-400 read 143. Its fill stays the disabled fill (the kit's 118,118,128 at 12% is 239 on white, alpha-05
1002
+ 242) and a borderless one has none. Toolbar actions keep the colors of their bar (Toolbar.module.css). */
1003
+ :where([data-plex-layout="phone"]) .Button[data-disabled][data-variant] {
1004
+ --button-text-color: var(--mobile-label-tertiary, var(--color-text-disabled));
1005
+ }
1006
+
1007
+ :where([data-plex-layout="phone"]) .Button:is([data-mobile-material="flat"], [data-disabled]) {
1008
+ --button-mobile-material-background: initial;
1009
+ --button-mobile-material-hover: initial;
1010
+ --button-mobile-material-active: initial;
1011
+ --button-mobile-material-sheen: initial;
1012
+ --button-mobile-material-shadow: initial;
1013
+ --button-mobile-material-backdrop-filter: initial;
1014
+ --button-mobile-material-opacity: initial;
1015
+ --button-mobile-material-scale: initial;
1016
+ }
964
1017
  }
@@ -24,4 +24,21 @@
24
24
  --navigation-button-icon-size: var(--navigation-button-confirm-icon-size);
25
25
  }
26
26
  }
27
+ :where([data-plex-layout="phone"]) .NavigationButton[data-navigation-action] {
28
+ --button-size: var(--navigation-button-size);
29
+ --button-uniform-size: var(--navigation-button-size);
30
+ }
31
+
32
+ /* SVG boxes normalize visible ink, rather than sizing unrelated icons. */
33
+ :where([data-plex-layout="phone"]) .NavigationButton[data-navigation-action="back"] {
34
+ --navigation-button-icon-size: var(--navigation-button-back-icon-size);
35
+ }
36
+
37
+ :where([data-plex-layout="phone"]) .NavigationButton[data-navigation-action="close"] {
38
+ --navigation-button-icon-size: var(--navigation-button-close-icon-size);
39
+ }
40
+
41
+ :where([data-plex-layout="phone"]) .NavigationButton[data-navigation-action="confirm"] {
42
+ --navigation-button-icon-size: var(--navigation-button-confirm-icon-size);
43
+ }
27
44
  }
@@ -18,6 +18,11 @@
18
18
  .Root > *:focus-within {
19
19
  z-index: 1;
20
20
  }
21
+ .Root {
22
+ --button-group-joined-radius: initial;
23
+ --button-group-joined-overlap: initial;
24
+ --button-group-joined-clip: initial;
25
+ }
21
26
 
22
27
  /* Gap only appears between nested groups — joined buttons stay touching */
23
28
  .Root:has(> [data-slot="button-group"]) {
@@ -37,36 +42,39 @@
37
42
  not be overlapped into oblivion. Adjacent items to a separator keep
38
43
  their edge radii stripped, but skip the -1px/-clip trickery. */
39
44
  .Root[data-orientation="horizontal"] > *:not(:first-child):not([data-slot="button-group-separator"]) {
40
- border-start-start-radius: 0;
41
- border-end-start-radius: 0;
45
+ border-start-start-radius: var(--button-group-joined-radius, 0);
46
+ border-end-start-radius: var(--button-group-joined-radius, 0);
42
47
  }
48
+
49
+ /* The joined edges below read these, unset here so a group never takes them from a glass group around it
50
+ (see the phone rules at the end). */
43
51
  .Root[data-orientation="horizontal"]
44
52
  > *:not(:first-child):not([data-slot="button-group-separator"]):not(
45
53
  [data-slot="button-group-separator"] + *
46
54
  ) {
47
- margin-inline-start: -1px;
55
+ margin-inline-start: var(--button-group-joined-overlap, -1px);
48
56
  }
49
57
  .Root[data-orientation="horizontal"]
50
58
  > *:not(:first-child):not([data-slot="button-group-separator"]):not(
51
59
  [data-slot="button-group-separator"] + *
52
60
  )::before {
53
- clip-path: inset(0 0 0 1px);
61
+ clip-path: var(--button-group-joined-clip, inset(0 0 0 1px));
54
62
  }
55
63
  .Root[data-orientation="horizontal"]
56
64
  > *:not(:last-child):not([data-slot="button-group-separator"]):not(
57
65
  :has(+ [data-slot="button-group-separator"])
58
66
  ) {
59
- border-start-end-radius: 0;
60
- border-end-end-radius: 0;
67
+ border-start-end-radius: var(--button-group-joined-radius, 0);
68
+ border-end-end-radius: var(--button-group-joined-radius, 0);
61
69
  }
62
70
  /* Strip the edge radius on items sitting directly next to a separator */
63
71
  .Root[data-orientation="horizontal"] > [data-slot="button-group-separator"] + * {
64
- border-start-start-radius: 0;
65
- border-end-start-radius: 0;
72
+ border-start-start-radius: var(--button-group-joined-radius, 0);
73
+ border-end-start-radius: var(--button-group-joined-radius, 0);
66
74
  }
67
75
  .Root[data-orientation="horizontal"] > *:has(+ [data-slot="button-group-separator"]) {
68
- border-start-end-radius: 0;
69
- border-end-end-radius: 0;
76
+ border-start-end-radius: var(--button-group-joined-radius, 0);
77
+ border-end-end-radius: var(--button-group-joined-radius, 0);
70
78
  }
71
79
 
72
80
  /* Vertical — same approach, clip the top 1px of ::before on non-first */
@@ -74,35 +82,35 @@
74
82
  flex-direction: column;
75
83
  }
76
84
  .Root[data-orientation="vertical"] > *:not(:first-child):not([data-slot="button-group-separator"]) {
77
- border-start-start-radius: 0;
78
- border-start-end-radius: 0;
85
+ border-start-start-radius: var(--button-group-joined-radius, 0);
86
+ border-start-end-radius: var(--button-group-joined-radius, 0);
79
87
  }
80
88
  .Root[data-orientation="vertical"]
81
89
  > *:not(:first-child):not([data-slot="button-group-separator"]):not(
82
90
  [data-slot="button-group-separator"] + *
83
91
  ) {
84
- margin-block-start: -1px;
92
+ margin-block-start: var(--button-group-joined-overlap, -1px);
85
93
  }
86
94
  .Root[data-orientation="vertical"]
87
95
  > *:not(:first-child):not([data-slot="button-group-separator"]):not(
88
96
  [data-slot="button-group-separator"] + *
89
97
  )::before {
90
- clip-path: inset(1px 0 0 0);
98
+ clip-path: var(--button-group-joined-clip, inset(1px 0 0 0));
91
99
  }
92
100
  .Root[data-orientation="vertical"]
93
101
  > *:not(:last-child):not([data-slot="button-group-separator"]):not(
94
102
  :has(+ [data-slot="button-group-separator"])
95
103
  ) {
96
- border-end-start-radius: 0;
97
- border-end-end-radius: 0;
104
+ border-end-start-radius: var(--button-group-joined-radius, 0);
105
+ border-end-end-radius: var(--button-group-joined-radius, 0);
98
106
  }
99
107
  .Root[data-orientation="vertical"] > [data-slot="button-group-separator"] + * {
100
- border-start-start-radius: 0;
101
- border-start-end-radius: 0;
108
+ border-start-start-radius: var(--button-group-joined-radius, 0);
109
+ border-start-end-radius: var(--button-group-joined-radius, 0);
102
110
  }
103
111
  .Root[data-orientation="vertical"] > *:has(+ [data-slot="button-group-separator"]) {
104
- border-end-start-radius: 0;
105
- border-end-end-radius: 0;
112
+ border-end-start-radius: var(--button-group-joined-radius, 0);
113
+ border-end-end-radius: var(--button-group-joined-radius, 0);
106
114
  }
107
115
  .Root > input,
108
116
  .Root > [data-slot="input"],
@@ -154,5 +162,204 @@
154
162
 
155
163
  .Root > .Separator[data-orientation="vertical"] {
156
164
  height: auto;
165
+ }/* A glass group on a phone: the Button Group of the iOS 27 kit (Toolbars 507:25993, _Buttons - 44pt and 48pt,
166
+ Type=Button Group), as the top and bottom bars of Notes hold their symbols (IMG_5734, 5736: Back alone, then
167
+ one capsule of three symbols). A group in a Toolbar is one by itself, the same capsule as Toolbar.Group;
168
+ elsewhere `mobileMaterial="glass"` asks for it, for controls that float over the content, as the column of map
169
+ controls. Liquid Glass belongs to the controls over the content, so a group in the content keeps its joined
170
+ look, and `mobileMaterial="flat"` keeps it in a Toolbar. A group of a field and buttons stays joined anywhere.
171
+ Without touch.css the glass tokens are unset and the capsule has no fill. */@media (max-width: 767.98px) {
172
+ /* Every group in a glass context, the row of capsules around nested groups included: no joined edges. */
173
+ .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]), > [data-slot="button-group"] > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) {
174
+ --button-group-joined-radius: var(--radius-full);
175
+ --button-group-joined-overlap: 0px;
176
+ --button-group-joined-clip: none;
177
+ --button-group-nested-gap: var(--button-group-glass-nested-gap);
178
+ }
179
+
180
+ /* In a bar a group takes the bar's sizes: 44 on top, 48 at the bottom (Toolbar.module.css). */
181
+ [data-toolbar] .Root {
182
+ --button-group-glass-item-size: var(--toolbar-item-size);
183
+ --button-group-glass-gap: var(--toolbar-group-gap);
184
+ --button-group-glass-padding: var(--toolbar-group-padding);
185
+ --button-group-glass-nested-gap: var(--toolbar-item-gap);
186
+ }
187
+
188
+ /* The capsule: a group of buttons alone. */
189
+ .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) {
190
+ gap: var(--button-group-glass-gap);
191
+ padding: 0 var(--button-group-glass-padding);
192
+ border-radius: var(--radius-full);
193
+ background-color: var(--mobile-glass-background);
194
+ background-image: var(--mobile-glass-sheen);
195
+ box-shadow: var(--mobile-glass-shadow);
196
+ backdrop-filter: var(--mobile-glass-backdrop-filter);
197
+ }
198
+
199
+ /* One button is a capsule of its own, as Back beside a group. */
200
+ .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))):not(:has(> * + *)) {
201
+ padding: 0;
202
+ }
203
+
204
+ .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"])))[data-orientation="vertical"] {
205
+ --button-group-glass-item-size: var(--button-group-glass-vertical-item-size);
206
+ gap: var(--button-group-glass-vertical-gap);
207
+ padding: var(--button-group-glass-vertical-padding) 0;
208
+ }
209
+
210
+ .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"])))[data-orientation="vertical"]:not(:has(> * + *)) {
211
+ padding: 0;
212
+ }
213
+
214
+ /* The kit's capsule draws no line between its buttons. */
215
+ .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) > [data-slot="button-group-separator"] {
216
+ display: none;
217
+ }
218
+
219
+ /* Each button is a bar button with no surface of its own: the capsule is its glass, and a press tints it. A
220
+ disabled ButtonLink renders a span with the link role. */
221
+ .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) > :where(button, a, [role="link"]) {
222
+ --button-size: var(--button-group-glass-item-size);
223
+ --button-uniform-size: var(--button-group-glass-item-size);
224
+ --button-radius: var(--radius-full);
225
+ --button-font-size: var(--toolbar-label-font-size);
226
+ --button-line-height: var(--toolbar-label-line-height);
227
+ --button-font-weight: var(--toolbar-label-font-weight);
228
+ }
229
+
230
+ .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) > :where(button, a, [role="link"]):where(:not([data-navigation-action])) {
231
+ --button-icon-size: var(--toolbar-icon-size);
232
+ }
233
+
234
+ /* A symbol with less ink takes the bar's smaller box, as in Toolbar.Group (see --toolbar-icon-size-sm). */
235
+ .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) > :where(button, a, [role="link"])[data-icon-size="sm"]:where(:not([data-navigation-action])) {
236
+ --button-icon-size: var(--toolbar-icon-size-sm);
237
+ }
238
+
239
+ .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) > :where(button, a, [role="link"]):where(:not([data-navigation-action], [data-uniform])) {
240
+ --button-gutter: var(--button-group-glass-label-gutter);
241
+ }
242
+
243
+ .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) > :where(button, a, [role="link"]):where(:not([data-variant="solid"])) {
244
+ --button-mobile-material-background: transparent;
245
+ --button-mobile-material-sheen: none;
246
+ --button-mobile-material-shadow: 0 0 #00000000;
247
+ --button-mobile-material-backdrop-filter: none;
248
+ --button-mobile-material-opacity: 1;
249
+ --button-mobile-material-scale: 1;
250
+ --button-mobile-material-hover: var(--toolbar-group-item-hover);
251
+ --button-mobile-material-active: var(--toolbar-group-item-active);
252
+ --button-outline-context-background: transparent;
253
+ --button-border-color: transparent;
254
+ --button-border-color-hover: transparent;
255
+ --button-background-color-hover: var(--toolbar-group-item-hover);
256
+ --button-background-color-active: var(--toolbar-group-item-active);
257
+ }
258
+
259
+ /* A neutral symbol or label is the primary label, as the kit draws it; a disabled one keeps the tertiary. */
260
+ .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) > :where(button, a, [role="link"])[data-color="secondary"]:where(:not([data-disabled], [data-variant="solid"])) {
261
+ --button-text-color: var(--color-text);
262
+ --button-text-color-hover: var(--color-text);
263
+ }
264
+
265
+ [data-toolbar][data-placement="bottom"] .Root {
266
+ --button-group-glass-label-gutter: var(--toolbar-bottom-label-gutter);
267
+ }
268
+ }
269
+ /* Every group in a glass context, the row of capsules around nested groups included: no joined edges. */
270
+ :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]), > [data-slot="button-group"] > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) {
271
+ --button-group-joined-radius: var(--radius-full);
272
+ --button-group-joined-overlap: 0px;
273
+ --button-group-joined-clip: none;
274
+ --button-group-nested-gap: var(--button-group-glass-nested-gap);
275
+ }
276
+
277
+ /* In a bar a group takes the bar's sizes: 44 on top, 48 at the bottom (Toolbar.module.css). */
278
+ :where([data-plex-layout="phone"]) [data-toolbar] .Root {
279
+ --button-group-glass-item-size: var(--toolbar-item-size);
280
+ --button-group-glass-gap: var(--toolbar-group-gap);
281
+ --button-group-glass-padding: var(--toolbar-group-padding);
282
+ --button-group-glass-nested-gap: var(--toolbar-item-gap);
283
+ }
284
+
285
+ /* The capsule: a group of buttons alone. */
286
+ :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) {
287
+ gap: var(--button-group-glass-gap);
288
+ padding: 0 var(--button-group-glass-padding);
289
+ border-radius: var(--radius-full);
290
+ background-color: var(--mobile-glass-background);
291
+ background-image: var(--mobile-glass-sheen);
292
+ box-shadow: var(--mobile-glass-shadow);
293
+ backdrop-filter: var(--mobile-glass-backdrop-filter);
294
+ }
295
+
296
+ /* One button is a capsule of its own, as Back beside a group. */
297
+ :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))):not(:has(> * + *)) {
298
+ padding: 0;
299
+ }
300
+
301
+ :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"])))[data-orientation="vertical"] {
302
+ --button-group-glass-item-size: var(--button-group-glass-vertical-item-size);
303
+ gap: var(--button-group-glass-vertical-gap);
304
+ padding: var(--button-group-glass-vertical-padding) 0;
305
+ }
306
+
307
+ :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"])))[data-orientation="vertical"]:not(:has(> * + *)) {
308
+ padding: 0;
309
+ }
310
+
311
+ /* The kit's capsule draws no line between its buttons. */
312
+ :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) > [data-slot="button-group-separator"] {
313
+ display: none;
314
+ }
315
+
316
+ /* Each button is a bar button with no surface of its own: the capsule is its glass, and a press tints it. A
317
+ disabled ButtonLink renders a span with the link role. */
318
+ :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) > :where(button, a, [role="link"]) {
319
+ --button-size: var(--button-group-glass-item-size);
320
+ --button-uniform-size: var(--button-group-glass-item-size);
321
+ --button-radius: var(--radius-full);
322
+ --button-font-size: var(--toolbar-label-font-size);
323
+ --button-line-height: var(--toolbar-label-line-height);
324
+ --button-font-weight: var(--toolbar-label-font-weight);
325
+ }
326
+
327
+ :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) > :where(button, a, [role="link"]):where(:not([data-navigation-action])) {
328
+ --button-icon-size: var(--toolbar-icon-size);
329
+ }
330
+
331
+ /* A symbol with less ink takes the bar's smaller box, as in Toolbar.Group (see --toolbar-icon-size-sm). */
332
+ :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) > :where(button, a, [role="link"])[data-icon-size="sm"]:where(:not([data-navigation-action])) {
333
+ --button-icon-size: var(--toolbar-icon-size-sm);
334
+ }
335
+
336
+ :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) > :where(button, a, [role="link"]):where(:not([data-navigation-action], [data-uniform])) {
337
+ --button-gutter: var(--button-group-glass-label-gutter);
338
+ }
339
+
340
+ :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) > :where(button, a, [role="link"]):where(:not([data-variant="solid"])) {
341
+ --button-mobile-material-background: transparent;
342
+ --button-mobile-material-sheen: none;
343
+ --button-mobile-material-shadow: 0 0 #00000000;
344
+ --button-mobile-material-backdrop-filter: none;
345
+ --button-mobile-material-opacity: 1;
346
+ --button-mobile-material-scale: 1;
347
+ --button-mobile-material-hover: var(--toolbar-group-item-hover);
348
+ --button-mobile-material-active: var(--toolbar-group-item-active);
349
+ --button-outline-context-background: transparent;
350
+ --button-border-color: transparent;
351
+ --button-border-color-hover: transparent;
352
+ --button-background-color-hover: var(--toolbar-group-item-hover);
353
+ --button-background-color-active: var(--toolbar-group-item-active);
354
+ }
355
+
356
+ /* A neutral symbol or label is the primary label, as the kit draws it; a disabled one keeps the tertiary. */
357
+ :where([data-plex-layout="phone"]) .Root:is([data-mobile-material="glass"], [data-mobile-material="glass"] *, [data-toolbar] *):not([data-mobile-material="flat"], [data-mobile-material="flat"] *):not(:has(> [data-slot="button-group"], > :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), [data-slot="input"], [data-slot="input-group"], [data-slot="select-control"]))) > :where(button, a, [role="link"])[data-color="secondary"]:where(:not([data-disabled], [data-variant="solid"])) {
358
+ --button-text-color: var(--color-text);
359
+ --button-text-color-hover: var(--color-text);
360
+ }
361
+
362
+ :where([data-plex-layout="phone"]) [data-toolbar][data-placement="bottom"] .Root {
363
+ --button-group-glass-label-gutter: var(--toolbar-bottom-label-gutter);
157
364
  }
158
365
  }
@@ -140,4 +140,13 @@
140
140
  --card-background: var(--card-solid-section-background, var(--color-surface-secondary));
141
141
  }
142
142
  }
143
+ :where([data-plex-layout="phone"]) .Card:where([data-variant="outline"]) {
144
+ --card-background: var(--card-section-background, var(--color-surface));
145
+ --card-border-color: var(--card-section-border-color, var(--color-border));
146
+ --card-border-color-hover: var(--card-section-border-color, var(--color-border-primary-outline-hover));
147
+ }
148
+
149
+ :where([data-plex-layout="phone"]) .Card:where([data-variant="solid"]) {
150
+ --card-background: var(--card-solid-section-background, var(--color-surface-secondary));
151
+ }
143
152
  }
@@ -51,7 +51,20 @@
51
51
  height: var(--button-size);
52
52
  margin: auto;
53
53
  }
54
- }/* The button's own outline stays off; keyboard focus shows Button's
54
+ }
55
+ :where([data-plex-layout="phone"]) .CopyButtonContainer button {
56
+ min-width: 44px;
57
+ min-height: 44px;
58
+ /* The target overhangs the 32px box evenly, so the glyph stays at its centre. */
59
+ margin: calc((32px - 44px) / 2);
60
+ }
61
+
62
+ :where([data-plex-layout="phone"]) .CopyButtonContainer button::before,
63
+ :where([data-plex-layout="phone"]) .CopyButtonContainer button::after {
64
+ width: var(--button-size);
65
+ height: var(--button-size);
66
+ margin: auto;
67
+ }/* The button's own outline stays off; keyboard focus shows Button's
55
68
  ::after ring */.CopyButtonContainer button:focus,
56
69
  .CopyButtonContainer button:focus-visible {
57
70
  outline: none !important;