@plexui/styles 0.1.33 → 0.1.35
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 +26 -1
- package/dist/es/components/Alert/Alert.module.css +213 -1
- package/dist/es/components/Badge/Badge.module.css +37 -0
- package/dist/es/components/Breadcrumb/Breadcrumb.module.css +63 -0
- package/dist/es/components/Button/Button.module.css +123 -22
- 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 +31 -6
- package/dist/es/components/Checkbox/Checkbox.module.css +26 -72
- package/dist/es/components/CodeBlock/CodeBlock.module.css +34 -1
- package/dist/es/components/ColorPicker/ColorPicker.module.css +414 -0
- package/dist/es/components/ContextMenu/ContextMenu.module.css +55 -0
- package/dist/es/components/DataTable/DataTable.module.css +4 -0
- package/dist/es/components/DatePicker/Calendar.module.css +279 -6
- package/dist/es/components/DatePicker/CalendarNavigationIcon.module.css +10 -0
- package/dist/es/components/DateRangePicker/Calendar.module.css +226 -4
- package/dist/es/components/DateRangePicker/Trigger.module.css +45 -2
- package/dist/es/components/Dialog/Dialog.module.css +871 -89
- package/dist/es/components/EmptyMessage/EmptyMessage.module.css +52 -0
- package/dist/es/components/Field/Field.module.css +574 -24
- package/dist/es/components/FieldGroup/FieldGroup.module.css +188 -3
- package/dist/es/components/FileUpload/FileUpload.module.css +74 -1
- package/dist/es/components/FloatingLabelInput/FloatingLabelInput.module.css +40 -1
- package/dist/es/components/FloatingLabelSelect/FloatingLabelSelect.module.css +28 -1
- package/dist/es/components/IndexBar/IndexBar.module.css +146 -0
- package/dist/es/components/Indicator/LoadingIndicator.module.css +14 -7
- package/dist/es/components/Input/Input.module.css +198 -1
- package/dist/es/components/InputGroup/InputGroup.module.css +4 -0
- package/dist/es/components/MarkdownEditor/MarkdownEditor.module.css +18 -0
- package/dist/es/components/Menu/Menu.module.css +544 -34
- package/dist/es/components/OTPInput/OTPInput.module.css +6 -1
- package/dist/es/components/Page/Page.module.css +391 -31
- package/dist/es/components/PageControl/PageControl.module.css +81 -0
- package/dist/es/components/PhoneLayout/PhoneLayout.module.css +10 -0
- package/dist/es/components/Popover/Popover.module.css +17 -1
- package/dist/es/components/Select/Select.module.css +201 -9
- package/dist/es/components/SelectControl/SelectControl.module.css +151 -4
- package/dist/es/components/Sidebar/Sidebar.module.css +624 -71
- package/dist/es/components/Slider/Slider.module.css +132 -45
- package/dist/es/components/Sortable/Sortable.module.css +7 -3
- package/dist/es/components/Stepper/Stepper.module.css +98 -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 +478 -0
- package/dist/es/components/Tabs/Tabs.module.css +315 -3
- 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 +197 -9
- package/dist/es/components/Toolbar/Toolbar.module.css +850 -21
- package/dist/es/styles/katex-fonts/KaTeX_AMS-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Main-Bold.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Main-Italic.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Main-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Math-Italic.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Script-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Size1-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Size2-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Size3-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Size4-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/LICENSE +21 -0
- package/dist/es/styles/katex.min.css +666 -730
- package/dist/es/styles/mobile-materials.css +145 -14
- package/dist/es/styles/mobile-surfaces.css +82 -32
- package/dist/es/styles/touch.css +940 -92
- package/dist/es/styles/variables-components.css +356 -17
- package/package.json +1 -1
- package/postcss/parseLightDark.mjs +20 -2
- package/postcss/phoneLayoutScope.mjs +134 -0
- package/postcss.config.mjs +3 -0
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
}.MenuList {
|
|
9
9
|
z-index: 50;
|
|
10
10
|
overflow: auto;
|
|
11
|
-
width:
|
|
11
|
+
/* A width of its own only with touch.css: the 250px panel of an iOS menu, in which a long label wraps */
|
|
12
|
+
width: var(--menu-width, var(--menu-default-width, auto));
|
|
12
13
|
min-width: var(--menu-min-width, var(--menu-default-min-width, 300px));
|
|
13
14
|
max-width: var(--radix-dropdown-menu-content-available-width);
|
|
14
15
|
max-height: min(
|
|
@@ -74,6 +75,13 @@
|
|
|
74
75
|
/* Same "item + subtitle" pattern as the pressable item below. */
|
|
75
76
|
.MenuItemContent:has(.ItemDescription) {
|
|
76
77
|
font-weight: var(--font-weight-semibold);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/* A described row keeps the icons before its label beside the two lines, as a pressable row does */
|
|
81
|
+
.MenuItemContent:has(> .ItemLeading) {
|
|
82
|
+
display: flex;
|
|
83
|
+
align-items: center;
|
|
84
|
+
gap: var(--menu-item-gap);
|
|
77
85
|
}.MenuItem {
|
|
78
86
|
position: relative;
|
|
79
87
|
display: block;
|
|
@@ -90,8 +98,10 @@
|
|
|
90
98
|
|
|
91
99
|
/* An item with a description keeps its label semibold in every state, so
|
|
92
100
|
consumers never have to remember a className for the "item + subtitle"
|
|
93
|
-
pattern. The description's own rule keeps the second line normal.
|
|
94
|
-
|
|
101
|
+
pattern. The description's own rule keeps the second line normal. The
|
|
102
|
+
line under a radio item or a submenu row is its value (Newest to Oldest,
|
|
103
|
+
Manual), not a subtitle: their labels stay regular among their neighbours. */
|
|
104
|
+
.MenuItem:not(.RadioItem, .SubMenuItem):has(.ItemDescription) {
|
|
95
105
|
font-weight: var(--font-weight-semibold);
|
|
96
106
|
}
|
|
97
107
|
|
|
@@ -171,6 +181,10 @@
|
|
|
171
181
|
justify-content: inherit;
|
|
172
182
|
gap: inherit;
|
|
173
183
|
}.ItemActions {
|
|
184
|
+
/* An action keeps its xs face on a phone, where a uniform xs button is otherwise the kit's 28px circle (touch.css). */
|
|
185
|
+
--button-uniform-size-xs: var(--control-size-xs);
|
|
186
|
+
--button-icon-size-xs: var(--control-icon-size-sm);
|
|
187
|
+
|
|
174
188
|
/* Prevent adding height to the MenuItem, and horizontally center */
|
|
175
189
|
display: flex;
|
|
176
190
|
align-items: center;
|
|
@@ -187,7 +201,33 @@
|
|
|
187
201
|
}
|
|
188
202
|
}:where(:root[data-input="touch"]) .ItemActions {
|
|
189
203
|
opacity: 1;
|
|
190
|
-
}
|
|
204
|
+
}/* On a phone an action takes the 44px target of iOS around its face; the negative margin keeps the
|
|
205
|
+
row's layout and the glyph where they were. */@media (max-width: 767px) {
|
|
206
|
+
.ItemActions > button {
|
|
207
|
+
min-width: 44px;
|
|
208
|
+
min-height: 44px;
|
|
209
|
+
margin: calc((var(--button-size) - 44px) / 2);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.ItemActions > button::before,
|
|
213
|
+
.ItemActions > button::after {
|
|
214
|
+
width: var(--button-size);
|
|
215
|
+
height: var(--button-size);
|
|
216
|
+
margin: auto;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
:where([data-plex-layout="phone"]) .ItemActions > button {
|
|
220
|
+
min-width: 44px;
|
|
221
|
+
min-height: 44px;
|
|
222
|
+
margin: calc((var(--button-size) - 44px) / 2);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
:where([data-plex-layout="phone"]) .ItemActions > button::before,
|
|
226
|
+
:where([data-plex-layout="phone"]) .ItemActions > button::after {
|
|
227
|
+
width: var(--button-size);
|
|
228
|
+
height: var(--button-size);
|
|
229
|
+
margin: auto;
|
|
230
|
+
}.Separator {
|
|
191
231
|
height: 1px;
|
|
192
232
|
margin: var(--menu-separator-gutter);
|
|
193
233
|
background: var(--menu-separator-background-color);
|
|
@@ -201,9 +241,94 @@
|
|
|
201
241
|
-webkit-user-select: none;
|
|
202
242
|
-moz-user-select: none;
|
|
203
243
|
user-select: none;
|
|
204
|
-
}
|
|
244
|
+
}/* A header names what the menu acts on, above its items: the picture, name and kind of a file in Files (iOS-menu
|
|
245
|
+
IMG_5690), with a round action at its end, or the picture and name of a board in Freeform (IMG_5676). It sits on
|
|
246
|
+
the rows' inline padding on a desktop; the phone sizes are in touch.css. */.MenuHeader {
|
|
247
|
+
display: flex;
|
|
248
|
+
align-items: center;
|
|
249
|
+
gap: var(--menu-header-gap, calc(var(--spacing) * 2));
|
|
250
|
+
padding: var(--menu-header-padding, var(--menu-item-padding));
|
|
251
|
+
-webkit-user-select: none;
|
|
252
|
+
-moz-user-select: none;
|
|
253
|
+
user-select: none;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
/* Files leaves more room under a header that no separator closes, before the first item (IMG_5690) */
|
|
257
|
+
.MenuHeader:not(:has(+ .Separator)) {
|
|
258
|
+
margin-bottom: var(--menu-header-list-gap, 0px);
|
|
259
|
+
}.MenuHeaderMedia {
|
|
260
|
+
display: flex;
|
|
261
|
+
flex: none;
|
|
262
|
+
align-items: center;
|
|
263
|
+
justify-content: center;
|
|
264
|
+
width: var(--menu-header-media-size, var(--control-size-md));
|
|
265
|
+
height: var(--menu-header-media-size, var(--control-size-md));
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.MenuHeaderMedia > :is(img, svg) {
|
|
269
|
+
width: 100%;
|
|
270
|
+
height: 100%;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
/* A thumbnail has the small rounded corners of a Freeform board's (IMG_5676) */
|
|
274
|
+
.MenuHeaderMedia > img {
|
|
275
|
+
border-radius: var(--menu-header-media-radius, var(--radius-sm));
|
|
276
|
+
-o-object-fit: cover;
|
|
277
|
+
object-fit: cover;
|
|
278
|
+
}.MenuHeaderText {
|
|
279
|
+
display: flex;
|
|
280
|
+
flex: 1;
|
|
281
|
+
min-width: 0;
|
|
282
|
+
flex-direction: column;
|
|
283
|
+
}.MenuHeaderTitle {
|
|
284
|
+
overflow: hidden;
|
|
285
|
+
font-size: var(--menu-header-title-font-size, var(--menu-font-size));
|
|
286
|
+
font-weight: var(--font-weight-semibold);
|
|
287
|
+
line-height: var(--menu-header-title-line-height, var(--menu-line-height));
|
|
288
|
+
text-overflow: ellipsis;
|
|
289
|
+
white-space: nowrap;
|
|
290
|
+
}.MenuHeaderDescription {
|
|
291
|
+
overflow: hidden;
|
|
292
|
+
color: var(--menu-description-color, var(--color-text-secondary));
|
|
293
|
+
font-size: var(--menu-header-description-font-size, var(--font-text-xs-size));
|
|
294
|
+
line-height: var(--menu-header-description-line-height, var(--font-text-xs-line-height));
|
|
295
|
+
text-overflow: ellipsis;
|
|
296
|
+
white-space: nowrap;
|
|
297
|
+
}.MenuHeaderAction {
|
|
298
|
+
flex: none;
|
|
299
|
+
}/* On a phone the action takes the 44px target of iOS around its 34px face, as an item's action does; the negative
|
|
300
|
+
margin keeps the face 16px from the panel's edge, centered on the picture (IMG_5690). */@media (max-width: 767px) {
|
|
301
|
+
/* Under the header, so the face's size outranks Button's own surface rule whatever order the sheets load in. */
|
|
302
|
+
.MenuHeader .MenuHeaderAction {
|
|
303
|
+
min-width: 44px;
|
|
304
|
+
min-height: 44px;
|
|
305
|
+
margin: calc((var(--button-size) - 44px) / 2);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.MenuHeader .MenuHeaderAction::before,
|
|
309
|
+
.MenuHeader .MenuHeaderAction::after {
|
|
310
|
+
width: var(--button-size);
|
|
311
|
+
height: var(--button-size);
|
|
312
|
+
margin: auto;
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
/* Under the header, so the face's size outranks Button's own surface rule whatever order the sheets load in. */
|
|
316
|
+
:where([data-plex-layout="phone"]) .MenuHeader .MenuHeaderAction {
|
|
317
|
+
min-width: 44px;
|
|
318
|
+
min-height: 44px;
|
|
319
|
+
margin: calc((var(--button-size) - 44px) / 2);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
:where([data-plex-layout="phone"]) .MenuHeader .MenuHeaderAction::before,
|
|
323
|
+
:where([data-plex-layout="phone"]) .MenuHeader .MenuHeaderAction::after {
|
|
324
|
+
width: var(--button-size);
|
|
325
|
+
height: var(--button-size);
|
|
326
|
+
margin: auto;
|
|
327
|
+
}.SubMenuItem {
|
|
205
328
|
justify-content: space-between;
|
|
206
329
|
}.SubTriggerIcon {
|
|
330
|
+
/* The chevron takes the free space, so a label stays beside its icon rather than between it and the chevron */
|
|
331
|
+
margin-inline-start: auto;
|
|
207
332
|
/* slight visual offset of svg canvas */
|
|
208
333
|
margin-right: -2px;
|
|
209
334
|
opacity: 0.75;
|
|
@@ -284,6 +409,12 @@
|
|
|
284
409
|
order: 1;
|
|
285
410
|
}
|
|
286
411
|
|
|
412
|
+
/* Beside only an icon and a label its margin, not space-between, pushes it to the end, so the icon and the label
|
|
413
|
+
stay together at the start; a row with more elements keeps space-between, which an ml-auto child relies on. */
|
|
414
|
+
:where([data-indicator-position="end"]) .PressableInner:where(:not(:has(> :not(svg, .RadioIndicator, .CheckboxIndicator)))) > .RadioIndicator {
|
|
415
|
+
margin-inline-start: auto;
|
|
416
|
+
}
|
|
417
|
+
|
|
287
418
|
[data-highlighted] .RadioIndicator {
|
|
288
419
|
box-shadow: 0 0 0 1px var(--radio-group-indicator-border-color-hover) inset;
|
|
289
420
|
}
|
|
@@ -336,6 +467,12 @@
|
|
|
336
467
|
order: 1;
|
|
337
468
|
}
|
|
338
469
|
|
|
470
|
+
/* Beside only an icon and a label its margin, not space-between, pushes it to the end, so the icon and the label
|
|
471
|
+
stay together at the start; a row with more elements keeps space-between, which an ml-auto child relies on. */
|
|
472
|
+
:where([data-indicator-position="end"]) .PressableInner:where(:not(:has(> :not(svg, .RadioIndicator, .CheckboxIndicator)))) > .CheckboxIndicator {
|
|
473
|
+
margin-inline-start: auto;
|
|
474
|
+
}
|
|
475
|
+
|
|
339
476
|
[data-indicator-variant="solid"] .CheckboxIndicator {
|
|
340
477
|
border-radius: var(--radius-full);
|
|
341
478
|
box-shadow: 0 0 0 1px var(--radio-group-indicator-border-color) inset;
|
|
@@ -357,29 +494,38 @@
|
|
|
357
494
|
[data-entering] .CheckboxCircle::before,
|
|
358
495
|
[data-entering] .CheckboxCircle::after {
|
|
359
496
|
animation-duration: 0s;
|
|
360
|
-
}
|
|
497
|
+
}/* A horizontal list, or a horizontal radio group at the top of a list: the mode switch of an iOS menu, one mode of several
|
|
498
|
+
with the chosen one on a fill (iOS-menu IMG_5665 and IMG_5666, Added and Captured over the rows of Photos; iOS 27 kit
|
|
499
|
+
Menu 492:52296, Control Group; Apps 2.4 Menu 40125:198566, Quick Actions). *//* A horizontal list is as wide as its actions: equal columns, each as wide as its widest label, never less than a menu
|
|
500
|
+
(--menu-horizontal-min-width), not the fixed width of a list of rows. */.MenuList[data-layout="horizontal"] {
|
|
501
|
+
width: var(--menu-width, auto);
|
|
502
|
+
}:is(.MenuList, .RadioGroup)[data-layout="horizontal"] {
|
|
361
503
|
--h-icon-size: var(--menu-horizontal-icon-size, 20px);
|
|
362
504
|
--h-padding: var(--menu-horizontal-item-padding, calc(var(--spacing) * 2));
|
|
363
505
|
--h-gap: var(--menu-horizontal-item-gap, calc(var(--spacing) * 1));
|
|
364
506
|
|
|
365
|
-
display: flex;
|
|
507
|
+
display: var(--menu-horizontal-display, flex);
|
|
366
508
|
flex-direction: row;
|
|
367
|
-
|
|
509
|
+
/* Flex cannot size every action to the widest one; grid columns can, and a label
|
|
510
|
+
never wraps inside its fixed-height action (phone, through touch.css). */
|
|
511
|
+
grid-auto-flow: column;
|
|
512
|
+
grid-auto-columns: minmax(max-content, 1fr);
|
|
513
|
+
min-width: var(--menu-horizontal-min-width, auto);
|
|
368
514
|
gap: var(--menu-horizontal-gap, normal);
|
|
369
515
|
padding-inline: var(--menu-horizontal-padding-inline, var(--menu-gutter));
|
|
370
516
|
}
|
|
371
517
|
|
|
372
|
-
.MenuList[data-layout="horizontal"][data-size="sm"] {
|
|
518
|
+
:is(.MenuList, .RadioGroup)[data-layout="horizontal"][data-size="sm"] {
|
|
373
519
|
--h-icon-size: var(--menu-horizontal-icon-size, 16px);
|
|
374
520
|
--h-padding: var(--menu-horizontal-item-padding, calc(var(--spacing) * 1.5));
|
|
375
521
|
}
|
|
376
522
|
|
|
377
|
-
.MenuList[data-layout="horizontal"][data-size="lg"] {
|
|
523
|
+
:is(.MenuList, .RadioGroup)[data-layout="horizontal"][data-size="lg"] {
|
|
378
524
|
--h-icon-size: var(--menu-horizontal-icon-size, 24px);
|
|
379
525
|
--h-padding: var(--menu-horizontal-item-padding, calc(var(--spacing) * 2.5));
|
|
380
526
|
}
|
|
381
527
|
|
|
382
|
-
.MenuList[data-layout="horizontal"] .MenuItem {
|
|
528
|
+
:is(.MenuList, .RadioGroup)[data-layout="horizontal"] .MenuItem {
|
|
383
529
|
--menu-item-radius: var(--menu-horizontal-item-radius, calc(var(--menu-radius) - var(--menu-gutter)));
|
|
384
530
|
display: var(--menu-horizontal-item-display, block);
|
|
385
531
|
height: var(--menu-horizontal-item-height, auto);
|
|
@@ -394,7 +540,7 @@
|
|
|
394
540
|
line-height: 1;
|
|
395
541
|
}
|
|
396
542
|
|
|
397
|
-
.MenuList[data-layout="horizontal"] .PressableInner {
|
|
543
|
+
:is(.MenuList, .RadioGroup)[data-layout="horizontal"] .PressableInner {
|
|
398
544
|
flex-direction: column;
|
|
399
545
|
align-items: center;
|
|
400
546
|
gap: var(--h-gap);
|
|
@@ -403,11 +549,11 @@
|
|
|
403
549
|
line-height: var(--menu-horizontal-label-leading, var(--font-text-2xs-line-height));
|
|
404
550
|
}
|
|
405
551
|
|
|
406
|
-
.MenuList[data-layout="horizontal"] .PressableInner > svg {
|
|
552
|
+
:is(.MenuList, .RadioGroup)[data-layout="horizontal"] .PressableInner > svg {
|
|
407
553
|
font-size: var(--h-icon-size);
|
|
408
554
|
}
|
|
409
555
|
|
|
410
|
-
.MenuList[data-layout="horizontal"] .MenuItemContent {
|
|
556
|
+
:is(.MenuList, .RadioGroup)[data-layout="horizontal"] .MenuItemContent {
|
|
411
557
|
flex-direction: column;
|
|
412
558
|
align-items: center;
|
|
413
559
|
gap: var(--h-gap);
|
|
@@ -415,37 +561,92 @@
|
|
|
415
561
|
text-align: center;
|
|
416
562
|
}
|
|
417
563
|
|
|
418
|
-
|
|
564
|
+
/* Under the label of a tile, not pushed to an edge by the margin of a list row. */
|
|
565
|
+
:is(.MenuList, .RadioGroup)[data-layout="horizontal"] :is(.RadioIndicator, .CheckboxIndicator) {
|
|
566
|
+
margin-inline-start: 0;
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
:is(.MenuList, .RadioGroup)[data-layout="horizontal"] .Separator {
|
|
570
|
+
display: var(--menu-horizontal-separator-display, block);
|
|
419
571
|
width: 1px;
|
|
420
572
|
height: auto;
|
|
421
573
|
align-self: stretch;
|
|
422
574
|
margin: calc(var(--spacing) * 1) 0;
|
|
575
|
+
}/* A group's options reach the horizontal gutter of the menu, not the inset of its rows: 10pt from the panel's edges in
|
|
576
|
+
the kit and Apps 2.4, where the rows are 16pt in. */.RadioGroup[data-layout="horizontal"] {
|
|
577
|
+
min-width: 0;
|
|
578
|
+
margin-inline: calc(var(--menu-horizontal-padding-inline, var(--menu-gutter)) - var(--menu-padding-inline, var(--menu-gutter)));
|
|
579
|
+
padding-inline: 0;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
/* The chosen mode stands on a fill, as Photos marks Added or Captured and the kit its first action; the fill tells the
|
|
583
|
+
choice, so no radio indicator is drawn. On a desktop it is 15%, apart from a highlight (8%, 10% in dark); on a phone
|
|
584
|
+
touch.css makes it the 12% of the device (IMG_5666: 222 on the 253 panel across the tile, darker only at its
|
|
585
|
+
leading edge, where the glass shades it; the kit's tertiary fill is 12% too). */
|
|
586
|
+
.RadioGroup[data-layout="horizontal"] .RadioItem[data-state="checked"] {
|
|
587
|
+
border-radius: var(--menu-item-radius);
|
|
588
|
+
background: var(--menu-horizontal-selected-background, var(--alpha-15));
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
.RadioGroup[data-layout="horizontal"] .RadioItem .RadioIndicator {
|
|
592
|
+
display: none;
|
|
423
593
|
}/* The shared check icon stays hidden for desktop radio indicators. */.SelectionCheck {
|
|
424
594
|
width: 16px;
|
|
425
595
|
height: 16px;
|
|
426
596
|
}.RadioIndicator .SelectionCheck {
|
|
427
597
|
display: none;
|
|
428
598
|
}/* iPhone menu items share label/subtitle and selection geometry. */@media (max-width: 767px) {
|
|
429
|
-
.MenuList
|
|
430
|
-
|
|
599
|
+
.MenuList {
|
|
600
|
+
background: var(--menu-mobile-background, var(--color-surface-elevated));
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
:where([data-theme="dark"]) .MenuList {
|
|
604
|
+
backdrop-filter: var(--menu-mobile-backdrop-filter, none);
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
/* No tracking of its own: the system font tracks the labels. Nine labels of native iOS 26 menus
|
|
608
|
+
(iOS2 IMG_5524, 5525, 17/400) measure within 2px at @3x without it and 7 to 16px short with -0.43px. */
|
|
609
|
+
.MenuList:not([data-layout="horizontal"]) :is(.MenuItem, .MenuItemContent):not(:where(.RadioGroup[data-layout="horizontal"] *)) {
|
|
610
|
+
letter-spacing: var(--menu-letter-spacing, normal);
|
|
431
611
|
overflow-wrap: anywhere;
|
|
432
612
|
}
|
|
433
613
|
|
|
434
|
-
/*
|
|
435
|
-
|
|
614
|
+
/* A row is 42pt, as native iOS 26 menus space them (iOS-menu IMG_5676 and IMG_5690: labels 125 to 127px apart at
|
|
615
|
+
@3x; the iOS 27 kit draws 40), with a full-row pressed surface. */
|
|
616
|
+
.MenuList:not([data-layout="horizontal"]) .MenuItem:not(:where(.RadioGroup[data-layout="horizontal"] *)) {
|
|
436
617
|
display: grid;
|
|
437
618
|
grid-template-columns: minmax(0, 1fr);
|
|
438
619
|
align-content: center;
|
|
439
|
-
min-height:
|
|
620
|
+
min-height: 42px;
|
|
440
621
|
padding-block: 0;
|
|
441
622
|
}
|
|
442
623
|
|
|
443
|
-
|
|
624
|
+
/* A row's press is its own (the capsule, a tile's fill): Safari's gray tap rectangle would stack on it */
|
|
625
|
+
.MenuItem {
|
|
626
|
+
-webkit-tap-highlight-color: transparent;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
/* The pressed surface is the capsule iOS 26 draws under the finger (Files, the owner's shots of 08.11, @3x: 535 to
|
|
630
|
+
1224 in a 504 to 1255 panel, the whole 42pt row): 10pt from the panel's edges, not the row's 16, and round at its
|
|
631
|
+
ends (the menu's corner less the gutter, 24px, comes to a half circle on a row). iOS lights it under the finger and
|
|
632
|
+
darkens it away from it, 7 to 8% black on average (Files: 252 under the finger, 217 to 228 at the far end on the
|
|
633
|
+
255 panel); one even fill of that strength, as the owner proposed (08.11), --menu-press-background in touch.css. Every
|
|
634
|
+
row presses the same gray, a destructive one too. Without touch.css it is the highlight color. */
|
|
635
|
+
.MenuList:not([data-layout="horizontal"]) .MenuItem:not(:where(.RadioGroup[data-layout="horizontal"] *))::before {
|
|
444
636
|
position: absolute;
|
|
445
|
-
inset: 0;
|
|
637
|
+
inset-block: 0;
|
|
638
|
+
inset-inline: calc(var(--menu-gutter) - var(--menu-padding-inline, var(--menu-gutter)));
|
|
639
|
+
background: var(--menu-press-background, var(--menu-item-background-color));
|
|
446
640
|
}
|
|
447
641
|
|
|
448
|
-
|
|
642
|
+
/* It shows the moment the finger lands and fades when it lifts. */
|
|
643
|
+
.MenuList:not([data-layout="horizontal"]) .MenuItem:not(:where(.RadioGroup[data-layout="horizontal"] *)):not(:has(.ItemActions:active)):active::before {
|
|
644
|
+
opacity: 1;
|
|
645
|
+
transform: scale(var(--menu-item-press-scale, var(--scale, 0.98)));
|
|
646
|
+
transition-duration: 0s;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
.MenuList:not([data-layout="horizontal"]) .MenuItem:not(:where(.RadioGroup[data-layout="horizontal"] *)) > .PressableInner {
|
|
449
650
|
grid-area: 1 / 1;
|
|
450
651
|
min-width: 0;
|
|
451
652
|
padding-block: 10px;
|
|
@@ -487,25 +688,35 @@
|
|
|
487
688
|
color: var(--color-text);
|
|
488
689
|
}
|
|
489
690
|
|
|
691
|
+
/* The checkmark column of native iOS 26 menus (iOS-menu IMG_5666 Photos, IMG_5687 and IMG_5688 Files, the owner's
|
|
692
|
+
Files shots of 08.11, at @3x): 10.3 to 10.7pt of ink centred 28pt from the panel's edge, labels from 43.5pt. A row's
|
|
693
|
+
content starts 22px in, so the column is 13px and the label follows 8.5px after it (touch.css tokens). The iOS 27
|
|
694
|
+
kit draws a 15pt checkmark centred at 34 and labels from 52; the device wins. */
|
|
490
695
|
.MenuList:not([data-layout="horizontal"]) :is(.RadioItem, .CheckboxItem) {
|
|
491
|
-
gap: var(--menu-
|
|
696
|
+
gap: var(--menu-check-gap, 8.5px);
|
|
492
697
|
}
|
|
493
698
|
|
|
494
699
|
.MenuList:not([data-layout="horizontal"]) :is(.RadioIndicator, .CheckboxIndicator) {
|
|
495
|
-
width:
|
|
700
|
+
width: var(--menu-check-column, 13px);
|
|
496
701
|
height: 22px;
|
|
497
|
-
/*
|
|
702
|
+
/* A 22px selection slot beside the 20px label line. */
|
|
498
703
|
border-radius: 0;
|
|
499
704
|
box-shadow: none;
|
|
500
705
|
}
|
|
501
706
|
|
|
707
|
+
/* A menu with a checkmark column keeps it on every row: a row without a checkmark and a section title start at the
|
|
708
|
+
label column too (IMG_5666: View Options, Report a Concern and Filter:; Files: Select, New Folder, Name, Kind). */
|
|
709
|
+
.MenuList:not([data-layout="horizontal"]):has(:is(.RadioItem, .CheckboxItem):not(:where(.RadioGroup[data-layout="horizontal"] *))) .MenuItem:not(.RadioItem, .CheckboxItem, [data-submenu-collapse]):not(:where(.RadioGroup[data-layout="horizontal"] *)), .MenuList:not([data-layout="horizontal"]):has(:is(.RadioItem, .CheckboxItem):not(:where(.RadioGroup[data-layout="horizontal"] *))) .MenuItemContent, .MenuList:not([data-layout="horizontal"]):has(:is(.RadioItem, .CheckboxItem):not(:where(.RadioGroup[data-layout="horizontal"] *))) .MenuLabel {
|
|
710
|
+
padding-inline-start: var(--menu-check-label-inset, calc(8px + 13px + 8.5px));
|
|
711
|
+
}
|
|
712
|
+
|
|
502
713
|
.MenuList:not([data-layout="horizontal"]) .RadioIndicatorActive::before,
|
|
503
714
|
.MenuList:not([data-layout="horizontal"]) .RadioIndicatorActive::after {
|
|
504
715
|
display: none;
|
|
505
716
|
}
|
|
506
717
|
|
|
507
718
|
.MenuList:not([data-layout="horizontal"]) .CheckboxCircle {
|
|
508
|
-
width:
|
|
719
|
+
width: var(--menu-check-column, 13px);
|
|
509
720
|
height: 22px;
|
|
510
721
|
border-radius: 0;
|
|
511
722
|
background: none;
|
|
@@ -515,38 +726,337 @@
|
|
|
515
726
|
|
|
516
727
|
/* iOS 26 kit Menu Items (Menu has Selection): the checkmark leads the row, so the desktop end
|
|
517
728
|
position moves to the start on a phone. */
|
|
518
|
-
.MenuList:not([data-layout="horizontal"])
|
|
729
|
+
.MenuList:not([data-layout="horizontal"]) .CheckboxItem[data-indicator-position="end"],
|
|
730
|
+
.MenuList:not([data-layout="horizontal"]) [data-indicator-position="end"] .RadioItem {
|
|
519
731
|
justify-content: flex-start;
|
|
520
732
|
}
|
|
521
733
|
|
|
522
734
|
.MenuList:not([data-layout="horizontal"]) [data-indicator-position="end"] :is(.RadioIndicator, .RadioIndicatorActive, .CheckboxIndicator) {
|
|
523
735
|
order: -1;
|
|
736
|
+
margin-inline-start: 0;
|
|
524
737
|
}
|
|
525
738
|
|
|
526
|
-
/* The
|
|
739
|
+
/* The native checkmark: 10.3 to 10.7pt of ink (IMG_5666, 5687, 5688); the 18px Check icon draws 10.6 by 9.9, centred
|
|
740
|
+
in its column with the overflow on both sides. */
|
|
527
741
|
.MenuList:not([data-layout="horizontal"]) .SelectionCheck {
|
|
528
742
|
display: block;
|
|
529
743
|
flex-shrink: 0;
|
|
530
|
-
width:
|
|
531
|
-
height:
|
|
744
|
+
width: var(--menu-check-size, 18px);
|
|
745
|
+
height: var(--menu-check-size, 18px);
|
|
532
746
|
color: inherit;
|
|
533
747
|
}
|
|
534
|
-
}
|
|
748
|
+
}
|
|
749
|
+
:where([data-plex-layout="phone"]) .MenuList {
|
|
750
|
+
background: var(--menu-mobile-background, var(--color-surface-elevated));
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
:where([data-plex-layout="phone"]) :where([data-theme="dark"]) .MenuList {
|
|
754
|
+
backdrop-filter: var(--menu-mobile-backdrop-filter, none);
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
/* No tracking of its own: the system font tracks the labels. Nine labels of native iOS 26 menus
|
|
758
|
+
(iOS2 IMG_5524, 5525, 17/400) measure within 2px at @3x without it and 7 to 16px short with -0.43px. */
|
|
759
|
+
:where([data-plex-layout="phone"]) .MenuList:not([data-layout="horizontal"]) :is(.MenuItem, .MenuItemContent):not(:where(.RadioGroup[data-layout="horizontal"] *)) {
|
|
760
|
+
letter-spacing: var(--menu-letter-spacing, normal);
|
|
761
|
+
overflow-wrap: anywhere;
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
/* A row is 42pt, as native iOS 26 menus space them (iOS-menu IMG_5676 and IMG_5690: labels 125 to 127px apart at
|
|
765
|
+
@3x; the iOS 27 kit draws 40), with a full-row pressed surface. */
|
|
766
|
+
:where([data-plex-layout="phone"]) .MenuList:not([data-layout="horizontal"]) .MenuItem:not(:where(.RadioGroup[data-layout="horizontal"] *)) {
|
|
767
|
+
display: grid;
|
|
768
|
+
grid-template-columns: minmax(0, 1fr);
|
|
769
|
+
align-content: center;
|
|
770
|
+
min-height: 42px;
|
|
771
|
+
padding-block: 0;
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
/* A row's press is its own (the capsule, a tile's fill): Safari's gray tap rectangle would stack on it */
|
|
775
|
+
:where([data-plex-layout="phone"]) .MenuItem {
|
|
776
|
+
-webkit-tap-highlight-color: transparent;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
/* The pressed surface is the capsule iOS 26 draws under the finger (Files, the owner's shots of 08.11, @3x: 535 to
|
|
780
|
+
1224 in a 504 to 1255 panel, the whole 42pt row): 10pt from the panel's edges, not the row's 16, and round at its
|
|
781
|
+
ends (the menu's corner less the gutter, 24px, comes to a half circle on a row). iOS lights it under the finger and
|
|
782
|
+
darkens it away from it, 7 to 8% black on average (Files: 252 under the finger, 217 to 228 at the far end on the
|
|
783
|
+
255 panel); one even fill of that strength, as the owner proposed (08.11), --menu-press-background in touch.css. Every
|
|
784
|
+
row presses the same gray, a destructive one too. Without touch.css it is the highlight color. */
|
|
785
|
+
:where([data-plex-layout="phone"]) .MenuList:not([data-layout="horizontal"]) .MenuItem:not(:where(.RadioGroup[data-layout="horizontal"] *))::before {
|
|
786
|
+
position: absolute;
|
|
787
|
+
inset-block: 0;
|
|
788
|
+
inset-inline: calc(var(--menu-gutter) - var(--menu-padding-inline, var(--menu-gutter)));
|
|
789
|
+
background: var(--menu-press-background, var(--menu-item-background-color));
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
/* It shows the moment the finger lands and fades when it lifts. */
|
|
793
|
+
:where([data-plex-layout="phone"]) .MenuList:not([data-layout="horizontal"]) .MenuItem:not(:where(.RadioGroup[data-layout="horizontal"] *)):not(:has(.ItemActions:active)):active::before {
|
|
794
|
+
opacity: 1;
|
|
795
|
+
transform: scale(var(--menu-item-press-scale, var(--scale, 0.98)));
|
|
796
|
+
transition-duration: 0s;
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
:where([data-plex-layout="phone"]) .MenuList:not([data-layout="horizontal"]) .MenuItem:not(:where(.RadioGroup[data-layout="horizontal"] *)) > .PressableInner {
|
|
800
|
+
grid-area: 1 / 1;
|
|
801
|
+
min-width: 0;
|
|
802
|
+
padding-block: 10px;
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
:where([data-plex-layout="phone"]) .MenuList:not([data-layout="horizontal"]) .MenuItem:has(.ItemDescription),
|
|
806
|
+
:where([data-plex-layout="phone"]) .MenuList:not([data-layout="horizontal"]) .MenuItemContent:has(.ItemDescription) {
|
|
807
|
+
font-weight: var(--font-weight-normal);
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
:where([data-plex-layout="phone"]) .MenuList:not([data-layout="horizontal"]) .ItemLeading {
|
|
811
|
+
gap: 2px;
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
:where([data-plex-layout="phone"]) .MenuList:not([data-layout="horizontal"]) .ItemDescription {
|
|
815
|
+
font-size: 13px;
|
|
816
|
+
line-height: 18px;
|
|
817
|
+
letter-spacing: normal;
|
|
818
|
+
color: var(--menu-description-color, var(--color-text-secondary));
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
/* The native text subtitle is one line; rich description slots retain their layout. */
|
|
822
|
+
:where([data-plex-layout="phone"]) .MenuList:not([data-layout="horizontal"]) .ItemDescription:not(:has(*)) {
|
|
823
|
+
overflow: hidden;
|
|
824
|
+
text-overflow: ellipsis;
|
|
825
|
+
white-space: nowrap;
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
:where([data-plex-layout="phone"]) .MenuList:not([data-layout="horizontal"]) .MenuItem[data-disabled] {
|
|
829
|
+
color: var(--menu-disabled-label-color, var(--color-text-tertiary));
|
|
830
|
+
opacity: 1;
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
:where([data-plex-layout="phone"]) .MenuList:not([data-layout="horizontal"]) .MenuItem[data-disabled] .ItemDescription {
|
|
834
|
+
color: var(--menu-disabled-description-color, var(--color-text-tertiary));
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
:where([data-plex-layout="phone"]) .MenuList:not([data-layout="horizontal"]) .MenuItem[data-disabled] :is(.RadioIndicator, .CheckboxIndicator) {
|
|
838
|
+
color: var(--color-text);
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
/* The checkmark column of native iOS 26 menus (iOS-menu IMG_5666 Photos, IMG_5687 and IMG_5688 Files, the owner's
|
|
842
|
+
Files shots of 08.11, at @3x): 10.3 to 10.7pt of ink centred 28pt from the panel's edge, labels from 43.5pt. A row's
|
|
843
|
+
content starts 22px in, so the column is 13px and the label follows 8.5px after it (touch.css tokens). The iOS 27
|
|
844
|
+
kit draws a 15pt checkmark centred at 34 and labels from 52; the device wins. */
|
|
845
|
+
:where([data-plex-layout="phone"]) .MenuList:not([data-layout="horizontal"]) :is(.RadioItem, .CheckboxItem) {
|
|
846
|
+
gap: var(--menu-check-gap, 8.5px);
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
:where([data-plex-layout="phone"]) .MenuList:not([data-layout="horizontal"]) :is(.RadioIndicator, .CheckboxIndicator) {
|
|
850
|
+
width: var(--menu-check-column, 13px);
|
|
851
|
+
height: 22px;
|
|
852
|
+
/* A 22px selection slot beside the 20px label line. */
|
|
853
|
+
border-radius: 0;
|
|
854
|
+
box-shadow: none;
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
/* A menu with a checkmark column keeps it on every row: a row without a checkmark and a section title start at the
|
|
858
|
+
label column too (IMG_5666: View Options, Report a Concern and Filter:; Files: Select, New Folder, Name, Kind). */
|
|
859
|
+
:where([data-plex-layout="phone"]) .MenuList:not([data-layout="horizontal"]):has(:is(.RadioItem, .CheckboxItem):not(:where(.RadioGroup[data-layout="horizontal"] *))) .MenuItem:not(.RadioItem, .CheckboxItem, [data-submenu-collapse]):not(:where(.RadioGroup[data-layout="horizontal"] *)), :where([data-plex-layout="phone"]) .MenuList:not([data-layout="horizontal"]):has(:is(.RadioItem, .CheckboxItem):not(:where(.RadioGroup[data-layout="horizontal"] *))) .MenuItemContent, :where([data-plex-layout="phone"]) .MenuList:not([data-layout="horizontal"]):has(:is(.RadioItem, .CheckboxItem):not(:where(.RadioGroup[data-layout="horizontal"] *))) .MenuLabel {
|
|
860
|
+
padding-inline-start: var(--menu-check-label-inset, calc(8px + 13px + 8.5px));
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
:where([data-plex-layout="phone"]) .MenuList:not([data-layout="horizontal"]) .RadioIndicatorActive::before,
|
|
864
|
+
:where([data-plex-layout="phone"]) .MenuList:not([data-layout="horizontal"]) .RadioIndicatorActive::after {
|
|
865
|
+
display: none;
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
:where([data-plex-layout="phone"]) .MenuList:not([data-layout="horizontal"]) .CheckboxCircle {
|
|
869
|
+
width: var(--menu-check-column, 13px);
|
|
870
|
+
height: 22px;
|
|
871
|
+
border-radius: 0;
|
|
872
|
+
background: none;
|
|
873
|
+
color: inherit;
|
|
874
|
+
animation: none;
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
/* iOS 26 kit Menu Items (Menu has Selection): the checkmark leads the row, so the desktop end
|
|
878
|
+
position moves to the start on a phone. */
|
|
879
|
+
:where([data-plex-layout="phone"]) .MenuList:not([data-layout="horizontal"]) .CheckboxItem[data-indicator-position="end"],
|
|
880
|
+
:where([data-plex-layout="phone"]) .MenuList:not([data-layout="horizontal"]) [data-indicator-position="end"] .RadioItem {
|
|
881
|
+
justify-content: flex-start;
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
:where([data-plex-layout="phone"]) .MenuList:not([data-layout="horizontal"]) [data-indicator-position="end"] :is(.RadioIndicator, .RadioIndicatorActive, .CheckboxIndicator) {
|
|
885
|
+
order: -1;
|
|
886
|
+
margin-inline-start: 0;
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
/* The native checkmark: 10.3 to 10.7pt of ink (IMG_5666, 5687, 5688); the 18px Check icon draws 10.6 by 9.9, centred
|
|
890
|
+
in its column with the overflow on both sides. */
|
|
891
|
+
:where([data-plex-layout="phone"]) .MenuList:not([data-layout="horizontal"]) .SelectionCheck {
|
|
892
|
+
display: block;
|
|
893
|
+
flex-shrink: 0;
|
|
894
|
+
width: var(--menu-check-size, 18px);
|
|
895
|
+
height: var(--menu-check-size, 18px);
|
|
896
|
+
color: inherit;
|
|
897
|
+
}/* Phone submenu geometry is solved against the whole viewport/footer boundary.
|
|
535
898
|
Retain the primitive's collection and focus behavior, not its side-space width. */@media (max-width: 767px) {
|
|
536
899
|
.MenuList[data-submenu]:not([data-submenu-positioned]) {
|
|
537
900
|
visibility: hidden;
|
|
538
901
|
}
|
|
539
902
|
|
|
540
903
|
.MenuList[data-submenu-phone] {
|
|
541
|
-
width
|
|
542
|
-
width: var(--menu-phone-width, max-content);
|
|
904
|
+
/* The width of the menu it opens over, which it covers (iOS-menu IMG_5677) */
|
|
905
|
+
width: var(--menu-phone-width, var(--menu-default-width, -moz-max-content));
|
|
906
|
+
width: var(--menu-phone-width, var(--menu-default-width, max-content));
|
|
543
907
|
min-width: min(var(--menu-phone-min-width, var(--menu-default-min-width, 238px)), var(--menu-phone-max-width));
|
|
544
908
|
max-width: var(--menu-phone-max-width);
|
|
545
909
|
max-height: min(var(--menu-max-height, 1200px), var(--menu-phone-max-height));
|
|
546
910
|
}
|
|
547
911
|
|
|
912
|
+
/* A submenu row ends in a chevron of the label's color, 6 by 10pt with its end 28pt in from the panel's
|
|
913
|
+
(iOS-menu IMG_5676, View Options: 17 by 31px at @3x, black): the 8 by 14 units of ChevronRight at 18px. */
|
|
914
|
+
.MenuList:not([data-layout="horizontal"]) .SubTriggerIcon {
|
|
915
|
+
width: 18px;
|
|
916
|
+
height: 18px;
|
|
917
|
+
opacity: 1;
|
|
918
|
+
}
|
|
919
|
+
|
|
548
920
|
.SubMenuItem[data-state="open"] > .PressableInner > .SubTriggerIcon {
|
|
549
921
|
transform: rotate(90deg);
|
|
550
922
|
}
|
|
923
|
+
|
|
924
|
+
/* iOS 26 submenus (iOS-menu IMG_5677, IMG_5678, IMG_5682): the row that opened one heads it in Semibold, with a
|
|
925
|
+
separator under it (Menu.tsx SubContent). */
|
|
926
|
+
.MenuList[data-submenu-phone] > [data-submenu-collapse] {
|
|
927
|
+
font-weight: var(--font-weight-semibold);
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
/* A submenu that starts with its own separator keeps only the one under its heading row */
|
|
931
|
+
[data-submenu-collapse] + .Separator + .Separator {
|
|
932
|
+
display: none;
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
/* While a submenu stands over it the parent steps back, as in IMG_5677 against IMG_5676: its rows at half strength
|
|
936
|
+
(the label's ink 10 shows as 131 on the 254 panel) and the panel 0.968 of its size from its top (12px narrower on
|
|
937
|
+
each side of a 753px panel, the top in place). The placement marks it (menuSubmenuPlacement.ts) and keeps the mark
|
|
938
|
+
while the whole menu leaves. The origin returns only once the panel is back to full size. */
|
|
939
|
+
.MenuList {
|
|
940
|
+
transition: scale var(--motion-enter) var(--cubic-enter), transform-origin 0s linear var(--motion-enter);
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
.MenuList > * {
|
|
944
|
+
transition: opacity var(--motion-enter) var(--cubic-enter);
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
.MenuList[data-submenu-over] {
|
|
948
|
+
scale: 0.968;
|
|
949
|
+
transform-origin: 50% 0;
|
|
950
|
+
transition: scale var(--motion-enter) var(--cubic-enter), transform-origin 0s;
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
.MenuList[data-submenu-over] > * {
|
|
954
|
+
opacity: 0.5;
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
/* A submenu grows out of the row that opened it, in step with the parent stepping back: from the middle of its top,
|
|
958
|
+
where its heading row covers that row, over the parent's --motion-enter and on its curve. The desktop's quick
|
|
959
|
+
submenu (100ms, from its corner beside the row) came in at a different time from the parent, from the corner. */
|
|
960
|
+
.MenuList[data-submenu-phone] {
|
|
961
|
+
transform-origin: 50% 0;
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
.Menu[data-entering-active] .MenuList[data-submenu-phone],
|
|
965
|
+
.Menu[data-entering][data-interrupted] .MenuList[data-submenu-phone] {
|
|
966
|
+
transition-duration: var(--motion-enter);
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
.Menu[data-exiting-active] .MenuList[data-submenu-phone],
|
|
970
|
+
.Menu[data-exiting][data-interrupted] .MenuList[data-submenu-phone] {
|
|
971
|
+
transition-duration: var(--motion-exit);
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
/* Opening and closing keep their own timing. The rule above lists a delay for the origin, and the open and close
|
|
975
|
+
rules name only their properties and durations, so without this the scale of a menu coming in or going out
|
|
976
|
+
started a whole --motion-enter late, after its fade. */
|
|
977
|
+
.Menu:is([data-entering], [data-exiting]) .MenuList {
|
|
978
|
+
transition-delay: 0s;
|
|
979
|
+
}
|
|
551
980
|
}
|
|
981
|
+
:where([data-plex-layout="phone"]) .MenuList[data-submenu]:not([data-submenu-positioned]) {
|
|
982
|
+
visibility: hidden;
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
:where([data-plex-layout="phone"]) .MenuList[data-submenu-phone] {
|
|
986
|
+
/* The width of the menu it opens over, which it covers (iOS-menu IMG_5677) */
|
|
987
|
+
width: var(--menu-phone-width, var(--menu-default-width, -moz-max-content));
|
|
988
|
+
width: var(--menu-phone-width, var(--menu-default-width, max-content));
|
|
989
|
+
min-width: min(var(--menu-phone-min-width, var(--menu-default-min-width, 238px)), var(--menu-phone-max-width));
|
|
990
|
+
max-width: var(--menu-phone-max-width);
|
|
991
|
+
max-height: min(var(--menu-max-height, 1200px), var(--menu-phone-max-height));
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
/* A submenu row ends in a chevron of the label's color, 6 by 10pt with its end 28pt in from the panel's
|
|
995
|
+
(iOS-menu IMG_5676, View Options: 17 by 31px at @3x, black): the 8 by 14 units of ChevronRight at 18px. */
|
|
996
|
+
:where([data-plex-layout="phone"]) .MenuList:not([data-layout="horizontal"]) .SubTriggerIcon {
|
|
997
|
+
width: 18px;
|
|
998
|
+
height: 18px;
|
|
999
|
+
opacity: 1;
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
:where([data-plex-layout="phone"]) .SubMenuItem[data-state="open"] > .PressableInner > .SubTriggerIcon {
|
|
1003
|
+
transform: rotate(90deg);
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
/* iOS 26 submenus (iOS-menu IMG_5677, IMG_5678, IMG_5682): the row that opened one heads it in Semibold, with a
|
|
1007
|
+
separator under it (Menu.tsx SubContent). */
|
|
1008
|
+
:where([data-plex-layout="phone"]) .MenuList[data-submenu-phone] > [data-submenu-collapse] {
|
|
1009
|
+
font-weight: var(--font-weight-semibold);
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
/* A submenu that starts with its own separator keeps only the one under its heading row */
|
|
1013
|
+
:where([data-plex-layout="phone"]) [data-submenu-collapse] + .Separator + .Separator {
|
|
1014
|
+
display: none;
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
/* While a submenu stands over it the parent steps back, as in IMG_5677 against IMG_5676: its rows at half strength
|
|
1018
|
+
(the label's ink 10 shows as 131 on the 254 panel) and the panel 0.968 of its size from its top (12px narrower on
|
|
1019
|
+
each side of a 753px panel, the top in place). The placement marks it (menuSubmenuPlacement.ts) and keeps the mark
|
|
1020
|
+
while the whole menu leaves. The origin returns only once the panel is back to full size. */
|
|
1021
|
+
:where([data-plex-layout="phone"]) .MenuList {
|
|
1022
|
+
transition: scale var(--motion-enter) var(--cubic-enter), transform-origin 0s linear var(--motion-enter);
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
:where([data-plex-layout="phone"]) .MenuList > * {
|
|
1026
|
+
transition: opacity var(--motion-enter) var(--cubic-enter);
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
:where([data-plex-layout="phone"]) .MenuList[data-submenu-over] {
|
|
1030
|
+
scale: 0.968;
|
|
1031
|
+
transform-origin: 50% 0;
|
|
1032
|
+
transition: scale var(--motion-enter) var(--cubic-enter), transform-origin 0s;
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
:where([data-plex-layout="phone"]) .MenuList[data-submenu-over] > * {
|
|
1036
|
+
opacity: 0.5;
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
/* A submenu grows out of the row that opened it, in step with the parent stepping back: from the middle of its top,
|
|
1040
|
+
where its heading row covers that row, over the parent's --motion-enter and on its curve. The desktop's quick
|
|
1041
|
+
submenu (100ms, from its corner beside the row) came in at a different time from the parent, from the corner. */
|
|
1042
|
+
:where([data-plex-layout="phone"]) .MenuList[data-submenu-phone] {
|
|
1043
|
+
transform-origin: 50% 0;
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
:where([data-plex-layout="phone"]) .Menu[data-entering-active] .MenuList[data-submenu-phone],
|
|
1047
|
+
:where([data-plex-layout="phone"]) .Menu[data-entering][data-interrupted] .MenuList[data-submenu-phone] {
|
|
1048
|
+
transition-duration: var(--motion-enter);
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
:where([data-plex-layout="phone"]) .Menu[data-exiting-active] .MenuList[data-submenu-phone],
|
|
1052
|
+
:where([data-plex-layout="phone"]) .Menu[data-exiting][data-interrupted] .MenuList[data-submenu-phone] {
|
|
1053
|
+
transition-duration: var(--motion-exit);
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1056
|
+
/* Opening and closing keep their own timing. The rule above lists a delay for the origin, and the open and close
|
|
1057
|
+
rules name only their properties and durations, so without this the scale of a menu coming in or going out
|
|
1058
|
+
started a whole --motion-enter late, after its fade. */
|
|
1059
|
+
:where([data-plex-layout="phone"]) .Menu:is([data-entering], [data-exiting]) .MenuList {
|
|
1060
|
+
transition-delay: 0s;
|
|
1061
|
+
}
|
|
552
1062
|
}
|