@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
|
@@ -393,7 +393,6 @@ background-color: var(--alpha-08);
|
|
|
393
393
|
font-size: 17px;
|
|
394
394
|
font-weight: 590;
|
|
395
395
|
line-height: 22px;
|
|
396
|
-
letter-spacing: -0.43px;
|
|
397
396
|
}
|
|
398
397
|
|
|
399
398
|
.Week {
|
|
@@ -432,10 +431,181 @@ background-color: var(--alpha-08);
|
|
|
432
431
|
line-height: 22px;
|
|
433
432
|
}
|
|
434
433
|
|
|
434
|
+
/* Today keeps the PlexUI dot that marks it from 768px up; the selection already follows the desktop
|
|
435
|
+
fill. A 4px dot centers on the 44px cell, and it sits under the 17px digits at the desktop gap
|
|
436
|
+
scaled by 17/14. */
|
|
435
437
|
.TodayDot {
|
|
438
|
+
bottom: 8px;
|
|
439
|
+
width: 4px;
|
|
440
|
+
height: 4px;
|
|
441
|
+
margin-left: -2px;
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
:where([data-plex-layout="phone"]) .Popover[role="dialog"],
|
|
445
|
+
:where([data-plex-layout="phone"]) .CalendarWrapper {
|
|
446
|
+
--calendar-gutter: clamp(3px, calc((100vw - 308px) / 4), 16px);
|
|
447
|
+
--calendar-inner-padding: min(max(0px, calc(var(--menu-radius, 32px) - 22px)), var(--calendar-gutter));
|
|
448
|
+
--calendar-header-height: calc(44px + 2 * var(--calendar-inner-padding));
|
|
449
|
+
--calendar-caption-inset: 96px;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
:where([data-plex-layout="phone"]) .Popover[role="dialog"] {
|
|
453
|
+
/* The narrow-screen radius follows the available inset; it is a fit
|
|
454
|
+
constraint, not a separate measured native corner radius. */
|
|
455
|
+
--popover-radius: calc(22px + var(--calendar-inner-padding));
|
|
456
|
+
|
|
457
|
+
background: color-mix(in srgb, var(--color-surface-elevated) 70%, transparent);
|
|
458
|
+
box-shadow: var(--menu-shadow, var(--shadow), var(--shadow-hairline));
|
|
459
|
+
backdrop-filter: blur(50px);
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
:where([data-plex-layout="phone"]) .CalendarWrapper {
|
|
463
|
+
/* Preserve the outer collision gutter; the inner inset follows the
|
|
464
|
+
corner geometry while seven 44px targets still fit at 320px. */
|
|
465
|
+
box-sizing: border-box;
|
|
466
|
+
width: min(370px, calc(100vw - 2 * var(--calendar-gutter)), var(--radix-popover-content-available-width, 370px));
|
|
467
|
+
padding: 0 var(--calendar-inner-padding);
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
:where([data-plex-layout="phone"]) .CalendarContainer {
|
|
471
|
+
--cell-size: 44px;
|
|
472
|
+
--cell-vertical-gutter: 7px;
|
|
473
|
+
--calendar-width: min(350px, calc(100vw - 2 * var(--calendar-gutter) - 2 * var(--calendar-inner-padding)), calc(var(--radix-popover-content-available-width, 370px) - 2 * var(--calendar-inner-padding)));
|
|
474
|
+
|
|
475
|
+
width: var(--calendar-width);
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
/* The month slides inside a stationary viewport. Only the title band
|
|
479
|
+
reserves the navigation area; weekday labels and days keep the full width. */
|
|
480
|
+
:where([data-plex-layout="phone"]) .CalendarViewport {
|
|
481
|
+
position: absolute;
|
|
482
|
+
inset: 0;
|
|
483
|
+
display: block;
|
|
484
|
+
clip-path: polygon(
|
|
485
|
+
0 0,
|
|
486
|
+
calc(100% - var(--calendar-caption-inset)) 0,
|
|
487
|
+
calc(100% - var(--calendar-caption-inset)) var(--calendar-header-height),
|
|
488
|
+
100% var(--calendar-header-height),
|
|
489
|
+
100% 100%,
|
|
490
|
+
0 100%
|
|
491
|
+
);
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
:where([data-plex-layout="phone"]) .Calendar {
|
|
495
|
+
--cell-size: 44px;
|
|
496
|
+
--cell-vertical-gutter: 7px;
|
|
497
|
+
|
|
498
|
+
box-sizing: border-box;
|
|
499
|
+
padding-bottom: var(--calendar-inner-padding);
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
:where([data-plex-layout="phone"]) .Previous,
|
|
503
|
+
:where([data-plex-layout="phone"]) .Next {
|
|
504
|
+
top: var(--calendar-inner-padding);
|
|
505
|
+
left: auto;
|
|
506
|
+
background: none;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
:where([data-plex-layout="phone"]) .Previous {
|
|
510
|
+
right: 44px;
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
:where([data-plex-layout="phone"]) .Next {
|
|
514
|
+
right: 0;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
:where([data-plex-layout="phone"]) .Previous::before,
|
|
518
|
+
:where([data-plex-layout="phone"]) .Previous::after,
|
|
519
|
+
:where([data-plex-layout="phone"]) .Next::before,
|
|
520
|
+
:where([data-plex-layout="phone"]) .Next::after {
|
|
521
|
+
display: none;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
/* Base Button supplies the active circle. Idle and hover remain
|
|
525
|
+
transparent; the navigation target stays 44px throughout. */
|
|
526
|
+
:where([data-plex-layout="phone"]) .Previous button[type="button"],
|
|
527
|
+
:where([data-plex-layout="phone"]) .Next button[type="button"] {
|
|
528
|
+
--button-size: 44px;
|
|
529
|
+
--button-gutter: 0px;
|
|
530
|
+
--button-icon-size: 24px;
|
|
531
|
+
--button-text-color: var(--color-text-primary);
|
|
532
|
+
--button-text-color-hover: var(--color-text-primary);
|
|
533
|
+
--button-radius: var(--radius-full);
|
|
534
|
+
--button-mobile-material-background: transparent;
|
|
535
|
+
--button-mobile-material-hover: transparent;
|
|
536
|
+
--button-mobile-material-active: var(--button-background-color-active);
|
|
537
|
+
--button-mobile-material-shadow: none;
|
|
538
|
+
--button-mobile-material-backdrop-filter: none;
|
|
539
|
+
--button-mobile-material-opacity: 0;
|
|
540
|
+
--button-mobile-material-scale: 1;
|
|
541
|
+
|
|
542
|
+
width: 44px;
|
|
543
|
+
padding: 0;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
/* Keep the agreed Phone focus treatment: real keyboard focus, no drawn ring. */
|
|
547
|
+
:where([data-plex-layout="phone"]) .Previous button[type="button"]::after,
|
|
548
|
+
:where([data-plex-layout="phone"]) .Next button[type="button"]::after {
|
|
436
549
|
display: none;
|
|
437
550
|
}
|
|
438
|
-
|
|
551
|
+
|
|
552
|
+
/* Equal insets above and below the 44px navigation targets. */
|
|
553
|
+
:where([data-plex-layout="phone"]) .MonthLabel {
|
|
554
|
+
box-sizing: border-box;
|
|
555
|
+
justify-content: flex-start;
|
|
556
|
+
height: var(--calendar-header-height);
|
|
557
|
+
padding: 0 var(--calendar-caption-inset) 0 max(0px, calc(var(--field-row-padding-inline, 16px) - var(--calendar-inner-padding)));
|
|
558
|
+
margin: 0;
|
|
559
|
+
font-size: 17px;
|
|
560
|
+
font-weight: 590;
|
|
561
|
+
line-height: 22px;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
:where([data-plex-layout="phone"]) .Week {
|
|
565
|
+
display: grid;
|
|
566
|
+
grid-template-columns: repeat(7, var(--cell-size));
|
|
567
|
+
justify-content: space-between;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
:where([data-plex-layout="phone"]) .WeekdayHeader {
|
|
571
|
+
align-items: center;
|
|
572
|
+
height: 20px;
|
|
573
|
+
margin-bottom: 3px;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
:where([data-plex-layout="phone"]) .DayLabel {
|
|
577
|
+
width: var(--cell-size);
|
|
578
|
+
height: 18px;
|
|
579
|
+
color: var(--color-text-tertiary);
|
|
580
|
+
font-size: 13px;
|
|
581
|
+
font-weight: 590;
|
|
582
|
+
line-height: 18px;
|
|
583
|
+
text-transform: uppercase;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
:where([data-plex-layout="phone"]) .ShortDayLabel {
|
|
587
|
+
display: none;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
:where([data-plex-layout="phone"]) .LongDayLabel {
|
|
591
|
+
display: inline;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
:where([data-plex-layout="phone"]) .InteractiveDay {
|
|
595
|
+
padding: 0;
|
|
596
|
+
font-size: 17px;
|
|
597
|
+
line-height: 22px;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
/* Today keeps the PlexUI dot that marks it from 768px up; the selection already follows the desktop
|
|
601
|
+
fill. A 4px dot centers on the 44px cell, and it sits under the 17px digits at the desktop gap
|
|
602
|
+
scaled by 17/14. */
|
|
603
|
+
:where([data-plex-layout="phone"]) .TodayDot {
|
|
604
|
+
bottom: 8px;
|
|
605
|
+
width: 4px;
|
|
606
|
+
height: 4px;
|
|
607
|
+
margin-left: -2px;
|
|
608
|
+
}@media (max-width: 767px) {
|
|
439
609
|
.MonthLabelSpacer {
|
|
440
610
|
height: var(--calendar-header-height);
|
|
441
611
|
margin: 0;
|
|
@@ -454,10 +624,15 @@ background-color: var(--alpha-08);
|
|
|
454
624
|
--select-control-gap: 4px;
|
|
455
625
|
}
|
|
456
626
|
|
|
627
|
+
/* The Time row is built as the month row is (owner 08.11): as tall, its 44px targets with the calendar's
|
|
628
|
+
inset above and below them, its label where the month starts. The time capsule is concentric with the
|
|
629
|
+
panel's corner, as the 44px edge days are: the 34px capsule sits 5px inside where a 44px circle would,
|
|
630
|
+
so 15px from the bottom and the side for the 32px corner. It is 1px inside its two 44px targets, so the
|
|
631
|
+
row ends 4px further in. */
|
|
457
632
|
.TimeFooter {
|
|
458
633
|
box-sizing: border-box;
|
|
459
|
-
height:
|
|
460
|
-
padding
|
|
634
|
+
height: var(--calendar-header-height);
|
|
635
|
+
padding: 0 4px 0 max(0px, calc(var(--field-row-padding-inline, 16px) - var(--calendar-inner-padding)));
|
|
461
636
|
border-top-width: 0.5px;
|
|
462
637
|
margin-top: 0;
|
|
463
638
|
}
|
|
@@ -507,9 +682,12 @@ background-color: var(--alpha-08);
|
|
|
507
682
|
line-height: 22px;
|
|
508
683
|
}
|
|
509
684
|
|
|
685
|
+
/* The phone focus treatment of the calendar: real focus, no drawn ring. The part being typed takes
|
|
686
|
+
the accent, as the date capsule does while its calendar is open. */
|
|
510
687
|
.TimeField:focus {
|
|
511
688
|
background: none;
|
|
512
|
-
outline
|
|
689
|
+
outline: none;
|
|
690
|
+
color: var(--link-primary-text-color);
|
|
513
691
|
}
|
|
514
692
|
|
|
515
693
|
.TimeSeparator {
|
|
@@ -523,7 +701,102 @@ background-color: var(--alpha-08);
|
|
|
523
701
|
font-weight: var(--font-weight-normal);
|
|
524
702
|
line-height: 22px;
|
|
525
703
|
}
|
|
526
|
-
}
|
|
704
|
+
}
|
|
705
|
+
:where([data-plex-layout="phone"]) .MonthLabelSpacer {
|
|
706
|
+
height: var(--calendar-header-height);
|
|
707
|
+
margin: 0;
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
:where([data-plex-layout="phone"]) .DropdownCaption {
|
|
711
|
+
right: var(--calendar-caption-inset);
|
|
712
|
+
justify-content: flex-start;
|
|
713
|
+
height: var(--calendar-header-height);
|
|
714
|
+
padding-top: 0;
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
:where([data-plex-layout="phone"]) .DropdownCaption > * {
|
|
718
|
+
--select-control-size: 28px;
|
|
719
|
+
--select-control-font-size: 17px;
|
|
720
|
+
--select-control-gap: 4px;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
/* The Time row is built as the month row is (owner 08.11): as tall, its 44px targets with the calendar's
|
|
724
|
+
inset above and below them, its label where the month starts. The time capsule is concentric with the
|
|
725
|
+
panel's corner, as the 44px edge days are: the 34px capsule sits 5px inside where a 44px circle would,
|
|
726
|
+
so 15px from the bottom and the side for the 32px corner. It is 1px inside its two 44px targets, so the
|
|
727
|
+
row ends 4px further in. */
|
|
728
|
+
:where([data-plex-layout="phone"]) .TimeFooter {
|
|
729
|
+
box-sizing: border-box;
|
|
730
|
+
height: var(--calendar-header-height);
|
|
731
|
+
padding: 0 4px 0 max(0px, calc(var(--field-row-padding-inline, 16px) - var(--calendar-inner-padding)));
|
|
732
|
+
border-top-width: 0.5px;
|
|
733
|
+
margin-top: 0;
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
:where([data-plex-layout="phone"]) .TimeLabel {
|
|
737
|
+
color: var(--color-text);
|
|
738
|
+
font-size: 17px;
|
|
739
|
+
line-height: 22px;
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
:where([data-plex-layout="phone"]) .TimeInputGroup {
|
|
743
|
+
position: relative;
|
|
744
|
+
box-sizing: border-box;
|
|
745
|
+
justify-content: center;
|
|
746
|
+
gap: 0;
|
|
747
|
+
width: 88px;
|
|
748
|
+
height: 44px;
|
|
749
|
+
padding: 0;
|
|
750
|
+
border-radius: var(--radius-full);
|
|
751
|
+
background: none;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
/* Keep the compact pill separate from the two adjacent touch targets. */
|
|
755
|
+
:where([data-plex-layout="phone"]) .TimeInputGroup::before {
|
|
756
|
+
position: absolute;
|
|
757
|
+
top: 50%;
|
|
758
|
+
left: 50%;
|
|
759
|
+
width: 86px;
|
|
760
|
+
height: 34px;
|
|
761
|
+
border-radius: inherit;
|
|
762
|
+
background: var(--color-background-secondary-soft-alpha);
|
|
763
|
+
content: "";
|
|
764
|
+
pointer-events: none;
|
|
765
|
+
transform: translate(-50%, -50%);
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
:where([data-plex-layout="phone"]) .TimeField {
|
|
769
|
+
position: relative;
|
|
770
|
+
box-sizing: border-box;
|
|
771
|
+
flex: 0 0 44px;
|
|
772
|
+
width: 44px;
|
|
773
|
+
height: 44px;
|
|
774
|
+
border-radius: 4px;
|
|
775
|
+
background: none;
|
|
776
|
+
font-size: 17px;
|
|
777
|
+
font-weight: var(--font-weight-normal);
|
|
778
|
+
line-height: 22px;
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
/* The phone focus treatment of the calendar: real focus, no drawn ring. The part being typed takes
|
|
782
|
+
the accent, as the date capsule does while its calendar is open. */
|
|
783
|
+
:where([data-plex-layout="phone"]) .TimeField:focus {
|
|
784
|
+
background: none;
|
|
785
|
+
outline: none;
|
|
786
|
+
color: var(--link-primary-text-color);
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
:where([data-plex-layout="phone"]) .TimeSeparator {
|
|
790
|
+
position: absolute;
|
|
791
|
+
top: 50%;
|
|
792
|
+
left: 50%;
|
|
793
|
+
color: var(--color-text);
|
|
794
|
+
pointer-events: none;
|
|
795
|
+
transform: translate(-50%, -50%);
|
|
796
|
+
font-size: 17px;
|
|
797
|
+
font-weight: var(--font-weight-normal);
|
|
798
|
+
line-height: 22px;
|
|
799
|
+
}@media (prefers-reduced-motion: reduce) {
|
|
527
800
|
.CalendarContainer {
|
|
528
801
|
--calendar-height-duration: 0ms;
|
|
529
802
|
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
height: 224px;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
@media (min-width: 768px) {.CalendarContainer {
|
|
15
|
+
@media (min-width: 768px) {.CalendarContainer:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
|
|
16
16
|
width: calc(var(--calendar-width) * 2 + 32px);
|
|
17
17
|
}
|
|
18
18
|
}.Previous {
|
|
@@ -419,7 +419,6 @@ background-color: var(--alpha-08);
|
|
|
419
419
|
font-size: 17px;
|
|
420
420
|
font-weight: 590;
|
|
421
421
|
line-height: 22px;
|
|
422
|
-
letter-spacing: -0.43px;
|
|
423
422
|
}
|
|
424
423
|
|
|
425
424
|
.Week {
|
|
@@ -458,10 +457,181 @@ background-color: var(--alpha-08);
|
|
|
458
457
|
line-height: 22px;
|
|
459
458
|
}
|
|
460
459
|
|
|
460
|
+
/* Today keeps the PlexUI dot that marks it from 768px up; the selection already follows the desktop
|
|
461
|
+
fill. A 4px dot centers on the 44px cell, and it sits under the 17px digits at the desktop gap
|
|
462
|
+
scaled by 17/14. */
|
|
461
463
|
.TodayDot {
|
|
464
|
+
bottom: 8px;
|
|
465
|
+
width: 4px;
|
|
466
|
+
height: 4px;
|
|
467
|
+
margin-left: -2px;
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
:where([data-plex-layout="phone"]) .Popover[role="dialog"],
|
|
471
|
+
:where([data-plex-layout="phone"]) .CalendarWrapper {
|
|
472
|
+
--calendar-gutter: clamp(3px, calc((100vw - 308px) / 4), 16px);
|
|
473
|
+
--calendar-inner-padding: min(max(0px, calc(var(--menu-radius, 32px) - 22px)), var(--calendar-gutter));
|
|
474
|
+
--calendar-header-height: calc(44px + 2 * var(--calendar-inner-padding));
|
|
475
|
+
--calendar-caption-inset: 96px;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
:where([data-plex-layout="phone"]) .Popover[role="dialog"] {
|
|
479
|
+
/* The narrow-screen radius follows the available inset; it is a fit
|
|
480
|
+
constraint, not a separate measured native corner radius. */
|
|
481
|
+
--popover-radius: calc(22px + var(--calendar-inner-padding));
|
|
482
|
+
|
|
483
|
+
background: color-mix(in srgb, var(--color-surface-elevated) 70%, transparent);
|
|
484
|
+
box-shadow: var(--menu-shadow, var(--shadow), var(--shadow-hairline));
|
|
485
|
+
backdrop-filter: blur(50px);
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
:where([data-plex-layout="phone"]) .CalendarWrapper {
|
|
489
|
+
/* Preserve the outer collision gutter; the inner inset follows the
|
|
490
|
+
corner geometry while seven 44px targets still fit at 320px. */
|
|
491
|
+
box-sizing: border-box;
|
|
492
|
+
width: min(370px, calc(100vw - 2 * var(--calendar-gutter)), var(--radix-popover-content-available-width, 370px));
|
|
493
|
+
padding: 0 var(--calendar-inner-padding);
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
:where([data-plex-layout="phone"]) .CalendarContainer {
|
|
497
|
+
--cell-size: 44px;
|
|
498
|
+
--cell-vertical-gutter: 7px;
|
|
499
|
+
--calendar-width: min(350px, calc(100vw - 2 * var(--calendar-gutter) - 2 * var(--calendar-inner-padding)), calc(var(--radix-popover-content-available-width, 370px) - 2 * var(--calendar-inner-padding)));
|
|
500
|
+
|
|
501
|
+
width: var(--calendar-width);
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
/* The month slides inside a stationary viewport. Only the title band
|
|
505
|
+
reserves the navigation area; weekday labels and days keep the full width. */
|
|
506
|
+
:where([data-plex-layout="phone"]) .CalendarViewport {
|
|
507
|
+
position: absolute;
|
|
508
|
+
inset: 0;
|
|
509
|
+
display: block;
|
|
510
|
+
clip-path: polygon(
|
|
511
|
+
0 0,
|
|
512
|
+
calc(100% - var(--calendar-caption-inset)) 0,
|
|
513
|
+
calc(100% - var(--calendar-caption-inset)) var(--calendar-header-height),
|
|
514
|
+
100% var(--calendar-header-height),
|
|
515
|
+
100% 100%,
|
|
516
|
+
0 100%
|
|
517
|
+
);
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
:where([data-plex-layout="phone"]) .Calendar {
|
|
521
|
+
--cell-size: 44px;
|
|
522
|
+
--cell-vertical-gutter: 7px;
|
|
523
|
+
|
|
524
|
+
box-sizing: border-box;
|
|
525
|
+
padding-bottom: var(--calendar-inner-padding);
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
:where([data-plex-layout="phone"]) .Previous,
|
|
529
|
+
:where([data-plex-layout="phone"]) .Next {
|
|
530
|
+
top: var(--calendar-inner-padding);
|
|
531
|
+
left: auto;
|
|
532
|
+
background: none;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
:where([data-plex-layout="phone"]) .Previous {
|
|
536
|
+
right: 44px;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
:where([data-plex-layout="phone"]) .Next {
|
|
540
|
+
right: 0;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
:where([data-plex-layout="phone"]) .Previous::before,
|
|
544
|
+
:where([data-plex-layout="phone"]) .Previous::after,
|
|
545
|
+
:where([data-plex-layout="phone"]) .Next::before,
|
|
546
|
+
:where([data-plex-layout="phone"]) .Next::after {
|
|
547
|
+
display: none;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
/* Base Button supplies the active circle. Idle and hover remain
|
|
551
|
+
transparent; the navigation target stays 44px throughout. */
|
|
552
|
+
:where([data-plex-layout="phone"]) .Previous button[type="button"],
|
|
553
|
+
:where([data-plex-layout="phone"]) .Next button[type="button"] {
|
|
554
|
+
--button-size: 44px;
|
|
555
|
+
--button-gutter: 0px;
|
|
556
|
+
--button-icon-size: 24px;
|
|
557
|
+
--button-text-color: var(--color-text-primary);
|
|
558
|
+
--button-text-color-hover: var(--color-text-primary);
|
|
559
|
+
--button-radius: var(--radius-full);
|
|
560
|
+
--button-mobile-material-background: transparent;
|
|
561
|
+
--button-mobile-material-hover: transparent;
|
|
562
|
+
--button-mobile-material-active: var(--button-background-color-active);
|
|
563
|
+
--button-mobile-material-shadow: none;
|
|
564
|
+
--button-mobile-material-backdrop-filter: none;
|
|
565
|
+
--button-mobile-material-opacity: 0;
|
|
566
|
+
--button-mobile-material-scale: 1;
|
|
567
|
+
|
|
568
|
+
width: 44px;
|
|
569
|
+
padding: 0;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
/* Keep the agreed Phone focus treatment: real keyboard focus, no drawn ring. */
|
|
573
|
+
:where([data-plex-layout="phone"]) .Previous button[type="button"]::after,
|
|
574
|
+
:where([data-plex-layout="phone"]) .Next button[type="button"]::after {
|
|
575
|
+
display: none;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
/* Equal insets above and below the 44px navigation targets. */
|
|
579
|
+
:where([data-plex-layout="phone"]) .MonthLabel {
|
|
580
|
+
box-sizing: border-box;
|
|
581
|
+
justify-content: flex-start;
|
|
582
|
+
height: var(--calendar-header-height);
|
|
583
|
+
padding: 0 var(--calendar-caption-inset) 0 max(0px, calc(var(--field-row-padding-inline, 16px) - var(--calendar-inner-padding)));
|
|
584
|
+
margin: 0;
|
|
585
|
+
font-size: 17px;
|
|
586
|
+
font-weight: 590;
|
|
587
|
+
line-height: 22px;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
:where([data-plex-layout="phone"]) .Week {
|
|
591
|
+
display: grid;
|
|
592
|
+
grid-template-columns: repeat(7, var(--cell-size));
|
|
593
|
+
justify-content: space-between;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
:where([data-plex-layout="phone"]) .WeekdayHeader {
|
|
597
|
+
align-items: center;
|
|
598
|
+
height: 20px;
|
|
599
|
+
margin-bottom: 3px;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
:where([data-plex-layout="phone"]) .DayLabel {
|
|
603
|
+
width: var(--cell-size);
|
|
604
|
+
height: 18px;
|
|
605
|
+
color: var(--color-text-tertiary);
|
|
606
|
+
font-size: 13px;
|
|
607
|
+
font-weight: 590;
|
|
608
|
+
line-height: 18px;
|
|
609
|
+
text-transform: uppercase;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
:where([data-plex-layout="phone"]) .ShortDayLabel {
|
|
462
613
|
display: none;
|
|
463
614
|
}
|
|
464
|
-
|
|
615
|
+
|
|
616
|
+
:where([data-plex-layout="phone"]) .LongDayLabel {
|
|
617
|
+
display: inline;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
:where([data-plex-layout="phone"]) .InteractiveDay {
|
|
621
|
+
padding: 0;
|
|
622
|
+
font-size: 17px;
|
|
623
|
+
line-height: 22px;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
/* Today keeps the PlexUI dot that marks it from 768px up; the selection already follows the desktop
|
|
627
|
+
fill. A 4px dot centers on the 44px cell, and it sits under the 17px digits at the desktop gap
|
|
628
|
+
scaled by 17/14. */
|
|
629
|
+
:where([data-plex-layout="phone"]) .TodayDot {
|
|
630
|
+
bottom: 8px;
|
|
631
|
+
width: 4px;
|
|
632
|
+
height: 4px;
|
|
633
|
+
margin-left: -2px;
|
|
634
|
+
}@media (max-width: 767px) {
|
|
465
635
|
.CalendarContainer {
|
|
466
636
|
--calendar-day-gap: max(0px, calc((var(--calendar-width) - 7 * var(--cell-size)) / 6));
|
|
467
637
|
}
|
|
@@ -488,7 +658,59 @@ background-color: var(--alpha-06);
|
|
|
488
658
|
:where([data-theme="dark"]) .Day[data-is-in-range]:not([data-is-end]):not([data-is-last-range-trail]):not(:last-child)::after {
|
|
489
659
|
background-color: var(--alpha-08);
|
|
490
660
|
}
|
|
491
|
-
|
|
661
|
+
|
|
662
|
+
/* The range is a capsule on every week: where a week starts or ends inside the range, the band rounds
|
|
663
|
+
fully, as its start and end days do. A month trail sits inside a week and keeps its fade; when the
|
|
664
|
+
month's last day opens a week, or its first day closes one, that week edge rounds too. */
|
|
665
|
+
.Day[data-is-in-range]:first-child {
|
|
666
|
+
border-top-left-radius: var(--radius-full);
|
|
667
|
+
border-bottom-left-radius: var(--radius-full);
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
.Day[data-is-in-range]:last-child {
|
|
671
|
+
border-top-right-radius: var(--radius-full);
|
|
672
|
+
border-bottom-right-radius: var(--radius-full);
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
:where([data-plex-layout="phone"]) .CalendarContainer {
|
|
676
|
+
--calendar-day-gap: max(0px, calc((var(--calendar-width) - 7 * var(--cell-size)) / 6));
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
/* Keep the same 44px columns as DatePicker. Paint only the gap between
|
|
680
|
+
cells, so the translucent range fill never stacks over a day. */
|
|
681
|
+
:where([data-plex-layout="phone"]) .Day::after {
|
|
682
|
+
position: absolute;
|
|
683
|
+
top: 0;
|
|
684
|
+
bottom: 0;
|
|
685
|
+
left: 100%;
|
|
686
|
+
width: var(--calendar-day-gap);
|
|
687
|
+
background-color: transparent;
|
|
688
|
+
content: "";
|
|
689
|
+
pointer-events: none;
|
|
690
|
+
transition: background-color 0.15s var(--cubic-enter);
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
/* A first-month trail fades to the left and still needs its right bridge.
|
|
694
|
+
The last-month trail already paints a right fade, so do not overlap it. */
|
|
695
|
+
:where([data-plex-layout="phone"]) .Day[data-is-in-range]:not([data-is-end]):not([data-is-last-range-trail]):not(:last-child)::after, :where([data-theme="light"]) :where([data-plex-layout="phone"]) .Day[data-is-in-range]:not([data-is-end]):not([data-is-last-range-trail]):not(:last-child)::after {
|
|
696
|
+
background-color: var(--alpha-06);
|
|
697
|
+
}
|
|
698
|
+
:where([data-theme="dark"]) :where([data-plex-layout="phone"]) .Day[data-is-in-range]:not([data-is-end]):not([data-is-last-range-trail]):not(:last-child)::after {
|
|
699
|
+
background-color: var(--alpha-08);
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
/* The range is a capsule on every week: where a week starts or ends inside the range, the band rounds
|
|
703
|
+
fully, as its start and end days do. A month trail sits inside a week and keeps its fade; when the
|
|
704
|
+
month's last day opens a week, or its first day closes one, that week edge rounds too. */
|
|
705
|
+
:where([data-plex-layout="phone"]) .Day[data-is-in-range]:first-child {
|
|
706
|
+
border-top-left-radius: var(--radius-full);
|
|
707
|
+
border-bottom-left-radius: var(--radius-full);
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
:where([data-plex-layout="phone"]) .Day[data-is-in-range]:last-child {
|
|
711
|
+
border-top-right-radius: var(--radius-full);
|
|
712
|
+
border-bottom-right-radius: var(--radius-full);
|
|
713
|
+
}@media (prefers-reduced-motion: reduce) {
|
|
492
714
|
.CalendarContainer {
|
|
493
715
|
--calendar-height-duration: 0ms;
|
|
494
716
|
}
|
|
@@ -1,20 +1,63 @@
|
|
|
1
1
|
@layer components {.StepperControl {
|
|
2
2
|
padding-right: calc((var(--select-control-size) - var(--clear-size)) / 2);
|
|
3
3
|
padding-left: calc((var(--select-control-size) - var(--clear-size)) / 2);
|
|
4
|
+
|
|
5
|
+
/* The arrows are uniform buttons: their size must not depend on this stylesheet coming after Button's */
|
|
4
6
|
}
|
|
5
7
|
|
|
6
8
|
.StepperControl .StepperPrevious,
|
|
7
9
|
.StepperControl .StepperNext {
|
|
8
10
|
--button-size: var(--clear-size);
|
|
9
11
|
--button-icon-size: var(--clear-icon-size);
|
|
10
|
-
}
|
|
12
|
+
}
|
|
13
|
+
.StepperControl .StepperPrevious[data-uniform],
|
|
14
|
+
.StepperControl .StepperNext[data-uniform] {
|
|
15
|
+
--button-uniform-size: var(--clear-size);
|
|
16
|
+
}/* On a phone an arrow takes the 44px target of iOS around its face; the negative margin keeps the
|
|
17
|
+
control's layout and the glyph where they were. */@media (max-width: 767px) {
|
|
18
|
+
.StepperControl :is(.StepperPrevious, .StepperNext) {
|
|
19
|
+
min-width: 44px;
|
|
20
|
+
min-height: 44px;
|
|
21
|
+
margin: calc((var(--button-size) - 44px) / 2);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.StepperControl :is(.StepperPrevious, .StepperNext)::before,
|
|
25
|
+
.StepperControl :is(.StepperPrevious, .StepperNext)::after {
|
|
26
|
+
width: var(--button-size);
|
|
27
|
+
height: var(--button-size);
|
|
28
|
+
margin: auto;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
:where([data-plex-layout="phone"]) .StepperControl :is(.StepperPrevious, .StepperNext) {
|
|
32
|
+
min-width: 44px;
|
|
33
|
+
min-height: 44px;
|
|
34
|
+
margin: calc((var(--button-size) - 44px) / 2);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:where([data-plex-layout="phone"]) .StepperControl :is(.StepperPrevious, .StepperNext)::before, :where([data-plex-layout="phone"]) .StepperControl :is(.StepperPrevious, .StepperNext)::after {
|
|
38
|
+
width: var(--button-size);
|
|
39
|
+
height: var(--button-size);
|
|
40
|
+
margin: auto;
|
|
41
|
+
}.StepperContent {
|
|
11
42
|
display: flex;
|
|
12
43
|
align-items: center;
|
|
13
44
|
gap: var(--select-control-gap);
|
|
14
45
|
}.StepperText {
|
|
15
46
|
min-width: 9em;
|
|
16
47
|
text-align: center;
|
|
17
|
-
}
|
|
48
|
+
}/* In a phone row the month keeps the width of the widest English month at the row's 17px
|
|
49
|
+
(September 2026 is 7.6em), so the arrows stay put when the month changes; the desktop 9em
|
|
50
|
+
would push the row's label onto two lines. The month gives the stepper its baseline, so it
|
|
51
|
+
sits on the row's line with the label and the other values, not 1.5px above it. */@media (max-width: 767px) {
|
|
52
|
+
:where([data-row]) .StepperText {
|
|
53
|
+
min-width: 7.75em;
|
|
54
|
+
align-self: baseline;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
:where([data-plex-layout="phone"]) :where([data-row]) .StepperText {
|
|
58
|
+
min-width: 7.75em;
|
|
59
|
+
align-self: baseline;
|
|
60
|
+
}.RangeText {
|
|
18
61
|
display: inline-block;
|
|
19
62
|
font-variant: tabular-nums;
|
|
20
63
|
}.RangeTextSeparator {
|