@plexui/styles 0.1.34 → 0.1.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/es/components/Accordion/Accordion.module.css +12 -1
  2. package/dist/es/components/Alert/Alert.module.css +101 -0
  3. package/dist/es/components/Badge/Badge.module.css +37 -0
  4. package/dist/es/components/Breadcrumb/Breadcrumb.module.css +29 -0
  5. package/dist/es/components/Button/Button.module.css +53 -0
  6. package/dist/es/components/Button/NavigationButton.module.css +17 -0
  7. package/dist/es/components/ButtonGroup/ButtonGroup.module.css +227 -20
  8. package/dist/es/components/Card/Card.module.css +9 -0
  9. package/dist/es/components/CodeBlock/CodeBlock.module.css +14 -1
  10. package/dist/es/components/ColorPicker/ColorPicker.module.css +19 -1
  11. package/dist/es/components/DatePicker/Calendar.module.css +262 -2
  12. package/dist/es/components/DatePicker/CalendarNavigationIcon.module.css +10 -0
  13. package/dist/es/components/DateRangePicker/Calendar.module.css +207 -3
  14. package/dist/es/components/DateRangePicker/Trigger.module.css +17 -2
  15. package/dist/es/components/Dialog/Dialog.module.css +660 -13
  16. package/dist/es/components/EmptyMessage/EmptyMessage.module.css +21 -0
  17. package/dist/es/components/Field/Field.module.css +387 -2
  18. package/dist/es/components/FieldGroup/FieldGroup.module.css +129 -3
  19. package/dist/es/components/FileUpload/FileUpload.module.css +74 -1
  20. package/dist/es/components/FloatingLabelInput/FloatingLabelInput.module.css +19 -1
  21. package/dist/es/components/FloatingLabelSelect/FloatingLabelSelect.module.css +12 -1
  22. package/dist/es/components/IndexBar/IndexBar.module.css +146 -0
  23. package/dist/es/components/Input/Input.module.css +129 -1
  24. package/dist/es/components/MarkdownEditor/MarkdownEditor.module.css +18 -0
  25. package/dist/es/components/Menu/Menu.module.css +324 -7
  26. package/dist/es/components/OTPInput/OTPInput.module.css +6 -1
  27. package/dist/es/components/Page/Page.module.css +302 -10
  28. package/dist/es/components/PhoneLayout/PhoneLayout.module.css +10 -0
  29. package/dist/es/components/Popover/Popover.module.css +7 -0
  30. package/dist/es/components/Select/Select.module.css +148 -0
  31. package/dist/es/components/SelectControl/SelectControl.module.css +113 -1
  32. package/dist/es/components/Sidebar/Sidebar.module.css +354 -20
  33. package/dist/es/components/Slider/Slider.module.css +80 -0
  34. package/dist/es/components/SwipeActions/SwipeActions.module.css +166 -0
  35. package/dist/es/components/Switch/Switch.module.css +59 -4
  36. package/dist/es/components/TabBar/TabBar.module.css +255 -10
  37. package/dist/es/components/Tabs/Tabs.module.css +166 -1
  38. package/dist/es/components/TagInput/TagInput.module.css +50 -9
  39. package/dist/es/components/Textarea/Textarea.module.css +6 -0
  40. package/dist/es/components/Tip/Tip.module.css +456 -0
  41. package/dist/es/components/Toast/Toast.module.css +148 -5
  42. package/dist/es/components/Toolbar/Toolbar.module.css +642 -3
  43. package/dist/es/styles/mobile-materials.css +103 -8
  44. package/dist/es/styles/mobile-surfaces.css +43 -0
  45. package/dist/es/styles/touch.css +619 -9
  46. package/dist/es/styles/variables-components.css +125 -5
  47. package/package.json +1 -1
  48. package/postcss/parseLightDark.mjs +20 -2
  49. package/postcss/phoneLayoutScope.mjs +139 -0
  50. package/postcss.config.mjs +3 -0
@@ -31,7 +31,25 @@
31
31
  /* Every label of the plain control is primary; the weight marks the selection. */
32
32
  --color-text-secondary: var(--color-text);
