@plexui/styles 0.16.7 → 0.17.1
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 +74 -12
- package/dist/es/components/Alert/Alert.module.css +196 -0
- package/dist/es/components/Breadcrumb/Breadcrumb.module.css +32 -1
- package/dist/es/components/Button/Button.module.css +483 -5
- package/dist/es/components/Button/NavigationButton.module.css +195 -0
- package/dist/es/components/Checkbox/Checkbox.module.css +246 -0
- package/dist/es/components/CodeBlock/CodeBlock.module.css +15 -1
- package/dist/es/components/DatePicker/Calendar.module.css +216 -0
- package/dist/es/components/DatePicker/CalendarNavigationIcon.module.css +19 -0
- package/dist/es/components/DateRangePicker/Calendar.module.css +200 -0
- package/dist/es/components/DateRangePicker/Trigger.module.css +15 -1
- package/dist/es/components/Dialog/Dialog.module.css +456 -0
- package/dist/es/components/Field/Field.module.css +713 -0
- package/dist/es/components/FieldGroup/FieldGroup.module.css +272 -0
- package/dist/es/components/FloatingLabelInput/FloatingLabelInput.module.css +49 -0
- package/dist/es/components/FloatingLabelSelect/FloatingLabelSelect.module.css +81 -0
- package/dist/es/components/Input/Input.module.css +184 -0
- package/dist/es/components/InputGroup/InputGroup.module.css +17 -0
- package/dist/es/components/MarkdownEditor/MarkdownEditor.module.css +60 -0
- package/dist/es/components/Menu/Menu.module.css +244 -0
- package/dist/es/components/NavigationRow/NavigationRow.module.css +82 -0
- package/dist/es/components/Page/Page.module.css +278 -0
- package/dist/es/components/PageControl/PageControl.module.css +35 -0
- package/dist/es/components/Popover/Popover.module.css +20 -0
- package/dist/es/components/RadioGroup/RadioGroup.module.css +151 -0
- package/dist/es/components/Select/Select.module.css +315 -0
- package/dist/es/components/SelectControl/SelectControl.module.css +104 -0
- package/dist/es/components/Sidebar/Sidebar.module.css +210 -4
- package/dist/es/components/Skeleton/Skeleton.module.css +50 -0
- package/dist/es/components/Slider/Slider.module.css +12 -1
- package/dist/es/components/Switch/Switch.module.css +143 -0
- package/dist/es/components/TabBar/TabBar.module.css +354 -0
- package/dist/es/components/Tabs/Tabs.module.css +162 -0
- package/dist/es/components/Tip/Tip.module.css +225 -0
- package/dist/es/components/Toast/Toast.module.css +207 -0
- package/dist/es/components/Toolbar/Toolbar.module.css +1542 -0
- package/dist/es/components/Tooltip/Tooltip.module.css +44 -0
- package/dist/es/styles/android.css +882 -0
- package/dist/es/styles/touch.css +672 -0
- package/dist/es/styles/variables-components.css +4 -0
- package/dist/es/styles/variables-semantic.css +28 -0
- package/dist/es/tokens/resolve.js +2 -0
- package/dist/es/tokens/resolve.js.map +1 -1
- package/dist/es/tokens/tokens.generated.js +64 -10
- package/dist/es/tokens/tokens.generated.js.map +1 -1
- package/dist/types/tokens/resolve.d.ts +2 -0
- package/package.json +1 -1
|
@@ -816,6 +816,188 @@ background-color: var(--alpha-08);
|
|
|
816
816
|
font-size: 17px;
|
|
817
817
|
font-weight: var(--font-weight-normal);
|
|
818
818
|
line-height: 22px;
|
|
819
|
+
}/* The Plex Android look (`data-platform="android"`, android.css), after Material 3's docked date picker in the popup
|
|
820
|
+
of the Plex Android look: 22px corners and the glass of the popups, seven 48px columns with 8 inside the panel,
|
|
821
|
+
a 40px circle for a day, the month at 14/20 Medium (Label Large), the weekdays (two letters) and the days at 16/24
|
|
822
|
+
(Body Large), today ringed instead of dotted, Material's 24px chevrons in 48px targets. */@media (max-width: 767px) {
|
|
823
|
+
[data-platform="android"] .Popover[role="dialog"],
|
|
824
|
+
[data-platform="android"] .CalendarWrapper {
|
|
825
|
+
--calendar-inner-padding: 8px;
|
|
826
|
+
--calendar-header-height: calc(48px + 2 * var(--calendar-inner-padding));
|
|
827
|
+
--calendar-caption-inset: 104px;
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
[data-platform="android"] .Popover[role="dialog"] {
|
|
831
|
+
--popover-radius: 22px;
|
|
832
|
+
background: var(--android-bar-glass);
|
|
833
|
+
box-shadow: var(--android-bar-shadow);
|
|
834
|
+
backdrop-filter: var(--mobile-glass-backdrop-filter);
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
[data-platform="android"] .CalendarWrapper {
|
|
838
|
+
width: min(352px, calc(100vw - 2 * var(--calendar-gutter)), var(--radix-popover-content-available-width, 352px));
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
[data-platform="android"] .CalendarContainer {
|
|
842
|
+
--cell-size: 48px;
|
|
843
|
+
--calendar-width: min(336px, calc(100vw - 2 * var(--calendar-gutter) - 2 * var(--calendar-inner-padding)), calc(var(--radix-popover-content-available-width, 352px) - 2 * var(--calendar-inner-padding)));
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
[data-platform="android"] .Calendar {
|
|
847
|
+
--cell-size: 48px;
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
[data-platform="android"] .Previous {
|
|
851
|
+
right: 48px;
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
[data-platform="android"] .Previous button[type="button"],
|
|
855
|
+
[data-platform="android"] .Next button[type="button"] {
|
|
856
|
+
--button-size: 48px;
|
|
857
|
+
--button-text-color: var(--color-text-secondary);
|
|
858
|
+
--button-text-color-hover: var(--color-text-secondary);
|
|
859
|
+
width: 48px;
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
[data-platform="android"] .MonthLabel {
|
|
863
|
+
font-size: 14px;
|
|
864
|
+
font-weight: var(--font-weight-medium);
|
|
865
|
+
line-height: 20px;
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
[data-platform="android"] .WeekdayHeader {
|
|
869
|
+
height: 48px;
|
|
870
|
+
margin-bottom: 0;
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
[data-platform="android"] .DayLabel {
|
|
874
|
+
height: 24px;
|
|
875
|
+
color: var(--color-text);
|
|
876
|
+
font-size: 16px;
|
|
877
|
+
font-weight: var(--font-weight-normal);
|
|
878
|
+
line-height: 24px;
|
|
879
|
+
text-transform: none;
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
[data-platform="android"] .ShortDayLabel {
|
|
883
|
+
display: inline;
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
[data-platform="android"] .LongDayLabel {
|
|
887
|
+
display: none;
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
[data-platform="android"] .Day[data-is-selected] {
|
|
891
|
+
background: none;
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
[data-platform="android"] .InteractiveDay {
|
|
895
|
+
padding: 4px;
|
|
896
|
+
background-clip: content-box;
|
|
897
|
+
font-size: 16px;
|
|
898
|
+
line-height: 24px;
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
[data-platform="android"] .InteractiveDay::before {
|
|
902
|
+
inset: 4px;
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
[data-platform="android"] .InteractiveDay[aria-current="date"]::before {
|
|
906
|
+
opacity: 1;
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
[data-platform="android"] .TodayDot {
|
|
910
|
+
display: none;
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Popover[role="dialog"],
|
|
914
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .CalendarWrapper {
|
|
915
|
+
--calendar-inner-padding: 8px;
|
|
916
|
+
--calendar-header-height: calc(48px + 2 * var(--calendar-inner-padding));
|
|
917
|
+
--calendar-caption-inset: 104px;
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Popover[role="dialog"] {
|
|
921
|
+
--popover-radius: 22px;
|
|
922
|
+
background: var(--android-bar-glass);
|
|
923
|
+
box-shadow: var(--android-bar-shadow);
|
|
924
|
+
backdrop-filter: var(--mobile-glass-backdrop-filter);
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .CalendarWrapper {
|
|
928
|
+
width: min(352px, calc(100vw - 2 * var(--calendar-gutter)), var(--radix-popover-content-available-width, 352px));
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .CalendarContainer {
|
|
932
|
+
--cell-size: 48px;
|
|
933
|
+
--calendar-width: min(336px, calc(100vw - 2 * var(--calendar-gutter) - 2 * var(--calendar-inner-padding)), calc(var(--radix-popover-content-available-width, 352px) - 2 * var(--calendar-inner-padding)));
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Calendar {
|
|
937
|
+
--cell-size: 48px;
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Previous {
|
|
941
|
+
right: 48px;
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Previous button[type="button"],
|
|
945
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Next button[type="button"] {
|
|
946
|
+
--button-size: 48px;
|
|
947
|
+
--button-text-color: var(--color-text-secondary);
|
|
948
|
+
--button-text-color-hover: var(--color-text-secondary);
|
|
949
|
+
width: 48px;
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .MonthLabel {
|
|
953
|
+
font-size: 14px;
|
|
954
|
+
font-weight: var(--font-weight-medium);
|
|
955
|
+
line-height: 20px;
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .WeekdayHeader {
|
|
959
|
+
height: 48px;
|
|
960
|
+
margin-bottom: 0;
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .DayLabel {
|
|
964
|
+
height: 24px;
|
|
965
|
+
color: var(--color-text);
|
|
966
|
+
font-size: 16px;
|
|
967
|
+
font-weight: var(--font-weight-normal);
|
|
968
|
+
line-height: 24px;
|
|
969
|
+
text-transform: none;
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .ShortDayLabel {
|
|
973
|
+
display: inline;
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .LongDayLabel {
|
|
977
|
+
display: none;
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Day[data-is-selected] {
|
|
981
|
+
background: none;
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .InteractiveDay {
|
|
985
|
+
padding: 4px;
|
|
986
|
+
background-clip: content-box;
|
|
987
|
+
font-size: 16px;
|
|
988
|
+
line-height: 24px;
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .InteractiveDay::before {
|
|
992
|
+
inset: 4px;
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .InteractiveDay[aria-current="date"]::before {
|
|
996
|
+
opacity: 1;
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .TodayDot {
|
|
1000
|
+
display: none;
|
|
819
1001
|
}@media (prefers-reduced-motion: reduce) {
|
|
820
1002
|
.CalendarContainer {
|
|
821
1003
|
--calendar-height-duration: 0ms;
|
|
@@ -824,5 +1006,39 @@ background-color: var(--alpha-08);
|
|
|
824
1006
|
.CalendarRange {
|
|
825
1007
|
transition: none;
|
|
826
1008
|
}
|
|
1009
|
+
}/* Android press ripple. Held, a day ripples in its 40px circle (android.css, Android press ripple), in the list
|
|
1010
|
+
selector, and the selected day in its own ink at 10%, which shows on its fill. */@media (max-width: 767px) {
|
|
1011
|
+
[data-platform="android"] .InteractiveDay {
|
|
1012
|
+
--android-ripple-radius: 20px;
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
[data-platform="android"] [data-is-selected] .InteractiveDay {
|
|
1016
|
+
--android-ripple-ink: color-mix(in srgb, var(--color-text-inverse) 10%, transparent);
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
[data-platform="android"] .InteractiveDay[data-ripple]:not([disabled])::after {
|
|
1020
|
+
position: absolute;
|
|
1021
|
+
inset: 4px;
|
|
1022
|
+
border-radius: 50%;
|
|
1023
|
+
background-image: var(--android-ripple-image);
|
|
1024
|
+
content: "";
|
|
1025
|
+
pointer-events: none;
|
|
1026
|
+
}
|
|
827
1027
|
}
|
|
1028
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .InteractiveDay {
|
|
1029
|
+
--android-ripple-radius: 20px;
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] [data-is-selected] .InteractiveDay {
|
|
1033
|
+
--android-ripple-ink: color-mix(in srgb, var(--color-text-inverse) 10%, transparent);
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .InteractiveDay[data-ripple]:not([disabled])::after {
|
|
1037
|
+
position: absolute;
|
|
1038
|
+
inset: 4px;
|
|
1039
|
+
border-radius: 50%;
|
|
1040
|
+
background-image: var(--android-ripple-image);
|
|
1041
|
+
content: "";
|
|
1042
|
+
pointer-events: none;
|
|
1043
|
+
}
|
|
828
1044
|
}
|
|
@@ -26,5 +26,24 @@
|
|
|
26
26
|
flex-shrink: 0;
|
|
27
27
|
width: 15px;
|
|
28
28
|
height: 24px;
|
|
29
|
+
}/* The Plex Android look (`data-platform="android"`, android.css): Material's 24px chevrons */@media (max-width: 767px) {
|
|
30
|
+
[data-platform="android"] .DesktopIcon {
|
|
31
|
+
display: block;
|
|
32
|
+
width: 24px;
|
|
33
|
+
height: 24px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
[data-platform="android"] .PhoneIcon {
|
|
37
|
+
display: none;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .DesktopIcon {
|
|
41
|
+
display: block;
|
|
42
|
+
width: 24px;
|
|
43
|
+
height: 24px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .PhoneIcon {
|
|
47
|
+
display: none;
|
|
29
48
|
}
|
|
30
49
|
}
|
|
@@ -676,6 +676,206 @@ background-color: var(--alpha-08);
|
|
|
676
676
|
:where([data-plex-layout="phone"]) .Day[data-is-in-range]:last-child {
|
|
677
677
|
border-top-right-radius: var(--radius-full);
|
|
678
678
|
border-bottom-right-radius: var(--radius-full);
|
|
679
|
+
}/* The Plex Android look (`data-platform="android"`, android.css), after Material 3's docked date range picker in the
|
|
680
|
+
popup of the Plex Android look, as DatePicker's calendar: 22px corners and the glass of the popups, seven 48px
|
|
681
|
+
columns with 8 inside the panel, the month at 14/20 Medium, the weekdays (two letters) and the days at 16/24, today
|
|
682
|
+
ringed instead of dotted, Material's chevrons in 48px targets. A day is a 40px circle and the range a 40px band. */@media (max-width: 767px) {
|
|
683
|
+
[data-platform="android"] .Popover[role="dialog"],
|
|
684
|
+
[data-platform="android"] .CalendarWrapper {
|
|
685
|
+
--calendar-inner-padding: 8px;
|
|
686
|
+
--calendar-header-height: calc(48px + 2 * var(--calendar-inner-padding));
|
|
687
|
+
--calendar-caption-inset: 104px;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
[data-platform="android"] .Popover[role="dialog"] {
|
|
691
|
+
--popover-radius: 22px;
|
|
692
|
+
background: var(--android-bar-glass);
|
|
693
|
+
box-shadow: var(--android-bar-shadow);
|
|
694
|
+
backdrop-filter: var(--mobile-glass-backdrop-filter);
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
[data-platform="android"] .CalendarWrapper {
|
|
698
|
+
width: min(352px, calc(100vw - 2 * var(--calendar-gutter)), var(--radix-popover-content-available-width, 352px));
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
[data-platform="android"] .CalendarContainer {
|
|
702
|
+
--cell-size: 48px;
|
|
703
|
+
--calendar-width: min(336px, calc(100vw - 2 * var(--calendar-gutter) - 2 * var(--calendar-inner-padding)), calc(var(--radix-popover-content-available-width, 352px) - 2 * var(--calendar-inner-padding)));
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
[data-platform="android"] .Calendar {
|
|
707
|
+
--cell-size: 48px;
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
[data-platform="android"] .Previous {
|
|
711
|
+
right: 48px;
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
[data-platform="android"] .Previous button[type="button"],
|
|
715
|
+
[data-platform="android"] .Next button[type="button"] {
|
|
716
|
+
--button-size: 48px;
|
|
717
|
+
--button-text-color: var(--color-text-secondary);
|
|
718
|
+
--button-text-color-hover: var(--color-text-secondary);
|
|
719
|
+
width: 48px;
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
[data-platform="android"] .MonthLabel {
|
|
723
|
+
font-size: 14px;
|
|
724
|
+
font-weight: var(--font-weight-medium);
|
|
725
|
+
line-height: 20px;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
[data-platform="android"] .WeekdayHeader {
|
|
729
|
+
height: 48px;
|
|
730
|
+
margin-bottom: 0;
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
[data-platform="android"] .DayLabel {
|
|
734
|
+
height: 24px;
|
|
735
|
+
color: var(--color-text);
|
|
736
|
+
font-size: 16px;
|
|
737
|
+
font-weight: var(--font-weight-normal);
|
|
738
|
+
line-height: 24px;
|
|
739
|
+
text-transform: none;
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
[data-platform="android"] .ShortDayLabel {
|
|
743
|
+
display: inline;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
[data-platform="android"] .LongDayLabel {
|
|
747
|
+
display: none;
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
/* The band is the day's middle 40px; the day's target keeps the whole cell */
|
|
751
|
+
[data-platform="android"] .Day {
|
|
752
|
+
padding-block: 4px;
|
|
753
|
+
background-clip: content-box;
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
[data-platform="android"] .Day[data-is-first-range-trail]::before,
|
|
757
|
+
[data-platform="android"] .Day[data-is-last-range-trail]::before {
|
|
758
|
+
top: 4px;
|
|
759
|
+
bottom: 4px;
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
[data-platform="android"] .InteractiveDay {
|
|
763
|
+
padding: 4px;
|
|
764
|
+
margin-block: -4px;
|
|
765
|
+
background-clip: content-box;
|
|
766
|
+
font-size: 16px;
|
|
767
|
+
line-height: 24px;
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
[data-platform="android"] .InteractiveDay::before {
|
|
771
|
+
inset: 4px;
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
[data-platform="android"] .InteractiveDay[aria-current="date"]::before {
|
|
775
|
+
opacity: 1;
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
[data-platform="android"] .TodayDot {
|
|
779
|
+
display: none;
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Popover[role="dialog"],
|
|
783
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .CalendarWrapper {
|
|
784
|
+
--calendar-inner-padding: 8px;
|
|
785
|
+
--calendar-header-height: calc(48px + 2 * var(--calendar-inner-padding));
|
|
786
|
+
--calendar-caption-inset: 104px;
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Popover[role="dialog"] {
|
|
790
|
+
--popover-radius: 22px;
|
|
791
|
+
background: var(--android-bar-glass);
|
|
792
|
+
box-shadow: var(--android-bar-shadow);
|
|
793
|
+
backdrop-filter: var(--mobile-glass-backdrop-filter);
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .CalendarWrapper {
|
|
797
|
+
width: min(352px, calc(100vw - 2 * var(--calendar-gutter)), var(--radix-popover-content-available-width, 352px));
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .CalendarContainer {
|
|
801
|
+
--cell-size: 48px;
|
|
802
|
+
--calendar-width: min(336px, calc(100vw - 2 * var(--calendar-gutter) - 2 * var(--calendar-inner-padding)), calc(var(--radix-popover-content-available-width, 352px) - 2 * var(--calendar-inner-padding)));
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Calendar {
|
|
806
|
+
--cell-size: 48px;
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Previous {
|
|
810
|
+
right: 48px;
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Previous button[type="button"],
|
|
814
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Next button[type="button"] {
|
|
815
|
+
--button-size: 48px;
|
|
816
|
+
--button-text-color: var(--color-text-secondary);
|
|
817
|
+
--button-text-color-hover: var(--color-text-secondary);
|
|
818
|
+
width: 48px;
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .MonthLabel {
|
|
822
|
+
font-size: 14px;
|
|
823
|
+
font-weight: var(--font-weight-medium);
|
|
824
|
+
line-height: 20px;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .WeekdayHeader {
|
|
828
|
+
height: 48px;
|
|
829
|
+
margin-bottom: 0;
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .DayLabel {
|
|
833
|
+
height: 24px;
|
|
834
|
+
color: var(--color-text);
|
|
835
|
+
font-size: 16px;
|
|
836
|
+
font-weight: var(--font-weight-normal);
|
|
837
|
+
line-height: 24px;
|
|
838
|
+
text-transform: none;
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .ShortDayLabel {
|
|
842
|
+
display: inline;
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .LongDayLabel {
|
|
846
|
+
display: none;
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
/* The band is the day's middle 40px; the day's target keeps the whole cell */
|
|
850
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Day {
|
|
851
|
+
padding-block: 4px;
|
|
852
|
+
background-clip: content-box;
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Day[data-is-first-range-trail]::before,
|
|
856
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Day[data-is-last-range-trail]::before {
|
|
857
|
+
top: 4px;
|
|
858
|
+
bottom: 4px;
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .InteractiveDay {
|
|
862
|
+
padding: 4px;
|
|
863
|
+
margin-block: -4px;
|
|
864
|
+
background-clip: content-box;
|
|
865
|
+
font-size: 16px;
|
|
866
|
+
line-height: 24px;
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .InteractiveDay::before {
|
|
870
|
+
inset: 4px;
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .InteractiveDay[aria-current="date"]::before {
|
|
874
|
+
opacity: 1;
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .TodayDot {
|
|
878
|
+
display: none;
|
|
679
879
|
}@media (prefers-reduced-motion: reduce) {
|
|
680
880
|
.CalendarContainer {
|
|
681
881
|
--calendar-height-duration: 0ms;
|
|
@@ -27,6 +27,13 @@
|
|
|
27
27
|
height: var(--button-size);
|
|
28
28
|
margin: auto;
|
|
29
29
|
}
|
|
30
|
+
|
|
31
|
+
/* The Plex Android look (`data-platform="android"`, android.css): Android's 48px targets */
|
|
32
|
+
[data-platform="android"] .StepperControl :is(.StepperPrevious, .StepperNext) {
|
|
33
|
+
min-width: 48px;
|
|
34
|
+
min-height: 48px;
|
|
35
|
+
margin: calc((var(--button-size) - 48px) / 2);
|
|
36
|
+
}
|
|
30
37
|
}
|
|
31
38
|
:where([data-plex-layout="phone"]) .StepperControl :is(.StepperPrevious, .StepperNext) {
|
|
32
39
|
min-width: 44px;
|
|
@@ -38,7 +45,14 @@
|
|
|
38
45
|
width: var(--button-size);
|
|
39
46
|
height: var(--button-size);
|
|
40
47
|
margin: auto;
|
|
41
|
-
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* The Plex Android look (`data-platform="android"`, android.css): Android's 48px targets */
|
|
51
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .StepperControl :is(.StepperPrevious, .StepperNext) {
|
|
52
|
+
min-width: 48px;
|
|
53
|
+
min-height: 48px;
|
|
54
|
+
margin: calc((var(--button-size) - 48px) / 2);
|
|
55
|
+
}.StepperContent {
|
|
42
56
|
display: flex;
|
|
43
57
|
align-items: center;
|
|
44
58
|
gap: var(--select-control-gap);
|