@plexui/styles 0.16.7 → 0.17.1

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 (47) hide show
  1. package/dist/es/components/Accordion/Accordion.module.css +74 -12
  2. package/dist/es/components/Alert/Alert.module.css +196 -0
  3. package/dist/es/components/Breadcrumb/Breadcrumb.module.css +32 -1
  4. package/dist/es/components/Button/Button.module.css +483 -5
  5. package/dist/es/components/Button/NavigationButton.module.css +195 -0
  6. package/dist/es/components/Checkbox/Checkbox.module.css +246 -0
  7. package/dist/es/components/CodeBlock/CodeBlock.module.css +15 -1
  8. package/dist/es/components/DatePicker/Calendar.module.css +216 -0
  9. package/dist/es/components/DatePicker/CalendarNavigationIcon.module.css +19 -0
  10. package/dist/es/components/DateRangePicker/Calendar.module.css +200 -0
  11. package/dist/es/components/DateRangePicker/Trigger.module.css +15 -1
  12. package/dist/es/components/Dialog/Dialog.module.css +456 -0
  13. package/dist/es/components/Field/Field.module.css +713 -0
  14. package/dist/es/components/FieldGroup/FieldGroup.module.css +272 -0
  15. package/dist/es/components/FloatingLabelInput/FloatingLabelInput.module.css +49 -0
  16. package/dist/es/components/FloatingLabelSelect/FloatingLabelSelect.module.css +81 -0
  17. package/dist/es/components/Input/Input.module.css +184 -0
  18. package/dist/es/components/InputGroup/InputGroup.module.css +17 -0
  19. package/dist/es/components/MarkdownEditor/MarkdownEditor.module.css +60 -0
  20. package/dist/es/components/Menu/Menu.module.css +244 -0
  21. package/dist/es/components/NavigationRow/NavigationRow.module.css +82 -0
  22. package/dist/es/components/Page/Page.module.css +278 -0
  23. package/dist/es/components/PageControl/PageControl.module.css +35 -0
  24. package/dist/es/components/Popover/Popover.module.css +20 -0
  25. package/dist/es/components/RadioGroup/RadioGroup.module.css +151 -0
  26. package/dist/es/components/Select/Select.module.css +315 -0
  27. package/dist/es/components/SelectControl/SelectControl.module.css +104 -0
  28. package/dist/es/components/Sidebar/Sidebar.module.css +210 -4
  29. package/dist/es/components/Skeleton/Skeleton.module.css +50 -0
  30. package/dist/es/components/Slider/Slider.module.css +12 -1
  31. package/dist/es/components/Switch/Switch.module.css +143 -0
  32. package/dist/es/components/TabBar/TabBar.module.css +354 -0
  33. package/dist/es/components/Tabs/Tabs.module.css +162 -0
  34. package/dist/es/components/Tip/Tip.module.css +225 -0
  35. package/dist/es/components/Toast/Toast.module.css +207 -0
  36. package/dist/es/components/Toolbar/Toolbar.module.css +1542 -0
  37. package/dist/es/components/Tooltip/Tooltip.module.css +44 -0
  38. package/dist/es/styles/android.css +882 -0
  39. package/dist/es/styles/touch.css +672 -0
  40. package/dist/es/styles/variables-components.css +4 -0
  41. package/dist/es/styles/variables-semantic.css +28 -0
  42. package/dist/es/tokens/resolve.js +2 -0
  43. package/dist/es/tokens/resolve.js.map +1 -1
  44. package/dist/es/tokens/tokens.generated.js +64 -10
  45. package/dist/es/tokens/tokens.generated.js.map +1 -1
  46. package/dist/types/tokens/resolve.d.ts +2 -0
  47. package/package.json +1 -1
@@ -252,6 +252,34 @@
252
252
  scale: 0.92;
253
253
  translate: 0 -10px;
254
254
  }
