@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
@@ -0,0 +1,478 @@
1
+ @layer components {/* The tab bar of a phone screen, after the iOS 26 kit Tab Bar - iPhone (507:24689). A desktop layout navigates
2
+ with a Sidebar or Tabs, so the bar never renders there. */.TabBar {
3
+ display: none;
4
+ }@media (max-width: 767.98px) {
5
+ /* 402 x 95: the capsule 62 tall, 21px from the sides and the bottom, 12px below the top of the bar. */
6
+ .TabBar {
7
+ position: relative;
8
+ z-index: 5;
9
+ display: flex;
10
+ flex: none;
11
+ align-items: flex-end;
12
+ justify-content: center;
13
+ gap: var(--tab-bar-gap);
14
+ min-width: 0;
15
+ padding: var(--tab-bar-padding-top) var(--tab-bar-gutter) var(--tab-bar-padding-bottom);
16
+ color: var(--color-text);
17
+
18
+ /* With a search or a prominent tab, or minimized, the capsule keeps to the leading edge and the circle of
19
+ its own to the trailing one. */
20
+ }
21
+
22
+ /* The soft scroll edge of a bottom Toolbar: the canvas fades out over content under the bar. */
23
+ .TabBar::before {
24
+ position: absolute;
25
+ z-index: -1;
26
+ inset: -16px 0 0;
27
+ background: var(--tab-bar-edge-background, var(--page-background));
28
+ backdrop-filter: blur(var(--toolbar-edge-blur-small));
29
+ content: "";
30
+ -webkit-mask-image: linear-gradient(to top, #000, transparent);
31
+ mask-image: linear-gradient(to top, #000, transparent);
32
+ pointer-events: none;
33
+ transition: opacity var(--transition-duration-basic), border-color var(--transition-duration-basic);
34
+ }
35
+
36
+ /* The other backgrounds of a bar (`BarBackground`) fill the bar behind the capsule: hard and solid
37
+ opaque, glass translucent and shown once content is under it. Hard and glass then draw a line on
38
+ the bar's top edge. */
39
+ .TabBar:not([data-background="soft"])::before {
40
+ inset: 0;
41
+ backdrop-filter: none;
42
+ -webkit-mask-image: none;
43
+ mask-image: none;
44
+ }
45
+
46
+ .TabBar[data-background="hard"]::before {
47
+ border-top: 1px solid transparent;
48
+ }
49
+
50
+ .TabBar[data-background="glass"]::before {
51
+ border-top: 0.5px solid var(--page-bar-line);
52
+ background: color-mix(in srgb, var(--tab-bar-edge-background, var(--page-background)) var(--page-bar-veil-opacity), transparent);
53
+ backdrop-filter: var(--page-bar-glass-filter);
54
+ opacity: 0;
55
+ }
56
+
57
+ .TabBar[data-content-below][data-background="hard"]::before {
58
+ border-top-color: var(--page-bar-hard-line);
59
+ }
60
+
61
+ .TabBar[data-content-below][data-background="glass"]::before {
62
+ opacity: 1;
63
+ }
64
+
65
+ /* Soft is no band: native iOS 26 lets the list run under and around the tab bar's capsule at full
66
+ contrast (Phone, IMG_5615; plan 172, owner 08.11), and the capsule's glass sets it off. */
67
+ .TabBar[data-background="soft"]::before {
68
+ display: none;
69
+ }
70
+ .TabBar[data-search],
71
+ .TabBar[data-prominent],
72
+ .TabBar[data-minimized] {
73
+ justify-content: space-between;
74
+ }
75
+
76
+ .TabBar[data-minimized] {
77
+ padding: var(--tab-bar-minimized-padding-top) var(--tab-bar-minimized-gutter) var(--tab-bar-minimized-padding-bottom);
78
+ }
79
+
80
+ /* The glass capsule (Liquid Glass Regular, the shared mobile glass with its raised shadow). Tabs are 94px
81
+ apart at most and share the width when there are more: four or five fill 360px, three take 302. The search
82
+ and prominent circles name both classes to outrank the reset of `.Item`. */
83
+ .Tabs,
84
+ .Item:is(.Search, .Prominent) {
85
+ border-radius: var(--radius-full);
86
+ background-color: var(--mobile-glass-background);
87
+ background-image: var(--mobile-glass-sheen);
88
+ box-shadow: var(--mobile-glass-shadow-raised);
89
+ backdrop-filter: var(--mobile-glass-backdrop-filter);
90
+ }
91
+
92
+ .Tabs {
93
+ display: flex;
94
+ flex: 0 1 auto;
95
+ min-width: 0;
96
+ padding: var(--tab-bar-capsule-padding-block) var(--tab-bar-capsule-padding-inline);
97
+ }
98
+
99
+ .Item {
100
+ position: relative;
101
+ isolation: isolate;
102
+ display: flex;
103
+ /* A width rather than a basis: the capsule sizes itself from it, then the tabs shrink together. */
104
+ flex: 0 1 auto;
105
+ flex-direction: column;
106
+ align-items: center;
107
+ gap: 1px;
108
+ width: var(--tab-bar-item-width);
109
+ min-width: 0;
110
+ height: var(--tab-bar-item-height);
111
+ margin: 0;
112
+ padding: 6px 0 7px;
113
+ border: 0;
114
+ border-radius: var(--radius-full);
115
+ background: none;
116
+ color: var(--tab-bar-item-color);
117
+ font: inherit;
118
+ text-decoration: none;
119
+ cursor: pointer;
120
+ -webkit-tap-highlight-color: transparent;
121
+ -webkit-touch-callout: none;
122
+ -moz-user-select: none;
123
+ user-select: none;
124
+ -webkit-user-select: none;
125
+ }
126
+
127
+ /* The selection pill reaches 6px past the tab and 4px from the capsule, as the kit's Selection does. */
128
+ .Item::before {
129
+ position: absolute;
130
+ z-index: -1;
131
+ inset: 0 calc(-1 * var(--tab-bar-pill-outset));
132
+ border-radius: var(--radius-full);
133
+ background: transparent;
134
+ content: "";
135
+ }
136
+
137
+ .Item[data-selected] {
138
+ color: var(--tab-bar-item-color-selected);
139
+ }
140
+
141
+ .Item[data-selected]::before {
142
+ background: var(--tab-bar-item-background-selected);
143
+ }
144
+
145
+ .Item[data-disabled] {
146
+ color: var(--color-text-disabled);
147
+ cursor: default;
148
+ }
149
+
150
+ @media (hover: hover) and (pointer: fine) {
151
+ .Item:hover:where(:not(:root[data-input="touch"] *)):not([data-selected], [data-disabled]) {
152
+ color: var(--tab-bar-item-color-selected);
153
+ }
154
+ }
155
+
156
+ .Item:focus {
157
+ outline: none;
158
+ }
159
+
160
+ .Item:focus-visible {
161
+ outline: 2px solid var(--color-ring);
162
+ outline-offset: -2px;
163
+ }
164
+
165
+ .Icon {
166
+ display: grid;
167
+ flex: none;
168
+ place-items: center;
169
+ height: var(--tab-bar-icon-box);
170
+ }
171
+
172
+ .Icon > svg {
173
+ width: var(--tab-bar-icon-size);
174
+ height: var(--tab-bar-icon-size);
175
+ }
176
+
177
+ .Label {
178
+ max-width: 100%;
179
+ overflow: hidden;
180
+ font-size: var(--tab-bar-label-font-size);
181
+ font-weight: var(--tab-bar-label-font-weight);
182
+ line-height: var(--tab-bar-label-line-height);
183
+ text-overflow: ellipsis;
184
+ white-space: nowrap;
185
+ }
186
+
187
+ /* The separate search tab, and the prominent tab of the iOS 27 kit (Type=Prominent Tab): a 62px glass circle,
188
+ its pill 54. */
189
+ .Item:is(.Search, .Prominent) {
190
+ flex: none;
191
+ justify-content: center;
192
+ width: var(--tab-bar-search-size);
193
+ height: var(--tab-bar-search-size);
194
+ padding: 0;
195
+ }
196
+
197
+ .Item:is(.Search, .Prominent)::before {
198
+ inset: var(--tab-bar-capsule-padding-block);
199
+ }
200
+
201
+ /* Minimized: the capsule is a 48px circle with the selected tab's symbol in the primary label, and search or
202
+ the prominent tab a 48px circle too; the other tabs hide. */
203
+ .TabBar[data-minimized] .Tabs {
204
+ flex: none;
205
+ padding: var(--tab-bar-capsule-padding-block);
206
+ }
207
+
208
+ .TabBar[data-minimized] .Tabs > .Item {
209
+ display: none;
210
+ }
211
+
212
+ .TabBar[data-minimized] .Tabs > .Item[data-selected],
213
+ .TabBar[data-minimized] .Tabs:not(:has(> .Item[data-selected])) > .Item:first-child {
214
+ display: flex;
215
+ flex: none;
216
+ justify-content: center;
217
+ width: calc(var(--tab-bar-minimized-size) - 2 * var(--tab-bar-capsule-padding-block));
218
+ height: calc(var(--tab-bar-minimized-size) - 2 * var(--tab-bar-capsule-padding-block));
219
+ padding: 0;
220
+ color: var(--tab-bar-item-color-minimized);
221
+ }
222
+
223
+ .TabBar[data-minimized] .Tabs > .Item[data-selected]::before, .TabBar[data-minimized] .Tabs:not(:has(> .Item[data-selected])) > .Item:first-child::before {
224
+ background: transparent;
225
+ }
226
+
227
+ /* The label still names the tab for assistive technology. */
228
+ .TabBar[data-minimized] .Tabs .Label {
229
+ position: absolute;
230
+ width: 1px;
231
+ height: 1px;
232
+ overflow: hidden;
233
+ clip-path: inset(50%);
234
+ white-space: nowrap;
235
+ }
236
+
237
+ .TabBar[data-minimized] .Item:is(.Search, .Prominent) {
238
+ width: var(--tab-bar-minimized-size);
239
+ height: var(--tab-bar-minimized-size);
240
+ }
241
+ }
242
+ /* 402 x 95: the capsule 62 tall, 21px from the sides and the bottom, 12px below the top of the bar. */
243
+ :where([data-plex-layout="phone"]) .TabBar {
244
+ position: relative;
245
+ z-index: 5;
246
+ display: flex;
247
+ flex: none;
248
+ align-items: flex-end;
249
+ justify-content: center;
250
+ gap: var(--tab-bar-gap);
251
+ min-width: 0;
252
+ padding: var(--tab-bar-padding-top) var(--tab-bar-gutter) var(--tab-bar-padding-bottom);
253
+ color: var(--color-text);
254
+
255
+ /* With a search or a prominent tab, or minimized, the capsule keeps to the leading edge and the circle of
256
+ its own to the trailing one. */
257
+ }
258
+
259
+ /* The soft scroll edge of a bottom Toolbar: the canvas fades out over content under the bar. */
260
+ :where([data-plex-layout="phone"]) .TabBar::before {
261
+ position: absolute;
262
+ z-index: -1;
263
+ inset: -16px 0 0;
264
+ background: var(--tab-bar-edge-background, var(--page-background));
265
+ backdrop-filter: blur(var(--toolbar-edge-blur-small));
266
+ content: "";
267
+ -webkit-mask-image: linear-gradient(to top, #000, transparent);
268
+ mask-image: linear-gradient(to top, #000, transparent);
269
+ pointer-events: none;
270
+ transition: opacity var(--transition-duration-basic), border-color var(--transition-duration-basic);
271
+ }
272
+
273
+ /* The other backgrounds of a bar (`BarBackground`) fill the bar behind the capsule: hard and solid
274
+ opaque, glass translucent and shown once content is under it. Hard and glass then draw a line on
275
+ the bar's top edge. */
276
+ :where([data-plex-layout="phone"]) .TabBar:not([data-background="soft"])::before {
277
+ inset: 0;
278
+ backdrop-filter: none;
279
+ -webkit-mask-image: none;
280
+ mask-image: none;
281
+ }
282
+
283
+ :where([data-plex-layout="phone"]) .TabBar[data-background="hard"]::before {
284
+ border-top: 1px solid transparent;
285
+ }
286
+
287
+ :where([data-plex-layout="phone"]) .TabBar[data-background="glass"]::before {
288
+ border-top: 0.5px solid var(--page-bar-line);
289
+ background: color-mix(in srgb, var(--tab-bar-edge-background, var(--page-background)) var(--page-bar-veil-opacity), transparent);
290
+ backdrop-filter: var(--page-bar-glass-filter);
291
+ opacity: 0;
292
+ }
293
+
294
+ :where([data-plex-layout="phone"]) .TabBar[data-content-below][data-background="hard"]::before {
295
+ border-top-color: var(--page-bar-hard-line);
296
+ }
297
+
298
+ :where([data-plex-layout="phone"]) .TabBar[data-content-below][data-background="glass"]::before {
299
+ opacity: 1;
300
+ }
301
+
302
+ /* Soft is no band: native iOS 26 lets the list run under and around the tab bar's capsule at full
303
+ contrast (Phone, IMG_5615; plan 172, owner 08.11), and the capsule's glass sets it off. */
304
+ :where([data-plex-layout="phone"]) .TabBar[data-background="soft"]::before {
305
+ display: none;
306
+ }
307
+ :where([data-plex-layout="phone"]) .TabBar[data-search],
308
+ :where([data-plex-layout="phone"]) .TabBar[data-prominent],
309
+ :where([data-plex-layout="phone"]) .TabBar[data-minimized] {
310
+ justify-content: space-between;
311
+ }
312
+
313
+ :where([data-plex-layout="phone"]) .TabBar[data-minimized] {
314
+ padding: var(--tab-bar-minimized-padding-top) var(--tab-bar-minimized-gutter) var(--tab-bar-minimized-padding-bottom);
315
+ }
316
+
317
+ /* The glass capsule (Liquid Glass Regular, the shared mobile glass with its raised shadow). Tabs are 94px
318
+ apart at most and share the width when there are more: four or five fill 360px, three take 302. The search
319
+ and prominent circles name both classes to outrank the reset of `.Item`. */
320
+ :where([data-plex-layout="phone"]) .Tabs,
321
+ :where([data-plex-layout="phone"]) .Item:is(.Search, .Prominent) {
322
+ border-radius: var(--radius-full);
323
+ background-color: var(--mobile-glass-background);
324
+ background-image: var(--mobile-glass-sheen);
325
+ box-shadow: var(--mobile-glass-shadow-raised);
326
+ backdrop-filter: var(--mobile-glass-backdrop-filter);
327
+ }
328
+
329
+ :where([data-plex-layout="phone"]) .Tabs {
330
+ display: flex;
331
+ flex: 0 1 auto;
332
+ min-width: 0;
333
+ padding: var(--tab-bar-capsule-padding-block) var(--tab-bar-capsule-padding-inline);
334
+ }
335
+
336
+ :where([data-plex-layout="phone"]) .Item {
337
+ position: relative;
338
+ isolation: isolate;
339
+ display: flex;
340
+ /* A width rather than a basis: the capsule sizes itself from it, then the tabs shrink together. */
341
+ flex: 0 1 auto;
342
+ flex-direction: column;
343
+ align-items: center;
344
+ gap: 1px;
345
+ width: var(--tab-bar-item-width);
346
+ min-width: 0;
347
+ height: var(--tab-bar-item-height);
348
+ margin: 0;
349
+ padding: 6px 0 7px;
350
+ border: 0;
351
+ border-radius: var(--radius-full);
352
+ background: none;
353
+ color: var(--tab-bar-item-color);
354
+ font: inherit;
355
+ text-decoration: none;
356
+ cursor: pointer;
357
+ -webkit-tap-highlight-color: transparent;
358
+ -webkit-touch-callout: none;
359
+ -moz-user-select: none;
360
+ user-select: none;
361
+ -webkit-user-select: none;
362
+ }
363
+
364
+ /* The selection pill reaches 6px past the tab and 4px from the capsule, as the kit's Selection does. */
365
+ :where([data-plex-layout="phone"]) .Item::before {
366
+ position: absolute;
367
+ z-index: -1;
368
+ inset: 0 calc(-1 * var(--tab-bar-pill-outset));
369
+ border-radius: var(--radius-full);
370
+ background: transparent;
371
+ content: "";
372
+ }
373
+
374
+ :where([data-plex-layout="phone"]) .Item[data-selected] {
375
+ color: var(--tab-bar-item-color-selected);
376
+ }
377
+
378
+ :where([data-plex-layout="phone"]) .Item[data-selected]::before {
379
+ background: var(--tab-bar-item-background-selected);
380
+ }
381
+
382
+ :where([data-plex-layout="phone"]) .Item[data-disabled] {
383
+ color: var(--color-text-disabled);
384
+ cursor: default;
385
+ }
386
+
387
+ @media (hover: hover) and (pointer: fine) {
388
+ :where([data-plex-layout="phone"]) .Item:hover:where(:not(:root[data-input="touch"] *)):not([data-selected], [data-disabled]) {
389
+ color: var(--tab-bar-item-color-selected);
390
+ }
391
+ }
392
+
393
+ :where([data-plex-layout="phone"]) .Item:focus {
394
+ outline: none;
395
+ }
396
+
397
+ :where([data-plex-layout="phone"]) .Item:focus-visible {
398
+ outline: 2px solid var(--color-ring);
399
+ outline-offset: -2px;
400
+ }
401
+
402
+ :where([data-plex-layout="phone"]) .Icon {
403
+ display: grid;
404
+ flex: none;
405
+ place-items: center;
406
+ height: var(--tab-bar-icon-box);
407
+ }
408
+
409
+ :where([data-plex-layout="phone"]) .Icon > svg {
410
+ width: var(--tab-bar-icon-size);
411
+ height: var(--tab-bar-icon-size);
412
+ }
413
+
414
+ :where([data-plex-layout="phone"]) .Label {
415
+ max-width: 100%;
416
+ overflow: hidden;
417
+ font-size: var(--tab-bar-label-font-size);
418
+ font-weight: var(--tab-bar-label-font-weight);
419
+ line-height: var(--tab-bar-label-line-height);
420
+ text-overflow: ellipsis;
421
+ white-space: nowrap;
422
+ }
423
+
424
+ /* The separate search tab, and the prominent tab of the iOS 27 kit (Type=Prominent Tab): a 62px glass circle,
425
+ its pill 54. */
426
+ :where([data-plex-layout="phone"]) .Item:is(.Search, .Prominent) {
427
+ flex: none;
428
+ justify-content: center;
429
+ width: var(--tab-bar-search-size);
430
+ height: var(--tab-bar-search-size);
431
+ padding: 0;
432
+ }
433
+
434
+ :where([data-plex-layout="phone"]) .Item:is(.Search, .Prominent)::before {
435
+ inset: var(--tab-bar-capsule-padding-block);
436
+ }
437
+
438
+ /* Minimized: the capsule is a 48px circle with the selected tab's symbol in the primary label, and search or
439
+ the prominent tab a 48px circle too; the other tabs hide. */
440
+ :where([data-plex-layout="phone"]) .TabBar[data-minimized] .Tabs {
441
+ flex: none;
442
+ padding: var(--tab-bar-capsule-padding-block);
443
+ }
444
+
445
+ :where([data-plex-layout="phone"]) .TabBar[data-minimized] .Tabs > .Item {
446
+ display: none;
447
+ }
448
+
449
+ :where([data-plex-layout="phone"]) .TabBar[data-minimized] .Tabs > .Item[data-selected],
450
+ :where([data-plex-layout="phone"]) .TabBar[data-minimized] .Tabs:not(:has(> .Item[data-selected])) > .Item:first-child {
451
+ display: flex;
452
+ flex: none;
453
+ justify-content: center;
454
+ width: calc(var(--tab-bar-minimized-size) - 2 * var(--tab-bar-capsule-padding-block));
455
+ height: calc(var(--tab-bar-minimized-size) - 2 * var(--tab-bar-capsule-padding-block));
456
+ padding: 0;
457
+ color: var(--tab-bar-item-color-minimized);
458
+ }
459
+
460
+ :where([data-plex-layout="phone"]) .TabBar[data-minimized] .Tabs > .Item[data-selected]::before, :where([data-plex-layout="phone"]) .TabBar[data-minimized] .Tabs:not(:has(> .Item[data-selected])) > .Item:first-child::before {
461
+ background: transparent;
462
+ }
463
+
464
+ /* The label still names the tab for assistive technology. */
465
+ :where([data-plex-layout="phone"]) .TabBar[data-minimized] .Tabs .Label {
466
+ position: absolute;
467
+ width: 1px;
468
+ height: 1px;
469
+ overflow: hidden;
470
+ clip-path: inset(50%);
471
+ white-space: nowrap;
472
+ }
473
+
474
+ :where([data-plex-layout="phone"]) .TabBar[data-minimized] .Item:is(.Search, .Prominent) {
475
+ width: var(--tab-bar-minimized-size);
476
+ height: var(--tab-bar-minimized-size);
477
+ }
478
+ }