@plexui/styles 0.17.0 → 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.
|
@@ -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 {
|