255
+
256
+ /* A sheet opened by a button grows out of it and shrinks back into it as it closes, as an iOS 27.2 sheet presented
257
+ with a zoom transition from its source does: from the button's frame (the dialog sets the transform that lays the
258
+ panel over it) on SwiftUI's spring(duration: 0.33, bounce: 0.2), --spring-sheet. It shows as it leaves the
259
+ button and fades at the end of its way back, so the move reads, not a fade. With reduced motion it fades in
260
+ place, as every dialog does. */
261
+ @media (prefers-reduced-motion: no-preference) {
262
+ .Content[data-mobile-placement="bottom"] .Panel[data-presented-from] {
263
+ --dialog-panel-hidden-transform: var(--dialog-panel-source-transform);
264
+ --dialog-panel-hidden-opacity: 0;
265
+ }
266
+
267
+ .Transition:is([data-entering-active], [data-entering][data-interrupted])
268
+ .Content[data-mobile-placement="bottom"]
269
+ .Panel[data-presented-from] {
270
+ transition:
271
+ opacity var(--motion-exit) var(--cubic-enter),
272
+ transform var(--spring-sheet-duration) var(--spring-sheet);
273
+ }
274
+
275
+ .Transition:is([data-exiting-active], [data-exiting][data-interrupted])
276
+ .Content[data-mobile-placement="bottom"]
277
+ .Panel[data-presented-from] {
278
+ transition:
279
+ opacity var(--motion-exit) var(--cubic-exit) calc(var(--spring-sheet-duration) * 0.3),
280
+ transform var(--spring-sheet-duration) var(--spring-sheet);
281
+ }
282
+ }
255
283
  }
256
284
  :where([data-plex-layout="phone"]) .Content,
