@plexui/styles 0.1.46 → 0.3.0
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 +54 -1
- package/dist/es/components/Alert/Alert.module.css +75 -37
- package/dist/es/components/Button/Button.module.css +36 -28
- package/dist/es/components/ButtonGroup/ButtonGroup.module.css +15 -3
- package/dist/es/components/ColorPicker/ColorPicker.module.css +42 -70
- package/dist/es/components/ContextMenu/ContextMenu.module.css +1 -1
- package/dist/es/components/DatePicker/Calendar.module.css +17 -15
- package/dist/es/components/DateRangePicker/Calendar.module.css +17 -69
- package/dist/es/components/Dialog/Dialog.module.css +169 -70
- package/dist/es/components/EmptyMessage/EmptyMessage.module.css +12 -8
- package/dist/es/components/Field/Field.module.css +56 -22
- package/dist/es/components/FieldGroup/FieldGroup.module.css +5 -5
- package/dist/es/components/FileUpload/FileUpload.module.css +2 -2
- package/dist/es/components/Input/Input.module.css +100 -18
- package/dist/es/components/Menu/Menu.module.css +38 -42
- package/dist/es/components/Page/Page.module.css +38 -0
- package/dist/es/components/Popover/Popover.module.css +10 -11
- package/dist/es/components/ProgressSteps/ProgressSteps.module.css +17 -0
- package/dist/es/components/RadioGroup/RadioGroup.module.css +7 -3
- package/dist/es/components/Select/Select.module.css +304 -42
- package/dist/es/components/SelectControl/SelectControl.module.css +34 -10
- package/dist/es/components/Sidebar/Sidebar.module.css +6 -4
- package/dist/es/components/Slider/Slider.module.css +46 -2
- package/dist/es/components/Sortable/Sortable.module.css +3 -2
- package/dist/es/components/StatsCard/StatsCard.module.css +269 -0
- package/dist/es/components/Stepper/Stepper.module.css +7 -4
- package/dist/es/components/SwipeActions/SwipeActions.module.css +32 -17
- package/dist/es/components/Switch/Switch.module.css +6 -5
- package/dist/es/components/TabBar/TabBar.module.css +128 -12
- package/dist/es/components/Tabs/Tabs.module.css +240 -45
- package/dist/es/components/Toast/Toast.module.css +47 -24
- package/dist/es/components/Toolbar/Toolbar.module.css +120 -62
- package/dist/es/styles/geist-mono-fonts/LICENSE +93 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-cyrillic-ext-wght-italic.woff2 +0 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-cyrillic-ext-wght-normal.woff2 +0 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-cyrillic-wght-italic.woff2 +0 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-cyrillic-wght-normal.woff2 +0 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-latin-ext-wght-italic.woff2 +0 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-latin-ext-wght-normal.woff2 +0 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-latin-wght-italic.woff2 +0 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-latin-wght-normal.woff2 +0 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-symbols2-wght-italic.woff2 +0 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-symbols2-wght-normal.woff2 +0 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-vietnamese-wght-italic.woff2 +0 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-vietnamese-wght-normal.woff2 +0 -0
- package/dist/es/styles/geist-mono.css +124 -0
- package/dist/es/styles/index.css +3 -0
- package/dist/es/styles/inter-fonts/LICENSE +93 -0
- package/dist/es/styles/inter-fonts/inter-cyrillic-ext-opsz-italic.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-cyrillic-ext-opsz-normal.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-cyrillic-opsz-italic.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-cyrillic-opsz-normal.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-greek-ext-opsz-italic.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-greek-ext-opsz-normal.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-greek-opsz-italic.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-greek-opsz-normal.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-latin-ext-opsz-italic.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-latin-ext-opsz-normal.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-latin-opsz-italic.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-latin-opsz-normal.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-vietnamese-opsz-italic.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-vietnamese-opsz-normal.woff2 +0 -0
- package/dist/es/styles/inter.css +142 -0
- package/dist/es/styles/mobile-materials.css +65 -24
- package/dist/es/styles/tailwind-utilities.css +8 -0
- package/dist/es/styles/touch.css +357 -169
- package/dist/es/styles/variables-components.css +255 -138
- package/dist/es/styles/variables-semantic.css +30 -5
- package/dist/es/styles/variables-tailwind-theme.css +2 -4
- package/dist/es/styles/variables-tokens-root.css +70 -4
- package/package.json +1 -1
- package/dist/es/components/StatCard/StatCard.module.css +0 -234
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
.Popover[data-translucent] {
|
|
23
|
+
/* Its own shadow on a phone too, where the panel otherwise takes the menus' */
|
|
24
|
+
box-shadow: var(--shadow), var(--shadow-hairline);
|
|
23
25
|
backdrop-filter: blur(16px);
|
|
24
26
|
background: linear-gradient(360deg, rgb(247 247 248 / 50%) 0%, rgb(247 247 248 / 100%) 100%);
|
|
25
27
|
}
|
|
@@ -60,23 +62,20 @@
|
|
|
60
62
|
transition-duration: var(--motion-exit);
|
|
61
63
|
transition-property: opacity, transform;
|
|
62
64
|
transition-timing-function: var(--cubic-exit-snappy);
|
|
63
|
-
}/* iPhone: the panel
|
|
64
|
-
|
|
65
|
+
}/* iPhone: the panel is the glass of the menus in both themes, with their shadow and edge, and the phone radius,
|
|
66
|
+
as iOS 27.2 draws a popover (UIPopoverPresentationController and SwiftUI .popover on an iPhone 17, measures/
|
|
67
|
+
sheets.md). A translucent panel and the DatePicker calendar keep their own surface and shadow. */@media (max-width: 767px) {
|
|
65
68
|
.Popover {
|
|
66
69
|
background: var(--popover-mobile-background, var(--color-surface-elevated));
|
|
70
|
+
box-shadow: var(--popover-mobile-shadow, var(--menu-shadow, var(--shadow), var(--shadow-hairline)));
|
|
71
|
+
backdrop-filter: var(--popover-mobile-backdrop-filter, none);
|
|
67
72
|
}
|
|
68
|
-
|
|
69
|
-
:where([data-theme="dark"]) .Popover {
|
|
70
|
-
backdrop-filter: var(--popover-mobile-backdrop-filter, none);
|
|
71
|
-
}
|
|
72
73
|
}
|
|
73
74
|
:where([data-plex-layout="phone"]) .Popover {
|
|
74
75
|
background: var(--popover-mobile-background, var(--color-surface-elevated));
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
backdrop-filter: var(--popover-mobile-backdrop-filter, none);
|
|
79
|
-
}@keyframes shake {
|
|
76
|
+
box-shadow: var(--popover-mobile-shadow, var(--menu-shadow, var(--shadow), var(--shadow-hairline)));
|
|
77
|
+
backdrop-filter: var(--popover-mobile-backdrop-filter, none);
|
|
78
|
+
}@keyframes shake {
|
|
80
79
|
0% {
|
|
81
80
|
transform: translateX(0);
|
|
82
81
|
}
|
|
@@ -177,6 +177,23 @@
|
|
|
177
177
|
max-width: 100%;
|
|
178
178
|
padding-top: calc(var(--spacing) * 2);
|
|
179
179
|
padding-bottom: 0;
|
|
180
|
+
}/* A step that shows its indicator alone keeps its title for screen readers (`visuallyHidden`) and takes no room:
|
|
181
|
+
out of the flow, so neither its padding nor the step's gap shows under the indicator */.StepContent:has(> [data-visually-hidden]):not(:has(> :not([data-visually-hidden]))) {
|
|
182
|
+
position: absolute;
|
|
183
|
+
width: 1px;
|
|
184
|
+
height: 1px;
|
|
185
|
+
padding: 0;
|
|
186
|
+
overflow: hidden;
|
|
187
|
+
clip-path: inset(50%);
|
|
188
|
+
}.StepTitle[data-visually-hidden] {
|
|
189
|
+
position: absolute;
|
|
190
|
+
width: 1px;
|
|
191
|
+
height: 1px;
|
|
192
|
+
padding: 0;
|
|
193
|
+
margin: -1px;
|
|
194
|
+
overflow: hidden;
|
|
195
|
+
clip-path: inset(50%);
|
|
196
|
+
white-space: nowrap;
|
|
180
197
|
}.StepTitle {
|
|
181
198
|
/* Center title vertically with indicator: (indicator-size - line-height) / 2 */
|
|
182
199
|
padding-top: calc((var(--indicator-size) - var(--font-text-sm-line-height)) / 2);
|
|
@@ -155,11 +155,15 @@
|
|
|
155
155
|
100% {
|
|
156
156
|
opacity: 1;
|
|
157
157
|
}
|
|
158
|
-
}/* The touch stylesheet uses the same single-selection mark inside and outside Field rows.
|
|
158
|
+
}/* The touch stylesheet uses the same single-selection mark inside and outside Field rows. It is the checkmark of
|
|
159
|
+
an iOS 27.2 list row: 15 x 14.3pt of ink ending 24.3pt from the cell's edge (UITableViewCell .checkmark and
|
|
160
|
+
SwiftUI's inline Picker on an iPhone 17 alike), so the 24-unit symbol is drawn at 26px over its 22px column,
|
|
161
|
+
as Checkbox draws its ghost mark (--checkbox-ghost-icon-size). */.Checkmark {
|
|
159
162
|
display: var(--radio-group-checkmark-display, none);
|
|
160
163
|
grid-area: 1 / 1;
|
|
161
|
-
width:
|
|
162
|
-
height:
|
|
164
|
+
width: 26px;
|
|
165
|
+
height: 26px;
|
|
166
|
+
margin: -2px;
|
|
163
167
|
color: var(--radio-group-checkmark-color, var(--color-text));
|
|
164
168
|
}
|
|
165
169
|
}
|
|
@@ -167,6 +167,8 @@
|
|
|
167
167
|
}.OptionDescription {
|
|
168
168
|
font-weight: var(--font-weight-normal);
|
|
169
169
|
color: var(--color-text-secondary);
|
|
170
|
+
}/* A tooltip's text under the label is the phone's form of it (below); a desktop shows the info symbol */.OptionTooltipText {
|
|
171
|
+
display: none;
|
|
170
172
|
}/* Option group: the `group` around a heading and its rows. No box of its own:
|
|
171
173
|
a plain block in the list's block flow, with no padding or border, so the
|
|
172
174
|
rows sit exactly where they would as the list's own children and the
|
|
@@ -347,14 +349,33 @@ background: var(--gray-25);
|
|
|
347
349
|
white-space: nowrap;
|
|
348
350
|
pointer-events: none;
|
|
349
351
|
}/* iPhone menu selection geometry. Search and multiple selection keep their behavior. */@media (max-width: 767px) {
|
|
350
|
-
/*
|
|
352
|
+
/* Lists are glass, as the Menu is (see --menu-mobile-background). */
|
|
351
353
|
.MenuList {
|
|
352
354
|
background: var(--menu-mobile-background, var(--color-surface-elevated));
|
|
355
|
+
backdrop-filter: var(--menu-mobile-backdrop-filter, none);
|
|
353
356
|
}
|
|
354
357
|
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
+
/* A list is the 250pt of an iOS menu, as the pop-up menu of a picker is (ref-app pickers, block 8: 250pt over a
|
|
359
|
+
value of 76pt, which it covers, Select.tsx), whatever its options: a long label or description wraps
|
|
360
|
+
(pickers-desc-uikit: Owner's description on three lines, the panel still 250pt). A wider trigger keeps its width,
|
|
361
|
+
and a list's own minimum width wins. A list given its own width (data-list-sized) keeps it, as on a larger
|
|
362
|
+
screen, and a maximum below the 250pt caps it. */
|
|
363
|
+
.MenuList:not([data-list-sized]) {
|
|
364
|
+
min-width: var(
|
|
365
|
+
--select-list-min-width,
|
|
366
|
+
max(min(var(--menu-default-min-width, 0px), var(--select-list-max-width, 100vw)), var(--radix-popover-trigger-width))
|
|
367
|
+
);
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
.MenuList[data-list-width="auto"] {
|
|
371
|
+
width: var(--menu-default-width, auto);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
/* A list is as tall as its rows, up to the screen's edge, as a menu is (Menu.module.css; iOS-menu IMG_5704, 5706: a
|
|
375
|
+
native menu scrolls only past the screen), not the desktop's 400px; a list's own maximum still wins. */
|
|
376
|
+
.MenuInner {
|
|
377
|
+
max-height: min(var(--select-list-max-height, 1200px), var(--radix-popover-content-available-height));
|
|
378
|
+
}
|
|
358
379
|
|
|
359
380
|
.Option,
|
|
360
381
|
.Option[data-selected],
|
|
@@ -363,7 +384,7 @@ background: var(--gray-25);
|
|
|
363
384
|
}
|
|
364
385
|
|
|
365
386
|
.Option {
|
|
366
|
-
letter-spacing: var(--menu-letter-spacing,
|
|
387
|
+
letter-spacing: var(--menu-letter-spacing, var(--font-sans-tracking));
|
|
367
388
|
}
|
|
368
389
|
|
|
369
390
|
/* The capsule is the press: Safari's gray tap rectangle would stack on it */
|
|
@@ -372,21 +393,83 @@ background: var(--gray-25);
|
|
|
372
393
|
-webkit-tap-highlight-color: transparent;
|
|
373
394
|
}
|
|
374
395
|
|
|
375
|
-
.
|
|
396
|
+
/* A phone's list has no search (Select.tsx: an iOS menu has none, a long list scrolls, IMG_5490) */
|
|
376
397
|
.ActionsContainer {
|
|
377
398
|
flex-shrink: 0;
|
|
378
399
|
}
|
|
379
400
|
|
|
401
|
+
/* Actions follow the options as a section of a menu does (ref-app pickers-actions-uikit: a pop-up menu with a
|
|
402
|
+
selection, then Create project and Organization overview): an inset line 24pt from the panel's edges, 10pt
|
|
403
|
+
above and below it, as Menu's separator (--menu-separator-gutter), and no fade over the list. A row is 42pt with
|
|
404
|
+
a 20px symbol centred 40pt in and its label from 66; in a list with checkmarks the symbol stands after their
|
|
405
|
+
column, centred at 55.7pt, and the label starts at 79.7 (native 54.3 and 79.3), as Menu's rows (touch.css). A
|
|
406
|
+
long label wraps, as Organization overview does. */
|
|
407
|
+
.ActionsContainer {
|
|
408
|
+
border-top: 0;
|
|
409
|
+
padding-top: calc(var(--menu-gutter) + 1px);
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.ActionsContainer::before {
|
|
413
|
+
inset: 0 calc(var(--menu-padding-inline, var(--menu-gutter)) + 8px) auto;
|
|
414
|
+
width: auto;
|
|
415
|
+
height: 1px;
|
|
416
|
+
margin: 0;
|
|
417
|
+
background: var(--menu-separator-background-color);
|
|
418
|
+
-webkit-mask-image: none;
|
|
419
|
+
mask-image: none;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
.Action {
|
|
423
|
+
display: flex;
|
|
424
|
+
align-items: center;
|
|
425
|
+
min-height: var(--menu-row-min-height, 42px);
|
|
426
|
+
padding-block: 0;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
.Action::before {
|
|
430
|
+
inset-block: 0;
|
|
431
|
+
inset-inline: calc(var(--menu-gutter) - var(--menu-padding-inline, var(--menu-gutter)));
|
|
432
|
+
background: var(--menu-press-background, var(--menu-item-background-color));
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.Action:active::before {
|
|
436
|
+
opacity: 1;
|
|
437
|
+
transition-duration: 0s;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
.ActionInner {
|
|
441
|
+
flex: 1;
|
|
442
|
+
gap: var(--menu-leading-icon-gap, 8px);
|
|
443
|
+
padding-block: var(--menu-row-padding-block, 10px);
|
|
444
|
+
line-height: var(--menu-line-height);
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
.Action svg {
|
|
448
|
+
width: var(--menu-leading-icon-size, 20px);
|
|
449
|
+
height: var(--menu-leading-icon-size, 20px);
|
|
450
|
+
margin-inline: calc((var(--menu-leading-icon-slot, 36px) - var(--menu-leading-icon-size, 20px)) / 2);
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
.MenuList:has(.OptionIndicatorSlot[data-position]) .ActionInner {
|
|
454
|
+
gap: var(--menu-check-icon-gap, 14px);
|
|
455
|
+
padding-inline-start: calc(var(--menu-check-column, 13px) + var(--menu-check-gap, 8.5px));
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
.MenuList:has(.OptionIndicatorSlot[data-position]) .Action svg {
|
|
459
|
+
margin-inline: var(--menu-check-icon-offset, 2px) 0;
|
|
460
|
+
}
|
|
461
|
+
|
|
380
462
|
.OptionsList {
|
|
381
463
|
min-height: 0;
|
|
382
464
|
}
|
|
383
465
|
|
|
384
|
-
/*
|
|
466
|
+
/* A row is 42pt, as a menu row is (Menu.module.css) and the rows of a picker's pop-up menu are (ref-app pickers,
|
|
467
|
+
block 8: labels 126px apart at @3x); text grows naturally, and the pressed surface covers the whole row. */
|
|
385
468
|
.Option:has(> .PressableInner > .OptionLeading) {
|
|
386
469
|
display: grid;
|
|
387
470
|
grid-template-columns: minmax(0, 1fr);
|
|
388
471
|
align-content: center;
|
|
389
|
-
min-height:
|
|
472
|
+
min-height: var(--menu-row-min-height, 42px);
|
|
390
473
|
padding-block: 0;
|
|
391
474
|
}
|
|
392
475
|
|
|
@@ -412,7 +495,7 @@ background: var(--gray-25);
|
|
|
412
495
|
|
|
413
496
|
.OptionLeading {
|
|
414
497
|
gap: 2px;
|
|
415
|
-
padding-block: 10px;
|
|
498
|
+
padding-block: var(--menu-row-padding-block, 10px);
|
|
416
499
|
}
|
|
417
500
|
|
|
418
501
|
.OptionLeading > .OptionInner {
|
|
@@ -428,7 +511,7 @@ background: var(--gray-25);
|
|
|
428
511
|
.OptionIndicatorSlot {
|
|
429
512
|
justify-content: center;
|
|
430
513
|
width: var(--menu-check-column, 13px);
|
|
431
|
-
height: 22px;
|
|
514
|
+
height: var(--menu-check-slot-height, 22px);
|
|
432
515
|
}
|
|
433
516
|
|
|
434
517
|
:is(.PressableInner, .OptionHardLimitHeading):has(> .OptionIndicatorSlot) {
|
|
@@ -441,8 +524,7 @@ background: var(--gray-25);
|
|
|
441
524
|
.MenuList:has(.OptionIndicatorSlot[data-position]) :is(
|
|
442
525
|
.OptionGroupHeading,
|
|
443
526
|
.OptionHardLimitHeading:not(:has(> .OptionIndicatorSlot)),
|
|
444
|
-
.OptionsLimit > .PressableInner:not(:has(> .OptionIndicatorSlot))
|
|
445
|
-
.ActionInner
|
|
527
|
+
.OptionsLimit > .PressableInner:not(:has(> .OptionIndicatorSlot))
|
|
446
528
|
) {
|
|
447
529
|
padding-inline-start: var(--menu-check-label-inset, calc(8px + 13px + 8.5px));
|
|
448
530
|
}
|
|
@@ -458,19 +540,35 @@ background: var(--gray-25);
|
|
|
458
540
|
height: var(--menu-check-size, 18px);
|
|
459
541
|
}
|
|
460
542
|
|
|
543
|
+
/* With the weight of a menu's checkmark (--menu-check-stroke, touch.css) */
|
|
544
|
+
.OptionCheck path {
|
|
545
|
+
stroke: currentColor;
|
|
546
|
+
stroke-width: var(--menu-check-stroke, 0);
|
|
547
|
+
stroke-linejoin: round;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
/* A subtitle wraps, as a UIAction's does in an iOS 27.2 menu (ref-app pickers-desc-uikit: 13pt on 18pt lines,
|
|
551
|
+
Owner's on three); the kit's one truncated line gives way to the simulator. */
|
|
461
552
|
.OptionDescription {
|
|
462
|
-
font-size: 13px;
|
|
463
|
-
line-height: 18px;
|
|
464
|
-
letter-spacing:
|
|
553
|
+
font-size: var(--menu-description-font-size, 13px);
|
|
554
|
+
line-height: var(--menu-description-line-height, 18px);
|
|
555
|
+
letter-spacing: var(--font-sans-tracking);
|
|
465
556
|
color: var(--menu-description-color, var(--color-text-secondary));
|
|
466
557
|
}
|
|
467
558
|
|
|
468
|
-
/*
|
|
469
|
-
|
|
559
|
+
/* An iOS menu has no tooltips (owner 10.11): on a phone an option's tooltip is its subtitle, as a UIAction's
|
|
560
|
+
(ref-app pickers-desc-uikit; Files' Date, Newest to Oldest, iOS-menu IMG_5704), and the info symbol is gone. */
|
|
561
|
+
.OptionTooltipIcon {
|
|
562
|
+
display: none;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
.OptionTooltipText {
|
|
470
566
|
display: block;
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
567
|
+
font-size: var(--menu-description-font-size, 13px);
|
|
568
|
+
font-weight: var(--font-weight-normal);
|
|
569
|
+
line-height: var(--menu-description-line-height, 18px);
|
|
570
|
+
letter-spacing: var(--font-sans-tracking);
|
|
571
|
+
color: var(--menu-description-color, var(--color-text-secondary));
|
|
474
572
|
}
|
|
475
573
|
|
|
476
574
|
.Option[data-disabled] {
|
|
@@ -478,7 +576,7 @@ background: var(--gray-25);
|
|
|
478
576
|
opacity: 1;
|
|
479
577
|
}
|
|
480
578
|
|
|
481
|
-
.Option[data-disabled] .OptionDescription {
|
|
579
|
+
.Option[data-disabled] :is(.OptionDescription, .OptionTooltipText) {
|
|
482
580
|
color: var(--menu-disabled-description-color, var(--color-text-tertiary));
|
|
483
581
|
}
|
|
484
582
|
|
|
@@ -495,15 +593,68 @@ background: var(--gray-25);
|
|
|
495
593
|
top: -11px;
|
|
496
594
|
inset-inline: 8px;
|
|
497
595
|
}
|
|
596
|
+
|
|
597
|
+
/* A clearable list's None row (Select.tsx) is a section of its own, as a pop-up button's None is (Reminders' Early
|
|
598
|
+
Reminder, iOS-menu IMG_5821: None, a line, the times). Its line is a menu section's, as the actions' is: 24pt
|
|
599
|
+
from the panel's edges, 10pt above and below it. Before groups it leaves the line to the first group's heading,
|
|
600
|
+
which draws one. */
|
|
601
|
+
.NoneSection {
|
|
602
|
+
position: relative;
|
|
603
|
+
padding-bottom: 21px;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
.NoneSection::after {
|
|
607
|
+
position: absolute;
|
|
608
|
+
inset: auto 8px 10px;
|
|
609
|
+
height: 1px;
|
|
610
|
+
background: var(--menu-separator-background-color);
|
|
611
|
+
content: "";
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
.NoneSection:has(+ .OptionGroup) {
|
|
615
|
+
padding-bottom: 0;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
.NoneSection:has(+ .OptionGroup)::after {
|
|
619
|
+
content: none;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
/* With no options the row stands alone */
|
|
623
|
+
.NoneSection:last-child {
|
|
624
|
+
padding-bottom: 0;
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
.NoneSection:last-child::after {
|
|
628
|
+
content: none;
|
|
629
|
+
}
|
|
498
630
|
}
|
|
499
|
-
/*
|
|
631
|
+
/* Lists are glass, as the Menu is (see --menu-mobile-background). */
|
|
500
632
|
:where([data-plex-layout="phone"]) .MenuList {
|
|
501
633
|
background: var(--menu-mobile-background, var(--color-surface-elevated));
|
|
634
|
+
backdrop-filter: var(--menu-mobile-backdrop-filter, none);
|
|
502
635
|
}
|
|
503
636
|
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
637
|
+
/* A list is the 250pt of an iOS menu, as the pop-up menu of a picker is (ref-app pickers, block 8: 250pt over a
|
|
638
|
+
value of 76pt, which it covers, Select.tsx), whatever its options: a long label or description wraps
|
|
639
|
+
(pickers-desc-uikit: Owner's description on three lines, the panel still 250pt). A wider trigger keeps its width,
|
|
640
|
+
and a list's own minimum width wins. A list given its own width (data-list-sized) keeps it, as on a larger
|
|
641
|
+
screen, and a maximum below the 250pt caps it. */
|
|
642
|
+
:where([data-plex-layout="phone"]) .MenuList:not([data-list-sized]) {
|
|
643
|
+
min-width: var(
|
|
644
|
+
--select-list-min-width,
|
|
645
|
+
max(min(var(--menu-default-min-width, 0px), var(--select-list-max-width, 100vw)), var(--radix-popover-trigger-width))
|
|
646
|
+
);
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
:where([data-plex-layout="phone"]) .MenuList[data-list-width="auto"] {
|
|
650
|
+
width: var(--menu-default-width, auto);
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
/* A list is as tall as its rows, up to the screen's edge, as a menu is (Menu.module.css; iOS-menu IMG_5704, 5706: a
|
|
654
|
+
native menu scrolls only past the screen), not the desktop's 400px; a list's own maximum still wins. */
|
|
655
|
+
:where([data-plex-layout="phone"]) .MenuInner {
|
|
656
|
+
max-height: min(var(--select-list-max-height, 1200px), var(--radix-popover-content-available-height));
|
|
657
|
+
}
|
|
507
658
|
|
|
508
659
|
:where([data-plex-layout="phone"]) .Option,
|
|
509
660
|
:where([data-plex-layout="phone"]) .Option[data-selected],
|
|
@@ -512,7 +663,7 @@ background: var(--gray-25);
|
|
|
512
663
|
}
|
|
513
664
|
|
|
514
665
|
:where([data-plex-layout="phone"]) .Option {
|
|
515
|
-
letter-spacing: var(--menu-letter-spacing,
|
|
666
|
+
letter-spacing: var(--menu-letter-spacing, var(--font-sans-tracking));
|
|
516
667
|
}
|
|
517
668
|
|
|
518
669
|
/* The capsule is the press: Safari's gray tap rectangle would stack on it */
|
|
@@ -521,21 +672,83 @@ background: var(--gray-25);
|
|
|
521
672
|
-webkit-tap-highlight-color: transparent;
|
|
522
673
|
}
|
|
523
674
|
|
|
524
|
-
|
|
675
|
+
/* A phone's list has no search (Select.tsx: an iOS menu has none, a long list scrolls, IMG_5490) */
|
|
525
676
|
:where([data-plex-layout="phone"]) .ActionsContainer {
|
|
526
677
|
flex-shrink: 0;
|
|
527
678
|
}
|
|
528
679
|
|
|
680
|
+
/* Actions follow the options as a section of a menu does (ref-app pickers-actions-uikit: a pop-up menu with a
|
|
681
|
+
selection, then Create project and Organization overview): an inset line 24pt from the panel's edges, 10pt
|
|
682
|
+
above and below it, as Menu's separator (--menu-separator-gutter), and no fade over the list. A row is 42pt with
|
|
683
|
+
a 20px symbol centred 40pt in and its label from 66; in a list with checkmarks the symbol stands after their
|
|
684
|
+
column, centred at 55.7pt, and the label starts at 79.7 (native 54.3 and 79.3), as Menu's rows (touch.css). A
|
|
685
|
+
long label wraps, as Organization overview does. */
|
|
686
|
+
:where([data-plex-layout="phone"]) .ActionsContainer {
|
|
687
|
+
border-top: 0;
|
|
688
|
+
padding-top: calc(var(--menu-gutter) + 1px);
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
:where([data-plex-layout="phone"]) .ActionsContainer::before {
|
|
692
|
+
inset: 0 calc(var(--menu-padding-inline, var(--menu-gutter)) + 8px) auto;
|
|
693
|
+
width: auto;
|
|
694
|
+
height: 1px;
|
|
695
|
+
margin: 0;
|
|
696
|
+
background: var(--menu-separator-background-color);
|
|
697
|
+
-webkit-mask-image: none;
|
|
698
|
+
mask-image: none;
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
:where([data-plex-layout="phone"]) .Action {
|
|
702
|
+
display: flex;
|
|
703
|
+
align-items: center;
|
|
704
|
+
min-height: var(--menu-row-min-height, 42px);
|
|
705
|
+
padding-block: 0;
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
:where([data-plex-layout="phone"]) .Action::before {
|
|
709
|
+
inset-block: 0;
|
|
710
|
+
inset-inline: calc(var(--menu-gutter) - var(--menu-padding-inline, var(--menu-gutter)));
|
|
711
|
+
background: var(--menu-press-background, var(--menu-item-background-color));
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
:where([data-plex-layout="phone"]) .Action:active::before {
|
|
715
|
+
opacity: 1;
|
|
716
|
+
transition-duration: 0s;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
:where([data-plex-layout="phone"]) .ActionInner {
|
|
720
|
+
flex: 1;
|
|
721
|
+
gap: var(--menu-leading-icon-gap, 8px);
|
|
722
|
+
padding-block: var(--menu-row-padding-block, 10px);
|
|
723
|
+
line-height: var(--menu-line-height);
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
:where([data-plex-layout="phone"]) .Action svg {
|
|
727
|
+
width: var(--menu-leading-icon-size, 20px);
|
|
728
|
+
height: var(--menu-leading-icon-size, 20px);
|
|
729
|
+
margin-inline: calc((var(--menu-leading-icon-slot, 36px) - var(--menu-leading-icon-size, 20px)) / 2);
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
:where([data-plex-layout="phone"]) .MenuList:has(.OptionIndicatorSlot[data-position]) .ActionInner {
|
|
733
|
+
gap: var(--menu-check-icon-gap, 14px);
|
|
734
|
+
padding-inline-start: calc(var(--menu-check-column, 13px) + var(--menu-check-gap, 8.5px));
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
:where([data-plex-layout="phone"]) .MenuList:has(.OptionIndicatorSlot[data-position]) .Action svg {
|
|
738
|
+
margin-inline: var(--menu-check-icon-offset, 2px) 0;
|
|
739
|
+
}
|
|
740
|
+
|
|
529
741
|
:where([data-plex-layout="phone"]) .OptionsList {
|
|
530
742
|
min-height: 0;
|
|
531
743
|
}
|
|
532
744
|
|
|
533
|
-
/*
|
|
745
|
+
/* A row is 42pt, as a menu row is (Menu.module.css) and the rows of a picker's pop-up menu are (ref-app pickers,
|
|
746
|
+
block 8: labels 126px apart at @3x); text grows naturally, and the pressed surface covers the whole row. */
|
|
534
747
|
:where([data-plex-layout="phone"]) .Option:has(> .PressableInner > .OptionLeading) {
|
|
535
748
|
display: grid;
|
|
536
749
|
grid-template-columns: minmax(0, 1fr);
|
|
537
750
|
align-content: center;
|
|
538
|
-
min-height:
|
|
751
|
+
min-height: var(--menu-row-min-height, 42px);
|
|
539
752
|
padding-block: 0;
|
|
540
753
|
}
|
|
541
754
|
|
|
@@ -561,7 +774,7 @@ background: var(--gray-25);
|
|
|
561
774
|
|
|
562
775
|
:where([data-plex-layout="phone"]) .OptionLeading {
|
|
563
776
|
gap: 2px;
|
|
564
|
-
padding-block: 10px;
|
|
777
|
+
padding-block: var(--menu-row-padding-block, 10px);
|
|
565
778
|
}
|
|
566
779
|
|
|
567
780
|
:where([data-plex-layout="phone"]) .OptionLeading > .OptionInner {
|
|
@@ -577,7 +790,7 @@ background: var(--gray-25);
|
|
|
577
790
|
:where([data-plex-layout="phone"]) .OptionIndicatorSlot {
|
|
578
791
|
justify-content: center;
|
|
579
792
|
width: var(--menu-check-column, 13px);
|
|
580
|
-
height: 22px;
|
|
793
|
+
height: var(--menu-check-slot-height, 22px);
|
|
581
794
|
}
|
|
582
795
|
|
|
583
796
|
:where([data-plex-layout="phone"]) :is(.PressableInner, .OptionHardLimitHeading):has(> .OptionIndicatorSlot) {
|
|
@@ -590,8 +803,7 @@ background: var(--gray-25);
|
|
|
590
803
|
:where([data-plex-layout="phone"]) .MenuList:has(.OptionIndicatorSlot[data-position]) :is(
|
|
591
804
|
.OptionGroupHeading,
|
|
592
805
|
.OptionHardLimitHeading:not(:has(> .OptionIndicatorSlot)),
|
|
593
|
-
.OptionsLimit > .PressableInner:not(:has(> .OptionIndicatorSlot))
|
|
594
|
-
.ActionInner
|
|
806
|
+
.OptionsLimit > .PressableInner:not(:has(> .OptionIndicatorSlot))
|
|
595
807
|
) {
|
|
596
808
|
padding-inline-start: var(--menu-check-label-inset, calc(8px + 13px + 8.5px));
|
|
597
809
|
}
|
|
@@ -607,19 +819,35 @@ background: var(--gray-25);
|
|
|
607
819
|
height: var(--menu-check-size, 18px);
|
|
608
820
|
}
|
|
609
821
|
|
|
822
|
+
/* With the weight of a menu's checkmark (--menu-check-stroke, touch.css) */
|
|
823
|
+
:where([data-plex-layout="phone"]) .OptionCheck path {
|
|
824
|
+
stroke: currentColor;
|
|
825
|
+
stroke-width: var(--menu-check-stroke, 0);
|
|
826
|
+
stroke-linejoin: round;
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
/* A subtitle wraps, as a UIAction's does in an iOS 27.2 menu (ref-app pickers-desc-uikit: 13pt on 18pt lines,
|
|
830
|
+
Owner's on three); the kit's one truncated line gives way to the simulator. */
|
|
610
831
|
:where([data-plex-layout="phone"]) .OptionDescription {
|
|
611
|
-
font-size: 13px;
|
|
612
|
-
line-height: 18px;
|
|
613
|
-
letter-spacing:
|
|
832
|
+
font-size: var(--menu-description-font-size, 13px);
|
|
833
|
+
line-height: var(--menu-description-line-height, 18px);
|
|
834
|
+
letter-spacing: var(--font-sans-tracking);
|
|
614
835
|
color: var(--menu-description-color, var(--color-text-secondary));
|
|
615
836
|
}
|
|
616
837
|
|
|
617
|
-
/*
|
|
618
|
-
|
|
838
|
+
/* An iOS menu has no tooltips (owner 10.11): on a phone an option's tooltip is its subtitle, as a UIAction's
|
|
839
|
+
(ref-app pickers-desc-uikit; Files' Date, Newest to Oldest, iOS-menu IMG_5704), and the info symbol is gone. */
|
|
840
|
+
:where([data-plex-layout="phone"]) .OptionTooltipIcon {
|
|
841
|
+
display: none;
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
:where([data-plex-layout="phone"]) .OptionTooltipText {
|
|
619
845
|
display: block;
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
846
|
+
font-size: var(--menu-description-font-size, 13px);
|
|
847
|
+
font-weight: var(--font-weight-normal);
|
|
848
|
+
line-height: var(--menu-description-line-height, 18px);
|
|
849
|
+
letter-spacing: var(--font-sans-tracking);
|
|
850
|
+
color: var(--menu-description-color, var(--color-text-secondary));
|
|
623
851
|
}
|
|
624
852
|
|
|
625
853
|
:where([data-plex-layout="phone"]) .Option[data-disabled] {
|
|
@@ -627,7 +855,7 @@ background: var(--gray-25);
|
|
|
627
855
|
opacity: 1;
|
|
628
856
|
}
|
|
629
857
|
|
|
630
|
-
:where([data-plex-layout="phone"]) .Option[data-disabled] .OptionDescription {
|
|
858
|
+
:where([data-plex-layout="phone"]) .Option[data-disabled] :is(.OptionDescription, .OptionTooltipText) {
|
|
631
859
|
color: var(--menu-disabled-description-color, var(--color-text-tertiary));
|
|
632
860
|
}
|
|
633
861
|
|
|
@@ -644,4 +872,38 @@ background: var(--gray-25);
|
|
|
644
872
|
top: -11px;
|
|
645
873
|
inset-inline: 8px;
|
|
646
874
|
}
|
|
875
|
+
|
|
876
|
+
/* A clearable list's None row (Select.tsx) is a section of its own, as a pop-up button's None is (Reminders' Early
|
|
877
|
+
Reminder, iOS-menu IMG_5821: None, a line, the times). Its line is a menu section's, as the actions' is: 24pt
|
|
878
|
+
from the panel's edges, 10pt above and below it. Before groups it leaves the line to the first group's heading,
|
|
879
|
+
which draws one. */
|
|
880
|
+
:where([data-plex-layout="phone"]) .NoneSection {
|
|
881
|
+
position: relative;
|
|
882
|
+
padding-bottom: 21px;
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
:where([data-plex-layout="phone"]) .NoneSection::after {
|
|
886
|
+
position: absolute;
|
|
887
|
+
inset: auto 8px 10px;
|
|
888
|
+
height: 1px;
|
|
889
|
+
background: var(--menu-separator-background-color);
|
|
890
|
+
content: "";
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
:where([data-plex-layout="phone"]) .NoneSection:has(+ .OptionGroup) {
|
|
894
|
+
padding-bottom: 0;
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
:where([data-plex-layout="phone"]) .NoneSection:has(+ .OptionGroup)::after {
|
|
898
|
+
content: none;
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
/* With no options the row stands alone */
|
|
902
|
+
:where([data-plex-layout="phone"]) .NoneSection:last-child {
|
|
903
|
+
padding-bottom: 0;
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
:where([data-plex-layout="phone"]) .NoneSection:last-child::after {
|
|
907
|
+
content: none;
|
|
908
|
+
}
|
|
647
909
|
}
|