33
33
  }
34
- }.Body {
34
+ }
35
+ :where([data-plex-layout="phone"]) .Modes[data-variant="segmented"][data-orientation="horizontal"] {
36
+ --segmented-control-size: 32px;
37
+ --segmented-control-gutter: 2px;
38
+ --segmented-control-gap: 4px;
39
+ --segmented-control-thumb-outset: 0px;
40
+ --segmented-control-option-gutter: 6px;
41
+ --segmented-control-font-size: 13.333px;
42
+ --segmented-control-line-height: 18px;
43
+ --segmented-control-font-weight: 510;
44
+ --segmented-control-active-font-weight: 590;
45
+ --segmented-control-background: var(--color-picker-mobile-mode-background);
46
+ --segmented-control-sheen: none;
47
+ --segmented-control-shadow: none;
48
+ --segmented-control-backdrop-filter: none;
49
+ --segmented-control-thumb-background: var(--color-picker-mobile-mode-thumb-background);
50
+ /* Every label of the plain control is primary; the weight marks the selection. */
51
+ --color-text-secondary: var(--color-text);
52
+ }.Body {
35
53
  position: relative;
36
54
  aspect-ratio: var(--color-picker-body-aspect-ratio);
37
55
  }/* ===== Grid ===== */.Grid {
@@ -440,7 +440,172 @@ background-color: var(--alpha-08);
440
440
  height: 4px;
441
441
  margin-left: -2px;
442
442
  }
443
- }@media (max-width: 767px) {
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 {
549
+ display: none;
550
+ }
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) {
444
609
  .MonthLabelSpacer {
445
610
  height: var(--calendar-header-height);
446
611
  margin: 0;
@@ -536,7 +701,102 @@ background-color: var(--alpha-08);
536
701
  font-weight: var(--font-weight-normal);
537
702
  line-height: 22px;
538
703
  }
539
- }@media (prefers-reduced-motion: reduce) {
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) {
540
800
  .CalendarContainer {
541
801
  --calendar-height-duration: 0ms;
542
802
  }
@@ -17,4 +17,14 @@
17
17
  height: 24px;
18
18
  }
19
19
  }
20
+ :where([data-plex-layout="phone"]) .DesktopIcon {
21
+ display: none;
22
+ }
23
+
24
+ :where([data-plex-layout="phone"]) .PhoneIcon {
25
+ display: block;
26
+ flex-shrink: 0;
27
+ width: 15px;
28
+ height: 24px;
29
+ }
20
30
  }
@@ -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 {
@@ -466,7 +466,172 @@ background-color: var(--alpha-08);
466
466
  height: 4px;
467
467
  margin-left: -2px;
468
468
  }
469
- }@media (max-width: 767px) {
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 {
613
+ display: none;
614
+ }
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) {
470
635
  .CalendarContainer {
471
636
  --calendar-day-gap: max(0px, calc((var(--calendar-width) - 7 * var(--cell-size)) / 6));
472
637
  }
@@ -506,7 +671,46 @@ background-color: var(--alpha-08);
506
671
  border-top-right-radius: var(--radius-full);
507
672
  border-bottom-right-radius: var(--radius-full);
508
673
  }
509
- }@media (prefers-reduced-motion: reduce) {
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) {
510
714
  .CalendarContainer {
511
715
  --calendar-height-duration: 0ms;
512
716
  }
@@ -27,7 +27,18 @@
27
27
  height: var(--button-size);
28
28
  margin: auto;
29
29
  }
30
- }.StepperContent {
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 {
31
42
  display: flex;
32
43
  align-items: center;
33
44
  gap: var(--select-control-gap);
@@ -42,7 +53,11 @@
42
53
  min-width: 7.75em;
43
54
  align-self: baseline;
44
55
  }
45
- }.RangeText {
56
+ }
57
+ :where([data-plex-layout="phone"]) :where([data-row]) .StepperText {
58
+ min-width: 7.75em;
59
+ align-self: baseline;
60
+ }.RangeText {
46
61
  display: inline-block;
47
62
  font-variant: tabular-nums;
48
63
  }.RangeTextSeparator {