257
285
  :where([data-plex-layout="phone"]) .Content[data-pill] {
@@ -329,6 +357,34 @@
329
357
  .Panel {
330
358
  scale: 0.92;
331
359
  translate: 0 -10px;
360
+ }
361
+
362
+ /* A sheet opened by a button grows out of it and shrinks back into it as it closes, as an iOS 27.2 sheet presented
363
+ with a zoom transition from its source does: from the button's frame (the dialog sets the transform that lays the
364
+ panel over it) on SwiftUI's spring(duration: 0.33, bounce: 0.2), --spring-sheet. It shows as it leaves the
365
+ button and fades at the end of its way back, so the move reads, not a fade. With reduced motion it fades in
366
+ place, as every dialog does. */
367
+ @media (prefers-reduced-motion: no-preference) {
368
+ :where([data-plex-layout="phone"]) .Content[data-mobile-placement="bottom"] .Panel[data-presented-from] {
369
+ --dialog-panel-hidden-transform: var(--dialog-panel-source-transform);
370
+ --dialog-panel-hidden-opacity: 0;
371
+ }
372
+
373
+ :where([data-plex-layout="phone"]) .Transition:is([data-entering-active], [data-entering][data-interrupted])
374
+ .Content[data-mobile-placement="bottom"]
375
+ .Panel[data-presented-from] {
376
+ transition:
377
+ opacity var(--motion-exit) var(--cubic-enter),
378
+ transform var(--spring-sheet-duration) var(--spring-sheet);
379
+ }
380
+
381
+ :where([data-plex-layout="phone"]) .Transition:is([data-exiting-active], [data-exiting][data-interrupted])
382
+ .Content[data-mobile-placement="bottom"]
383
+ .Panel[data-presented-from] {
384
+ transition:
385
+ opacity var(--motion-exit) var(--cubic-exit) calc(var(--spring-sheet-duration) * 0.3),
386
+ transform var(--spring-sheet-duration) var(--spring-sheet);
387
+ }
332
388
  }/* With reduced motion the dialog fades in place, the scrim with it, as a sheet does on iOS with Reduce Motion: no
333
389
  slide or scale, a fade on iOS's time and curve (--motion-reduced-enter-dialog), which its timer holds it entering
334
390
  for, so the touches that land while it shows stay held. The tokens stand in for --motion-enter* and --cubic-enter
@@ -1994,5 +2050,405 @@
1994
2050
  font-size: 15px;
1995
2051
  font-weight: var(--font-weight-normal);
1996
2052
  line-height: 20px;
2053
+ }/* The Plex Android look (`data-platform="android"`, android.css): a Sheet as the reference messenger draws its sheets,
2054
+ with no grabber, its bar the bar of 46px circles (Toolbar.module.css). The circles and the end pill stand 12 from the
2055
+ top edge and the sides, in line with the content's groups, and the top corners are 35, so each sits concentric in its
2056
+ corner (23 + 12). The reference has 24 corners with its circles 11 under the top and 6 from the sides; the owner
2057
+ asked for concentric corners and found 6 too tight (23.11). A bare Close (no Toolbar) stands in the same place.
2058
+ The content 13 under the circles (2 under the bar),
2059
+ 12 from the sides (as a page's groups) and 16 over the gesture bar; a footer's
2060
+ actions 48 tall, 4 apart, 12 from the sides (in line with the groups) and 12 over the gesture bar, over the sheet's
2061
+ color at 80% that fades in over its top 24px (no line, no blur). */@media (max-width: 767px) {
2062
+ [data-platform="android"] .Content[data-mobile-variant="sheet"] {
2063
+ --dialog-sheet-radius: 35px;
2064
+ --dialog-sheet-action-height: 48px;
2065
+ --dialog-sheet-close-size: 46px;
2066
+ --dialog-sheet-action-inset-block: 12px;
2067
+ --dialog-sheet-action-inset-inline: 12px;
2068
+ }
2069
+
2070
+ [data-platform="android"] .Content[data-mobile-variant="sheet"] .Panel > .Body,
2071
+ [data-platform="android"] .Content[data-mobile-variant="sheet"] .Panel > .Body:has(> .LargeTitle > *) {
2072
+ padding-inline: 12px;
2073
+ padding-top: calc(var(--dialog-header-height, 0px) + 2px);
2074
+ padding-bottom: calc(var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)) + 16px + var(--dialog-footer-height, 0px));
2075
+ scroll-padding-top: calc(var(--dialog-header-height, 0px) + 2px);
2076
+ }
2077
+
2078
+ [data-platform="android"] .Content[data-mobile-variant="sheet"] .Panel:has(> .Footer, > [data-toolbar][data-placement="bottom"]) > .Body {
2079
+ padding-bottom: calc(8px + var(--dialog-footer-height, 0px));
2080
+ }
2081
+
2082
+ [data-platform="android"] .Content[data-mobile-variant="sheet"] .Footer {
2083
+ gap: 4px;
2084
+ padding: 12px 12px calc(var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)) + 12px);
2085
+ }
2086
+
2087
+ [data-platform="android"] .Content[data-mobile-variant="sheet"] .Footer > :where(button, a, [role="link"]) {
2088
+ padding-block: 12px;
2089
+ }
2090
+
2091
+ /* A footer's main action is the reference's big button: the accent, flat, with no edge of glass (no sheen, no rim,
2092
+ no shadow); held, it shrinks a little and ripples (Button). */
2093
+ [data-platform="android"] .Content:is([data-mobile-variant="sheet"], [data-mobile-variant="alert"]) {
2094
+ --toolbar-prominent-sheen: none;
2095
+ --toolbar-prominent-shadow: none;
2096
+ }
2097
+
2098
+ /* A sheet's Header meets content scrolled under it as the sheet's bar does on Android (Toolbar.module.css), whatever
2099
+ its `background`: no line, the sheet's color at 63% over a light blur, let go over the last 32px. */
2100
+ [data-platform="android"] .Content[data-mobile-variant="sheet"] .Header[data-background]::after,
2101
+ [data-platform="android"] .Content[data-mobile-variant="sheet"] .Header::after {
2102
+ inset: 0 0 -12px;
2103
+ border-bottom: 0;
2104
+ background: color-mix(in srgb, var(--dialog-panel-background, var(--color-surface-elevated)) 63%, transparent);
2105
+ backdrop-filter: blur(8px);
2106
+ opacity: 0;
2107
+ -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent);
2108
+ mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent);
2109
+ }
2110
+
2111
+ [data-platform="android"] .Content[data-mobile-variant="sheet"] .Header[data-scrolled][data-background]::after,
2112
+ [data-platform="android"] .Content[data-mobile-variant="sheet"] .Header[data-scrolled]::after {
2113
+ opacity: 1;
2114
+ }
2115
+
2116
+ [data-platform="android"] .Content[data-mobile-variant="sheet"] .Header::before {
2117
+ display: none;
2118
+ }
2119
+
2120
+ /* Under a sheet's actions Android lays the sheet's color at 80%, faded in over the footer's top 24px: content scrolls
2121
+ away under it, unblurred, and stands clear of it at rest. */
2122
+ [data-platform="android"] .Content[data-mobile-variant="sheet"] .Footer::before {
2123
+ inset: 0;
2124
+ background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--dialog-panel-background, var(--color-surface-elevated)) 80%, transparent) 24px);
2125
+ backdrop-filter: none;
2126
+ -webkit-mask-image: none;
2127
+ mask-image: none;
2128
+ }
1997
2129
  }
