@plexui/styles 0.16.1 → 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.
- package/dist/es/components/Dialog/Dialog.module.css +20 -1
- package/dist/es/components/Menu/Menu.module.css +12 -0
- package/dist/es/components/Sidebar/Sidebar.module.css +2 -2
- package/dist/es/components/Sortable/Sortable.module.css +6 -1
- package/dist/es/styles/variables-semantic.css +9 -0
- package/package.json +1 -1
|
@@ -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
|
}
|
|
@@ -1105,7 +1105,7 @@
|
|
|
1105
1105
|
}
|
|
1106
1106
|
|
|
1107
1107
|
/* A selected cell hides the separators at its edges, as in iOS lists. */
|
|
1108
|
-
.MobileSidebar:not(:where(.App *)) .Menu :is(.MenuButton, .MenuSubButton)[data-active="true"]::after, .MobileSidebar:not(:where(.App *)) .Menu :is(.MenuItem, .MenuSubItem):has(> :is(.MenuButton, .MenuSubButton)[data-active="true"], > * > :is(.MenuButton, .MenuSubButton)[data-active="true"]) +
|
|
1108
|
+
.MobileSidebar:not(:where(.App *)) .Menu :is(.MenuButton, .MenuSubButton)[data-active="true"]::after, .MobileSidebar:not(:where(.App *)) .Menu :is(.MenuItem, .MenuSubItem):has(> :is(.MenuButton, .MenuSubButton)[data-active="true"], > * > :is(.MenuButton, .MenuSubButton)[data-active="true"]) + :is(.MenuItem, .MenuSubItem) > :is(.MenuButton, .MenuSubButton)::after, .MobileSidebar:not(:where(.App *)) .Menu :is(.MenuItem, .MenuSubItem):has(> :is(.MenuButton, .MenuSubButton)[data-active="true"], > * > :is(.MenuButton, .MenuSubButton)[data-active="true"]) + :is(.MenuItem, .MenuSubItem) > * > :is(.MenuButton, .MenuSubButton)::after, .MobileSidebar:not(:where(.App *)) .Menu .MenuItem:has(> .MenuButton[data-active="true"], > * > .MenuButton[data-active="true"]) > .MenuSub > :first-child > :is(.MenuButton, .MenuSubButton)::after {
|
|
1109
1109
|
opacity: 0;
|
|
1110
1110
|
}
|
|
1111
1111
|
|
|
@@ -1306,7 +1306,7 @@
|
|
|
1306
1306
|
}
|
|
1307
1307
|
|
|
1308
1308
|
/* A selected cell hides the separators at its edges, as in iOS lists. */
|
|
1309
|
-
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Menu :is(.MenuButton, .MenuSubButton)[data-active="true"]::after, :where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Menu :is(.MenuItem, .MenuSubItem):has(> :is(.MenuButton, .MenuSubButton)[data-active="true"], > * > :is(.MenuButton, .MenuSubButton)[data-active="true"]) +
|
|
1309
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Menu :is(.MenuButton, .MenuSubButton)[data-active="true"]::after, :where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Menu :is(.MenuItem, .MenuSubItem):has(> :is(.MenuButton, .MenuSubButton)[data-active="true"], > * > :is(.MenuButton, .MenuSubButton)[data-active="true"]) + :is(.MenuItem, .MenuSubItem) > :is(.MenuButton, .MenuSubButton)::after, :where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Menu :is(.MenuItem, .MenuSubItem):has(> :is(.MenuButton, .MenuSubButton)[data-active="true"], > * > :is(.MenuButton, .MenuSubButton)[data-active="true"]) + :is(.MenuItem, .MenuSubItem) > * > :is(.MenuButton, .MenuSubButton)::after, :where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Menu .MenuItem:has(> .MenuButton[data-active="true"], > * > .MenuButton[data-active="true"]) > .MenuSub > :first-child > :is(.MenuButton, .MenuSubButton)::after {
|
|
1310
1310
|
opacity: 0;
|
|
1311
1311
|
}
|
|
1312
1312
|
|
|
@@ -220,7 +220,12 @@
|
|
|
220
220
|
-webkit-user-select: none;
|
|
221
221
|
-moz-user-select: none;
|
|
222
222
|
user-select: none;
|
|
223
|
-
}/* Items under the pointer stay still while a drag runs: no hover, no row actions
|
|
223
|
+
}/* Items under the pointer stay still while a drag runs: no hover, no row actions, no text selection (a finger drag
|
|
224
|
+
skips the page-wide .Dragging, and iOS has no selectstart to stop it) */.Sortable[data-dragging] {
|
|
225
|
+
-webkit-user-select: none;
|
|
226
|
+
-moz-user-select: none;
|
|
227
|
+
user-select: none;
|
|
228
|
+
}.Sortable[data-dragging] > * {
|
|
224
229
|
pointer-events: none;
|
|
225
230
|
}.Sortable[data-dragging] .Target {
|
|
226
231
|
pointer-events: auto;
|
|
@@ -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
|