@plexui/styles 0.1.34 → 0.1.36
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/Accordion/Accordion.module.css +12 -1
- package/dist/es/components/Alert/Alert.module.css +101 -0
- package/dist/es/components/Badge/Badge.module.css +37 -0
- package/dist/es/components/Breadcrumb/Breadcrumb.module.css +29 -0
- package/dist/es/components/Button/Button.module.css +53 -0
- package/dist/es/components/Button/NavigationButton.module.css +17 -0
- package/dist/es/components/ButtonGroup/ButtonGroup.module.css +227 -20
- package/dist/es/components/Card/Card.module.css +9 -0
- package/dist/es/components/CodeBlock/CodeBlock.module.css +14 -1
- package/dist/es/components/ColorPicker/ColorPicker.module.css +19 -1
- package/dist/es/components/DatePicker/Calendar.module.css +262 -2
- package/dist/es/components/DatePicker/CalendarNavigationIcon.module.css +10 -0
- package/dist/es/components/DateRangePicker/Calendar.module.css +207 -3
- package/dist/es/components/DateRangePicker/Trigger.module.css +17 -2
- package/dist/es/components/Dialog/Dialog.module.css +660 -13
- package/dist/es/components/EmptyMessage/EmptyMessage.module.css +21 -0
- package/dist/es/components/Field/Field.module.css +387 -2
- package/dist/es/components/FieldGroup/FieldGroup.module.css +129 -3
- package/dist/es/components/FileUpload/FileUpload.module.css +74 -1
- package/dist/es/components/FloatingLabelInput/FloatingLabelInput.module.css +19 -1
- package/dist/es/components/FloatingLabelSelect/FloatingLabelSelect.module.css +12 -1
- package/dist/es/components/IndexBar/IndexBar.module.css +146 -0
- package/dist/es/components/Input/Input.module.css +129 -1
- package/dist/es/components/MarkdownEditor/MarkdownEditor.module.css +18 -0
- package/dist/es/components/Menu/Menu.module.css +324 -7
- package/dist/es/components/OTPInput/OTPInput.module.css +6 -1
- package/dist/es/components/Page/Page.module.css +302 -10
- package/dist/es/components/PhoneLayout/PhoneLayout.module.css +10 -0
- package/dist/es/components/Popover/Popover.module.css +7 -0
- package/dist/es/components/Select/Select.module.css +148 -0
- package/dist/es/components/SelectControl/SelectControl.module.css +113 -1
- package/dist/es/components/Sidebar/Sidebar.module.css +354 -20
- package/dist/es/components/Slider/Slider.module.css +80 -0
- package/dist/es/components/SwipeActions/SwipeActions.module.css +166 -0
- package/dist/es/components/Switch/Switch.module.css +59 -4
- package/dist/es/components/TabBar/TabBar.module.css +255 -10
- package/dist/es/components/Tabs/Tabs.module.css +166 -1
- package/dist/es/components/TagInput/TagInput.module.css +50 -9
- package/dist/es/components/Textarea/Textarea.module.css +6 -0
- package/dist/es/components/Tip/Tip.module.css +456 -0
- package/dist/es/components/Toast/Toast.module.css +148 -5
- package/dist/es/components/Toolbar/Toolbar.module.css +642 -3
- package/dist/es/styles/mobile-materials.css +103 -8
- package/dist/es/styles/mobile-surfaces.css +43 -0
- package/dist/es/styles/touch.css +619 -9
- package/dist/es/styles/variables-components.css +125 -5
- package/package.json +1 -1
- package/postcss/parseLightDark.mjs +20 -2
- package/postcss/phoneLayoutScope.mjs +139 -0
- package/postcss.config.mjs +3 -0
|
@@ -243,11 +243,11 @@
|
|
|
243
243
|
padding-right: var(--sidebar-menu-item-trailing-padding);
|
|
244
244
|
overflow: hidden;
|
|
245
245
|
}@media (min-width: 768px) {
|
|
246
|
-
.MenuButtonInner {
|
|
246
|
+
.MenuButtonInner:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
|
|
247
247
|
--sidebar-menu-row-height: var(--sidebar-menu-item-height-desktop);
|
|
248
248
|
}
|
|
249
249
|
|
|
250
|
-
.MenuButton {
|
|
250
|
+
.MenuButton:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
|
|
251
251
|
margin: var(--sidebar-menu-item-margin-desktop);
|
|
252
252
|
}
|
|
253
253
|
}/* Icon wrapper - fixed width for centering */.MenuButtonIcon {
|
|
@@ -461,7 +461,7 @@
|
|
|
461
461
|
}.MenuSubButton:focus-visible::before {
|
|
462
462
|
box-shadow: 0 0 0 2px var(--color-ring);
|
|
463
463
|
}@media (min-width: 768px) {
|
|
464
|
-
.MenuSubButton {
|
|
464
|
+
.MenuSubButton:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
|
|
465
465
|
--sidebar-menu-row-height: calc(12px + var(--sidebar-menu-sub-item-line-height, 20px));
|
|
466
466
|
|
|
467
467
|
padding: 6px var(--sidebar-menu-item-trailing-padding);
|
|
@@ -596,7 +596,19 @@
|
|
|
596
596
|
height: var(--button-size);
|
|
597
597
|
margin: auto;
|
|
598
598
|
}
|
|
599
|
-
}
|
|
599
|
+
}
|
|
600
|
+
:where([data-plex-layout="phone"]) .CardDismiss {
|
|
601
|
+
min-width: 44px;
|
|
602
|
+
min-height: 44px;
|
|
603
|
+
margin: calc((var(--button-size) - 44px) / 2);
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
:where([data-plex-layout="phone"]) .CardDismiss::before,
|
|
607
|
+
:where([data-plex-layout="phone"]) .CardDismiss::after {
|
|
608
|
+
width: var(--button-size);
|
|
609
|
+
height: var(--button-size);
|
|
610
|
+
margin: auto;
|
|
611
|
+
}.CardContent {
|
|
600
612
|
flex: 1;
|
|
601
613
|
color: var(--color-text-secondary);
|
|
602
614
|
font-size: var(--font-text-sm-size);
|
|
@@ -695,7 +707,7 @@
|
|
|
695
707
|
align-items: center;
|
|
696
708
|
height: var(--sidebar-menu-item-height);
|
|
697
709
|
}@media (min-width: 768px) {
|
|
698
|
-
.TriggerInner {
|
|
710
|
+
.TriggerInner:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
|
|
699
711
|
height: var(--sidebar-menu-item-height-desktop);
|
|
700
712
|
}
|
|
701
713
|
}/* Icon wrapper - same as MenuButtonIcon for alignment */.TriggerIcon {
|
|
@@ -723,12 +735,12 @@
|
|
|
723
735
|
box-sizing: border-box;
|
|
724
736
|
padding: 12px 0 8px; /* No horizontal padding - Input component has its own */
|
|
725
737
|
}/* Phone drawer search: the iOS 26 kit Sidebar Search Field (5840:30501), a 44px capsule with 11px insets
|
|
726
|
-
on the field's own soft fill. The magnifier
|
|
727
|
-
|
|
728
|
-
placeholder take the secondary label, as the kit's Vibrant Secondary. */@media (max-width: 767px) {
|
|
738
|
+
on the field's own soft fill. The magnifier is the 26px PlexUI Search with a 4px gap (text at 41; the kit
|
|
739
|
+
glyph frame 21 and gap 8 put it at 40), the earlier toolbar search, which now follows the native bottom bar.
|
|
740
|
+
The glyph and the placeholder take the secondary label, as the kit's Vibrant Secondary. */@media (max-width: 767px) {
|
|
729
741
|
.MobileSidebar .Input > [data-slot="input"][data-variant] {
|
|
730
742
|
--input-size: 44px;
|
|
731
|
-
--input-gap:
|
|
743
|
+
--input-gap: 4px;
|
|
732
744
|
--input-adornment-offset: 0px;
|
|
733
745
|
--control-gutter-pill-scaling: 1;
|
|
734
746
|
--input-placeholder-text-color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
@@ -738,11 +750,27 @@
|
|
|
738
750
|
|
|
739
751
|
.MobileSidebar .Input > [data-slot="input"][data-variant] > svg {
|
|
740
752
|
flex: none;
|
|
741
|
-
width:
|
|
742
|
-
height:
|
|
753
|
+
width: 26px;
|
|
754
|
+
height: 26px;
|
|
743
755
|
color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
744
756
|
}
|
|
745
|
-
}
|
|
757
|
+
}
|
|
758
|
+
:where([data-plex-layout="phone"]) .MobileSidebar .Input > [data-slot="input"][data-variant] {
|
|
759
|
+
--input-size: 44px;
|
|
760
|
+
--input-gap: 4px;
|
|
761
|
+
--input-adornment-offset: 0px;
|
|
762
|
+
--control-gutter-pill-scaling: 1;
|
|
763
|
+
--input-placeholder-text-color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
764
|
+
|
|
765
|
+
border-radius: var(--radius-full);
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
:where([data-plex-layout="phone"]) .MobileSidebar .Input > [data-slot="input"][data-variant] > svg {
|
|
769
|
+
flex: none;
|
|
770
|
+
width: 26px;
|
|
771
|
+
height: 26px;
|
|
772
|
+
color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
773
|
+
}/* =============================================
|
|
746
774
|
Mobile Menu Button (PlexUI SidebarMenuMobile → X)
|
|
747
775
|
============================================= */.MobileMenuButton {
|
|
748
776
|
position: relative;
|
|
@@ -1100,12 +1128,212 @@
|
|
|
1100
1128
|
.MobileSidebar:not(:where(.App *)) :is(.MenuButton, .MenuSubButton):is([aria-haspopup], [aria-expanded], :has(.MenuChevron)) .MenuDisclosure, .MobileSidebar:not(:where(.App *)) :is(.MenuItem, .MenuSubItem) > :is(.MenuButton, .MenuSubButton):has(~ :not(.MenuSub)) .MenuDisclosure, .MobileSidebar:not(:where(.App *)) :is(.MenuItem, .MenuSubItem) > * > :is(.MenuButton, .MenuSubButton):has(~ *) .MenuDisclosure {
|
|
1101
1129
|
display: none;
|
|
1102
1130
|
}
|
|
1103
|
-
}
|
|
1104
|
-
.MobileSidebar {
|
|
1131
|
+
}
|
|
1132
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) {
|
|
1133
|
+
--sidebar-list-inset: var(--sidebar-mobile-list-inset, var(--mobile-layout-margin, 16px));
|
|
1134
|
+
--sidebar-list-icon-column: var(--sidebar-mobile-list-icon-column, 40px);
|
|
1135
|
+
--sidebar-list-indent: var(--sidebar-mobile-list-indent, 20px);
|
|
1136
|
+
--sidebar-row-inset: var(--sidebar-list-inset);
|
|
1137
|
+
--sidebar-menu-item-height: var(--sidebar-mobile-list-row-height, 52px);
|
|
1138
|
+
--sidebar-menu-sub-item-padding-y: calc(
|
|
1139
|
+
(var(--sidebar-mobile-list-row-height, 52px) - var(--sidebar-menu-sub-item-line-height, 20px)) / 2
|
|
1140
|
+
);
|
|
1141
|
+
--sidebar-menu-item-trailing-padding: var(--sidebar-list-inset);
|
|
1142
|
+
--sidebar-menu-item-radius: 0px;
|
|
1143
|
+
--sidebar-menu-text: var(--color-text);
|
|
1144
|
+
--sidebar-menu-text-active: var(--color-text);
|
|
1145
|
+
--sidebar-icon-size: var(--sidebar-mobile-list-icon-size, 24px);
|
|
1146
|
+
--sidebar-icon-wrapper-size: var(--sidebar-icon-size);
|
|
1147
|
+
--sidebar-icon-margin: 0 calc(var(--sidebar-list-icon-column) - var(--sidebar-icon-size)) 0 0;
|
|
1148
|
+
|
|
1149
|
+
background: var(--sidebar-mobile-background, var(--mobile-surface-grouped-primary, var(--color-surface-secondary)));
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Content {
|
|
1153
|
+
padding: 0;
|
|
1154
|
+
-webkit-mask-image: none;
|
|
1155
|
+
mask-image: none;
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .FooterSeparator {
|
|
1159
|
+
display: none;
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Content + .Footer,
|
|
1163
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Header + .Content {
|
|
1164
|
+
margin-top: var(--sidebar-mobile-list-section-gap, 20px);
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Group {
|
|
1168
|
+
padding-bottom: 0;
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
/* Cards without a header stand 20px apart (iOS 26 Settings); a header
|
|
1172
|
+
takes its own 44px, 18px below the card above it, as in Mail. */
|
|
1173
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Group + .Group {
|
|
1174
|
+
margin-top: var(--sidebar-mobile-list-section-gap, 20px);
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Group + .Group:has(> .GroupLabel:first-child) {
|
|
1178
|
+
margin-top: var(--sidebar-mobile-list-header-gap, 18px);
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Group .GroupLabel,
|
|
1182
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Group .GroupLabel[data-size] {
|
|
1183
|
+
display: flex;
|
|
1184
|
+
align-items: center;
|
|
1185
|
+
min-height: var(--sidebar-mobile-list-header-height, 44px);
|
|
1186
|
+
margin: 0;
|
|
1187
|
+
padding: 0 var(--sidebar-list-inset);
|
|
1188
|
+
color: var(--color-text);
|
|
1189
|
+
font-size: var(--sidebar-mobile-list-header-font-size, 20px);
|
|
1190
|
+
font-weight: var(--sidebar-mobile-list-header-font-weight, var(--font-weight-semibold));
|
|
1191
|
+
line-height: var(--sidebar-mobile-list-header-line-height, 25px);
|
|
1192
|
+
letter-spacing: normal;
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
/* The card. The page's surface sets its color: white on a grouped page. */
|
|
1196
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Menu {
|
|
1197
|
+
overflow: hidden;
|
|
1198
|
+
border-radius: var(--sidebar-mobile-list-radius, 26px);
|
|
1199
|
+
background: var(
|
|
1200
|
+
--sidebar-mobile-list-background,
|
|
1201
|
+
var(--mobile-surface-secondary, var(--mobile-surface-grouped-secondary, var(--color-surface)))
|
|
1202
|
+
);
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Menu .Menu,
|
|
1206
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .MenuSub {
|
|
1207
|
+
border-radius: 0;
|
|
1208
|
+
background: none;
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .MenuButton {
|
|
1212
|
+
margin: 0;
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .MenuButtonInner {
|
|
1216
|
+
padding-inline: var(--sidebar-row-inset) var(--sidebar-list-inset);
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1219
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .MenuButtonLabel:first-child {
|
|
1220
|
+
padding-left: 0;
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
/* Every submenu button has an indent class: this outranks their desktop padding */
|
|
1224
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Menu .MenuSubButton:is(.indent0, .indent1, .indent2, .indent3) {
|
|
1225
|
+
margin: 0;
|
|
1226
|
+
padding-inline: var(--sidebar-row-inset) var(--sidebar-list-inset);
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
/* An item of a submenu starts under its parent's label, one step further
|
|
1230
|
+
for every level below. */
|
|
1231
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .MenuSubButton.indent1 {
|
|
1232
|
+
--sidebar-row-inset: calc(var(--sidebar-list-inset) + var(--sidebar-list-indent));
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .MenuSub[data-has-icons="true"] .MenuSubButton.indent1 {
|
|
1236
|
+
--sidebar-row-inset: calc(var(--sidebar-list-inset) + var(--sidebar-list-icon-column));
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .MenuSubButton.indent2 {
|
|
1240
|
+
--sidebar-row-inset: calc(var(--sidebar-list-inset) + 2 * var(--sidebar-list-indent));
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .MenuSubButton.indent3 {
|
|
1244
|
+
--sidebar-row-inset: calc(var(--sidebar-list-inset) + 3 * var(--sidebar-list-indent));
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
/* A selected or pressed row fills its cell edge to edge; the card clips
|
|
1248
|
+
the corners. */
|
|
1249
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) :is(.MenuButton, .MenuSubButton):is(*, :hover, :active, :focus-visible)::before {
|
|
1250
|
+
border-radius: 0;
|
|
1251
|
+
transform: none;
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) :is(.MenuButton, .MenuSubButton):focus-visible::before {
|
|
1255
|
+
opacity: 1;
|
|
1256
|
+
box-shadow: inset 0 0 0 2px var(--color-ring);
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1259
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) :is(.MenuButton, .MenuSubButton):focus-visible:not([data-active="true"])::before {
|
|
1260
|
+
background: transparent;
|
|
1261
|
+
}
|
|
1262
|
+
|
|
1263
|
+
/* Separators between the rows of a card start at the label and end at
|
|
1264
|
+
the inset, like FieldGroup rows. */
|
|
1265
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Menu :is(.MenuButton, .MenuSubButton)::after {
|
|
1266
|
+
position: absolute;
|
|
1267
|
+
z-index: 1;
|
|
1268
|
+
top: 0;
|
|
1269
|
+
inset-inline: var(--sidebar-row-inset) var(--sidebar-list-inset);
|
|
1270
|
+
height: 1px;
|
|
1271
|
+
background: var(--color-border);
|
|
1272
|
+
content: "";
|
|
1273
|
+
pointer-events: none;
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Menu .MenuButton:has(> .MenuButtonInner > .MenuButtonIcon)::after {
|
|
1277
|
+
inset-inline-start: calc(var(--sidebar-row-inset) + var(--sidebar-list-icon-column));
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Menu > .MenuItem:first-child > .MenuButton::after,
|
|
1281
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Menu > .MenuItem:first-child > * > .MenuButton::after {
|
|
1282
|
+
display: none;
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
/* A selected cell hides the separators at its edges, as in iOS lists. */
|
|
1286
|
+
: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(.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(.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 {
|
|
1287
|
+
opacity: 0;
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
/* Counts read as values of the row */
|
|
1291
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .MenuBadge {
|
|
1292
|
+
color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
1293
|
+
font-size: var(--sidebar-menu-item-font-size);
|
|
1294
|
+
line-height: var(--sidebar-menu-item-line-height);
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .MenuChevron {
|
|
1298
|
+
color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
1299
|
+
margin-right: var(--sidebar-mobile-list-chevron-offset, -2.83px);
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1302
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .MenuChevron svg {
|
|
1303
|
+
width: var(--sidebar-mobile-list-chevron-size, 20px);
|
|
1304
|
+
height: var(--sidebar-mobile-list-chevron-size, 20px);
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
/* The disclosure ends 3px inside the inset (Mail): its glyph has 6.67px
|
|
1308
|
+
of air on the right in its 20px box. It keeps 8px after a count. */
|
|
1309
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .MenuDisclosure {
|
|
1310
|
+
position: relative;
|
|
1311
|
+
z-index: 1;
|
|
1312
|
+
display: flex;
|
|
1313
|
+
flex-shrink: 0;
|
|
1314
|
+
margin-inline: auto var(--sidebar-mobile-list-disclosure-offset, -3.67px);
|
|
1315
|
+
color: var(--mobile-label-tertiary, var(--color-text-tertiary));
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .MenuDisclosure svg {
|
|
1319
|
+
width: var(--sidebar-mobile-list-chevron-size, 20px);
|
|
1320
|
+
height: var(--sidebar-mobile-list-chevron-size, 20px);
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .MenuBadge ~ .MenuDisclosure {
|
|
1324
|
+
margin-inline-start: var(--sidebar-mobile-list-disclosure-gap, 8px);
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1327
|
+
/* Rows that open a menu, expand a level or carry their own controls do
|
|
1328
|
+
not lead to another page. */
|
|
1329
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) :is(.MenuButton, .MenuSubButton):is([aria-haspopup], [aria-expanded], :has(.MenuChevron)) .MenuDisclosure, :where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) :is(.MenuItem, .MenuSubItem) > :is(.MenuButton, .MenuSubButton):has(~ :not(.MenuSub)) .MenuDisclosure, :where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) :is(.MenuItem, .MenuSubItem) > * > :is(.MenuButton, .MenuSubButton):has(~ *) .MenuDisclosure {
|
|
1330
|
+
display: none;
|
|
1331
|
+
}/* Desktop breakpoint - sidebar becomes fixed */@media (min-width: 768px) {
|
|
1332
|
+
.MobileSidebar:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
|
|
1105
1333
|
display: none;
|
|
1106
1334
|
}
|
|
1107
1335
|
|
|
1108
|
-
.MobileBackdrop {
|
|
1336
|
+
.MobileBackdrop:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
|
|
1109
1337
|
display: none;
|
|
1110
1338
|
}
|
|
1111
1339
|
}/* Containment changes positioning; keep the token-based drawer/backdrop stacking. */.MobileBackdrop.contained {
|
|
@@ -1113,11 +1341,11 @@
|
|
|
1113
1341
|
}.MobileSidebar.contained {
|
|
1114
1342
|
position: absolute;
|
|
1115
1343
|
}/* Contained mode - override desktop hiding for demo purposes */@media (min-width: 768px) {
|
|
1116
|
-
.MobileSidebar.contained {
|
|
1344
|
+
.MobileSidebar.contained:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
|
|
1117
1345
|
display: flex;
|
|
1118
1346
|
}
|
|
1119
1347
|
|
|
1120
|
-
.MobileBackdrop.contained {
|
|
1348
|
+
.MobileBackdrop.contained:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
|
|
1121
1349
|
display: block;
|
|
1122
1350
|
}
|
|
1123
1351
|
}/* Contained mode visible state - full width positioning */:global([data-mobile-menu="visible"]) .MobileSidebar.contained {
|
|
@@ -1154,7 +1382,7 @@
|
|
|
1154
1382
|
padding: 8px 12px;
|
|
1155
1383
|
height: auto;
|
|
1156
1384
|
}@media (min-width: 768px) {
|
|
1157
|
-
.Sidebar[data-variant="docs"] .MenuButtonInner {
|
|
1385
|
+
.Sidebar[data-variant="docs"] .MenuButtonInner:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
|
|
1158
1386
|
padding: 6px 12px;
|
|
1159
1387
|
}
|
|
1160
1388
|
}@media (hover: hover) and (pointer: fine) {
|
|
@@ -1175,7 +1403,7 @@ background: var(--gray-300);
|
|
|
1175
1403
|
}/* MenuSubButton needs explicit padding in docs variant (composes MenuButton which has padding: 0) */.Sidebar[data-variant="docs"] .MenuSubButton {
|
|
1176
1404
|
padding: 8px 12px;
|
|
1177
1405
|
}@media (min-width: 768px) {
|
|
1178
|
-
.Sidebar[data-variant="docs"] .MenuSubButton {
|
|
1406
|
+
.Sidebar[data-variant="docs"] .MenuSubButton:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
|
|
1179
1407
|
padding: 6px 12px;
|
|
1180
1408
|
}
|
|
1181
1409
|
}/* Docs variant indent levels - override base padding-left *//* indent0 = 12px aligns with section header (GroupLabel) */.Sidebar[data-variant="docs"] .MenuSubButton.indent0 {
|
|
@@ -1360,7 +1588,113 @@ background: var(--gray-300);
|
|
|
1360
1588
|
padding-block: 8px;
|
|
1361
1589
|
border-top: 1px solid var(--sidebar-border);
|
|
1362
1590
|
}
|
|
1363
|
-
}
|
|
1591
|
+
}
|
|
1592
|
+
:where([data-plex-layout="phone"]) .App {
|
|
1593
|
+
--sidebar-drawer-width: min(20.625rem, calc(100vw - 4.5rem));
|
|
1594
|
+
--sidebar-mobile-gutter: 16px;
|
|
1595
|
+
--sidebar-mobile-header-height: 68px;
|
|
1596
|
+
--sidebar-footer-shadow: none;
|
|
1597
|
+
}
|
|
1598
|
+
|
|
1599
|
+
:where([data-plex-layout="phone"]) .App .Inset {
|
|
1600
|
+
z-index: 41;
|
|
1601
|
+
transition: transform 200ms var(--cubic-exit);
|
|
1602
|
+
}
|
|
1603
|
+
|
|
1604
|
+
:where([data-plex-layout="phone"]) .App[data-mobile-menu="visible"] .Inset {
|
|
1605
|
+
box-shadow: 0 0 2rem rgb(0 0 0 / 12%);
|
|
1606
|
+
transform: translateX(var(--sidebar-drawer-width));
|
|
1607
|
+
transition: transform var(--motion-enter-large) var(--cubic-enter);
|
|
1608
|
+
}
|
|
1609
|
+
|
|
1610
|
+
:where([data-plex-layout="phone"]) .App .MobileBackdrop {
|
|
1611
|
+
left: var(--sidebar-drawer-width);
|
|
1612
|
+
z-index: 42;
|
|
1613
|
+
background: transparent;
|
|
1614
|
+
}
|
|
1615
|
+
|
|
1616
|
+
:where([data-plex-layout="phone"]) .App .MobileSidebar {
|
|
1617
|
+
--sidebar-background: var(--color-surface-secondary);
|
|
1618
|
+
--sidebar-menu-item-height: 44px;
|
|
1619
|
+
--sidebar-menu-item-font-size: 17px;
|
|
1620
|
+
--sidebar-menu-item-margin: 0;
|
|
1621
|
+
--sidebar-icon-size: 20px;
|
|
1622
|
+
--sidebar-icon-margin: 0 5px 0 11px;
|
|
1623
|
+
right: auto;
|
|
1624
|
+
left: 0;
|
|
1625
|
+
width: var(--sidebar-drawer-width);
|
|
1626
|
+
padding-top: 0;
|
|
1627
|
+
transition: visibility 0s 200ms;
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1630
|
+
:where([data-plex-layout="phone"]) .App[data-mobile-menu="visible"] .MobileSidebar {
|
|
1631
|
+
right: auto;
|
|
1632
|
+
width: var(--sidebar-drawer-width);
|
|
1633
|
+
transition: visibility 0s;
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1636
|
+
:where([data-plex-layout="phone"]) .App .MobileSidebar > * {
|
|
1637
|
+
opacity: 1;
|
|
1638
|
+
transform: none;
|
|
1639
|
+
transition: none;
|
|
1640
|
+
}
|
|
1641
|
+
|
|
1642
|
+
/* The drawer sits in the page's shadow until the page has moved off it */
|
|
1643
|
+
:where([data-plex-layout="phone"]) .App .MobileSidebar::after {
|
|
1644
|
+
position: absolute;
|
|
1645
|
+
inset: 0;
|
|
1646
|
+
background: rgb(0 0 0 / 40%);
|
|
1647
|
+
content: "";
|
|
1648
|
+
pointer-events: none;
|
|
1649
|
+
transition: opacity 200ms var(--cubic-exit);
|
|
1650
|
+
}
|
|
1651
|
+
|
|
1652
|
+
:where([data-plex-layout="phone"]) .App[data-mobile-menu="visible"] .MobileSidebar::after {
|
|
1653
|
+
opacity: 0;
|
|
1654
|
+
transition: opacity var(--motion-enter-large) var(--cubic-enter);
|
|
1655
|
+
}
|
|
1656
|
+
|
|
1657
|
+
:where([data-plex-layout="phone"]) .App .MobileSidebar .Content {
|
|
1658
|
+
padding: 0;
|
|
1659
|
+
-webkit-mask-image: none;
|
|
1660
|
+
mask-image: none;
|
|
1661
|
+
}
|
|
1662
|
+
|
|
1663
|
+
:where([data-plex-layout="phone"]) .App .MobileSidebar .MenuButtonInner {
|
|
1664
|
+
--sidebar-menu-item-trailing-padding: 8px;
|
|
1665
|
+
}
|
|
1666
|
+
|
|
1667
|
+
:where([data-plex-layout="phone"]) .App .MobileSidebar .MenuButtonLabel {
|
|
1668
|
+
line-height: 22px;
|
|
1669
|
+
}
|
|
1670
|
+
|
|
1671
|
+
:where([data-plex-layout="phone"]) .App .MobileSidebar .MenuChevron svg {
|
|
1672
|
+
width: 18px;
|
|
1673
|
+
height: 18px;
|
|
1674
|
+
}
|
|
1675
|
+
|
|
1676
|
+
:where([data-plex-layout="phone"]) .App .MobileSidebar .MenuBadge {
|
|
1677
|
+
font-size: 17px;
|
|
1678
|
+
line-height: 22px;
|
|
1679
|
+
}
|
|
1680
|
+
|
|
1681
|
+
:where([data-plex-layout="phone"]) .App .MobileSidebar .MenuBadge span {
|
|
1682
|
+
padding-right: 0;
|
|
1683
|
+
font-size: 17px;
|
|
1684
|
+
line-height: 22px;
|
|
1685
|
+
}
|
|
1686
|
+
|
|
1687
|
+
:where([data-plex-layout="phone"]) .App .MobileSidebar .MenuSub .MenuSubButton.indent1 {
|
|
1688
|
+
padding: 11px 8px 11px 48px;
|
|
1689
|
+
font-size: 17px;
|
|
1690
|
+
line-height: 22px;
|
|
1691
|
+
}
|
|
1692
|
+
|
|
1693
|
+
:where([data-plex-layout="phone"]) .App .MobileFooter {
|
|
1694
|
+
--sidebar-menu-item-margin: 0;
|
|
1695
|
+
padding-block: 8px;
|
|
1696
|
+
border-top: 1px solid var(--sidebar-border);
|
|
1697
|
+
}/* =============================================
|
|
1364
1698
|
RTL Support
|
|
1365
1699
|
============================================= *//* Layout reverses for RTL with side="right" */.SidebarLayout[dir="rtl"] {
|
|
1366
1700
|
flex-direction: row-reverse;
|
|
@@ -199,6 +199,12 @@
|
|
|
199
199
|
position: relative;
|
|
200
200
|
width: 100%;
|
|
201
201
|
margin-top: 4px;
|
|
202
|
+
/* The marks' size, so the line held for them below is one of their lines */
|
|
203
|
+
font-size: 12px;
|
|
204
|
+
}/* Until the slider knows its width (Slider sets data-measured) the marks hold one line and stay hidden: the server
|
|
205
|
+
cannot place them, and the page does not move when they appear. */.MarksContainer:not([data-measured]) {
|
|
206
|
+
min-height: 1lh;
|
|
207
|
+
visibility: hidden;
|
|
202
208
|
}.Mark {
|
|
203
209
|
position: absolute;
|
|
204
210
|
color: var(--color-text);
|
|
@@ -247,5 +253,79 @@
|
|
|
247
253
|
width: max(44px, var(--slider-control-height, 44px));
|
|
248
254
|
padding-right: 0;
|
|
249
255
|
}
|
|
256
|
+
|
|
257
|
+
/* The knob being dragged turns into the lens of glass (mobile-materials.css), on its centre (kit iOS 27
|
|
258
|
+
Sliders 7:53847, State=Pressed); without touch.css it stays as it is. The slider is pressed from the first
|
|
259
|
+
touch, wherever on the track it lands; of a range, the nearest knob, which the press focuses. A vertical
|
|
260
|
+
slider is a web layout with no iOS knob, so it keeps its own. */
|
|
261
|
+
.Slider[data-orientation="horizontal"] .Thumb {
|
|
262
|
+
transition:
|
|
263
|
+
left var(--slider-duration) var(--cubic-move),
|
|
264
|
+
scale 200ms var(--cubic-enter),
|
|
265
|
+
background-color 200ms var(--cubic-enter),
|
|
266
|
+
box-shadow 200ms var(--cubic-enter);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.Slider[data-orientation="horizontal"][data-pressed]:not([data-range], [data-disabled]) .Thumb,
|
|
270
|
+
.Slider[data-orientation="horizontal"][data-pressed][data-range]:not([data-disabled]) .Thumb:focus {
|
|
271
|
+
scale: var(--mobile-knob-lens-scale, none);
|
|
272
|
+
background-color: var(--mobile-knob-lens-background, var(--slider-thumb-background, var(--gray-0)));
|
|
273
|
+
box-shadow: var(--mobile-knob-lens-shadow, var(--slider-thumb-shadow, inset 0 0 0 2px var(--slider-range-color)));
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/* Disabled, the track, its fill and the knob show at half opacity (State=Disabled). */
|
|
277
|
+
.Slider[data-disabled] {
|
|
278
|
+
opacity: 0.5;
|
|
279
|
+
}
|
|
250
280
|
}
|
|
281
|
+
:where([data-plex-layout="phone"]) .SliderValue {
|
|
282
|
+
height: auto;
|
|
283
|
+
min-height: 44px;
|
|
284
|
+
padding: 0;
|
|
285
|
+
border: 0;
|
|
286
|
+
margin-inline-end: 0;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
:where([data-plex-layout="phone"]) .ValueInput {
|
|
290
|
+
min-width: 44px;
|
|
291
|
+
height: 44px;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
/* The reset is the row's accessory: its glyph alone on the 44px target in the secondary label, without the
|
|
295
|
+
button's face (three classes and the variant, over the Button's color rules in any sheet order). */
|
|
296
|
+
:where([data-plex-layout="phone"]) .SliderWrap .SliderLabel .Reset[data-variant="ghost"] {
|
|
297
|
+
color: var(--slider-reset-color, var(--color-text-secondary));
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
:where([data-plex-layout="phone"]) .SliderWrap .SliderLabel .Reset[data-variant="ghost"]::before {
|
|
301
|
+
visibility: hidden;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
:where([data-plex-layout="phone"]) .SliderWrap[data-orientation="vertical"] .Slider {
|
|
305
|
+
width: max(44px, var(--slider-control-height, 44px));
|
|
306
|
+
padding-right: 0;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
/* The knob being dragged turns into the lens of glass (mobile-materials.css), on its centre (kit iOS 27
|
|
310
|
+
Sliders 7:53847, State=Pressed); without touch.css it stays as it is. The slider is pressed from the first
|
|
311
|
+
touch, wherever on the track it lands; of a range, the nearest knob, which the press focuses. A vertical
|
|
312
|
+
slider is a web layout with no iOS knob, so it keeps its own. */
|
|
313
|
+
:where([data-plex-layout="phone"]) .Slider[data-orientation="horizontal"] .Thumb {
|
|
314
|
+
transition:
|
|
315
|
+
left var(--slider-duration) var(--cubic-move),
|
|
316
|
+
scale 200ms var(--cubic-enter),
|
|
317
|
+
background-color 200ms var(--cubic-enter),
|
|
318
|
+
box-shadow 200ms var(--cubic-enter);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
:where([data-plex-layout="phone"]) .Slider[data-orientation="horizontal"][data-pressed]:not([data-range], [data-disabled]) .Thumb, :where([data-plex-layout="phone"]) .Slider[data-orientation="horizontal"][data-pressed][data-range]:not([data-disabled]) .Thumb:focus {
|
|
322
|
+
scale: var(--mobile-knob-lens-scale, none);
|
|
323
|
+
background-color: var(--mobile-knob-lens-background, var(--slider-thumb-background, var(--gray-0)));
|
|
324
|
+
box-shadow: var(--mobile-knob-lens-shadow, var(--slider-thumb-shadow, inset 0 0 0 2px var(--slider-range-color)));
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
/* Disabled, the track, its fill and the knob show at half opacity (State=Disabled). */
|
|
328
|
+
:where([data-plex-layout="phone"]) .Slider[data-disabled] {
|
|
329
|
+
opacity: 0.5;
|
|
330
|
+
}
|
|
251
331
|
}
|