@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,456 @@
1
+ @layer components {/* A tip after TipKit (kit TipKit Community: macOS Mini Tip 118:5175, iOS Mini Tip 41:1351; tokens in
2
+ variables-components.css). The kit's three styles: an inline tip (Hint), an inline tip with an arrow at one
3
+ edge (Annotation, `arrowEdge`) and a tip anchored to a control (Popover, `Tip.Popover`). An optional symbol
4
+ leads the message, Close sits in the trailing corner and the actions take a line of their own below. */.Transition {
5
+ /* CSS Modules requires a top-level class to create the string map entry */
6
+ }.Tip {
7
+ position: relative;
8
+ display: flex;
9
+ flex-wrap: wrap;
10
+ align-items: flex-start;
11
+ -moz-column-gap: 12px;
12
+ column-gap: 12px;
13
+ row-gap: var(--tip-gap);
14
+ box-sizing: border-box;
15
+ padding: var(--tip-padding-top) var(--tip-padding-inline) var(--tip-padding-bottom);
16
+ border-radius: var(--tip-radius);
17
+ background: var(--tip-background);
18
+ color: var(--color-text);
19
+ text-align: start;
20
+ }
21
+
22
+ .Tip:not(:has(> .Actions)) {
23
+ padding-bottom: var(--tip-padding-top);
24
+ }/* The symbol: 6 in from the padding in a 44 by 54 frame, 12 from the text, in the description's color */.Icon {
25
+ display: flex;
26
+ flex-shrink: 0;
27
+ align-items: center;
28
+ justify-content: center;
29
+ width: var(--tip-icon-frame-width);
30
+ height: var(--tip-icon-frame-height);
31
+ margin-inline-start: 6px;
32
+ color: var(--tip-description-color);
33
+ }
34
+
35
+ .Icon > svg {
36
+ width: var(--tip-icon-size);
37
+ height: var(--tip-icon-size);
38
+ }.Message {
39
+ flex: 1;
40
+ min-width: 0;
41
+ }
42
+
43
+ /* Next to a symbol the whole message stops short of Close (the kit's 172 of 206) */
44
+ .Tip:has(> .Icon):has(> .Close) .Message {
45
+ padding-inline-end: calc(var(--tip-close-size) + var(--tip-close-offset) - var(--tip-padding-inline) + 1px);
46
+ }.Title {
47
+ margin: 0;
48
+ font-size: var(--tip-title-font-size);
49
+ font-weight: var(--font-weight-semibold);
50
+ line-height: var(--tip-title-line-height);
51
+ text-wrap: pretty;
52
+ }
53
+
54
+ /* The kit's title stops short of Close (234 of 268); the description runs under it */
55
+ .Tip:has(> .Close):not(:has(> .Icon)) .Title {
56
+ padding-inline-end: calc(var(--tip-close-size) + var(--tip-close-offset) - var(--tip-padding-inline) + 1px);
57
+ }
58
+
59
+ .Title ~ .Description {
60
+ margin-top: var(--tip-description-gap);
61
+ }.Description {
62
+ margin: 0;
63
+ color: var(--tip-description-color);
64
+ font-size: var(--tip-description-font-size);
65
+ line-height: var(--tip-description-line-height);
66
+ text-wrap: pretty;
67
+ }/* Side by side, each as wide as the others (the kit's 128 and 128 in 268) */.Actions {
68
+ display: flex;
69
+ flex: 1 0 100%;
70
+ flex-flow: row wrap;
71
+ gap: 10px var(--tip-action-gap);
72
+ }
73
+
74
+ .Actions > * {
75
+ flex: 1 0 0;
76
+ min-width: calc(50% - var(--tip-action-gap) / 2);
77
+ max-width: 100%;
78
+ }/* Two classes: over the Button's own size and position, whichever stylesheet loads first */.Tip > .Close {
79
+ --button-uniform-size: var(--tip-close-size);
80
+ --button-icon-size: var(--tip-close-icon-size);
81
+ position: absolute;
82
+ top: var(--tip-close-offset);
83
+ inset-inline-end: var(--tip-close-offset);
84
+ }/* =============================================
85
+ Annotation: the arrow at one edge of an inline tip, in its fill. The tip leaves room for it.
86
+ ============================================= */.Tip[data-arrow-edge]::before {
87
+ position: absolute;
88
+ width: var(--tip-arrow-width);
89
+ height: var(--tip-arrow-height);
90
+ background: inherit;
91
+ /* The kit's arrow (47 by 13), pointing down */
92
+ clip-path: path("M0 0C1.71 0 3.42 -.01 5.14 .01C6.78 .03 8.61 .06 10.21 .66C11.93 1.31 13.07 2.44 14.22 3.78C15.04 4.74 16.67 6.8 17.46 7.79C18.1 8.6 19.37 10.21 20.06 10.98C20.93 11.96 22.01 13 23.5 13C24.99 13 26.07 11.96 26.94 10.98C27.63 10.21 28.9 8.6 29.54 7.79C30.33 6.8 31.96 4.74 32.78 3.78C33.93 2.44 35.07 1.31 36.79 .66C38.39 .06 40.22 .03 41.86 .01C43.58 -.01 45.29 0 47 0Z");
93
+ content: "";
94
+ }.Tip[data-arrow-edge="top"] {
95
+ margin-top: var(--tip-arrow-height);
96
+ }
97
+
98
+ .Tip[data-arrow-edge="top"]::before {
99
+ bottom: 100%;
100
+ left: calc(50% - var(--tip-arrow-width) / 2);
101
+ transform: rotate(180deg);
102
+ }.Tip[data-arrow-edge="bottom"] {
103
+ margin-bottom: var(--tip-arrow-height);
104
+ }
105
+
106
+ .Tip[data-arrow-edge="bottom"]::before {
107
+ top: 100%;
108
+ left: calc(50% - var(--tip-arrow-width) / 2);
109
+ }/* A sideways arrow turns about its own center, so it is moved by half its length less half its height */.Tip[data-arrow-edge="left"] {
110
+ margin-left: var(--tip-arrow-height);
111
+ }
112
+
113
+ .Tip[data-arrow-edge="left"]::before {
114
+ top: calc(50% - var(--tip-arrow-height) / 2);
115
+ right: calc(100% - (var(--tip-arrow-width) - var(--tip-arrow-height)) / 2);
116
+ transform: rotate(90deg);
117
+ }.Tip[data-arrow-edge="right"] {
118
+ margin-right: var(--tip-arrow-height);
119
+ }
120
+
121
+ .Tip[data-arrow-edge="right"]::before {
122
+ top: calc(50% - var(--tip-arrow-height) / 2);
123
+ left: calc(100% - (var(--tip-arrow-width) - var(--tip-arrow-height)) / 2);
124
+ transform: rotate(-90deg);
125
+ }/* =============================================
126
+ Popover: the tip and its arrow, which Radix places at the anchor and turns to face it
127
+ ============================================= */.Popover {
128
+ z-index: 50;
129
+ position: relative;
130
+ width: min(var(--tip-popover-width), var(--radix-popover-content-available-width, var(--reka-popover-content-available-width, 100vw)));
131
+ /* One shadow around the tip and its arrow (there is no glass to keep on a desktop) */
132
+ filter: drop-shadow(0 0 var(--shadow-hairline-width) var(--shadow-hairline-color)) drop-shadow(var(--tip-popover-shadow));
133
+ transform-origin: var(--radix-popover-content-transform-origin, var(--reka-popover-content-transform-origin));
134
+ will-change: transform;
135
+ }
136
+
137
+ .Popover:focus {
138
+ outline: none;
139
+ }
140
+
141
+ .Popover > .Tip {
142
+ background: var(--tip-popover-background);
143
+ }
144
+
145
+ /* Visibility transitions: the scale on the popover, the fade on the tip and the arrow themselves (a fading
146
+ parent would hide the backdrop from their glass on a phone) */
147
+ .Transition[data-entering] .Popover {
148
+ transform: scale(0.95);
149
+ }
150
+
151
+ .Transition[data-entering] .Popover :is(.Tip, .Arrow) {
152
+ opacity: 0;
153
+ }
154
+
155
+ .Transition[data-entering-active] .Popover,
156
+ .Transition[data-entering][data-interrupted] .Popover {
157
+ transform: scale(1);
158
+ transition: transform var(--motion-enter) var(--cubic-enter);
159
+ }
160
+
161
+ .Transition[data-entering-active] .Popover :is(.Tip, .Arrow), .Transition[data-entering][data-interrupted] .Popover :is(.Tip, .Arrow) {
162
+ opacity: 1;
163
+ transition: opacity var(--motion-enter) var(--cubic-enter);
164
+ }
165
+
166
+ .Transition[data-exiting-active] .Popover,
167
+ .Transition[data-exiting][data-interrupted] .Popover {
168
+ transform: scale(0.95);
169
+ transition: transform var(--motion-exit) var(--cubic-exit-snappy);
170
+ }
171
+
172
+ .Transition[data-exiting-active] .Popover :is(.Tip, .Arrow), .Transition[data-exiting][data-interrupted] .Popover :is(.Tip, .Arrow) {
173
+ opacity: 0;
174
+ transition: opacity var(--motion-exit) var(--cubic-exit-snappy);
175
+ }/* Drawn pointing down; Radix turns it toward the anchor */.Arrow {
176
+ display: block;
177
+ width: var(--tip-arrow-width);
178
+ height: var(--tip-arrow-height);
179
+ background: var(--tip-popover-background);
180
+ clip-path: path("M0 0C1.71 0 3.42 -.01 5.14 .01C6.78 .03 8.61 .06 10.21 .66C11.93 1.31 13.07 2.44 14.22 3.78C15.04 4.74 16.67 6.8 17.46 7.79C18.1 8.6 19.37 10.21 20.06 10.98C20.93 11.96 22.01 13 23.5 13C24.99 13 26.07 11.96 26.94 10.98C27.63 10.21 28.9 8.6 29.54 7.79C30.33 6.8 31.96 4.74 32.78 3.78C33.93 2.44 35.07 1.31 36.79 .66C38.39 .06 40.22 .03 41.86 .01C43.58 -.01 45.29 0 47 0Z");
181
+ }/* iPhone (plan 171, owner 08.11, comments 46 to 50). Apple's cards differ from app to app (IMG_5723, 5725,
182
+ 5726, 5728, 5729, 5730); a tip takes the shape TipKit's own tip and most of them share. It is the card of a
183
+ grouped list: opaque as a grouped cell, 26 corners, no shadow (white on 242,242,246), its content at the iOS
184
+ layout margin (20 at 430pt). The symbol is a 36 tile at the margin and the text starts 12 after it (IMG_5726);
185
+ the title line starts 14 down, the 15/20 description right under it in the secondary label, and the whole
186
+ message stops short of Close. Close is a bare 12pt glyph in the tertiary label (197,197,199), its center 28
187
+ from the trailing edge and 23 from the top, in a 44 target (IMG_5726, 5730). Actions are rows under a
188
+ separator that runs from the text to the trailing margin, as in iOS 26 lists (IMG_5729, 5730): 17 regular
189
+ text in the action's color, 46 tall, one under another. A popover tip has the same content in the iOS 27
190
+ alert's glass with the kit's popover shadow (0 10 30, black at 20%), its arrow the same glass. */@media (max-width: 767px) {
191
+ .Tip {
192
+ --tip-padding-top: 14px;
193
+ --tip-padding-inline: var(--mobile-layout-margin, 16px);
194
+ --tip-padding-bottom: 0px;
195
+ --tip-gap: 11px;
196
+ --tip-description-gap: 0px;
197
+ --tip-icon-size: 36px;
198
+ --tip-icon-frame-width: 36px;
199
+ --tip-icon-frame-height: 36px;
200
+ --tip-close-size: 22px;
201
+ --tip-close-offset: 17px;
202
+ --tip-close-icon-size: 22px;
203
+ border-radius: 26px;
204
+ background: var(--mobile-surface-grouped-secondary, var(--tip-background));
205
+ }
206
+
207
+ .Icon {
208
+ margin-inline-start: 0;
209
+ }
210
+
211
+ /* The whole message stops short of Close, with or without a symbol */
212
+ .Tip:has(> .Close) > .Message {
213
+ padding-inline-end: calc(var(--tip-close-size) + var(--tip-close-offset) - var(--tip-padding-inline) + 1px);
214
+ }
215
+
216
+ .Tip:has(> .Close):not(:has(> .Icon)) .Title {
217
+ padding-inline-end: 0;
218
+ }
219
+
220
+ /* [data-variant]: over the Button's own soft fill and label. The glyph sits in a 44 target. */
221
+ .Tip > .Close[data-variant] {
222
+ --tip-close-target-inset: calc((44px - var(--tip-close-size)) / 2);
223
+ --button-uniform-size: 44px;
224
+ --button-background-color: transparent;
225
+ --button-background-color-hover: transparent;
226
+ --button-background-color-active: transparent;
227
+ --button-text-color: var(--mobile-label-tertiary, var(--color-text-tertiary));
228
+ --button-text-color-hover: var(--mobile-label-tertiary, var(--color-text-tertiary));
229
+ top: calc(12px - var(--tip-close-target-inset));
230
+ inset-inline-end: calc(var(--tip-close-offset) - var(--tip-close-target-inset));
231
+ }
232
+
233
+ .Tip > .Close[data-variant]::before,
234
+ .Tip > .Close[data-variant]::after {
235
+ inset: var(--tip-close-target-inset);
236
+ }
237
+
238
+ /* The actions reach the bottom edge; beside a symbol they start under the text */
239
+ .Tip > .Actions {
240
+ flex-flow: column nowrap;
241
+ gap: 0;
242
+ }
243
+
244
+ .Tip:not([data-mobile-actions="buttons"]):has(> .Icon) > .Actions {
245
+ padding-inline-start: calc(var(--tip-icon-frame-width) + 12px);
246
+ }
247
+
248
+ /* Each action is a row of text in its own color under a separator ([data-variant]: over the Button's own) */
249
+ .Tip:not([data-mobile-actions="buttons"]) > .Actions > [data-variant] {
250
+ --button-size: auto;
251
+ --button-gutter: 0px;
252
+ --button-radius: 0;
253
+ --button-font-size: 17px;
254
+ --button-font-weight: var(--font-weight-normal);
255
+ --button-line-height: 22px;
256
+ --button-justify-content: flex-start;
257
+ --button-background-color: transparent;
258
+ --button-background-color-hover: transparent;
259
+ --button-background-color-active: transparent;
260
+ --button-text-color: var(--tip-action-color, var(--color-text));
261
+ --button-text-color-hover: var(--tip-action-color, var(--color-text));
262
+ flex: none;
263
+ width: 100%;
264
+ min-width: 0;
265
+ max-width: none;
266
+ min-height: 46px;
267
+ padding: 12px 0;
268
+ border-top: 1px solid var(--color-border);
269
+ /* Set on the row as well: touch.css sets the variable on the button itself (as Toolbar does) */
270
+ font-weight: var(--font-weight-normal);
271
+ text-align: start;
272
+ white-space: normal;
273
+ }
274
+
275
+ .Tip > .Actions > [data-color="primary"] { --tip-action-color: var(--color-text-primary-ghost); }
276
+ .Tip > .Actions > [data-color="secondary"] { --tip-action-color: var(--color-text-secondary-ghost); }
277
+ .Tip > .Actions > [data-color="danger"] { --tip-action-color: var(--color-text-danger-ghost); }
278
+ .Tip > .Actions > [data-color="success"] { --tip-action-color: var(--color-text-success-ghost); }
279
+ .Tip > .Actions > [data-color="warning"] { --tip-action-color: var(--color-text-warning-ghost); }
280
+ .Tip > .Actions > [data-color="caution"] { --tip-action-color: var(--color-text-caution-ghost); }
281
+ .Tip > .Actions > [data-color="info"] { --tip-action-color: var(--color-text-info-ghost); }
282
+ .Tip > .Actions > [data-color="discovery"] { --tip-action-color: var(--color-text-discovery-ghost); }
283
+
284
+ /* mobileActions="buttons": each action keeps its Button's color and variant as a full-width capsule under the
285
+ message, as the card in Settings that opens the Support app (IMG_5728, at 430pt): the tinted capsule spans the
286
+ card's content from the symbol's edge, 48 tall, 16 under the text and 16 above the card's edge, its label 17.
287
+ Several stand 10 apart, as the stacked actions of a phone Dialog. [data-variant]: over the Button's own size. */
288
+ .Tip[data-mobile-actions="buttons"] {
289
+ --tip-padding-bottom: 16px;
290
+ --tip-gap: 16px;
291
+ }
292
+
293
+ .Tip[data-mobile-actions="buttons"] > .Actions {
294
+ gap: 10px;
295
+ }
296
+
297
+ .Tip[data-mobile-actions="buttons"] > .Actions > [data-variant] {
298
+ --button-size: 48px;
299
+ --button-font-size: 17px;
300
+ --button-line-height: 22px;
301
+ /* A capsule without `pill` or touch.css too */
302
+ --button-radius: var(--radius-full);
303
+ flex: none;
304
+ width: 100%;
305
+ min-width: 0;
306
+ max-width: none;
307
+ }
308
+
309
+ .Popover {
310
+ filter: none;
311
+ }
312
+
313
+ .Popover > .Tip {
314
+ background: var(--dialog-alert-background, var(--tip-popover-background));
315
+ box-shadow: var(--tip-popover-shadow);
316
+ backdrop-filter: var(--dialog-alert-backdrop-filter, none);
317
+ }
318
+
319
+ .Arrow {
320
+ background: var(--dialog-alert-background, var(--tip-popover-background));
321
+ backdrop-filter: var(--dialog-alert-backdrop-filter, none);
322
+ }
323
+ }
324
+ :where([data-plex-layout="phone"]) .Tip {
325
+ --tip-padding-top: 14px;
326
+ --tip-padding-inline: var(--mobile-layout-margin, 16px);
327
+ --tip-padding-bottom: 0px;
328
+ --tip-gap: 11px;
329
+ --tip-description-gap: 0px;
330
+ --tip-icon-size: 36px;
331
+ --tip-icon-frame-width: 36px;
332
+ --tip-icon-frame-height: 36px;
333
+ --tip-close-size: 22px;
334
+ --tip-close-offset: 17px;
335
+ --tip-close-icon-size: 22px;
336
+ border-radius: 26px;
337
+ background: var(--mobile-surface-grouped-secondary, var(--tip-background));
338
+ }
339
+
340
+ :where([data-plex-layout="phone"]) .Icon {
341
+ margin-inline-start: 0;
342
+ }
343
+
344
+ /* The whole message stops short of Close, with or without a symbol */
345
+ :where([data-plex-layout="phone"]) .Tip:has(> .Close) > .Message {
346
+ padding-inline-end: calc(var(--tip-close-size) + var(--tip-close-offset) - var(--tip-padding-inline) + 1px);
347
+ }
348
+
349
+ :where([data-plex-layout="phone"]) .Tip:has(> .Close):not(:has(> .Icon)) .Title {
350
+ padding-inline-end: 0;
351
+ }
352
+
353
+ /* [data-variant]: over the Button's own soft fill and label. The glyph sits in a 44 target. */
354
+ :where([data-plex-layout="phone"]) .Tip > .Close[data-variant] {
355
+ --tip-close-target-inset: calc((44px - var(--tip-close-size)) / 2);
356
+ --button-uniform-size: 44px;
357
+ --button-background-color: transparent;
358
+ --button-background-color-hover: transparent;
359
+ --button-background-color-active: transparent;
360
+ --button-text-color: var(--mobile-label-tertiary, var(--color-text-tertiary));
361
+ --button-text-color-hover: var(--mobile-label-tertiary, var(--color-text-tertiary));
362
+ top: calc(12px - var(--tip-close-target-inset));
363
+ inset-inline-end: calc(var(--tip-close-offset) - var(--tip-close-target-inset));
364
+ }
365
+
366
+ :where([data-plex-layout="phone"]) .Tip > .Close[data-variant]::before,
367
+ :where([data-plex-layout="phone"]) .Tip > .Close[data-variant]::after {
368
+ inset: var(--tip-close-target-inset);
369
+ }
370
+
371
+ /* The actions reach the bottom edge; beside a symbol they start under the text */
372
+ :where([data-plex-layout="phone"]) .Tip > .Actions {
373
+ flex-flow: column nowrap;
374
+ gap: 0;
375
+ }
376
+
377
+ :where([data-plex-layout="phone"]) .Tip:not([data-mobile-actions="buttons"]):has(> .Icon) > .Actions {
378
+ padding-inline-start: calc(var(--tip-icon-frame-width) + 12px);
379
+ }
380
+
381
+ /* Each action is a row of text in its own color under a separator ([data-variant]: over the Button's own) */
382
+ :where([data-plex-layout="phone"]) .Tip:not([data-mobile-actions="buttons"]) > .Actions > [data-variant] {
383
+ --button-size: auto;
384
+ --button-gutter: 0px;
385
+ --button-radius: 0;
386
+ --button-font-size: 17px;
387
+ --button-font-weight: var(--font-weight-normal);
388
+ --button-line-height: 22px;
389
+ --button-justify-content: flex-start;
390
+ --button-background-color: transparent;
391
+ --button-background-color-hover: transparent;
392
+ --button-background-color-active: transparent;
393
+ --button-text-color: var(--tip-action-color, var(--color-text));
394
+ --button-text-color-hover: var(--tip-action-color, var(--color-text));
395
+ flex: none;
396
+ width: 100%;
397
+ min-width: 0;
398
+ max-width: none;
399
+ min-height: 46px;
400
+ padding: 12px 0;
401
+ border-top: 1px solid var(--color-border);
402
+ /* Set on the row as well: touch.css sets the variable on the button itself (as Toolbar does) */
403
+ font-weight: var(--font-weight-normal);
404
+ text-align: start;
405
+ white-space: normal;
406
+ }
407
+
408
+ :where([data-plex-layout="phone"]) .Tip > .Actions > [data-color="primary"] { --tip-action-color: var(--color-text-primary-ghost); }
409
+ :where([data-plex-layout="phone"]) .Tip > .Actions > [data-color="secondary"] { --tip-action-color: var(--color-text-secondary-ghost); }
410
+ :where([data-plex-layout="phone"]) .Tip > .Actions > [data-color="danger"] { --tip-action-color: var(--color-text-danger-ghost); }
411
+ :where([data-plex-layout="phone"]) .Tip > .Actions > [data-color="success"] { --tip-action-color: var(--color-text-success-ghost); }
412
+ :where([data-plex-layout="phone"]) .Tip > .Actions > [data-color="warning"] { --tip-action-color: var(--color-text-warning-ghost); }
413
+ :where([data-plex-layout="phone"]) .Tip > .Actions > [data-color="caution"] { --tip-action-color: var(--color-text-caution-ghost); }
414
+ :where([data-plex-layout="phone"]) .Tip > .Actions > [data-color="info"] { --tip-action-color: var(--color-text-info-ghost); }
415
+ :where([data-plex-layout="phone"]) .Tip > .Actions > [data-color="discovery"] { --tip-action-color: var(--color-text-discovery-ghost); }
416
+
417
+ /* mobileActions="buttons": each action keeps its Button's color and variant as a full-width capsule under the
418
+ message, as the card in Settings that opens the Support app (IMG_5728, at 430pt): the tinted capsule spans the
419
+ card's content from the symbol's edge, 48 tall, 16 under the text and 16 above the card's edge, its label 17.
420
+ Several stand 10 apart, as the stacked actions of a phone Dialog. [data-variant]: over the Button's own size. */
421
+ :where([data-plex-layout="phone"]) .Tip[data-mobile-actions="buttons"] {
422
+ --tip-padding-bottom: 16px;
423
+ --tip-gap: 16px;
424
+ }
425
+
426
+ :where([data-plex-layout="phone"]) .Tip[data-mobile-actions="buttons"] > .Actions {
427
+ gap: 10px;
428
+ }
429
+
430
+ :where([data-plex-layout="phone"]) .Tip[data-mobile-actions="buttons"] > .Actions > [data-variant] {
431
+ --button-size: 48px;
432
+ --button-font-size: 17px;
433
+ --button-line-height: 22px;
434
+ /* A capsule without `pill` or touch.css too */
435
+ --button-radius: var(--radius-full);
436
+ flex: none;
437
+ width: 100%;
438
+ min-width: 0;
439
+ max-width: none;
440
+ }
441
+
442
+ :where([data-plex-layout="phone"]) .Popover {
443
+ filter: none;
444
+ }
445
+
446
+ :where([data-plex-layout="phone"]) .Popover > .Tip {
447
+ background: var(--dialog-alert-background, var(--tip-popover-background));
448
+ box-shadow: var(--tip-popover-shadow);
449
+ backdrop-filter: var(--dialog-alert-backdrop-filter, none);
450
+ }
451
+
452
+ :where([data-plex-layout="phone"]) .Arrow {
453
+ background: var(--dialog-alert-background, var(--tip-popover-background));
454
+ backdrop-filter: var(--dialog-alert-backdrop-filter, none);
455
+ }
456
+ }