@plexui/styles 0.16.2 → 0.16.3
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.
|
@@ -329,7 +329,26 @@
|
|
|
329
329
|
.Panel {
|
|
330
330
|
scale: 0.92;
|
|
331
331
|
translate: 0 -10px;
|
|
332
|
-
}
|
|
332
|
+
}/* With reduced motion the dialog fades in place, the scrim with it, as a sheet does on iOS with Reduce Motion: no
|
|
333
|
+
slide or scale, a fade on iOS's time and curve (--motion-reduced-enter-dialog), which its timer holds it entering
|
|
334
|
+
for, so the touches that land while it shows stay held. The tokens stand in for --motion-enter* and --cubic-enter
|
|
335
|
+
around the dialog, every placement alike; the panel's own scale under a sheet over it stays at once. */@media (prefers-reduced-motion: reduce) {
|
|
336
|
+
.Transition {
|
|
337
|
+
--motion-enter: var(--motion-reduced-enter-dialog);
|
|
338
|
+
--motion-enter-large: var(--motion-reduced-enter-dialog);
|
|
339
|
+
--cubic-enter: var(--cubic-reduced-enter-dialog);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.Content.Content {
|
|
343
|
+
--dialog-panel-hidden-transform: none;
|
|
344
|
+
--dialog-panel-hidden-opacity: 0;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.Panel {
|
|
348
|
+
--motion-enter: 0ms;
|
|
349
|
+
--motion-enter-large: 0ms;
|
|
350
|
+
}
|
|
351
|
+
}.CloseButton {
|
|
333
352
|
position: absolute;
|
|
334
353
|
top: 0.75rem;
|
|
335
354
|
/* Logical, as the header actions, so a right-to-left dialog keeps it clear of a leading action */
|
|
@@ -1230,5 +1230,17 @@
|
|
|
1230
1230
|
started a whole --motion-enter late, after its fade. */
|
|
1231
1231
|
:where([data-plex-layout="phone"]) .Menu:is([data-entering], [data-exiting]) .MenuList {
|
|
1232
1232
|
transition-delay: 0s;
|
|
1233
|
+
}/* With reduced motion a menu fades in place, as on iOS with Reduce Motion (Files' ⋯ menu on the iOS 27.2 simulator: no
|
|
1234
|
+
growth from the button): no scale, a fade on iOS's time and curve, which its timer holds it entering for, so the
|
|
1235
|
+
touches that land while it shows stay held. A submenu keeps showing at once. */@media (prefers-reduced-motion: reduce) {
|
|
1236
|
+
.Menu[data-entering] .MenuList:not([data-submenu], [data-submenu-phone]) {
|
|
1237
|
+
transform: none;
|
|
1233
1238
|
}
|
|
1239
|
+
|
|
1240
|
+
.Menu:is([data-entering-active], [data-entering][data-interrupted]) .MenuList:not([data-submenu], [data-submenu-phone]) {
|
|
1241
|
+
transition-property: opacity;
|
|
1242
|
+
transition-duration: var(--motion-reduced-enter-menu);
|
|
1243
|
+
transition-timing-function: var(--cubic-reduced-enter-menu);
|
|
1244
|
+
}
|
|
1245
|
+
}
|
|
1234
1246
|
}
|
|
@@ -408,6 +408,15 @@
|
|
|
408
408
|
/* A submenu: it opens 100 ms after the pointer arrives, then shows at once */
|
|
409
409
|
--motion-enter-quick: 100ms;
|
|
410
410
|
--motion-exit-quick: 100ms;
|
|
411
|
+
/* With reduced motion a Dialog and a Menu fade in place instead, as on iOS with Reduce Motion (no slide, no
|
|
412
|
+
growth). Time and curve fitted to the fade on the iOS 27.2 simulator (a sheet: 65% at 100ms, 92% at 200ms, 99% at
|
|
413
|
+
300ms; a menu: 44% at 100ms, 74% at 200ms, 92% at 300ms, 99% at 400ms). Their timers hold them entering, and
|
|
414
|
+
touches with them, for the same time (reducedMotionEnter in components/Transition/shared). Not zeroed with
|
|
415
|
+
reduced motion: a fade is not motion. */
|
|
416
|
+
--motion-reduced-enter-dialog: 350ms;
|
|
417
|
+
--cubic-reduced-enter-dialog: cubic-bezier(0.3, 1, 0.7, 1);
|
|
418
|
+
--motion-reduced-enter-menu: 500ms;
|
|
419
|
+
--cubic-reduced-enter-menu: cubic-bezier(0.4, 1, 0.7, 1);
|
|
411
420
|
|
|
412
421
|
/* =============================================
|
|
413
422
|
Scrollbar
|