2130
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Content[data-mobile-variant="sheet"] {
2131
+ --dialog-sheet-radius: 35px;
2132
+ --dialog-sheet-action-height: 48px;
2133
+ --dialog-sheet-close-size: 46px;
2134
+ --dialog-sheet-action-inset-block: 12px;
2135
+ --dialog-sheet-action-inset-inline: 12px;
2136
+ }
2137
+
2138
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Content[data-mobile-variant="sheet"] .Panel > .Body,
2139
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Content[data-mobile-variant="sheet"] .Panel > .Body:has(> .LargeTitle > *) {
2140
+ padding-inline: 12px;
2141
+ padding-top: calc(var(--dialog-header-height, 0px) + 2px);
2142
+ padding-bottom: calc(var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)) + 16px + var(--dialog-footer-height, 0px));
2143
+ scroll-padding-top: calc(var(--dialog-header-height, 0px) + 2px);
2144
+ }
2145
+
2146
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Content[data-mobile-variant="sheet"] .Panel:has(> .Footer, > [data-toolbar][data-placement="bottom"]) > .Body {
2147
+ padding-bottom: calc(8px + var(--dialog-footer-height, 0px));
2148
+ }
2149
+
2150
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Content[data-mobile-variant="sheet"] .Footer {
2151
+ gap: 4px;
2152
+ padding: 12px 12px calc(var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)) + 12px);
2153
+ }
2154
+
2155
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Content[data-mobile-variant="sheet"] .Footer > :where(button, a, [role="link"]) {
2156
+ padding-block: 12px;
2157
+ }
2158
+
2159
+ /* A footer's main action is the reference's big button: the accent, flat, with no edge of glass (no sheen, no rim,
2160
+ no shadow); held, it shrinks a little and ripples (Button). */
2161
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Content:is([data-mobile-variant="sheet"], [data-mobile-variant="alert"]) {
2162
+ --toolbar-prominent-sheen: none;
2163
+ --toolbar-prominent-shadow: none;
2164
+ }
2165
+
2166
+ /* A sheet's Header meets content scrolled under it as the sheet's bar does on Android (Toolbar.module.css), whatever
2167
+ its `background`: no line, the sheet's color at 63% over a light blur, let go over the last 32px. */
2168
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Content[data-mobile-variant="sheet"] .Header[data-background]::after,
2169
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Content[data-mobile-variant="sheet"] .Header::after {
2170
+ inset: 0 0 -12px;
2171
+ border-bottom: 0;
2172
+ background: color-mix(in srgb, var(--dialog-panel-background, var(--color-surface-elevated)) 63%, transparent);
2173
+ backdrop-filter: blur(8px);
2174
+ opacity: 0;
2175
+ -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent);
2176
+ mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent);
2177
+ }
2178
+
2179
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Content[data-mobile-variant="sheet"] .Header[data-scrolled][data-background]::after,
2180
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Content[data-mobile-variant="sheet"] .Header[data-scrolled]::after {
2181
+ opacity: 1;
2182
+ }
2183
+
2184
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Content[data-mobile-variant="sheet"] .Header::before {
2185
+ display: none;
2186
+ }
2187
+
2188
+ /* Under a sheet's actions Android lays the sheet's color at 80%, faded in over the footer's top 24px: content scrolls
2189
+ away under it, unblurred, and stands clear of it at rest. */
2190
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Content[data-mobile-variant="sheet"] .Footer::before {
2191
+ inset: 0;
2192
+ background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--dialog-panel-background, var(--color-surface-elevated)) 80%, transparent) 24px);
2193
+ backdrop-filter: none;
2194
+ -webkit-mask-image: none;
2195
+ mask-image: none;
2196
+ }/* The Plex Android look (`data-platform="android"`, android.css) of an alert, after @plexui/react-native's Dialog on
2197
+ Android (decision 0026) and the Android reference's dialogs: a flat panel 24 from the screen's sides and at most
2198
+ 356 wide, 21px corners, the card's
2199
+ color (white; at night the gray of a container), no glass and no shadow, over a dim of 50% black. The title Medium
2200
+ 20/24 and the message 16/19 (the reference's 18.7 line) in the text color stand 24 in, 21 from the top (the title's
2201
+ baseline 40 under it), 13 apart (33 between their first baselines) and 20 over the actions. The
2202
+ actions are text buttons in a row at the end, 9 from the sides (their labels 21 in), 6 over and 9 under them, 8
2203
+ apart: 40 tall, at least 64 wide, 12 at their sides, Medium 16 in the accent's text (a destructive one red), a
2204
+ press the label's color at
2205
+ 10% in a pill. Three or more stack at the end, the last on top. A field stands 24 in, 20 over the actions. */@media (max-width: 767px) {
2206
+ [data-platform="android"] .Overlay:has(+ .Content[data-mobile-variant="alert"]) {
2207
+ background: rgb(0 0 0 / 50%);
2208
+ }
2209
+
2210
+ [data-platform="android"] .Content[data-mobile-variant="alert"] {
2211
+ --dialog-alert-width: min(100vw - 48px, 356px);
2212
+ --dialog-alert-radius: 21px;
2213
+ --dialog-alert-padding: 0;
2214
+ --dialog-alert-background: var(--android-dialog-surface);
2215
+ --dialog-alert-backdrop-filter: none;
2216
+ --dialog-alert-shadow: none;
2217
+ --dialog-alert-header-gap: 13px;
2218
+ --dialog-alert-header-padding: 21px 24px 20px;
2219
+ --dialog-alert-message-color: var(--color-text);
2220
+ --dialog-alert-message-size: 16px;
2221
+ --dialog-alert-message-leading: 19px;
2222
+ --dialog-alert-action-height: 40px;
2223
+ --dialog-alert-action-gap: 8px;
2224
+ --dialog-alert-action-font-weight: var(--font-weight-medium);
2225
+ --dialog-alert-preferred-font-weight: var(--font-weight-medium);
2226
+ --dialog-alert-field-height: 48px;
2227
+ }
2228
+
2229
+ [data-platform="android"] .Content[data-mobile-variant="alert"] .Panel {
2230
+ gap: 0;
2231
+ }
2232
+
2233
+ [data-platform="android"] .Content[data-mobile-variant="alert"] .Header,
2234
+ [data-platform="android"] .Content[data-mobile-variant="alert"] .Header:not(:has(.Description)) {
2235
+ text-align: start;
2236
+ }
2237
+
2238
+ [data-platform="android"] .Content[data-mobile-variant="alert"] .Header + .Footer {
2239
+ margin-top: 0;
2240
+ }
2241
+
2242
+ [data-platform="android"] .Content[data-mobile-variant="alert"] .Title {
2243
+ font-size: 20px;
2244
+ font-weight: var(--font-weight-medium);
2245
+ line-height: 24px;
2246
+ }
2247
+
2248
+ [data-platform="android"] .Content[data-mobile-variant="alert"] .Body {
2249
+ margin-inline: 0;
2250
+ padding: 0 24px 20px;
2251
+ }
2252
+
2253
+ [data-platform="android"] .Content[data-mobile-variant="alert"] .Footer,
2254
+ [data-platform="android"] .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"], :has(> :nth-child(3))) {
2255
+ flex-flow: row wrap;
2256
+ justify-content: flex-end;
2257
+ gap: 8px;
2258
+ padding: 6px 9px 9px;
2259
+ }
2260
+
2261
+ [data-platform="android"] .Content[data-mobile-variant="alert"] .Footer:is([data-mobile-layout="stacked"], :has(> :nth-child(3))) {
2262
+ flex-flow: column-reverse;
2263
+ align-items: flex-end;
2264
+ padding-block: 8px;
2265
+ }
2266
+
2267
+ [data-platform="android"] .Content[data-mobile-variant="alert"] .Footer > :where(button, a, [role="link"]),
2268
+ [data-platform="android"] .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"]) > :where(:first-child:nth-last-child(-n + 2), :nth-child(2):last-child) {
2269
+ --button-size: 40px;
2270
+ --button-radius: 20px;
2271
+ --button-gutter: 12px;
2272
+ --button-font-size: 16px;
2273
+ --button-background-color: transparent;
2274
+ --button-background-color-hover: transparent;
2275
+ --button-background-color-active: color-mix(in srgb, var(--button-text-color) 10%, transparent);
2276
+ --button-text-color: var(--android-accent-text);
2277
+ --button-text-color-hover: var(--android-accent-text);
2278
+ flex: 0 0 auto;
2279
+ width: auto;
2280
+ min-width: 64px;
2281
+ min-height: 40px;
2282
+ padding-block: 8px;
2283
+ line-height: 20px;
2284
+ }
2285
+
2286
+ [data-platform="android"] .Content[data-mobile-variant="alert"] .Footer > [data-color="danger"] {
2287
+ --button-text-color: var(--android-danger-text);
2288
+ --button-text-color-hover: var(--android-danger-text);
2289
+ --button-background-color: transparent;
2290
+ --button-background-color-hover: transparent;
2291
+ --button-background-color-active: color-mix(in srgb, var(--android-danger-text) 10%, transparent);
2292
+ }
2293
+
2294
+ [data-platform="android"] .Content[data-mobile-variant="alert"] .Footer > :where(button, a, [role="link"])[data-disabled] {
2295
+ opacity: 0.5;
2296
+ }
2297
+ }
2298
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Overlay:has(+ .Content[data-mobile-variant="alert"]) {
2299
+ background: rgb(0 0 0 / 50%);
2300
+ }
2301
+
2302
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Content[data-mobile-variant="alert"] {
2303
+ --dialog-alert-width: min(100vw - 48px, 356px);
2304
+ --dialog-alert-radius: 21px;
2305
+ --dialog-alert-padding: 0;
2306
+ --dialog-alert-background: var(--android-dialog-surface);
2307
+ --dialog-alert-backdrop-filter: none;
2308
+ --dialog-alert-shadow: none;
2309
+ --dialog-alert-header-gap: 13px;
2310
+ --dialog-alert-header-padding: 21px 24px 20px;
2311
+ --dialog-alert-message-color: var(--color-text);
2312
+ --dialog-alert-message-size: 16px;
2313
+ --dialog-alert-message-leading: 19px;
2314
+ --dialog-alert-action-height: 40px;
2315
+ --dialog-alert-action-gap: 8px;
2316
+ --dialog-alert-action-font-weight: var(--font-weight-medium);
2317
+ --dialog-alert-preferred-font-weight: var(--font-weight-medium);
2318
+ --dialog-alert-field-height: 48px;
2319
+ }
2320
+
2321
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Content[data-mobile-variant="alert"] .Panel {
2322
+ gap: 0;
2323
+ }
2324
+
2325
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Content[data-mobile-variant="alert"] .Header,
2326
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Content[data-mobile-variant="alert"] .Header:not(:has(.Description)) {
2327
+ text-align: start;
2328
+ }
2329
+
2330
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Content[data-mobile-variant="alert"] .Header + .Footer {
2331
+ margin-top: 0;
2332
+ }
2333
+
2334
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Content[data-mobile-variant="alert"] .Title {
2335
+ font-size: 20px;
2336
+ font-weight: var(--font-weight-medium);
2337
+ line-height: 24px;
2338
+ }
2339
+
2340
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Content[data-mobile-variant="alert"] .Body {
2341
+ margin-inline: 0;
2342
+ padding: 0 24px 20px;
2343
+ }
2344
+
2345
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Content[data-mobile-variant="alert"] .Footer,
2346
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"], :has(> :nth-child(3))) {
2347
+ flex-flow: row wrap;
2348
+ justify-content: flex-end;
2349
+ gap: 8px;
2350
+ padding: 6px 9px 9px;
2351
+ }
2352
+
2353
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Content[data-mobile-variant="alert"] .Footer:is([data-mobile-layout="stacked"], :has(> :nth-child(3))) {
2354
+ flex-flow: column-reverse;
2355
+ align-items: flex-end;
2356
+ padding-block: 8px;
2357
+ }
2358
+
2359
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Content[data-mobile-variant="alert"] .Footer > :where(button, a, [role="link"]), :where([data-plex-layout="phone"]) [data-platform="android"] .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"]) > :where(:first-child:nth-last-child(-n + 2), :nth-child(2):last-child) {
2360
+ --button-size: 40px;
2361
+ --button-radius: 20px;
2362
+ --button-gutter: 12px;
2363
+ --button-font-size: 16px;
2364
+ --button-background-color: transparent;
2365
+ --button-background-color-hover: transparent;
2366
+ --button-background-color-active: color-mix(in srgb, var(--button-text-color) 10%, transparent);
2367
+ --button-text-color: var(--android-accent-text);
2368
+ --button-text-color-hover: var(--android-accent-text);
2369
+ flex: 0 0 auto;
2370
+ width: auto;
2371
+ min-width: 64px;
2372
+ min-height: 40px;
2373
+ padding-block: 8px;
2374
+ line-height: 20px;
2375
+ }
2376
+
2377
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Content[data-mobile-variant="alert"] .Footer > [data-color="danger"] {
2378
+ --button-text-color: var(--android-danger-text);
2379
+ --button-text-color-hover: var(--android-danger-text);
2380
+ --button-background-color: transparent;
2381
+ --button-background-color-hover: transparent;
2382
+ --button-background-color-active: color-mix(in srgb, var(--android-danger-text) 10%, transparent);
2383
+ }
2384
+
2385
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Content[data-mobile-variant="alert"] .Footer > :where(button, a, [role="link"])[data-disabled] {
2386
+ opacity: 0.5;
2387
+ }/* Android sheet search. While the search of a Sheet's bar is open (`Toolbar.Content search`, Toolbar.module.css), the
2388
+ Sheet stands at the full screen with no corners, as the reference messenger's sheets do while they search, and
2389
+ settles back as it closes: its height and corners on the search's 380ms EASE_OUT_QUINT (android.css). Its entrance,
2390
+ its exit and a drag keep their own motion. */@media (max-width: 767px) {
2391
+ [data-platform="android"] .Content[data-mobile-variant="sheet"][data-mobile-placement="bottom"] > .Panel:has(> [data-toolbar][data-search]) {
2392
+ interpolate-size: allow-keywords;
2393
+ }
2394
+
2395
+ [data-platform="android"] .Transition:not([data-entering], [data-entering-active], [data-exiting], [data-exiting-active]) .Content[data-mobile-variant="sheet"][data-mobile-placement="bottom"] > .Panel:has(> [data-toolbar][data-search]) {
2396
+ transition:
2397
+ scale var(--motion-enter-large) var(--cubic-enter),
2398
+ translate var(--motion-enter-large) var(--cubic-enter),
2399
+ height var(--android-search-duration, 380ms) var(--android-search-easing, cubic-bezier(0.23, 1, 0.32, 1)),
2400
+ max-height var(--android-search-duration, 380ms) var(--android-search-easing, cubic-bezier(0.23, 1, 0.32, 1)),
2401
+ border-radius var(--android-search-duration, 380ms) var(--android-search-easing, cubic-bezier(0.23, 1, 0.32, 1));
2402
+ }
2403
+
2404
+ /* Set as the panel's sizes, so a panel sized from them (a height of its own at the sheet's full height) follows */
2405
+ [data-platform="android"] .Content[data-mobile-variant="sheet"][data-mobile-placement="bottom"] > .Panel:has(> [data-toolbar][data-search-open]) {
2406
+ --dialog-panel-height: var(--dialog-viewport-height, 100dvh);
2407
+ --dialog-panel-max-height: var(--dialog-viewport-height, 100dvh);
2408
+ --dialog-panel-radius: 0;
2409
+ }
2410
+ }
2411
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Content[data-mobile-variant="sheet"][data-mobile-placement="bottom"] > .Panel:has(> [data-toolbar][data-search]) {
2412
+ interpolate-size: allow-keywords;
2413
+ }
2414
+
2415
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Transition:not([data-entering], [data-entering-active], [data-exiting], [data-exiting-active]) .Content[data-mobile-variant="sheet"][data-mobile-placement="bottom"] > .Panel:has(> [data-toolbar][data-search]) {
2416
+ transition:
2417
+ scale var(--motion-enter-large) var(--cubic-enter),
2418
+ translate var(--motion-enter-large) var(--cubic-enter),
2419
+ height var(--android-search-duration, 380ms) var(--android-search-easing, cubic-bezier(0.23, 1, 0.32, 1)),
2420
+ max-height var(--android-search-duration, 380ms) var(--android-search-easing, cubic-bezier(0.23, 1, 0.32, 1)),
2421
+ border-radius var(--android-search-duration, 380ms) var(--android-search-easing, cubic-bezier(0.23, 1, 0.32, 1));
2422
+ }
2423
+
2424
+ /* Set as the panel's sizes, so a panel sized from them (a height of its own at the sheet's full height) follows */
2425
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Content[data-mobile-variant="sheet"][data-mobile-placement="bottom"] > .Panel:has(> [data-toolbar][data-search-open]) {
2426
+ --dialog-panel-height: var(--dialog-viewport-height, 100dvh);
2427
+ --dialog-panel-max-height: var(--dialog-viewport-height, 100dvh);
2428
+ --dialog-panel-radius: 0;
2429
+ }@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
2430
+ [data-platform="android"] .Content[data-mobile-variant="sheet"][data-mobile-placement="bottom"] > .Panel:has(> [data-toolbar][data-search]) {
2431
+ --android-search-duration: 0s;
2432
+ }
2433
+ }@media (prefers-reduced-motion: reduce) {
2434
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Content[data-mobile-variant="sheet"][data-mobile-placement="bottom"] > .Panel:has(> [data-toolbar][data-search]) {
2435
+ --android-search-duration: 0s;
2436
+ }
2437
+ }/* Android press ripple. Held, an alert's button ripples as the reference's dialog buttons: in its own pill, in its
2438
+ label's color at 10%, without the scale of a large button (android.css, Android press ripple; Button.module.css). */@media (max-width: 767px) {
2439
+ [data-platform="android"] .Content[data-mobile-variant="alert"] .Footer > [data-variant][data-variant] {
2440
+ --android-ripple-ink: color-mix(in srgb, var(--button-text-color) 10%, transparent);
2441
+ }
2442
+
2443
+ [data-platform="android"] .Content[data-mobile-variant="alert"] .Footer > [data-variant][data-variant]:active {
2444
+ scale: none;
2445
+ }
2446
+ }
2447
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Content[data-mobile-variant="alert"] .Footer > [data-variant][data-variant] {
2448
+ --android-ripple-ink: color-mix(in srgb, var(--button-text-color) 10%, transparent);
2449
+ }
2450
+
2451
+ :where([data-plex-layout="phone"]) [data-platform="android"] .Content[data-mobile-variant="alert"] .Footer > [data-variant][data-variant]:active {
2452
+ scale: none;
2453
+ }
1998
2454
  }