@plexui/styles 0.17.0 → 0.17.2
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.
|
@@ -1241,7 +1241,9 @@
|
|
|
1241
1241
|
the --toolbar-prominent tokens): native setup sheets draw Continue 0/135/254, lighter along its top and
|
|
1242
1242
|
bottom and darker at its sides (IMG_5432 Wallet, IMG_5509; owner 08.11). An alert's preferred action is the
|
|
1243
1243
|
same: the kit's Default role is the accent fill with a white label (iOS 27, Alerts _Buttons 5446:6658), as
|
|
1244
|
-
native draws a preferredAction (0082f7, dark 13a3ff); owner 12.11.
|
|
1244
|
+
native draws a preferredAction (0082f7, dark 13a3ff); owner 12.11. The alert's is one flat color, top to
|
|
1245
|
+
bottom, with no sheen and no edge (iOS 27.2 ref-app alert-2: 0082f7 on every row of Allow, 24.11): only the
|
|
1246
|
+
sheet's takes them. */
|
|
1245
1247
|
.Content:is([data-mobile-variant="sheet"], [data-mobile-variant="alert"]) .Footer > :where(button, a)[data-variant="solid"]:where([data-color="primary"], [data-color="info"]):not([data-disabled]) {
|
|
1246
1248
|
--button-background-color: var(--toolbar-prominent-background);
|
|
1247
1249
|
--button-background-color-hover: var(--toolbar-prominent-background-hover);
|
|
@@ -1249,10 +1251,10 @@
|
|
|
1249
1251
|
--button-text-color: var(--toolbar-prominent-color);
|
|
1250
1252
|
}
|
|
1251
1253
|
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1254
|
+
.Content[data-mobile-variant="sheet"] .Footer > :where(button, a)[data-variant="solid"]:where([data-color="primary"], [data-color="info"]):not([data-disabled])::before {
|
|
1255
|
+
background-image: var(--toolbar-prominent-sheen);
|
|
1256
|
+
box-shadow: var(--toolbar-prominent-shadow);
|
|
1257
|
+
}
|
|
1256
1258
|
|
|
1257
1259
|
/* A sheet's footer lays out its actions as an iOS setup sheet does: the main one on top and another under it as
|
|
1258
1260
|
a plain tinted button, with no face (Wallet's Create a Pass, IMG_5432: Continue 53pt high and Create Pass
|
|
@@ -1840,7 +1842,9 @@
|
|
|
1840
1842
|
the --toolbar-prominent tokens): native setup sheets draw Continue 0/135/254, lighter along its top and
|
|
1841
1843
|
bottom and darker at its sides (IMG_5432 Wallet, IMG_5509; owner 08.11). An alert's preferred action is the
|
|
1842
1844
|
same: the kit's Default role is the accent fill with a white label (iOS 27, Alerts _Buttons 5446:6658), as
|
|
1843
|
-
native draws a preferredAction (0082f7, dark 13a3ff); owner 12.11.
|
|
1845
|
+
native draws a preferredAction (0082f7, dark 13a3ff); owner 12.11. The alert's is one flat color, top to
|
|
1846
|
+
bottom, with no sheen and no edge (iOS 27.2 ref-app alert-2: 0082f7 on every row of Allow, 24.11): only the
|
|
1847
|
+
sheet's takes them. */
|
|
1844
1848
|
:where([data-plex-layout="phone"]) .Content:is([data-mobile-variant="sheet"], [data-mobile-variant="alert"]) .Footer > :where(button, a)[data-variant="solid"]:where([data-color="primary"], [data-color="info"]):not([data-disabled]) {
|
|
1845
1849
|
--button-background-color: var(--toolbar-prominent-background);
|
|
1846
1850
|
--button-background-color-hover: var(--toolbar-prominent-background-hover);
|
|
@@ -1848,10 +1852,10 @@
|
|
|
1848
1852
|
--button-text-color: var(--toolbar-prominent-color);
|
|
1849
1853
|
}
|
|
1850
1854
|
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Footer > :where(button, a)[data-variant="solid"]:where([data-color="primary"], [data-color="info"]):not([data-disabled])::before {
|
|
1856
|
+
background-image: var(--toolbar-prominent-sheen);
|
|
1857
|
+
box-shadow: var(--toolbar-prominent-shadow);
|
|
1858
|
+
}
|
|
1855
1859
|
|
|
1856
1860
|
/* A sheet's footer lays out its actions as an iOS setup sheet does: the main one on top and another under it as
|
|
1857
1861
|
a plain tinted button, with no face (Wallet's Create a Pass, IMG_5432: Continue 53pt high and Create Pass
|
|
@@ -141,6 +141,8 @@
|
|
|
141
141
|
padding: 0 12px 8px;
|
|
142
142
|
line-height: 14px;
|
|
143
143
|
transition: opacity var(--sidebar-collapse-duration) var(--cubic-move);
|
|
144
|
+
}/* A label over a panel of fields, not rows: it starts at the panel's edge */.GroupLabel[data-inset="false"] {
|
|
145
|
+
padding-inline: 0;
|
|
144
146
|
}/* Small header - compact dashboard/settings style */.GroupLabel[data-size="sm"] {
|
|
145
147
|
margin: 0;
|
|
146
148
|
color: var(--sidebar-group-label-color);
|
|
@@ -230,8 +232,9 @@
|
|
|
230
232
|
}/* Press effect */.MenuButton:active:not([data-active="true"])::before {
|
|
231
233
|
opacity: 0.7;
|
|
232
234
|
transform: scale(0.98);
|
|
233
|
-
}/* Focus visible
|
|
234
|
-
|
|
235
|
+
}/* Focus visible: the ring inside the row, so a list that clips its rows
|
|
236
|
+
(a submenu's collapse, a scroller) never cuts its corners */.MenuButton:focus-visible::before {
|
|
237
|
+
box-shadow: inset 0 0 0 2px var(--color-ring);
|
|
235
238
|
}/* Inner container - controls height like reference .abr-y */.MenuButtonInner {
|
|
236
239
|
/* The row's height: a badge keeps an even inset inside it */
|
|
237
240
|
--sidebar-menu-row-height: var(--sidebar-menu-item-height);
|
|
@@ -461,7 +464,16 @@
|
|
|
461
464
|
opacity: 0.7;
|
|
462
465
|
transform: scale(0.98);
|
|
463
466
|
}.MenuSubButton:focus-visible::before {
|
|
464
|
-
box-shadow: 0 0 0 2px var(--color-ring);
|
|
467
|
+
box-shadow: inset 0 0 0 2px var(--color-ring);
|
|
468
|
+
}/* The text of a submenu row: over the row's fill, cut with an ellipsis */.MenuSubButtonLabel {
|
|
469
|
+
position: relative;
|
|
470
|
+
z-index: 1;
|
|
471
|
+
flex: 1;
|
|
472
|
+
min-width: 0;
|
|
473
|
+
overflow: hidden;
|
|
474
|
+
text-align: start;
|
|
475
|
+
text-overflow: ellipsis;
|
|
476
|
+
white-space: nowrap;
|
|
465
477
|
}@media (min-width: 768px) {
|
|
466
478
|
.MenuSubButton:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
|
|
467
479
|
--sidebar-menu-row-height: calc(12px + var(--sidebar-menu-sub-item-line-height, 20px));
|
|
@@ -476,8 +488,17 @@
|
|
|
476
488
|
padding-left: 36px;
|
|
477
489
|
}.MenuSubButton.indent3 {
|
|
478
490
|
padding-left: 48px;
|
|
479
|
-
}/* When parent has icons, level 1 children align with parent text at 38px
|
|
491
|
+
}/* When parent has icons, level 1 children align with parent text at 38px,
|
|
492
|
+
and each level below steps 12px further */.MenuSub[data-has-icons="true"] .MenuSubButton.indent1 {
|
|
480
493
|
padding-left: 38px;
|
|
494
|
+
}.MenuSub[data-has-icons="true"] .MenuSubButton.indent2 {
|
|
495
|
+
padding-left: 50px;
|
|
496
|
+
}.MenuSub[data-has-icons="true"] .MenuSubButton.indent3 {
|
|
497
|
+
padding-left: 62px;
|
|
498
|
+
}/* An open branch of a tree leaves a gap before the row after it */@media (min-width: 768px) {
|
|
499
|
+
.MenuSub[data-state="open"]:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
|
|
500
|
+
padding-bottom: var(--sidebar-menu-sub-open-gap, 4px);
|
|
501
|
+
}
|
|
481
502
|
}/* Submenu visibility with animation */.MenuSub {
|
|
482
503
|
/* The open height animates from 0 to this cap; raise it for long lists */
|
|
483
504
|
max-height: var(--sidebar-menu-sub-max-height, 1000px);
|
|
@@ -1062,10 +1083,18 @@
|
|
|
1062
1083
|
--sidebar-row-inset: calc(var(--sidebar-list-inset) + 2 * var(--sidebar-list-indent));
|
|
1063
1084
|
}
|
|
1064
1085
|
|
|
1086
|
+
.MobileSidebar:not(:where(.App *)) .MenuSub[data-has-icons="true"] .MenuSubButton.indent2 {
|
|
1087
|
+
--sidebar-row-inset: calc(var(--sidebar-list-inset) + var(--sidebar-list-icon-column) + var(--sidebar-list-indent));
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1065
1090
|
.MobileSidebar:not(:where(.App *)) .MenuSubButton.indent3 {
|
|
1066
1091
|
--sidebar-row-inset: calc(var(--sidebar-list-inset) + 3 * var(--sidebar-list-indent));
|
|
1067
1092
|
}
|
|
1068
1093
|
|
|
1094
|
+
.MobileSidebar:not(:where(.App *)) .MenuSub[data-has-icons="true"] .MenuSubButton.indent3 {
|
|
1095
|
+
--sidebar-row-inset: calc(var(--sidebar-list-inset) + var(--sidebar-list-icon-column) + 2 * var(--sidebar-list-indent));
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1069
1098
|
/* A selected or pressed row fills its cell edge to edge; the card clips
|
|
1070
1099
|
the corners. */
|
|
1071
1100
|
.MobileSidebar:not(:where(.App *)) :is(.MenuButton, .MenuSubButton):is(*, :hover, :active, :focus-visible)::before {
|
|
@@ -1263,10 +1292,18 @@
|
|
|
1263
1292
|
--sidebar-row-inset: calc(var(--sidebar-list-inset) + 2 * var(--sidebar-list-indent));
|
|
1264
1293
|
}
|
|
1265
1294
|
|
|
1295
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .MenuSub[data-has-icons="true"] .MenuSubButton.indent2 {
|
|
1296
|
+
--sidebar-row-inset: calc(var(--sidebar-list-inset) + var(--sidebar-list-icon-column) + var(--sidebar-list-indent));
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1266
1299
|
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .MenuSubButton.indent3 {
|
|
1267
1300
|
--sidebar-row-inset: calc(var(--sidebar-list-inset) + 3 * var(--sidebar-list-indent));
|
|
1268
1301
|
}
|
|
1269
1302
|
|
|
1303
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .MenuSub[data-has-icons="true"] .MenuSubButton.indent3 {
|
|
1304
|
+
--sidebar-row-inset: calc(var(--sidebar-list-inset) + var(--sidebar-list-icon-column) + 2 * var(--sidebar-list-indent));
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1270
1307
|
/* A selected or pressed row fills its cell edge to edge; the card clips
|
|
1271
1308
|
the corners. */
|
|
1272
1309
|
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) :is(.MenuButton, .MenuSubButton):is(*, :hover, :active, :focus-visible)::before {
|