@plexui/styles 0.16.7 → 0.17.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 +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 +169 -0
- 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
|
@@ -838,6 +838,456 @@
|
|
|
838
838
|
.Toolbar[data-host="dialog"][data-placement="bottom"] {
|
|
839
839
|
--toolbar-background: var(--dialog-panel-background);
|
|
840
840
|
}
|
|
841
|
+
|
|
842
|
+
/* =============================================
|
|
843
|
+
The Plex Android look (`data-platform="android"`, android.css), after @plexui/react-native's Toolbar on Android
|
|
844
|
+
(decision 0026): 46px circles and capsules of the bar's glass 6 from the screen's sides, 6 apart, in a 62px row
|
|
845
|
+
(5 above the items, 11 under them) under the status bar; 24px symbols; a label (Save) Medium 15 16 in from the
|
|
846
|
+
ends of its capsule; the title Medium 17, centered (the Android reference's bar), a subtitle 14/18 in the secondary text under it, or from the
|
|
847
|
+
start 18 past the controls (76 after Back, 24 with none). No large title: it stays in the row. A group of actions
|
|
848
|
+
is one capsule, its symbols in 38px slots 4 from its ends. The bars draw no line of their own. The rows of a large
|
|
849
|
+
title, which wait in the content, take the bar's numbers too (Page.module.css sets them as the bar's row).
|
|
850
|
+
============================================= */
|
|
851
|
+
[data-platform="android"] :is(.Toolbar, :where(.Row[data-in-content])) {
|
|
852
|
+
--toolbar-top-item-size: 46px;
|
|
853
|
+
--toolbar-bottom-item-size: 46px;
|
|
854
|
+
--toolbar-top-item-gap: 6px;
|
|
855
|
+
--toolbar-bottom-item-gap: 6px;
|
|
856
|
+
--toolbar-gutter: 6px;
|
|
857
|
+
--toolbar-group-gap: 0px;
|
|
858
|
+
--toolbar-group-padding: 4px;
|
|
859
|
+
--toolbar-bottom-group-gap: 0px;
|
|
860
|
+
--toolbar-bottom-group-padding: 4px;
|
|
861
|
+
--toolbar-padding-bottom: 11px;
|
|
862
|
+
--toolbar-sheet-padding-top: 8px;
|
|
863
|
+
--toolbar-bottom-padding-top: 5px;
|
|
864
|
+
--toolbar-bottom-fill-padding-top: 5px;
|
|
865
|
+
--toolbar-icon-size: 24px;
|
|
866
|
+
--toolbar-icon-size-sm: 24px;
|
|
867
|
+
--toolbar-label-font-size: 15px;
|
|
868
|
+
--toolbar-label-line-height: 20px;
|
|
869
|
+
--toolbar-label-font-weight: var(--font-weight-medium);
|
|
870
|
+
--toolbar-label-prominent-font-weight: var(--font-weight-medium);
|
|
871
|
+
--toolbar-label-gutter: 16px;
|
|
872
|
+
--toolbar-bottom-label-gutter: 16px;
|
|
873
|
+
--toolbar-title-font-size: 17px;
|
|
874
|
+
--toolbar-title-line-height: 22px;
|
|
875
|
+
--toolbar-title-font-weight: var(--font-weight-medium);
|
|
876
|
+
--toolbar-title-compact-font-size: 17px;
|
|
877
|
+
--toolbar-title-compact-line-height: 20px;
|
|
878
|
+
--toolbar-subtitle-font-size: 14px;
|
|
879
|
+
--toolbar-subtitle-line-height: 18px;
|
|
880
|
+
--toolbar-subtitle-font-weight: var(--font-weight-normal);
|
|
881
|
+
--toolbar-row-gap: 8px;
|
|
882
|
+
/* The bar's glass (android.css), which a press keeps: the control ripples over it (Android press ripple, below). */
|
|
883
|
+
--mobile-glass-background: var(--android-bar-glass);
|
|
884
|
+
--mobile-glass-background-hover: var(--android-bar-glass);
|
|
885
|
+
--mobile-glass-background-active: var(--android-bar-glass);
|
|
886
|
+
--mobile-glass-sheen: none;
|
|
887
|
+
--mobile-glass-shadow: var(--android-bar-shadow);
|
|
888
|
+
--mobile-glass-shadow-raised: var(--android-bar-shadow);
|
|
889
|
+
--toolbar-group-item-hover: transparent;
|
|
890
|
+
--toolbar-group-item-active: transparent;
|
|
891
|
+
/* The prominent action is the accent with a card's shadow, no edge of glass; disabled, the glass circle with its
|
|
892
|
+
content at 38%. */
|
|
893
|
+
--toolbar-prominent-background: var(--color-background-accent-solid);
|
|
894
|
+
--toolbar-prominent-background-hover: var(--color-background-accent-solid);
|
|
895
|
+
--toolbar-prominent-background-active: var(--color-background-accent-solid);
|
|
896
|
+
--toolbar-prominent-color: var(--color-text-accent-solid);
|
|
897
|
+
--toolbar-prominent-sheen: none;
|
|
898
|
+
--toolbar-prominent-shadow: var(--android-accent-shadow);
|
|
899
|
+
--toolbar-prominent-disabled-background: var(--android-bar-glass);
|
|
900
|
+
--toolbar-prominent-disabled-color: var(--android-bar-disabled);
|
|
901
|
+
--toolbar-search-font-weight: var(--font-weight-normal);
|
|
902
|
+
--toolbar-search-placeholder-color: color-mix(in srgb, var(--color-text) 38%, transparent);
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
/* A large title stays in the row, inline; a compact one is the title from the start. */
|
|
906
|
+
[data-platform="android"] .Toolbar[data-title-style="large"]:not([data-host]) {
|
|
907
|
+
grid-template-areas: "leading heading trailing";
|
|
908
|
+
grid-template-columns: minmax(max-content, 1fr) minmax(0, auto) minmax(max-content, 1fr);
|
|
909
|
+
grid-template-rows: auto;
|
|
910
|
+
row-gap: var(--toolbar-row-gap);
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
[data-platform="android"] .Toolbar[data-title-style="large"]:not([data-host]) > .Heading {
|
|
914
|
+
align-items: center;
|
|
915
|
+
min-height: var(--toolbar-item-size);
|
|
916
|
+
text-align: center;
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
[data-platform="android"] .Toolbar[data-title-style="large"]:not([data-host]) > .Heading > .Title {
|
|
920
|
+
font-size: var(--toolbar-title-font-size);
|
|
921
|
+
font-weight: var(--toolbar-title-font-weight);
|
|
922
|
+
line-height: var(--toolbar-title-line-height);
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
[data-platform="android"] .Toolbar[data-title-style="large"]:not([data-host]) > .Heading > .Subtitle {
|
|
926
|
+
font-size: var(--toolbar-subtitle-font-size);
|
|
927
|
+
font-weight: var(--toolbar-subtitle-font-weight);
|
|
928
|
+
line-height: var(--toolbar-subtitle-line-height);
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
[data-platform="android"] .Toolbar[data-title-style="large"]:not([data-host]) > .Heading:has(> .Subtitle) > .Title {
|
|
932
|
+
line-height: var(--toolbar-title-compact-line-height);
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
/* On a page or in a sheet the large title lives in the content: there the bar shows it inline at all times and the
|
|
936
|
+
content's copy goes. */
|
|
937
|
+
[data-platform="android"] .Heading[data-in-content] {
|
|
938
|
+
display: none;
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
[data-platform="android"] .Toolbar:is([data-host="page"], [data-host="dialog"])[data-title-style="large"] > .CollapsedTitle {
|
|
942
|
+
opacity: 1;
|
|
943
|
+
transition: none;
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
[data-platform="android"] .Toolbar:is([data-host="page"], [data-host="dialog"])[data-title-style="large"] > .CollapsedTitle:has(> .CollapsedSubtitle) {
|
|
947
|
+
line-height: var(--toolbar-title-compact-line-height);
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
[data-platform="android"] .Toolbar:is([data-host="page"], [data-host="dialog"])[data-title-style="large"] > .CollapsedTitle > .CollapsedSubtitle {
|
|
951
|
+
margin-top: 0;
|
|
952
|
+
color: var(--color-text-secondary);
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
[data-platform="android"] .Toolbar:is([data-host="page"], [data-host="dialog"])[data-title-style="large"]:has(> .Heading) > .Heading {
|
|
956
|
+
display: none;
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
[data-platform="android"] .Toolbar:is([data-title-style="compact-large"], [data-title-style="compact-medium"]) > .Heading {
|
|
960
|
+
align-self: center;
|
|
961
|
+
min-height: var(--toolbar-item-size);
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
[data-platform="android"] .Toolbar:is([data-title-style="compact-large"], [data-title-style="compact-medium"]) > .Heading > .Title {
|
|
965
|
+
font-size: var(--toolbar-title-font-size);
|
|
966
|
+
font-weight: var(--toolbar-title-font-weight);
|
|
967
|
+
line-height: var(--toolbar-title-line-height);
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
[data-platform="android"] .Subtitle {
|
|
971
|
+
margin-top: 0;
|
|
972
|
+
color: var(--color-text-secondary);
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
/* A title from the start stands 18 past the bar's gap after the controls before it, or the gutter. */
|
|
976
|
+
[data-platform="android"] .Toolbar:is([data-title-align="start"], [data-title-style="compact-large"], [data-title-style="compact-medium"]) > .Heading {
|
|
977
|
+
margin-inline-start: 18px;
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
/* A bar stands 5 under the status bar (over a page) or its own top; a bottom bar 5 under its top, whatever its
|
|
981
|
+
background. */
|
|
982
|
+
[data-platform="android"] .Toolbar[data-placement="top"]:not([data-host]) {
|
|
983
|
+
--toolbar-padding-top: 5px;
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
[data-platform="android"] .Toolbar[data-placement="bottom"][data-background]:not([data-background="soft"]) {
|
|
987
|
+
--toolbar-bottom-padding-top: 5px;
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
[data-platform="android"] .Toolbar[data-host="page"][data-placement="top"] {
|
|
991
|
+
--toolbar-padding-top: calc(var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) + 5px);
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
[data-platform="android"] :where([data-mobile-placement="fullscreen"]) .Toolbar[data-host="dialog"][data-placement="top"] {
|
|
995
|
+
--toolbar-padding-top: calc(var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) + 5px);
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
/* A bar's neutral symbol or label is in the text color; disabled at 38%, its glass kept. */
|
|
999
|
+
[data-platform="android"] .Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a):where(:not([data-disabled])):where([data-color="primary"], [data-color="secondary"]):where([data-variant="soft"], [data-variant="ghost"]) {
|
|
1000
|
+
--button-text-color: var(--color-text);
|
|
1001
|
+
--button-text-color-hover: var(--color-text);
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
[data-platform="android"] .Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a)[data-disabled][data-variant]:where(:not([data-mobile-material="flat"])):where([data-color="primary"], [data-color="secondary"]):where([data-variant="soft"], [data-variant="ghost"]) {
|
|
1005
|
+
--button-text-color: var(--android-bar-disabled);
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
/* A disabled prominent action goes back to the glass circle: blurred, with its rim and shadow. */
|
|
1009
|
+
[data-platform="android"] .Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a)[data-disabled][data-variant="solid"]::before {
|
|
1010
|
+
backdrop-filter: var(--mobile-glass-backdrop-filter);
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
[data-platform="android"] .Toolbar .Group > :where(button, a)[data-uniform] {
|
|
1014
|
+
width: 38px;
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
/* A search field in the bar or in a row of it is the bar's own capsule: 46 of its glass, 18px text 20 in, the hint
|
|
1018
|
+
the text at 38%, 24px symbols. */
|
|
1019
|
+
[data-platform="android"] :is(.Toolbar :is(.Leading, .Trailing, .Content), .Row) > [data-slot="input"][data-variant] {
|
|
1020
|
+
--input-font-size: 18px;
|
|
1021
|
+
--input-gutter: 20px;
|
|
1022
|
+
--input-gap: 10px;
|
|
1023
|
+
--toolbar-search-icon-size: 24px;
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
/* The soft edge under the top bar, once content is under it: the content blurred under the whole bar, the blur
|
|
1027
|
+
eased out over its last 32px, under the screen's color at 63% eased out over the last 56 (SoftTopEdge). Nothing
|
|
1028
|
+
reaches below the bar. */
|
|
1029
|
+
[data-platform="android"] .Toolbar[data-placement="top"][data-background="soft"]::before,
|
|
1030
|
+
[data-platform="android"] .Toolbar[data-placement="top"][data-background="soft"]::after {
|
|
1031
|
+
inset: 0;
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
[data-platform="android"] .Toolbar[data-placement="top"][data-background="soft"]::before {
|
|
1035
|
+
background: color-mix(in srgb, var(--toolbar-background, var(--dialog-panel-background, var(--page-background))) 62.75%, transparent);
|
|
1036
|
+
backdrop-filter: none;
|
|
1037
|
+
-webkit-mask-image: var(--android-top-fade-56);
|
|
1038
|
+
mask-image: var(--android-top-fade-56);
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
[data-platform="android"] .Toolbar[data-placement="top"][data-background="soft"]::after {
|
|
1042
|
+
backdrop-filter: blur(6px);
|
|
1043
|
+
-webkit-mask-image: var(--android-top-fade-32);
|
|
1044
|
+
mask-image: var(--android-top-fade-32);
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
[data-platform="android"] .Toolbar {
|
|
1048
|
+
--android-top-fade-56: linear-gradient(to bottom, #000 calc(100% - 56px), rgb(0 0 0 / 95.9%) calc(100% - 48px), rgb(0 0 0 / 83%) calc(100% - 40px), rgb(0 0 0 / 62.2%) calc(100% - 32px), rgb(0 0 0 / 37.8%) calc(100% - 24px), rgb(0 0 0 / 17%) calc(100% - 16px), rgb(0 0 0 / 4.1%) calc(100% - 8px), transparent);
|
|
1049
|
+
--android-top-fade-32: linear-gradient(to bottom, #000 calc(100% - 32px), rgb(0 0 0 / 95.9%) calc(100% - 27.43px), rgb(0 0 0 / 83%) calc(100% - 22.86px), rgb(0 0 0 / 62.2%) calc(100% - 18.29px), rgb(0 0 0 / 37.8%) calc(100% - 13.71px), rgb(0 0 0 / 17%) calc(100% - 9.14px), rgb(0 0 0 / 4.1%) calc(100% - 4.57px), transparent);
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
/* The search swap of a filled bar keeps the soft edge of a bar, not the flat band of iOS. */
|
|
1053
|
+
[data-platform="android"] .Toolbar[data-placement="top"][data-background="soft"]:has(> .Content[data-fill])::before {
|
|
1054
|
+
inset: 0;
|
|
1055
|
+
background: color-mix(in srgb, var(--toolbar-background, var(--dialog-panel-background, var(--page-background))) 62.75%, transparent);
|
|
1056
|
+
backdrop-filter: none;
|
|
1057
|
+
-webkit-mask-image: var(--android-top-fade-56);
|
|
1058
|
+
mask-image: var(--android-top-fade-56);
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
[data-platform="android"] .Toolbar[data-placement="top"][data-background="soft"]:has(> .Content[data-fill])::after {
|
|
1062
|
+
display: block;
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
/* A bar of controls alone keeps the same edge over the whole bar. */
|
|
1066
|
+
[data-platform="android"] .Toolbar[data-host="page"][data-placement="top"][data-background="soft"]:not([data-mobile-variant="sheet"] *):not(:has(> .Heading, > .CollapsedTitle, > .Content[data-fill]))::before {
|
|
1067
|
+
inset: 0;
|
|
1068
|
+
height: auto;
|
|
1069
|
+
-webkit-mask-image: var(--android-top-fade-56);
|
|
1070
|
+
mask-image: var(--android-top-fade-56);
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
[data-platform="android"] .Toolbar[data-host="page"][data-placement="top"][data-background="soft"]:not([data-mobile-variant="sheet"] *):not(:has(> .Heading, > .CollapsedTitle, > .Content[data-fill]))::after {
|
|
1074
|
+
display: block;
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
/* The rows of a large title stand in the bar from the start (Page.module.css), so its background reaches under them
|
|
1078
|
+
at all times, not only once they are pinned (the row gap counts only when there are rows). */
|
|
1079
|
+
[data-platform="android"] .Toolbar[data-host="page"][data-placement="top"][data-title-style="large"]::before,
|
|
1080
|
+
[data-platform="android"] .Toolbar[data-host="page"][data-placement="top"][data-title-style="large"]::after {
|
|
1081
|
+
margin-bottom: calc(-1 * (var(--page-toolbar-rows-height, 0px) + min(var(--page-toolbar-rows-height, 0px) * 100, var(--toolbar-row-gap))));
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
/* Glass, the default, is no bar either: once content is under the bar it fades out as under a soft bar, the
|
|
1085
|
+
content blurred over the last 32px (::after, --android-top-fade-32) under the screen's color at 63% over the
|
|
1086
|
+
last 56 (::before, --android-top-fade-56), with no line and no fill of its own. */
|
|
1087
|
+
[data-platform="android"] .Toolbar[data-placement="top"][data-background="glass"]::before,
|
|
1088
|
+
[data-platform="android"] .Toolbar[data-placement="top"][data-background="glass"]::after {
|
|
1089
|
+
position: absolute;
|
|
1090
|
+
inset: 0;
|
|
1091
|
+
border-radius: inherit;
|
|
1092
|
+
content: "";
|
|
1093
|
+
pointer-events: none;
|
|
1094
|
+
transition: opacity var(--transition-duration-basic);
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
[data-platform="android"] .Toolbar[data-placement="top"][data-background="glass"]::before {
|
|
1098
|
+
border-bottom: 0;
|
|
1099
|
+
background: color-mix(in srgb, var(--toolbar-background, var(--dialog-panel-background, var(--page-background))) 62.75%, transparent);
|
|
1100
|
+
backdrop-filter: none;
|
|
1101
|
+
-webkit-mask-image: var(--android-top-fade-56);
|
|
1102
|
+
mask-image: var(--android-top-fade-56);
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
[data-platform="android"] .Toolbar[data-placement="top"][data-background="glass"]::after {
|
|
1106
|
+
z-index: -1;
|
|
1107
|
+
backdrop-filter: blur(6px);
|
|
1108
|
+
-webkit-mask-image: var(--android-top-fade-32);
|
|
1109
|
+
mask-image: var(--android-top-fade-32);
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
[data-platform="android"] .Toolbar[data-placement="top"][data-background="glass"]:not([data-scrolled])::before,
|
|
1113
|
+
[data-platform="android"] .Toolbar[data-placement="top"][data-background="glass"]:not([data-scrolled])::after {
|
|
1114
|
+
opacity: 0;
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
[data-platform="android"] .Toolbar[data-placement="top"][data-background="glass"][data-scrolled]::before,
|
|
1118
|
+
[data-platform="android"] .Toolbar[data-placement="top"][data-background="glass"][data-scrolled]::after {
|
|
1119
|
+
opacity: 1;
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
/* Icon buttons side by side at the end of a top bar share one glass pill, as a group of actions does: 38px slots, 4
|
|
1123
|
+
from the pill's ends (84 wide for two), and a button next to a group joins the group's pill. Each piece drops its
|
|
1124
|
+
shadow at a seam, so the pill reads as one. The confirm pill stands apart; an opaque bar keeps its plain 48px
|
|
1125
|
+
targets. */
|
|
1126
|
+
[data-platform="android"] .Toolbar[data-placement="top"]:not([data-background="hard"]) .Trailing > :is(:where(button, a)[data-uniform]:not([data-navigation-action="confirm"]), .Group):has(+ :is(:where(button, a)[data-uniform]:not([data-navigation-action="confirm"]), .Group)) {
|
|
1127
|
+
padding-inline-end: 0;
|
|
1128
|
+
border-start-end-radius: 0;
|
|
1129
|
+
border-end-end-radius: 0;
|
|
1130
|
+
clip-path: inset(-16px 0 -16px -16px);
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
[data-platform="android"] .Toolbar[data-placement="top"]:not([data-background="hard"]) .Trailing > :is(:where(button, a)[data-uniform]:not([data-navigation-action="confirm"]), .Group):has(+ :is(:where(button, a)[data-uniform]:not([data-navigation-action="confirm"]), .Group)):dir(rtl) {
|
|
1134
|
+
clip-path: inset(-16px -16px -16px 0);
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
[data-platform="android"] .Toolbar[data-placement="top"]:not([data-background="hard"]) .Trailing > :is(:where(button, a)[data-uniform]:not([data-navigation-action="confirm"]), .Group) + :is(:where(button, a)[data-uniform]:not([data-navigation-action="confirm"]), .Group) {
|
|
1138
|
+
margin-inline-start: calc(-1 * var(--toolbar-top-item-gap));
|
|
1139
|
+
padding-inline-start: 0;
|
|
1140
|
+
border-start-start-radius: 0;
|
|
1141
|
+
border-end-start-radius: 0;
|
|
1142
|
+
clip-path: inset(-16px -16px -16px 0);
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
[data-platform="android"] .Toolbar[data-placement="top"]:not([data-background="hard"]) .Trailing > :is(:where(button, a)[data-uniform]:not([data-navigation-action="confirm"]), .Group) + :is(:where(button, a)[data-uniform]:not([data-navigation-action="confirm"]), .Group):dir(rtl) {
|
|
1146
|
+
clip-path: inset(-16px 0 -16px -16px);
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
[data-platform="android"] .Toolbar[data-placement="top"]:not([data-background="hard"]) .Trailing > :is(:where(button, a)[data-uniform]:not([data-navigation-action="confirm"]), .Group) + :is(:where(button, a)[data-uniform]:not([data-navigation-action="confirm"]), .Group):has(+ :is(:where(button, a)[data-uniform]:not([data-navigation-action="confirm"]), .Group)) {
|
|
1150
|
+
clip-path: inset(-16px 0);
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
[data-platform="android"] .Toolbar[data-placement="top"]:not([data-background="hard"]) .Trailing > :is(:where(button, a)[data-uniform]:not([data-navigation-action="confirm"]), .Group):focus-visible {
|
|
1154
|
+
clip-path: none;
|
|
1155
|
+
}
|
|
1156
|
+
[data-platform="android"] .Toolbar[data-placement="top"]:not([data-background="hard"]) .Trailing > :where(button, a)[data-uniform]:not([data-navigation-action="confirm"]):has(+ :is(:where(button, a)[data-uniform]:not([data-navigation-action="confirm"]), .Group)) {
|
|
1157
|
+
width: 42px;
|
|
1158
|
+
padding-inline-start: 4px;
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
[data-platform="android"] .Toolbar[data-placement="top"]:not([data-background="hard"]) .Trailing > :is(:where(button, a)[data-uniform]:not([data-navigation-action="confirm"]), .Group) + :where(button, a)[data-uniform]:not([data-navigation-action="confirm"]) {
|
|
1162
|
+
width: 42px;
|
|
1163
|
+
padding-inline-end: 4px;
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
[data-platform="android"] .Toolbar[data-placement="top"]:not([data-background="hard"]) .Trailing > :is(:where(button, a)[data-uniform]:not([data-navigation-action="confirm"]), .Group) + :where(button, a)[data-uniform]:not([data-navigation-action="confirm"]):has(+ :is(:where(button, a)[data-uniform]:not([data-navigation-action="confirm"]), .Group)) {
|
|
1167
|
+
width: 38px;
|
|
1168
|
+
padding-inline: 0;
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
/* The title is always inline, so the glass shows as soon as content is under the bar, not with the swap. */
|
|
1172
|
+
[data-platform="android"] .Toolbar:is([data-host="page"], [data-host="dialog"])[data-title-style="large"][data-scrolled][data-background="glass"]::before {
|
|
1173
|
+
opacity: 1;
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
[data-platform="android"] .Toolbar[data-placement="bottom"][data-background="glass"]::before {
|
|
1177
|
+
border-top-color: transparent;
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
/* An opaque bottom bar keeps the light divider of a card's rows once content runs on under it. */
|
|
1181
|
+
[data-platform="android"] .Toolbar[data-placement="bottom"][data-content-below][data-background="hard"]::before {
|
|
1182
|
+
border-top-color: var(--android-divider, var(--page-bar-hard-line));
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
/* The soft edge of a bottom bar fades the screen's color in under its controls at all times: from 8 above the bar,
|
|
1186
|
+
over 60px in four even steps (0, 41%, 76% and all of 81%), and at 81% down to the screen's edge, with no blur. */
|
|
1187
|
+
[data-platform="android"] .Toolbar[data-placement="bottom"][data-background="soft"]::before, [data-platform="android"] .Toolbar[data-placement="bottom"][data-background="soft"]:not([data-host="dialog"], [data-mobile-variant="sheet"] *)::before {
|
|
1188
|
+
inset: calc(var(--toolbar-bottom-item-top) - 13px) 0 0;
|
|
1189
|
+
background: color-mix(in srgb, var(--toolbar-background, var(--dialog-panel-background, var(--page-background))) 81.4%, transparent);
|
|
1190
|
+
opacity: 1;
|
|
1191
|
+
backdrop-filter: none;
|
|
1192
|
+
-webkit-mask-image: linear-gradient(to bottom, transparent, rgb(0 0 0 / 41.4%) 20px, rgb(0 0 0 / 75.9%) 40px, #000 60px);
|
|
1193
|
+
mask-image: linear-gradient(to bottom, transparent, rgb(0 0 0 / 41.4%) 20px, rgb(0 0 0 / 75.9%) 40px, #000 60px);
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
[data-platform="android"] .Toolbar[data-placement="bottom"][data-background="soft"]::after, [data-platform="android"] .Toolbar[data-placement="bottom"][data-background="soft"]:not([data-host="dialog"], [data-mobile-variant="sheet"] *)::after {
|
|
1197
|
+
display: none;
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
/* An opaque top bar is the classic bar, drawn at all times: 56px in the cards' color with a 3px shadow over the
|
|
1201
|
+
content, its symbols plain in 48px targets 4 from its sides, side by side, with no circles; the title from the
|
|
1202
|
+
start, Medium 20 alone or Medium 18 over a subtitle of 14 in the secondary label, 72 in after Back and 18 with
|
|
1203
|
+
none. A prominent
|
|
1204
|
+
action is the accent's ink with no fill. */
|
|
1205
|
+
[data-platform="android"] .Toolbar[data-placement="top"][data-background="hard"] {
|
|
1206
|
+
--toolbar-top-item-size: 48px;
|
|
1207
|
+
--toolbar-top-item-gap: 0px;
|
|
1208
|
+
--toolbar-gutter: 4px;
|
|
1209
|
+
--toolbar-padding-bottom: 4px;
|
|
1210
|
+
--toolbar-group-padding: 0px;
|
|
1211
|
+
--toolbar-label-gutter: 12px;
|
|
1212
|
+
--toolbar-title-font-size: 20px;
|
|
1213
|
+
--toolbar-title-line-height: 24px;
|
|
1214
|
+
--toolbar-title-compact-font-size: 18px;
|
|
1215
|
+
--toolbar-title-compact-line-height: 22px;
|
|
1216
|
+
--mobile-glass-background: transparent;
|
|
1217
|
+
--mobile-glass-background-hover: transparent;
|
|
1218
|
+
--mobile-glass-background-active: transparent;
|
|
1219
|
+
--mobile-glass-shadow: none;
|
|
1220
|
+
--mobile-glass-shadow-raised: none;
|
|
1221
|
+
--mobile-glass-backdrop-filter: none;
|
|
1222
|
+
--toolbar-prominent-background: transparent;
|
|
1223
|
+
--toolbar-prominent-background-hover: transparent;
|
|
1224
|
+
--toolbar-prominent-background-active: transparent;
|
|
1225
|
+
--toolbar-prominent-color: var(--color-background-accent-solid);
|
|
1226
|
+
--toolbar-prominent-shadow: none;
|
|
1227
|
+
--toolbar-prominent-disabled-background: transparent;
|
|
1228
|
+
grid-template-columns: max-content minmax(0, 1fr) max-content;
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
[data-platform="android"] .Toolbar[data-placement="top"][data-background="hard"]:not(:has(> .Leading)) {
|
|
1232
|
+
grid-template-areas: "heading trailing";
|
|
1233
|
+
grid-template-columns: minmax(0, 1fr) max-content;
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
[data-platform="android"] .Toolbar[data-placement="top"][data-background="hard"]:has(> .Leading):not(:has(> .Trailing)) {
|
|
1237
|
+
grid-template-areas: "leading heading";
|
|
1238
|
+
grid-template-columns: max-content minmax(0, 1fr);
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1241
|
+
[data-platform="android"] .Toolbar[data-placement="top"][data-background="hard"]::before {
|
|
1242
|
+
inset: 0;
|
|
1243
|
+
border-bottom: 0;
|
|
1244
|
+
background: var(--mobile-surface-grouped-secondary, var(--color-surface));
|
|
1245
|
+
opacity: 1;
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
[data-platform="android"] .Toolbar[data-placement="top"][data-background="hard"]::after {
|
|
1249
|
+
position: absolute;
|
|
1250
|
+
z-index: -1;
|
|
1251
|
+
top: 100%;
|
|
1252
|
+
right: 0;
|
|
1253
|
+
left: 0;
|
|
1254
|
+
height: 3px;
|
|
1255
|
+
background: linear-gradient(to bottom, rgb(0 0 0 / 12.5%) 0.19px, rgb(0 0 0 / 11.4%) 0.57px, rgb(0 0 0 / 7%) 0.95px, rgb(0 0 0 / 4.7%) 1.33px, rgb(0 0 0 / 1.6%) 1.71px, rgb(0 0 0 / 1.6%) 3px);
|
|
1256
|
+
content: "";
|
|
1257
|
+
pointer-events: none;
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
[data-platform="android"] .Toolbar[data-placement="top"][data-background="hard"] > .Heading {
|
|
1261
|
+
align-items: flex-start;
|
|
1262
|
+
margin-inline-start: 14px;
|
|
1263
|
+
text-align: start;
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1266
|
+
[data-platform="android"] .Toolbar[data-placement="top"][data-background="hard"]:has(> .Leading) > .Heading {
|
|
1267
|
+
margin-inline-start: 20px;
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
[data-platform="android"] .Toolbar[data-placement="top"][data-background="hard"] .Subtitle,
|
|
1271
|
+
[data-platform="android"] .Toolbar[data-placement="top"][data-background="hard"] > .CollapsedTitle > .CollapsedSubtitle {
|
|
1272
|
+
color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
1273
|
+
}
|
|
1274
|
+
|
|
1275
|
+
[data-platform="android"] .Toolbar[data-placement="top"][data-background="hard"] > .CollapsedTitle {
|
|
1276
|
+
text-align: start;
|
|
1277
|
+
margin-inline-start: 20px;
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
[data-platform="android"] .Toolbar[data-host="page"][data-placement="top"][data-background="hard"] {
|
|
1281
|
+
--toolbar-padding-top: calc(var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) + 4px);
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
[data-platform="android"] .Toolbar[data-placement="top"][data-background="hard"] .Group > :where(button, a)[data-uniform] {
|
|
1285
|
+
width: 48px;
|
|
1286
|
+
}
|
|
1287
|
+
|
|
1288
|
+
[data-platform="android"] .Toolbar[data-placement="top"][data-background="hard"] :is(.Leading, .Trailing, .Content, .Group) > :where(button, a)[data-variant="solid"]:not([data-disabled])::before {
|
|
1289
|
+
background-color: transparent;
|
|
1290
|
+
}
|
|
841
1291
|
}
|
|
842
1292
|
:where([data-plex-layout="phone"]) .Toolbar {
|
|
843
1293
|
--toolbar-item-size: var(--toolbar-top-item-size);
|
|
@@ -1666,4 +2116,1096 @@
|
|
|
1666
2116
|
:where([data-plex-layout="phone"]) .Toolbar[data-host="dialog"][data-placement="bottom"] {
|
|
1667
2117
|
--toolbar-background: var(--dialog-panel-background);
|
|
1668
2118
|
}
|
|
2119
|
+
|
|
2120
|
+
/* =============================================
|
|
2121
|
+
The Plex Android look (`data-platform="android"`, android.css), after @plexui/react-native's Toolbar on Android
|
|
2122
|
+
(decision 0026): 46px circles and capsules of the bar's glass 6 from the screen's sides, 6 apart, in a 62px row
|
|
2123
|
+
(5 above the items, 11 under them) under the status bar; 24px symbols; a label (Save) Medium 15 16 in from the
|
|
2124
|
+
ends of its capsule; the title Medium 17, centered (the Android reference's bar), a subtitle 14/18 in the secondary text under it, or from the
|
|
2125
|
+
start 18 past the controls (76 after Back, 24 with none). No large title: it stays in the row. A group of actions
|
|
2126
|
+
is one capsule, its symbols in 38px slots 4 from its ends. The bars draw no line of their own. The rows of a large
|
|
2127
|
+
title, which wait in the content, take the bar's numbers too (Page.module.css sets them as the bar's row).
|
|
2128
|
+
============================================= */
|
|
2129
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] :is(.Toolbar, :where(.Row[data-in-content])) {
|
|
2130
|
+
--toolbar-top-item-size: 46px;
|
|
2131
|
+
--toolbar-bottom-item-size: 46px;
|
|
2132
|
+
--toolbar-top-item-gap: 6px;
|
|
2133
|
+
--toolbar-bottom-item-gap: 6px;
|
|
2134
|
+
--toolbar-gutter: 6px;
|
|
2135
|
+
--toolbar-group-gap: 0px;
|
|
2136
|
+
--toolbar-group-padding: 4px;
|
|
2137
|
+
--toolbar-bottom-group-gap: 0px;
|
|
2138
|
+
--toolbar-bottom-group-padding: 4px;
|
|
2139
|
+
--toolbar-padding-bottom: 11px;
|
|
2140
|
+
--toolbar-sheet-padding-top: 8px;
|
|
2141
|
+
--toolbar-bottom-padding-top: 5px;
|
|
2142
|
+
--toolbar-bottom-fill-padding-top: 5px;
|
|
2143
|
+
--toolbar-icon-size: 24px;
|
|
2144
|
+
--toolbar-icon-size-sm: 24px;
|
|
2145
|
+
--toolbar-label-font-size: 15px;
|
|
2146
|
+
--toolbar-label-line-height: 20px;
|
|
2147
|
+
--toolbar-label-font-weight: var(--font-weight-medium);
|
|
2148
|
+
--toolbar-label-prominent-font-weight: var(--font-weight-medium);
|
|
2149
|
+
--toolbar-label-gutter: 16px;
|
|
2150
|
+
--toolbar-bottom-label-gutter: 16px;
|
|
2151
|
+
--toolbar-title-font-size: 17px;
|
|
2152
|
+
--toolbar-title-line-height: 22px;
|
|
2153
|
+
--toolbar-title-font-weight: var(--font-weight-medium);
|
|
2154
|
+
--toolbar-title-compact-font-size: 17px;
|
|
2155
|
+
--toolbar-title-compact-line-height: 20px;
|
|
2156
|
+
--toolbar-subtitle-font-size: 14px;
|
|
2157
|
+
--toolbar-subtitle-line-height: 18px;
|
|
2158
|
+
--toolbar-subtitle-font-weight: var(--font-weight-normal);
|
|
2159
|
+
--toolbar-row-gap: 8px;
|
|
2160
|
+
/* The bar's glass (android.css), which a press keeps: the control ripples over it (Android press ripple, below). */
|
|
2161
|
+
--mobile-glass-background: var(--android-bar-glass);
|
|
2162
|
+
--mobile-glass-background-hover: var(--android-bar-glass);
|
|
2163
|
+
--mobile-glass-background-active: var(--android-bar-glass);
|
|
2164
|
+
--mobile-glass-sheen: none;
|
|
2165
|
+
--mobile-glass-shadow: var(--android-bar-shadow);
|
|
2166
|
+
--mobile-glass-shadow-raised: var(--android-bar-shadow);
|
|
2167
|
+
--toolbar-group-item-hover: transparent;
|
|
2168
|
+
--toolbar-group-item-active: transparent;
|
|
2169
|
+
/* The prominent action is the accent with a card's shadow, no edge of glass; disabled, the glass circle with its
|
|
2170
|
+
content at 38%. */
|
|
2171
|
+
--toolbar-prominent-background: var(--color-background-accent-solid);
|
|
2172
|
+
--toolbar-prominent-background-hover: var(--color-background-accent-solid);
|
|
2173
|
+
--toolbar-prominent-background-active: var(--color-background-accent-solid);
|
|
2174
|
+
--toolbar-prominent-color: var(--color-text-accent-solid);
|
|
2175
|
+
--toolbar-prominent-sheen: none;
|
|
2176
|
+
--toolbar-prominent-shadow: var(--android-accent-shadow);
|
|
2177
|
+
--toolbar-prominent-disabled-background: var(--android-bar-glass);
|
|
2178
|
+
--toolbar-prominent-disabled-color: var(--android-bar-disabled);
|
|
2179
|
+
--toolbar-search-font-weight: var(--font-weight-normal);
|
|
2180
|
+
--toolbar-search-placeholder-color: color-mix(in srgb, var(--color-text) 38%, transparent);
|
|
2181
|
+
}
|
|
2182
|
+
|
|
2183
|
+
/* A large title stays in the row, inline; a compact one is the title from the start. */
|
|
2184
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-title-style="large"]:not([data-host]) {
|
|
2185
|
+
grid-template-areas: "leading heading trailing";
|
|
2186
|
+
grid-template-columns: minmax(max-content, 1fr) minmax(0, auto) minmax(max-content, 1fr);
|
|
2187
|
+
grid-template-rows: auto;
|
|
2188
|
+
row-gap: var(--toolbar-row-gap);
|
|
2189
|
+
}
|
|
2190
|
+
|
|
2191
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-title-style="large"]:not([data-host]) > .Heading {
|
|
2192
|
+
align-items: center;
|
|
2193
|
+
min-height: var(--toolbar-item-size);
|
|
2194
|
+
text-align: center;
|
|
2195
|
+
}
|
|
2196
|
+
|
|
2197
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-title-style="large"]:not([data-host]) > .Heading > .Title {
|
|
2198
|
+
font-size: var(--toolbar-title-font-size);
|
|
2199
|
+
font-weight: var(--toolbar-title-font-weight);
|
|
2200
|
+
line-height: var(--toolbar-title-line-height);
|
|
2201
|
+
}
|
|
2202
|
+
|
|
2203
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-title-style="large"]:not([data-host]) > .Heading > .Subtitle {
|
|
2204
|
+
font-size: var(--toolbar-subtitle-font-size);
|
|
2205
|
+
font-weight: var(--toolbar-subtitle-font-weight);
|
|
2206
|
+
line-height: var(--toolbar-subtitle-line-height);
|
|
2207
|
+
}
|
|
2208
|
+
|
|
2209
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-title-style="large"]:not([data-host]) > .Heading:has(> .Subtitle) > .Title {
|
|
2210
|
+
line-height: var(--toolbar-title-compact-line-height);
|
|
2211
|
+
}
|
|
2212
|
+
|
|
2213
|
+
/* On a page or in a sheet the large title lives in the content: there the bar shows it inline at all times and the
|
|
2214
|
+
content's copy goes. */
|
|
2215
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Heading[data-in-content] {
|
|
2216
|
+
display: none;
|
|
2217
|
+
}
|
|
2218
|
+
|
|
2219
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar:is([data-host="page"], [data-host="dialog"])[data-title-style="large"] > .CollapsedTitle {
|
|
2220
|
+
opacity: 1;
|
|
2221
|
+
transition: none;
|
|
2222
|
+
}
|
|
2223
|
+
|
|
2224
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar:is([data-host="page"], [data-host="dialog"])[data-title-style="large"] > .CollapsedTitle:has(> .CollapsedSubtitle) {
|
|
2225
|
+
line-height: var(--toolbar-title-compact-line-height);
|
|
2226
|
+
}
|
|
2227
|
+
|
|
2228
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar:is([data-host="page"], [data-host="dialog"])[data-title-style="large"] > .CollapsedTitle > .CollapsedSubtitle {
|
|
2229
|
+
margin-top: 0;
|
|
2230
|
+
color: var(--color-text-secondary);
|
|
2231
|
+
}
|
|
2232
|
+
|
|
2233
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar:is([data-host="page"], [data-host="dialog"])[data-title-style="large"]:has(> .Heading) > .Heading {
|
|
2234
|
+
display: none;
|
|
2235
|
+
}
|
|
2236
|
+
|
|
2237
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar:is([data-title-style="compact-large"], [data-title-style="compact-medium"]) > .Heading {
|
|
2238
|
+
align-self: center;
|
|
2239
|
+
min-height: var(--toolbar-item-size);
|
|
2240
|
+
}
|
|
2241
|
+
|
|
2242
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar:is([data-title-style="compact-large"], [data-title-style="compact-medium"]) > .Heading > .Title {
|
|
2243
|
+
font-size: var(--toolbar-title-font-size);
|
|
2244
|
+
font-weight: var(--toolbar-title-font-weight);
|
|
2245
|
+
line-height: var(--toolbar-title-line-height);
|
|
2246
|
+
}
|
|
2247
|
+
|
|
2248
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Subtitle {
|
|
2249
|
+
margin-top: 0;
|
|
2250
|
+
color: var(--color-text-secondary);
|
|
2251
|
+
}
|
|
2252
|
+
|
|
2253
|
+
/* A title from the start stands 18 past the bar's gap after the controls before it, or the gutter. */
|
|
2254
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar:is([data-title-align="start"], [data-title-style="compact-large"], [data-title-style="compact-medium"]) > .Heading {
|
|
2255
|
+
margin-inline-start: 18px;
|
|
2256
|
+
}
|
|
2257
|
+
|
|
2258
|
+
/* A bar stands 5 under the status bar (over a page) or its own top; a bottom bar 5 under its top, whatever its
|
|
2259
|
+
background. */
|
|
2260
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="top"]:not([data-host]) {
|
|
2261
|
+
--toolbar-padding-top: 5px;
|
|
2262
|
+
}
|
|
2263
|
+
|
|
2264
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="bottom"][data-background]:not([data-background="soft"]) {
|
|
2265
|
+
--toolbar-bottom-padding-top: 5px;
|
|
2266
|
+
}
|
|
2267
|
+
|
|
2268
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-host="page"][data-placement="top"] {
|
|
2269
|
+
--toolbar-padding-top: calc(var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) + 5px);
|
|
2270
|
+
}
|
|
2271
|
+
|
|
2272
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] :where([data-mobile-placement="fullscreen"]) .Toolbar[data-host="dialog"][data-placement="top"] {
|
|
2273
|
+
--toolbar-padding-top: calc(var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) + 5px);
|
|
2274
|
+
}
|
|
2275
|
+
|
|
2276
|
+
/* A bar's neutral symbol or label is in the text color; disabled at 38%, its glass kept. */
|
|
2277
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a):where(:not([data-disabled])):where([data-color="primary"], [data-color="secondary"]):where([data-variant="soft"], [data-variant="ghost"]) {
|
|
2278
|
+
--button-text-color: var(--color-text);
|
|
2279
|
+
--button-text-color-hover: var(--color-text);
|
|
2280
|
+
}
|
|
2281
|
+
|
|
2282
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a)[data-disabled][data-variant]:where(:not([data-mobile-material="flat"])):where([data-color="primary"], [data-color="secondary"]):where([data-variant="soft"], [data-variant="ghost"]) {
|
|
2283
|
+
--button-text-color: var(--android-bar-disabled);
|
|
2284
|
+
}
|
|
2285
|
+
|
|
2286
|
+
/* A disabled prominent action goes back to the glass circle: blurred, with its rim and shadow. */
|
|
2287
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a)[data-disabled][data-variant="solid"]::before {
|
|
2288
|
+
backdrop-filter: var(--mobile-glass-backdrop-filter);
|
|
2289
|
+
}
|
|
2290
|
+
|
|
2291
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar .Group > :where(button, a)[data-uniform] {
|
|
2292
|
+
width: 38px;
|
|
2293
|
+
}
|
|
2294
|
+
|
|
2295
|
+
/* A search field in the bar or in a row of it is the bar's own capsule: 46 of its glass, 18px text 20 in, the hint
|
|
2296
|
+
the text at 38%, 24px symbols. */
|
|
2297
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] :is(.Toolbar :is(.Leading, .Trailing, .Content), .Row) > [data-slot="input"][data-variant] {
|
|
2298
|
+
--input-font-size: 18px;
|
|
2299
|
+
--input-gutter: 20px;
|
|
2300
|
+
--input-gap: 10px;
|
|
2301
|
+
--toolbar-search-icon-size: 24px;
|
|
2302
|
+
}
|
|
2303
|
+
|
|
2304
|
+
/* The soft edge under the top bar, once content is under it: the content blurred under the whole bar, the blur
|
|
2305
|
+
eased out over its last 32px, under the screen's color at 63% eased out over the last 56 (SoftTopEdge). Nothing
|
|
2306
|
+
reaches below the bar. */
|
|
2307
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="top"][data-background="soft"]::before,
|
|
2308
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="top"][data-background="soft"]::after {
|
|
2309
|
+
inset: 0;
|
|
2310
|
+
}
|
|
2311
|
+
|
|
2312
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="top"][data-background="soft"]::before {
|
|
2313
|
+
background: color-mix(in srgb, var(--toolbar-background, var(--dialog-panel-background, var(--page-background))) 62.75%, transparent);
|
|
2314
|
+
backdrop-filter: none;
|
|
2315
|
+
-webkit-mask-image: var(--android-top-fade-56);
|
|
2316
|
+
mask-image: var(--android-top-fade-56);
|
|
2317
|
+
}
|
|
2318
|
+
|
|
2319
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="top"][data-background="soft"]::after {
|
|
2320
|
+
backdrop-filter: blur(6px);
|
|
2321
|
+
-webkit-mask-image: var(--android-top-fade-32);
|
|
2322
|
+
mask-image: var(--android-top-fade-32);
|
|
2323
|
+
}
|
|
2324
|
+
|
|
2325
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar {
|
|
2326
|
+
--android-top-fade-56: linear-gradient(to bottom, #000 calc(100% - 56px), rgb(0 0 0 / 95.9%) calc(100% - 48px), rgb(0 0 0 / 83%) calc(100% - 40px), rgb(0 0 0 / 62.2%) calc(100% - 32px), rgb(0 0 0 / 37.8%) calc(100% - 24px), rgb(0 0 0 / 17%) calc(100% - 16px), rgb(0 0 0 / 4.1%) calc(100% - 8px), transparent);
|
|
2327
|
+
--android-top-fade-32: linear-gradient(to bottom, #000 calc(100% - 32px), rgb(0 0 0 / 95.9%) calc(100% - 27.43px), rgb(0 0 0 / 83%) calc(100% - 22.86px), rgb(0 0 0 / 62.2%) calc(100% - 18.29px), rgb(0 0 0 / 37.8%) calc(100% - 13.71px), rgb(0 0 0 / 17%) calc(100% - 9.14px), rgb(0 0 0 / 4.1%) calc(100% - 4.57px), transparent);
|
|
2328
|
+
}
|
|
2329
|
+
|
|
2330
|
+
/* The search swap of a filled bar keeps the soft edge of a bar, not the flat band of iOS. */
|
|
2331
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="top"][data-background="soft"]:has(> .Content[data-fill])::before {
|
|
2332
|
+
inset: 0;
|
|
2333
|
+
background: color-mix(in srgb, var(--toolbar-background, var(--dialog-panel-background, var(--page-background))) 62.75%, transparent);
|
|
2334
|
+
backdrop-filter: none;
|
|
2335
|
+
-webkit-mask-image: var(--android-top-fade-56);
|
|
2336
|
+
mask-image: var(--android-top-fade-56);
|
|
2337
|
+
}
|
|
2338
|
+
|
|
2339
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="top"][data-background="soft"]:has(> .Content[data-fill])::after {
|
|
2340
|
+
display: block;
|
|
2341
|
+
}
|
|
2342
|
+
|
|
2343
|
+
/* A bar of controls alone keeps the same edge over the whole bar. */
|
|
2344
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-host="page"][data-placement="top"][data-background="soft"]:not([data-mobile-variant="sheet"] *):not(:has(> .Heading, > .CollapsedTitle, > .Content[data-fill]))::before {
|
|
2345
|
+
inset: 0;
|
|
2346
|
+
height: auto;
|
|
2347
|
+
-webkit-mask-image: var(--android-top-fade-56);
|
|
2348
|
+
mask-image: var(--android-top-fade-56);
|
|
2349
|
+
}
|
|
2350
|
+
|
|
2351
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-host="page"][data-placement="top"][data-background="soft"]:not([data-mobile-variant="sheet"] *):not(:has(> .Heading, > .CollapsedTitle, > .Content[data-fill]))::after {
|
|
2352
|
+
display: block;
|
|
2353
|
+
}
|
|
2354
|
+
|
|
2355
|
+
/* The rows of a large title stand in the bar from the start (Page.module.css), so its background reaches under them
|
|
2356
|
+
at all times, not only once they are pinned (the row gap counts only when there are rows). */
|
|
2357
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-host="page"][data-placement="top"][data-title-style="large"]::before,
|
|
2358
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-host="page"][data-placement="top"][data-title-style="large"]::after {
|
|
2359
|
+
margin-bottom: calc(-1 * (var(--page-toolbar-rows-height, 0px) + min(var(--page-toolbar-rows-height, 0px) * 100, var(--toolbar-row-gap))));
|
|
2360
|
+
}
|
|
2361
|
+
|
|
2362
|
+
/* Glass, the default, is no bar either: once content is under the bar it fades out as under a soft bar, the
|
|
2363
|
+
content blurred over the last 32px (::after, --android-top-fade-32) under the screen's color at 63% over the
|
|
2364
|
+
last 56 (::before, --android-top-fade-56), with no line and no fill of its own. */
|
|
2365
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="top"][data-background="glass"]::before,
|
|
2366
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="top"][data-background="glass"]::after {
|
|
2367
|
+
position: absolute;
|
|
2368
|
+
inset: 0;
|
|
2369
|
+
border-radius: inherit;
|
|
2370
|
+
content: "";
|
|
2371
|
+
pointer-events: none;
|
|
2372
|
+
transition: opacity var(--transition-duration-basic);
|
|
2373
|
+
}
|
|
2374
|
+
|
|
2375
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="top"][data-background="glass"]::before {
|
|
2376
|
+
border-bottom: 0;
|
|
2377
|
+
background: color-mix(in srgb, var(--toolbar-background, var(--dialog-panel-background, var(--page-background))) 62.75%, transparent);
|
|
2378
|
+
backdrop-filter: none;
|
|
2379
|
+
-webkit-mask-image: var(--android-top-fade-56);
|
|
2380
|
+
mask-image: var(--android-top-fade-56);
|
|
2381
|
+
}
|
|
2382
|
+
|
|
2383
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="top"][data-background="glass"]::after {
|
|
2384
|
+
z-index: -1;
|
|
2385
|
+
backdrop-filter: blur(6px);
|
|
2386
|
+
-webkit-mask-image: var(--android-top-fade-32);
|
|
2387
|
+
mask-image: var(--android-top-fade-32);
|
|
2388
|
+
}
|
|
2389
|
+
|
|
2390
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="top"][data-background="glass"]:not([data-scrolled])::before,
|
|
2391
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="top"][data-background="glass"]:not([data-scrolled])::after {
|
|
2392
|
+
opacity: 0;
|
|
2393
|
+
}
|
|
2394
|
+
|
|
2395
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="top"][data-background="glass"][data-scrolled]::before,
|
|
2396
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="top"][data-background="glass"][data-scrolled]::after {
|
|
2397
|
+
opacity: 1;
|
|
2398
|
+
}
|
|
2399
|
+
|
|
2400
|
+
/* Icon buttons side by side at the end of a top bar share one glass pill, as a group of actions does: 38px slots, 4
|
|
2401
|
+
from the pill's ends (84 wide for two), and a button next to a group joins the group's pill. Each piece drops its
|
|
2402
|
+
shadow at a seam, so the pill reads as one. The confirm pill stands apart; an opaque bar keeps its plain 48px
|
|
2403
|
+
targets. */
|
|
2404
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="top"]:not([data-background="hard"]) .Trailing > :is(:where(button, a)[data-uniform]:not([data-navigation-action="confirm"]), .Group):has(+ :is(:where(button, a)[data-uniform]:not([data-navigation-action="confirm"]), .Group)) {
|
|
2405
|
+
padding-inline-end: 0;
|
|
2406
|
+
border-start-end-radius: 0;
|
|
2407
|
+
border-end-end-radius: 0;
|
|
2408
|
+
clip-path: inset(-16px 0 -16px -16px);
|
|
2409
|
+
}
|
|
2410
|
+
|
|
2411
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="top"]:not([data-background="hard"]) .Trailing > :is(:where(button, a)[data-uniform]:not([data-navigation-action="confirm"]), .Group):has(+ :is(:where(button, a)[data-uniform]:not([data-navigation-action="confirm"]), .Group)):dir(rtl) {
|
|
2412
|
+
clip-path: inset(-16px -16px -16px 0);
|
|
2413
|
+
}
|
|
2414
|
+
|
|
2415
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="top"]:not([data-background="hard"]) .Trailing > :is(:where(button, a)[data-uniform]:not([data-navigation-action="confirm"]), .Group) + :is(:where(button, a)[data-uniform]:not([data-navigation-action="confirm"]), .Group) {
|
|
2416
|
+
margin-inline-start: calc(-1 * var(--toolbar-top-item-gap));
|
|
2417
|
+
padding-inline-start: 0;
|
|
2418
|
+
border-start-start-radius: 0;
|
|
2419
|
+
border-end-start-radius: 0;
|
|
2420
|
+
clip-path: inset(-16px -16px -16px 0);
|
|
2421
|
+
}
|
|
2422
|
+
|
|
2423
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="top"]:not([data-background="hard"]) .Trailing > :is(:where(button, a)[data-uniform]:not([data-navigation-action="confirm"]), .Group) + :is(:where(button, a)[data-uniform]:not([data-navigation-action="confirm"]), .Group):dir(rtl) {
|
|
2424
|
+
clip-path: inset(-16px 0 -16px -16px);
|
|
2425
|
+
}
|
|
2426
|
+
|
|
2427
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="top"]:not([data-background="hard"]) .Trailing > :is(:where(button, a)[data-uniform]:not([data-navigation-action="confirm"]), .Group) + :is(:where(button, a)[data-uniform]:not([data-navigation-action="confirm"]), .Group):has(+ :is(:where(button, a)[data-uniform]:not([data-navigation-action="confirm"]), .Group)) {
|
|
2428
|
+
clip-path: inset(-16px 0);
|
|
2429
|
+
}
|
|
2430
|
+
|
|
2431
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="top"]:not([data-background="hard"]) .Trailing > :is(:where(button, a)[data-uniform]:not([data-navigation-action="confirm"]), .Group):focus-visible {
|
|
2432
|
+
clip-path: none;
|
|
2433
|
+
}
|
|
2434
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="top"]:not([data-background="hard"]) .Trailing > :where(button, a)[data-uniform]:not([data-navigation-action="confirm"]):has(+ :is(:where(button, a)[data-uniform]:not([data-navigation-action="confirm"]), .Group)) {
|
|
2435
|
+
width: 42px;
|
|
2436
|
+
padding-inline-start: 4px;
|
|
2437
|
+
}
|
|
2438
|
+
|
|
2439
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="top"]:not([data-background="hard"]) .Trailing > :is(:where(button, a)[data-uniform]:not([data-navigation-action="confirm"]), .Group) + :where(button, a)[data-uniform]:not([data-navigation-action="confirm"]) {
|
|
2440
|
+
width: 42px;
|
|
2441
|
+
padding-inline-end: 4px;
|
|
2442
|
+
}
|
|
2443
|
+
|
|
2444
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="top"]:not([data-background="hard"]) .Trailing > :is(:where(button, a)[data-uniform]:not([data-navigation-action="confirm"]), .Group) + :where(button, a)[data-uniform]:not([data-navigation-action="confirm"]):has(+ :is(:where(button, a)[data-uniform]:not([data-navigation-action="confirm"]), .Group)) {
|
|
2445
|
+
width: 38px;
|
|
2446
|
+
padding-inline: 0;
|
|
2447
|
+
}
|
|
2448
|
+
|
|
2449
|
+
/* The title is always inline, so the glass shows as soon as content is under the bar, not with the swap. */
|
|
2450
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar:is([data-host="page"], [data-host="dialog"])[data-title-style="large"][data-scrolled][data-background="glass"]::before {
|
|
2451
|
+
opacity: 1;
|
|
2452
|
+
}
|
|
2453
|
+
|
|
2454
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="bottom"][data-background="glass"]::before {
|
|
2455
|
+
border-top-color: transparent;
|
|
2456
|
+
}
|
|
2457
|
+
|
|
2458
|
+
/* An opaque bottom bar keeps the light divider of a card's rows once content runs on under it. */
|
|
2459
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="bottom"][data-content-below][data-background="hard"]::before {
|
|
2460
|
+
border-top-color: var(--android-divider, var(--page-bar-hard-line));
|
|
2461
|
+
}
|
|
2462
|
+
|
|
2463
|
+
/* The soft edge of a bottom bar fades the screen's color in under its controls at all times: from 8 above the bar,
|
|
2464
|
+
over 60px in four even steps (0, 41%, 76% and all of 81%), and at 81% down to the screen's edge, with no blur. */
|
|
2465
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="bottom"][data-background="soft"]::before, :where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="bottom"][data-background="soft"]:not([data-host="dialog"], [data-mobile-variant="sheet"] *)::before {
|
|
2466
|
+
inset: calc(var(--toolbar-bottom-item-top) - 13px) 0 0;
|
|
2467
|
+
background: color-mix(in srgb, var(--toolbar-background, var(--dialog-panel-background, var(--page-background))) 81.4%, transparent);
|
|
2468
|
+
opacity: 1;
|
|
2469
|
+
backdrop-filter: none;
|
|
2470
|
+
-webkit-mask-image: linear-gradient(to bottom, transparent, rgb(0 0 0 / 41.4%) 20px, rgb(0 0 0 / 75.9%) 40px, #000 60px);
|
|
2471
|
+
mask-image: linear-gradient(to bottom, transparent, rgb(0 0 0 / 41.4%) 20px, rgb(0 0 0 / 75.9%) 40px, #000 60px);
|
|
2472
|
+
}
|
|
2473
|
+
|
|
2474
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="bottom"][data-background="soft"]::after, :where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="bottom"][data-background="soft"]:not([data-host="dialog"], [data-mobile-variant="sheet"] *)::after {
|
|
2475
|
+
display: none;
|
|
2476
|
+
}
|
|
2477
|
+
|
|
2478
|
+
/* An opaque top bar is the classic bar, drawn at all times: 56px in the cards' color with a 3px shadow over the
|
|
2479
|
+
content, its symbols plain in 48px targets 4 from its sides, side by side, with no circles; the title from the
|
|
2480
|
+
start, Medium 20 alone or Medium 18 over a subtitle of 14 in the secondary label, 72 in after Back and 18 with
|
|
2481
|
+
none. A prominent
|
|
2482
|
+
action is the accent's ink with no fill. */
|
|
2483
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="top"][data-background="hard"] {
|
|
2484
|
+
--toolbar-top-item-size: 48px;
|
|
2485
|
+
--toolbar-top-item-gap: 0px;
|
|
2486
|
+
--toolbar-gutter: 4px;
|
|
2487
|
+
--toolbar-padding-bottom: 4px;
|
|
2488
|
+
--toolbar-group-padding: 0px;
|
|
2489
|
+
--toolbar-label-gutter: 12px;
|
|
2490
|
+
--toolbar-title-font-size: 20px;
|
|
2491
|
+
--toolbar-title-line-height: 24px;
|
|
2492
|
+
--toolbar-title-compact-font-size: 18px;
|
|
2493
|
+
--toolbar-title-compact-line-height: 22px;
|
|
2494
|
+
--mobile-glass-background: transparent;
|
|
2495
|
+
--mobile-glass-background-hover: transparent;
|
|
2496
|
+
--mobile-glass-background-active: transparent;
|
|
2497
|
+
--mobile-glass-shadow: none;
|
|
2498
|
+
--mobile-glass-shadow-raised: none;
|
|
2499
|
+
--mobile-glass-backdrop-filter: none;
|
|
2500
|
+
--toolbar-prominent-background: transparent;
|
|
2501
|
+
--toolbar-prominent-background-hover: transparent;
|
|
2502
|
+
--toolbar-prominent-background-active: transparent;
|
|
2503
|
+
--toolbar-prominent-color: var(--color-background-accent-solid);
|
|
2504
|
+
--toolbar-prominent-shadow: none;
|
|
2505
|
+
--toolbar-prominent-disabled-background: transparent;
|
|
2506
|
+
grid-template-columns: max-content minmax(0, 1fr) max-content;
|
|
2507
|
+
}
|
|
2508
|
+
|
|
2509
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="top"][data-background="hard"]:not(:has(> .Leading)) {
|
|
2510
|
+
grid-template-areas: "heading trailing";
|
|
2511
|
+
grid-template-columns: minmax(0, 1fr) max-content;
|
|
2512
|
+
}
|
|
2513
|
+
|
|
2514
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="top"][data-background="hard"]:has(> .Leading):not(:has(> .Trailing)) {
|
|
2515
|
+
grid-template-areas: "leading heading";
|
|
2516
|
+
grid-template-columns: max-content minmax(0, 1fr);
|
|
2517
|
+
}
|
|
2518
|
+
|
|
2519
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="top"][data-background="hard"]::before {
|
|
2520
|
+
inset: 0;
|
|
2521
|
+
border-bottom: 0;
|
|
2522
|
+
background: var(--mobile-surface-grouped-secondary, var(--color-surface));
|
|
2523
|
+
opacity: 1;
|
|
2524
|
+
}
|
|
2525
|
+
|
|
2526
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="top"][data-background="hard"]::after {
|
|
2527
|
+
position: absolute;
|
|
2528
|
+
z-index: -1;
|
|
2529
|
+
top: 100%;
|
|
2530
|
+
right: 0;
|
|
2531
|
+
left: 0;
|
|
2532
|
+
height: 3px;
|
|
2533
|
+
background: linear-gradient(to bottom, rgb(0 0 0 / 12.5%) 0.19px, rgb(0 0 0 / 11.4%) 0.57px, rgb(0 0 0 / 7%) 0.95px, rgb(0 0 0 / 4.7%) 1.33px, rgb(0 0 0 / 1.6%) 1.71px, rgb(0 0 0 / 1.6%) 3px);
|
|
2534
|
+
content: "";
|
|
2535
|
+
pointer-events: none;
|
|
2536
|
+
}
|
|
2537
|
+
|
|
2538
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="top"][data-background="hard"] > .Heading {
|
|
2539
|
+
align-items: flex-start;
|
|
2540
|
+
margin-inline-start: 14px;
|
|
2541
|
+
text-align: start;
|
|
2542
|
+
}
|
|
2543
|
+
|
|
2544
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="top"][data-background="hard"]:has(> .Leading) > .Heading {
|
|
2545
|
+
margin-inline-start: 20px;
|
|
2546
|
+
}
|
|
2547
|
+
|
|
2548
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="top"][data-background="hard"] .Subtitle,
|
|
2549
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="top"][data-background="hard"] > .CollapsedTitle > .CollapsedSubtitle {
|
|
2550
|
+
color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
2551
|
+
}
|
|
2552
|
+
|
|
2553
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="top"][data-background="hard"] > .CollapsedTitle {
|
|
2554
|
+
text-align: start;
|
|
2555
|
+
margin-inline-start: 20px;
|
|
2556
|
+
}
|
|
2557
|
+
|
|
2558
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-host="page"][data-placement="top"][data-background="hard"] {
|
|
2559
|
+
--toolbar-padding-top: calc(var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) + 4px);
|
|
2560
|
+
}
|
|
2561
|
+
|
|
2562
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="top"][data-background="hard"] .Group > :where(button, a)[data-uniform] {
|
|
2563
|
+
width: 48px;
|
|
2564
|
+
}
|
|
2565
|
+
|
|
2566
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="top"][data-background="hard"] :is(.Leading, .Trailing, .Content, .Group) > :where(button, a)[data-variant="solid"]:not([data-disabled])::before {
|
|
2567
|
+
background-color: transparent;
|
|
2568
|
+
}/* =============================================
|
|
2569
|
+
Android sheet bar. A Sheet's bar in the Plex Android look (`data-platform="android"`) keeps the bar's 46px circles
|
|
2570
|
+
and its centered title (above). The circles stand 12 from the sheet's top edge and sides, in line with the content's
|
|
2571
|
+
groups, so with the sheet's 35px corners (Dialog.module.css) a circle and the end pill sit concentric in each corner
|
|
2572
|
+
(23 + 12). The reference messenger's stand 11 under the top and 6 from the sides of 24px corners. Full screen (no
|
|
2573
|
+
corners) the bar is a page's again: 6 from the sides.
|
|
2574
|
+
============================================= */@media (max-width: 767px) {
|
|
2575
|
+
[data-platform="android"] .Toolbar[data-host="dialog"][data-placement="top"] {
|
|
2576
|
+
--toolbar-padding-top: 12px;
|
|
2577
|
+
--toolbar-gutter: 12px;
|
|
2578
|
+
}
|
|
2579
|
+
|
|
2580
|
+
[data-platform="android"] :where([data-mobile-placement="fullscreen"]) .Toolbar[data-host="dialog"][data-placement="top"] {
|
|
2581
|
+
--toolbar-padding-top: calc(var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) + 5px);
|
|
2582
|
+
--toolbar-gutter: 6px;
|
|
2583
|
+
}
|
|
2584
|
+
|
|
2585
|
+
/* Content scrolled under the sheet's bar fades out under it, whatever the bar's `background`, with no line and no bar
|
|
2586
|
+
of its own: the sheet's color at 63% over the bar, over a light blur, both let go over the last 32px (12 past the
|
|
2587
|
+
bar), once content is under it. */
|
|
2588
|
+
[data-platform="android"] .Toolbar[data-host="dialog"][data-placement="top"]::before {
|
|
2589
|
+
inset: 0 0 -12px;
|
|
2590
|
+
border-bottom: 0;
|
|
2591
|
+
background: color-mix(in srgb, var(--toolbar-background, var(--dialog-panel-background, var(--page-background))) 63%, transparent);
|
|
2592
|
+
backdrop-filter: blur(8px);
|
|
2593
|
+
opacity: 0;
|
|
2594
|
+
-webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent);
|
|
2595
|
+
mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent);
|
|
2596
|
+
transition: opacity var(--transition-duration-basic);
|
|
2597
|
+
}
|
|
2598
|
+
|
|
2599
|
+
[data-platform="android"] .Toolbar[data-host="dialog"][data-placement="top"][data-scrolled]::before,
|
|
2600
|
+
[data-platform="android"] .Toolbar[data-host="dialog"][data-placement="top"][data-title-style][data-scrolled]:not([data-title-collapsed])[data-background]::before {
|
|
2601
|
+
opacity: 1;
|
|
2602
|
+
}
|
|
2603
|
+
|
|
2604
|
+
[data-platform="android"] .Toolbar[data-host="dialog"][data-placement="top"]::after {
|
|
2605
|
+
display: none;
|
|
2606
|
+
}
|
|
2607
|
+
}
|
|
2608
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-host="dialog"][data-placement="top"] {
|
|
2609
|
+
--toolbar-padding-top: 12px;
|
|
2610
|
+
--toolbar-gutter: 12px;
|
|
2611
|
+
}
|
|
2612
|
+
|
|
2613
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] :where([data-mobile-placement="fullscreen"]) .Toolbar[data-host="dialog"][data-placement="top"] {
|
|
2614
|
+
--toolbar-padding-top: calc(var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) + 5px);
|
|
2615
|
+
--toolbar-gutter: 6px;
|
|
2616
|
+
}
|
|
2617
|
+
|
|
2618
|
+
/* Content scrolled under the sheet's bar fades out under it, whatever the bar's `background`, with no line and no bar
|
|
2619
|
+
of its own: the sheet's color at 63% over the bar, over a light blur, both let go over the last 32px (12 past the
|
|
2620
|
+
bar), once content is under it. */
|
|
2621
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-host="dialog"][data-placement="top"]::before {
|
|
2622
|
+
inset: 0 0 -12px;
|
|
2623
|
+
border-bottom: 0;
|
|
2624
|
+
background: color-mix(in srgb, var(--toolbar-background, var(--dialog-panel-background, var(--page-background))) 63%, transparent);
|
|
2625
|
+
backdrop-filter: blur(8px);
|
|
2626
|
+
opacity: 0;
|
|
2627
|
+
-webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent);
|
|
2628
|
+
mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent);
|
|
2629
|
+
transition: opacity var(--transition-duration-basic);
|
|
2630
|
+
}
|
|
2631
|
+
|
|
2632
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-host="dialog"][data-placement="top"][data-scrolled]::before,
|
|
2633
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-host="dialog"][data-placement="top"][data-title-style][data-scrolled]:not([data-title-collapsed])[data-background]::before {
|
|
2634
|
+
opacity: 1;
|
|
2635
|
+
}
|
|
2636
|
+
|
|
2637
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-host="dialog"][data-placement="top"]::after {
|
|
2638
|
+
display: none;
|
|
2639
|
+
}/* =============================================
|
|
2640
|
+
Android press ripple. A bar's control ripples when held (android.css, Android press ripple; the Button draws it),
|
|
2641
|
+
with no flat layer, in the list selector, as the reference's bar items: a symbol as a circle of 19px round its
|
|
2642
|
+
center, 4 inside its glass (in a 46 circle or a group's 38 slot; the reference's 20 is a point wider), a label as a
|
|
2643
|
+
circle round its center that reaches its corners, clipped to its glass pill (the reference's bar items with text,
|
|
2644
|
+
whose borderless ripple the glass under them clips), the confirm pill in a pill 4 inside its glass
|
|
2645
|
+
(NavigationButton). A prominent action of a glass bar (the accent's circle or pill) ripples in its label's color at
|
|
2646
|
+
20%, as the reference's accent Done pill.
|
|
2647
|
+
============================================= */@media (max-width: 767px) {
|
|
2648
|
+
[data-platform="android"] .Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a)[data-uniform] {
|
|
2649
|
+
--android-ripple-radius: 19px;
|
|
2650
|
+
}
|
|
2651
|
+
|
|
2652
|
+
[data-platform="android"] .Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a)[data-variant]:not([data-variant="solid"]) {
|
|
2653
|
+
--android-ripple-ink: var(--android-ripple-color);
|
|
2654
|
+
}
|
|
2655
|
+
|
|
2656
|
+
[data-platform="android"] .Toolbar:not([data-placement="top"][data-background="hard"]) :is(.Leading, .Trailing, .Content, .Group) > :where(button, a)[data-variant="solid"]:not([data-navigation-action="confirm"]) {
|
|
2657
|
+
--android-button-press: color-mix(in srgb, var(--button-text-color) 20%, transparent);
|
|
2658
|
+
}
|
|
2659
|
+
}
|
|
2660
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a)[data-uniform] {
|
|
2661
|
+
--android-ripple-radius: 19px;
|
|
2662
|
+
}
|
|
2663
|
+
|
|
2664
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a)[data-variant]:not([data-variant="solid"]) {
|
|
2665
|
+
--android-ripple-ink: var(--android-ripple-color);
|
|
2666
|
+
}
|
|
2667
|
+
|
|
2668
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar:not([data-placement="top"][data-background="hard"]) :is(.Leading, .Trailing, .Content, .Group) > :where(button, a)[data-variant="solid"]:not([data-navigation-action="confirm"]) {
|
|
2669
|
+
--android-button-press: color-mix(in srgb, var(--button-text-color) 20%, transparent);
|
|
2670
|
+
}/* =============================================
|
|
2671
|
+
Android sheet search. A screen's search at the top (`Toolbar.Content search`, "auto" in the Plex Android look, or
|
|
2672
|
+
"top"): a search button first among the top bar's trailing actions, in the capsule of the icon buttons beside it
|
|
2673
|
+
(Toolbar.tsx makes its places: the capsule, and the layer over the bar its field opens in). Pressed, the field grows
|
|
2674
|
+
out of the button to the bar's end, from after a back circle in the leading place (the gutter, the circle and the
|
|
2675
|
+
gap: 6 + 46 + 6 = 58 to the width less 6 on a full screen, as the reference messenger's), while the title fades out
|
|
2676
|
+
to 0.94 of its size and the trailing actions to 0.7, the leading action gives way to the back arrow, and the text
|
|
2677
|
+
comes in. Back reverses it. All of it runs 380ms on the reference's EASE_OUT_QUINT (android.css); a Sheet stands at
|
|
2678
|
+
the full screen meanwhile (Dialog.module.css), its bar 5 under the status bar and 6 from the sides, as a page's.
|
|
2679
|
+
============================================= */@media (max-width: 767px) {
|
|
2680
|
+
.Toolbar[data-toolbar][data-search][data-placement="top"] {
|
|
2681
|
+
--toolbar-search-duration: var(--android-search-duration, 380ms);
|
|
2682
|
+
--toolbar-search-easing: var(--android-search-easing, cubic-bezier(0.23, 1, 0.32, 1));
|
|
2683
|
+
--toolbar-search-clear-duration: var(--android-search-clear-duration, 250ms);
|
|
2684
|
+
transition: padding var(--toolbar-search-duration) var(--toolbar-search-easing);
|
|
2685
|
+
}
|
|
2686
|
+
|
|
2687
|
+
/* The search button is one circle of the bar's size: the capsule holds it with no padding of its own, but in the
|
|
2688
|
+
Plex Android look, where a capsule's symbols stand in 38px slots 4 from its ends (46 in all). */
|
|
2689
|
+
.Group[data-toolbar-search-button]:not([data-platform="android"] *) {
|
|
2690
|
+
padding-inline: 0;
|
|
2691
|
+
}
|
|
2692
|
+
|
|
2693
|
+
/* The field takes the button's place at once and gives it back once it has shrunk into it. Closing, the button is
|
|
2694
|
+
there at once, unseen, so it takes the focus back. */
|
|
2695
|
+
.Toolbar[data-toolbar][data-search][data-placement="top"] > .Trailing > [data-toolbar-search-button] {
|
|
2696
|
+
transition: opacity 0s var(--toolbar-search-duration);
|
|
2697
|
+
}
|
|
2698
|
+
|
|
2699
|
+
.Toolbar[data-toolbar][data-search-open][data-placement="top"] > .Trailing > [data-toolbar-search-button] {
|
|
2700
|
+
visibility: hidden;
|
|
2701
|
+
opacity: 0;
|
|
2702
|
+
transition: none;
|
|
2703
|
+
}
|
|
2704
|
+
|
|
2705
|
+
/* The title and the trailing actions fade and shrink away and come back; the leading action leaves at once, as the
|
|
2706
|
+
back circle takes its place, and comes back at once, its symbol fading in. */
|
|
2707
|
+
.Toolbar[data-toolbar][data-search][data-placement="top"] > :is(.Heading, .CollapsedTitle, .Trailing) {
|
|
2708
|
+
transition:
|
|
2709
|
+
opacity var(--toolbar-search-duration) var(--toolbar-search-easing),
|
|
2710
|
+
scale var(--toolbar-search-duration) var(--toolbar-search-easing),
|
|
2711
|
+
visibility 0s;
|
|
2712
|
+
}
|
|
2713
|
+
|
|
2714
|
+
.Toolbar[data-toolbar][data-search][data-placement="top"] > .Trailing {
|
|
2715
|
+
transform-origin: 100% 50%;
|
|
2716
|
+
}
|
|
2717
|
+
|
|
2718
|
+
.Toolbar[data-toolbar][data-search][data-placement="top"] > .Trailing:dir(rtl) {
|
|
2719
|
+
transform-origin: 0% 50%;
|
|
2720
|
+
}
|
|
2721
|
+
|
|
2722
|
+
.Toolbar[data-toolbar][data-search-open][data-placement="top"] > :is(.Heading, .CollapsedTitle, .Trailing) {
|
|
2723
|
+
visibility: hidden;
|
|
2724
|
+
opacity: 0;
|
|
2725
|
+
scale: 0.94;
|
|
2726
|
+
transition:
|
|
2727
|
+
opacity var(--toolbar-search-duration) var(--toolbar-search-easing),
|
|
2728
|
+
scale var(--toolbar-search-duration) var(--toolbar-search-easing),
|
|
2729
|
+
visibility 0s var(--toolbar-search-duration);
|
|
2730
|
+
}
|
|
2731
|
+
|
|
2732
|
+
.Toolbar[data-toolbar][data-search-open][data-placement="top"] > .Trailing {
|
|
2733
|
+
scale: 0.7;
|
|
2734
|
+
}
|
|
2735
|
+
|
|
2736
|
+
.Toolbar[data-toolbar][data-search-open][data-placement="top"] > .Leading {
|
|
2737
|
+
visibility: hidden;
|
|
2738
|
+
}
|
|
2739
|
+
|
|
2740
|
+
.Toolbar[data-toolbar][data-search][data-placement="top"]:not(:has(> .Leading [data-navigation-action="back"])) > .Leading svg {
|
|
2741
|
+
transition:
|
|
2742
|
+
opacity var(--toolbar-search-duration) var(--toolbar-search-easing),
|
|
2743
|
+
rotate var(--toolbar-search-duration) var(--toolbar-search-easing);
|
|
2744
|
+
}
|
|
2745
|
+
|
|
2746
|
+
.Toolbar[data-toolbar][data-search-open][data-placement="top"]:not(:has(> .Leading [data-navigation-action="back"])) > .Leading svg {
|
|
2747
|
+
opacity: 0;
|
|
2748
|
+
rotate: 45deg;
|
|
2749
|
+
}
|
|
2750
|
+
|
|
2751
|
+
/* The layer over the bar's row: hidden while the search is closed, but for the field shrinking back into its button. */
|
|
2752
|
+
.SearchLayer {
|
|
2753
|
+
position: absolute;
|
|
2754
|
+
z-index: 2;
|
|
2755
|
+
top: var(--toolbar-padding-top, 0px);
|
|
2756
|
+
right: 0;
|
|
2757
|
+
left: 0;
|
|
2758
|
+
height: var(--toolbar-item-size);
|
|
2759
|
+
visibility: hidden;
|
|
2760
|
+
pointer-events: none;
|
|
2761
|
+
transition:
|
|
2762
|
+
top var(--toolbar-search-duration) var(--toolbar-search-easing),
|
|
2763
|
+
visibility 0s var(--toolbar-search-duration);
|
|
2764
|
+
}
|
|
2765
|
+
|
|
2766
|
+
.SearchLayer > * {
|
|
2767
|
+
pointer-events: auto;
|
|
2768
|
+
}
|
|
2769
|
+
|
|
2770
|
+
.Toolbar[data-search-open] > .SearchLayer {
|
|
2771
|
+
visibility: visible;
|
|
2772
|
+
transition: top var(--toolbar-search-duration) var(--toolbar-search-easing);
|
|
2773
|
+
}
|
|
2774
|
+
|
|
2775
|
+
/* The back circle stands where the leading action stood, at once, its arrow turning in; with no leading action it
|
|
2776
|
+
fades in. */
|
|
2777
|
+
.SearchBack {
|
|
2778
|
+
position: absolute;
|
|
2779
|
+
top: 0;
|
|
2780
|
+
left: var(--toolbar-gutter);
|
|
2781
|
+
visibility: hidden;
|
|
2782
|
+
transition: left var(--toolbar-search-duration) var(--toolbar-search-easing);
|
|
2783
|
+
}
|
|
2784
|
+
|
|
2785
|
+
.SearchBack:dir(rtl) {
|
|
2786
|
+
right: var(--toolbar-gutter);
|
|
2787
|
+
left: auto;
|
|
2788
|
+
transition: right var(--toolbar-search-duration) var(--toolbar-search-easing);
|
|
2789
|
+
}
|
|
2790
|
+
|
|
2791
|
+
.SearchBack svg {
|
|
2792
|
+
opacity: 0;
|
|
2793
|
+
rotate: -45deg;
|
|
2794
|
+
transition:
|
|
2795
|
+
opacity var(--toolbar-search-duration) var(--toolbar-search-easing),
|
|
2796
|
+
rotate var(--toolbar-search-duration) var(--toolbar-search-easing);
|
|
2797
|
+
}
|
|
2798
|
+
|
|
2799
|
+
.Toolbar[data-search-open] > .SearchLayer > .SearchBack {
|
|
2800
|
+
visibility: visible;
|
|
2801
|
+
}
|
|
2802
|
+
|
|
2803
|
+
.Toolbar[data-search-open] > .SearchLayer > .SearchBack svg {
|
|
2804
|
+
opacity: 1;
|
|
2805
|
+
rotate: 0deg;
|
|
2806
|
+
}
|
|
2807
|
+
|
|
2808
|
+
.Toolbar:has(> .Leading [data-navigation-action="back"]) > .SearchLayer > .SearchBack svg {
|
|
2809
|
+
opacity: 1;
|
|
2810
|
+
rotate: 0deg;
|
|
2811
|
+
transition: none;
|
|
2812
|
+
}
|
|
2813
|
+
|
|
2814
|
+
.Toolbar:not(:has(> .Leading > *)) > .SearchLayer > .SearchBack {
|
|
2815
|
+
opacity: 0;
|
|
2816
|
+
transition:
|
|
2817
|
+
left var(--toolbar-search-duration) var(--toolbar-search-easing),
|
|
2818
|
+
opacity var(--toolbar-search-duration) var(--toolbar-search-easing),
|
|
2819
|
+
visibility 0s var(--toolbar-search-duration);
|
|
2820
|
+
}
|
|
2821
|
+
|
|
2822
|
+
.Toolbar[data-search-open]:not(:has(> .Leading > *)) > .SearchLayer > .SearchBack {
|
|
2823
|
+
opacity: 1;
|
|
2824
|
+
transition:
|
|
2825
|
+
left var(--toolbar-search-duration) var(--toolbar-search-easing),
|
|
2826
|
+
opacity var(--toolbar-search-duration) var(--toolbar-search-easing),
|
|
2827
|
+
visibility 0s;
|
|
2828
|
+
}
|
|
2829
|
+
|
|
2830
|
+
/* The field: closed, the search button's capsule (its end and size, which Toolbar.tsx measures from the bar's end, so
|
|
2831
|
+
it follows the gutter); open, from after the back circle to the gutter. */
|
|
2832
|
+
.SearchField {
|
|
2833
|
+
position: absolute;
|
|
2834
|
+
top: 0;
|
|
2835
|
+
bottom: 0;
|
|
2836
|
+
right: calc(var(--toolbar-gutter) + var(--toolbar-search-from-end, 0px));
|
|
2837
|
+
left: calc(100% - var(--toolbar-gutter) - var(--toolbar-search-from-end, 0px) - var(--toolbar-search-from-size, var(--toolbar-item-size)));
|
|
2838
|
+
transition:
|
|
2839
|
+
left var(--toolbar-search-duration) var(--toolbar-search-easing),
|
|
2840
|
+
right var(--toolbar-search-duration) var(--toolbar-search-easing);
|
|
2841
|
+
}
|
|
2842
|
+
|
|
2843
|
+
.SearchField:dir(rtl) {
|
|
2844
|
+
right: calc(100% - var(--toolbar-gutter) - var(--toolbar-search-from-end, 0px) - var(--toolbar-search-from-size, var(--toolbar-item-size)));
|
|
2845
|
+
left: calc(var(--toolbar-gutter) + var(--toolbar-search-from-end, 0px));
|
|
2846
|
+
}
|
|
2847
|
+
|
|
2848
|
+
.SearchField > [data-slot="input"] > input {
|
|
2849
|
+
opacity: 0;
|
|
2850
|
+
transition: opacity var(--toolbar-search-duration) var(--toolbar-search-easing);
|
|
2851
|
+
}
|
|
2852
|
+
|
|
2853
|
+
/* The clear button grows in over 250ms */
|
|
2854
|
+
.SearchField > [data-slot="input"] > input + button {
|
|
2855
|
+
transition:
|
|
2856
|
+
opacity var(--toolbar-search-clear-duration) var(--toolbar-search-easing),
|
|
2857
|
+
scale var(--toolbar-search-clear-duration) var(--toolbar-search-easing);
|
|
2858
|
+
}
|
|
2859
|
+
|
|
2860
|
+
@starting-style {
|
|
2861
|
+
.SearchField > [data-slot="input"] > input + button {
|
|
2862
|
+
opacity: 0;
|
|
2863
|
+
scale: 0.5
|
|
2864
|
+
}
|
|
2865
|
+
}
|
|
2866
|
+
|
|
2867
|
+
.Toolbar[data-search-open] > .SearchLayer > .SearchField {
|
|
2868
|
+
right: var(--toolbar-gutter);
|
|
2869
|
+
left: calc(var(--toolbar-gutter) + var(--toolbar-item-size) + var(--toolbar-item-gap));
|
|
2870
|
+
}
|
|
2871
|
+
|
|
2872
|
+
.Toolbar[data-search-open] > .SearchLayer > .SearchField:dir(rtl) {
|
|
2873
|
+
right: calc(var(--toolbar-gutter) + var(--toolbar-item-size) + var(--toolbar-item-gap));
|
|
2874
|
+
left: var(--toolbar-gutter);
|
|
2875
|
+
}
|
|
2876
|
+
|
|
2877
|
+
.Toolbar[data-search-open] > .SearchLayer > .SearchField > [data-slot="input"] > input {
|
|
2878
|
+
opacity: 1;
|
|
2879
|
+
}
|
|
2880
|
+
|
|
2881
|
+
/* A Sheet's bar at the full screen: 5 under the status bar and 6 from the sides, as a page's. */
|
|
2882
|
+
[data-platform="android"] .Toolbar[data-host="dialog"][data-placement="top"][data-search-open] {
|
|
2883
|
+
--toolbar-padding-top: calc(var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) + 5px);
|
|
2884
|
+
--toolbar-gutter: 6px;
|
|
2885
|
+
}
|
|
2886
|
+
|
|
2887
|
+
/* The reference's field: its text 17 (the caret 20 tall), 18 in, the hint in its hint gray, the caret in the text
|
|
2888
|
+
color, with no magnifier (the button showed it). A top bar's own open search (a filled Content, Android bar
|
|
2889
|
+
audit below) takes the same field. */
|
|
2890
|
+
[data-platform="android"] .Toolbar .SearchLayer > .SearchField > [data-slot="input"][data-variant],
|
|
2891
|
+
[data-platform="android"] .Toolbar[data-placement="top"] > .Content[data-fill] > [data-slot="input"][data-variant] {
|
|
2892
|
+
--input-font-size: 17px;
|
|
2893
|
+
--input-gutter: 18px;
|
|
2894
|
+
--input-placeholder-text-color: var(--android-search-hint);
|
|
2895
|
+
caret-color: var(--color-text);
|
|
2896
|
+
}
|
|
2897
|
+
|
|
2898
|
+
[data-platform="android"] .Toolbar .SearchLayer > .SearchField > [data-slot="input"][data-variant] > svg:first-child, [data-platform="android"] .Toolbar[data-placement="top"] > .Content[data-fill] > [data-slot="input"][data-variant] > svg:first-child {
|
|
2899
|
+
display: none;
|
|
2900
|
+
}
|
|
2901
|
+
}
|
|
2902
|
+
:where([data-plex-layout="phone"]) .Toolbar[data-toolbar][data-search][data-placement="top"] {
|
|
2903
|
+
--toolbar-search-duration: var(--android-search-duration, 380ms);
|
|
2904
|
+
--toolbar-search-easing: var(--android-search-easing, cubic-bezier(0.23, 1, 0.32, 1));
|
|
2905
|
+
--toolbar-search-clear-duration: var(--android-search-clear-duration, 250ms);
|
|
2906
|
+
transition: padding var(--toolbar-search-duration) var(--toolbar-search-easing);
|
|
2907
|
+
}
|
|
2908
|
+
|
|
2909
|
+
/* The search button is one circle of the bar's size: the capsule holds it with no padding of its own, but in the
|
|
2910
|
+
Plex Android look, where a capsule's symbols stand in 38px slots 4 from its ends (46 in all). */
|
|
2911
|
+
:where([data-plex-layout="phone"]) .Group[data-toolbar-search-button]:not([data-platform="android"] *) {
|
|
2912
|
+
padding-inline: 0;
|
|
2913
|
+
}
|
|
2914
|
+
|
|
2915
|
+
/* The field takes the button's place at once and gives it back once it has shrunk into it. Closing, the button is
|
|
2916
|
+
there at once, unseen, so it takes the focus back. */
|
|
2917
|
+
:where([data-plex-layout="phone"]) .Toolbar[data-toolbar][data-search][data-placement="top"] > .Trailing > [data-toolbar-search-button] {
|
|
2918
|
+
transition: opacity 0s var(--toolbar-search-duration);
|
|
2919
|
+
}
|
|
2920
|
+
|
|
2921
|
+
:where([data-plex-layout="phone"]) .Toolbar[data-toolbar][data-search-open][data-placement="top"] > .Trailing > [data-toolbar-search-button] {
|
|
2922
|
+
visibility: hidden;
|
|
2923
|
+
opacity: 0;
|
|
2924
|
+
transition: none;
|
|
2925
|
+
}
|
|
2926
|
+
|
|
2927
|
+
/* The title and the trailing actions fade and shrink away and come back; the leading action leaves at once, as the
|
|
2928
|
+
back circle takes its place, and comes back at once, its symbol fading in. */
|
|
2929
|
+
:where([data-plex-layout="phone"]) .Toolbar[data-toolbar][data-search][data-placement="top"] > :is(.Heading, .CollapsedTitle, .Trailing) {
|
|
2930
|
+
transition:
|
|
2931
|
+
opacity var(--toolbar-search-duration) var(--toolbar-search-easing),
|
|
2932
|
+
scale var(--toolbar-search-duration) var(--toolbar-search-easing),
|
|
2933
|
+
visibility 0s;
|
|
2934
|
+
}
|
|
2935
|
+
|
|
2936
|
+
:where([data-plex-layout="phone"]) .Toolbar[data-toolbar][data-search][data-placement="top"] > .Trailing {
|
|
2937
|
+
transform-origin: 100% 50%;
|
|
2938
|
+
}
|
|
2939
|
+
|
|
2940
|
+
:where([data-plex-layout="phone"]) .Toolbar[data-toolbar][data-search][data-placement="top"] > .Trailing:dir(rtl) {
|
|
2941
|
+
transform-origin: 0% 50%;
|
|
2942
|
+
}
|
|
2943
|
+
|
|
2944
|
+
:where([data-plex-layout="phone"]) .Toolbar[data-toolbar][data-search-open][data-placement="top"] > :is(.Heading, .CollapsedTitle, .Trailing) {
|
|
2945
|
+
visibility: hidden;
|
|
2946
|
+
opacity: 0;
|
|
2947
|
+
scale: 0.94;
|
|
2948
|
+
transition:
|
|
2949
|
+
opacity var(--toolbar-search-duration) var(--toolbar-search-easing),
|
|
2950
|
+
scale var(--toolbar-search-duration) var(--toolbar-search-easing),
|
|
2951
|
+
visibility 0s var(--toolbar-search-duration);
|
|
2952
|
+
}
|
|
2953
|
+
|
|
2954
|
+
:where([data-plex-layout="phone"]) .Toolbar[data-toolbar][data-search-open][data-placement="top"] > .Trailing {
|
|
2955
|
+
scale: 0.7;
|
|
2956
|
+
}
|
|
2957
|
+
|
|
2958
|
+
:where([data-plex-layout="phone"]) .Toolbar[data-toolbar][data-search-open][data-placement="top"] > .Leading {
|
|
2959
|
+
visibility: hidden;
|
|
2960
|
+
}
|
|
2961
|
+
|
|
2962
|
+
:where([data-plex-layout="phone"]) .Toolbar[data-toolbar][data-search][data-placement="top"]:not(:has(> .Leading [data-navigation-action="back"])) > .Leading svg {
|
|
2963
|
+
transition:
|
|
2964
|
+
opacity var(--toolbar-search-duration) var(--toolbar-search-easing),
|
|
2965
|
+
rotate var(--toolbar-search-duration) var(--toolbar-search-easing);
|
|
2966
|
+
}
|
|
2967
|
+
|
|
2968
|
+
:where([data-plex-layout="phone"]) .Toolbar[data-toolbar][data-search-open][data-placement="top"]:not(:has(> .Leading [data-navigation-action="back"])) > .Leading svg {
|
|
2969
|
+
opacity: 0;
|
|
2970
|
+
rotate: 45deg;
|
|
2971
|
+
}
|
|
2972
|
+
|
|
2973
|
+
/* The layer over the bar's row: hidden while the search is closed, but for the field shrinking back into its button. */
|
|
2974
|
+
:where([data-plex-layout="phone"]) .SearchLayer {
|
|
2975
|
+
position: absolute;
|
|
2976
|
+
z-index: 2;
|
|
2977
|
+
top: var(--toolbar-padding-top, 0px);
|
|
2978
|
+
right: 0;
|
|
2979
|
+
left: 0;
|
|
2980
|
+
height: var(--toolbar-item-size);
|
|
2981
|
+
visibility: hidden;
|
|
2982
|
+
pointer-events: none;
|
|
2983
|
+
transition:
|
|
2984
|
+
top var(--toolbar-search-duration) var(--toolbar-search-easing),
|
|
2985
|
+
visibility 0s var(--toolbar-search-duration);
|
|
2986
|
+
}
|
|
2987
|
+
|
|
2988
|
+
:where([data-plex-layout="phone"]) .SearchLayer > * {
|
|
2989
|
+
pointer-events: auto;
|
|
2990
|
+
}
|
|
2991
|
+
|
|
2992
|
+
:where([data-plex-layout="phone"]) .Toolbar[data-search-open] > .SearchLayer {
|
|
2993
|
+
visibility: visible;
|
|
2994
|
+
transition: top var(--toolbar-search-duration) var(--toolbar-search-easing);
|
|
2995
|
+
}
|
|
2996
|
+
|
|
2997
|
+
/* The back circle stands where the leading action stood, at once, its arrow turning in; with no leading action it
|
|
2998
|
+
fades in. */
|
|
2999
|
+
:where([data-plex-layout="phone"]) .SearchBack {
|
|
3000
|
+
position: absolute;
|
|
3001
|
+
top: 0;
|
|
3002
|
+
left: var(--toolbar-gutter);
|
|
3003
|
+
visibility: hidden;
|
|
3004
|
+
transition: left var(--toolbar-search-duration) var(--toolbar-search-easing);
|
|
3005
|
+
}
|
|
3006
|
+
|
|
3007
|
+
:where([data-plex-layout="phone"]) .SearchBack:dir(rtl) {
|
|
3008
|
+
right: var(--toolbar-gutter);
|
|
3009
|
+
left: auto;
|
|
3010
|
+
transition: right var(--toolbar-search-duration) var(--toolbar-search-easing);
|
|
3011
|
+
}
|
|
3012
|
+
|
|
3013
|
+
:where([data-plex-layout="phone"]) .SearchBack svg {
|
|
3014
|
+
opacity: 0;
|
|
3015
|
+
rotate: -45deg;
|
|
3016
|
+
transition:
|
|
3017
|
+
opacity var(--toolbar-search-duration) var(--toolbar-search-easing),
|
|
3018
|
+
rotate var(--toolbar-search-duration) var(--toolbar-search-easing);
|
|
3019
|
+
}
|
|
3020
|
+
|
|
3021
|
+
:where([data-plex-layout="phone"]) .Toolbar[data-search-open] > .SearchLayer > .SearchBack {
|
|
3022
|
+
visibility: visible;
|
|
3023
|
+
}
|
|
3024
|
+
|
|
3025
|
+
:where([data-plex-layout="phone"]) .Toolbar[data-search-open] > .SearchLayer > .SearchBack svg {
|
|
3026
|
+
opacity: 1;
|
|
3027
|
+
rotate: 0deg;
|
|
3028
|
+
}
|
|
3029
|
+
|
|
3030
|
+
:where([data-plex-layout="phone"]) .Toolbar:has(> .Leading [data-navigation-action="back"]) > .SearchLayer > .SearchBack svg {
|
|
3031
|
+
opacity: 1;
|
|
3032
|
+
rotate: 0deg;
|
|
3033
|
+
transition: none;
|
|
3034
|
+
}
|
|
3035
|
+
|
|
3036
|
+
:where([data-plex-layout="phone"]) .Toolbar:not(:has(> .Leading > *)) > .SearchLayer > .SearchBack {
|
|
3037
|
+
opacity: 0;
|
|
3038
|
+
transition:
|
|
3039
|
+
left var(--toolbar-search-duration) var(--toolbar-search-easing),
|
|
3040
|
+
opacity var(--toolbar-search-duration) var(--toolbar-search-easing),
|
|
3041
|
+
visibility 0s var(--toolbar-search-duration);
|
|
3042
|
+
}
|
|
3043
|
+
|
|
3044
|
+
:where([data-plex-layout="phone"]) .Toolbar[data-search-open]:not(:has(> .Leading > *)) > .SearchLayer > .SearchBack {
|
|
3045
|
+
opacity: 1;
|
|
3046
|
+
transition:
|
|
3047
|
+
left var(--toolbar-search-duration) var(--toolbar-search-easing),
|
|
3048
|
+
opacity var(--toolbar-search-duration) var(--toolbar-search-easing),
|
|
3049
|
+
visibility 0s;
|
|
3050
|
+
}
|
|
3051
|
+
|
|
3052
|
+
/* The field: closed, the search button's capsule (its end and size, which Toolbar.tsx measures from the bar's end, so
|
|
3053
|
+
it follows the gutter); open, from after the back circle to the gutter. */
|
|
3054
|
+
:where([data-plex-layout="phone"]) .SearchField {
|
|
3055
|
+
position: absolute;
|
|
3056
|
+
top: 0;
|
|
3057
|
+
bottom: 0;
|
|
3058
|
+
right: calc(var(--toolbar-gutter) + var(--toolbar-search-from-end, 0px));
|
|
3059
|
+
left: calc(100% - var(--toolbar-gutter) - var(--toolbar-search-from-end, 0px) - var(--toolbar-search-from-size, var(--toolbar-item-size)));
|
|
3060
|
+
transition:
|
|
3061
|
+
left var(--toolbar-search-duration) var(--toolbar-search-easing),
|
|
3062
|
+
right var(--toolbar-search-duration) var(--toolbar-search-easing);
|
|
3063
|
+
}
|
|
3064
|
+
|
|
3065
|
+
:where([data-plex-layout="phone"]) .SearchField:dir(rtl) {
|
|
3066
|
+
right: calc(100% - var(--toolbar-gutter) - var(--toolbar-search-from-end, 0px) - var(--toolbar-search-from-size, var(--toolbar-item-size)));
|
|
3067
|
+
left: calc(var(--toolbar-gutter) + var(--toolbar-search-from-end, 0px));
|
|
3068
|
+
}
|
|
3069
|
+
|
|
3070
|
+
:where([data-plex-layout="phone"]) .SearchField > [data-slot="input"] > input {
|
|
3071
|
+
opacity: 0;
|
|
3072
|
+
transition: opacity var(--toolbar-search-duration) var(--toolbar-search-easing);
|
|
3073
|
+
}
|
|
3074
|
+
|
|
3075
|
+
/* The clear button grows in over 250ms */
|
|
3076
|
+
:where([data-plex-layout="phone"]) .SearchField > [data-slot="input"] > input + button {
|
|
3077
|
+
transition:
|
|
3078
|
+
opacity var(--toolbar-search-clear-duration) var(--toolbar-search-easing),
|
|
3079
|
+
scale var(--toolbar-search-clear-duration) var(--toolbar-search-easing);
|
|
3080
|
+
}
|
|
3081
|
+
|
|
3082
|
+
@starting-style {
|
|
3083
|
+
:where([data-plex-layout="phone"]) .SearchField > [data-slot="input"] > input + button {
|
|
3084
|
+
opacity: 0;
|
|
3085
|
+
scale: 0.5
|
|
3086
|
+
}
|
|
3087
|
+
}
|
|
3088
|
+
|
|
3089
|
+
:where([data-plex-layout="phone"]) .Toolbar[data-search-open] > .SearchLayer > .SearchField {
|
|
3090
|
+
right: var(--toolbar-gutter);
|
|
3091
|
+
left: calc(var(--toolbar-gutter) + var(--toolbar-item-size) + var(--toolbar-item-gap));
|
|
3092
|
+
}
|
|
3093
|
+
|
|
3094
|
+
:where([data-plex-layout="phone"]) .Toolbar[data-search-open] > .SearchLayer > .SearchField:dir(rtl) {
|
|
3095
|
+
right: calc(var(--toolbar-gutter) + var(--toolbar-item-size) + var(--toolbar-item-gap));
|
|
3096
|
+
left: var(--toolbar-gutter);
|
|
3097
|
+
}
|
|
3098
|
+
|
|
3099
|
+
:where([data-plex-layout="phone"]) .Toolbar[data-search-open] > .SearchLayer > .SearchField > [data-slot="input"] > input {
|
|
3100
|
+
opacity: 1;
|
|
3101
|
+
}
|
|
3102
|
+
|
|
3103
|
+
/* A Sheet's bar at the full screen: 5 under the status bar and 6 from the sides, as a page's. */
|
|
3104
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-host="dialog"][data-placement="top"][data-search-open] {
|
|
3105
|
+
--toolbar-padding-top: calc(var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) + 5px);
|
|
3106
|
+
--toolbar-gutter: 6px;
|
|
3107
|
+
}
|
|
3108
|
+
|
|
3109
|
+
/* The reference's field: its text 17 (the caret 20 tall), 18 in, the hint in its hint gray, the caret in the text
|
|
3110
|
+
color, with no magnifier (the button showed it). A top bar's own open search (a filled Content, Android bar
|
|
3111
|
+
audit below) takes the same field. */
|
|
3112
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar .SearchLayer > .SearchField > [data-slot="input"][data-variant],
|
|
3113
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="top"] > .Content[data-fill] > [data-slot="input"][data-variant] {
|
|
3114
|
+
--input-font-size: 17px;
|
|
3115
|
+
--input-gutter: 18px;
|
|
3116
|
+
--input-placeholder-text-color: var(--android-search-hint);
|
|
3117
|
+
caret-color: var(--color-text);
|
|
3118
|
+
}
|
|
3119
|
+
|
|
3120
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar .SearchLayer > .SearchField > [data-slot="input"][data-variant] > svg:first-child, :where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="top"] > .Content[data-fill] > [data-slot="input"][data-variant] > svg:first-child {
|
|
3121
|
+
display: none;
|
|
3122
|
+
}@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
|
|
3123
|
+
.Toolbar[data-toolbar][data-search][data-placement="top"] {
|
|
3124
|
+
--toolbar-search-duration: 0s;
|
|
3125
|
+
--toolbar-search-clear-duration: 0s;
|
|
3126
|
+
}
|
|
3127
|
+
}@media (prefers-reduced-motion: reduce) {
|
|
3128
|
+
:where([data-plex-layout="phone"]) .Toolbar[data-toolbar][data-search][data-placement="top"] {
|
|
3129
|
+
--toolbar-search-duration: 0s;
|
|
3130
|
+
--toolbar-search-clear-duration: 0s;
|
|
3131
|
+
}
|
|
3132
|
+
}/* =============================================
|
|
3133
|
+
Android bar audit. Three gaps of the Plex Android look's bars, measured on the reference messenger:
|
|
3134
|
+
- A bottom bar's single wide solid action (a filled `Toolbar.Content` with a solid Button, alone in the bar) floats
|
|
3135
|
+
as the reference's main action at the bottom of a screen: a 48px pill in the line of the cards (--page-gutter, 12
|
|
3136
|
+
from the sides), 8 over the gesture inset, with no shadow. The reference rings it 3px in the card's color to part
|
|
3137
|
+
it from content scrolled under it; over our pages the ring read as a stray border (owner, 23.11), so it has none.
|
|
3138
|
+
- A top bar's open search written in the iOS order (a filled Content with its field, Close after it, nothing
|
|
3139
|
+
leading) takes the reference's: the back circle first, in the leading place (Close drawn as the back arrow), the
|
|
3140
|
+
field from after it to the bar's end, as the sheet search's field above (17, 18 in, the hint gray, no magnifier).
|
|
3141
|
+
- A title from the start after a leading control is the reference's count of a selection: Medium 18, 14.5 past the
|
|
3142
|
+
circle (66.5 from the screen's side), not 24 past it.
|
|
3143
|
+
============================================= */@media (max-width: 767px) {
|
|
3144
|
+
[data-platform="android"] .Toolbar[data-placement="bottom"]:has(> .Content[data-fill] > :where(button, a, [role="link"])[data-variant="solid"]):not(:has(> .Leading, > .Trailing)) {
|
|
3145
|
+
--toolbar-bottom-item-size: 48px;
|
|
3146
|
+
--toolbar-bottom-gutter: var(--page-gutter, 12px);
|
|
3147
|
+
--toolbar-bottom-padding-bottom: calc(var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)) + 8px);
|
|
3148
|
+
--toolbar-prominent-shadow: none;
|
|
3149
|
+
}
|
|
3150
|
+
|
|
3151
|
+
[data-platform="android"] .Toolbar[data-placement="top"]:has(> .Content[data-fill]):not(:has(> .Leading)):has(> .Trailing > [data-navigation-action="close"]:only-child) {
|
|
3152
|
+
grid-template-areas: "trailing content";
|
|
3153
|
+
grid-template-columns: max-content minmax(0, 1fr);
|
|
3154
|
+
}
|
|
3155
|
+
|
|
3156
|
+
[data-platform="android"] .Toolbar[data-placement="top"]:has(> .Content[data-fill]):not(:has(> .Leading)):has(> .Trailing > [data-navigation-action="close"]:only-child) > .Trailing {
|
|
3157
|
+
justify-self: start;
|
|
3158
|
+
}
|
|
3159
|
+
|
|
3160
|
+
/* Material's arrow_back on the 20 grid of the close glyph's box (NavigationButton.module.css), mirrored right to
|
|
3161
|
+
left as Back's is. */
|
|
3162
|
+
[data-platform="android"] .Toolbar[data-placement="top"]:has(> .Content[data-fill]):not(:has(> .Leading)):has(> .Trailing > [data-navigation-action="close"]:only-child) > .Trailing > [data-navigation-action="close"] [data-navigation-glyph="close"] path {
|
|
3163
|
+
d: path("M16.667 9.167H6.525l4.658-4.658L10 3.333l-6.667 6.667 6.667 6.667 1.175-1.175L6.525 10.833H16.667v-1.666z");
|
|
3164
|
+
}
|
|
3165
|
+
|
|
3166
|
+
[data-platform="android"] .Toolbar[data-placement="top"]:has(> .Content[data-fill]):not(:has(> .Leading)):has(> .Trailing > [data-navigation-action="close"]:only-child) > .Trailing > [data-navigation-action="close"]:dir(rtl) [data-navigation-glyph="close"] {
|
|
3167
|
+
transform: scaleX(-1);
|
|
3168
|
+
}
|
|
3169
|
+
|
|
3170
|
+
[data-platform="android"] .Toolbar[data-placement="top"][data-title-align="start"]:not([data-background="hard"]):has(> .Leading) {
|
|
3171
|
+
--toolbar-title-font-size: 18px;
|
|
3172
|
+
}
|
|
3173
|
+
|
|
3174
|
+
[data-platform="android"] .Toolbar[data-placement="top"][data-title-align="start"]:not([data-background="hard"]):has(> .Leading) > .Heading {
|
|
3175
|
+
margin-inline-start: calc(14.5px - var(--toolbar-item-gap));
|
|
3176
|
+
}
|
|
3177
|
+
}
|
|
3178
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="bottom"]:has(> .Content[data-fill] > :where(button, a, [role="link"])[data-variant="solid"]):not(:has(> .Leading, > .Trailing)) {
|
|
3179
|
+
--toolbar-bottom-item-size: 48px;
|
|
3180
|
+
--toolbar-bottom-gutter: var(--page-gutter, 12px);
|
|
3181
|
+
--toolbar-bottom-padding-bottom: calc(var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)) + 8px);
|
|
3182
|
+
--toolbar-prominent-shadow: none;
|
|
3183
|
+
}
|
|
3184
|
+
|
|
3185
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="top"]:has(> .Content[data-fill]):not(:has(> .Leading)):has(> .Trailing > [data-navigation-action="close"]:only-child) {
|
|
3186
|
+
grid-template-areas: "trailing content";
|
|
3187
|
+
grid-template-columns: max-content minmax(0, 1fr);
|
|
3188
|
+
}
|
|
3189
|
+
|
|
3190
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="top"]:has(> .Content[data-fill]):not(:has(> .Leading)):has(> .Trailing > [data-navigation-action="close"]:only-child) > .Trailing {
|
|
3191
|
+
justify-self: start;
|
|
3192
|
+
}
|
|
3193
|
+
|
|
3194
|
+
/* Material's arrow_back on the 20 grid of the close glyph's box (NavigationButton.module.css), mirrored right to
|
|
3195
|
+
left as Back's is. */
|
|
3196
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="top"]:has(> .Content[data-fill]):not(:has(> .Leading)):has(> .Trailing > [data-navigation-action="close"]:only-child) > .Trailing > [data-navigation-action="close"] [data-navigation-glyph="close"] path {
|
|
3197
|
+
d: path("M16.667 9.167H6.525l4.658-4.658L10 3.333l-6.667 6.667 6.667 6.667 1.175-1.175L6.525 10.833H16.667v-1.666z");
|
|
3198
|
+
}
|
|
3199
|
+
|
|
3200
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="top"]:has(> .Content[data-fill]):not(:has(> .Leading)):has(> .Trailing > [data-navigation-action="close"]:only-child) > .Trailing > [data-navigation-action="close"]:dir(rtl) [data-navigation-glyph="close"] {
|
|
3201
|
+
transform: scaleX(-1);
|
|
3202
|
+
}
|
|
3203
|
+
|
|
3204
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="top"][data-title-align="start"]:not([data-background="hard"]):has(> .Leading) {
|
|
3205
|
+
--toolbar-title-font-size: 18px;
|
|
3206
|
+
}
|
|
3207
|
+
|
|
3208
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Toolbar[data-placement="top"][data-title-align="start"]:not([data-background="hard"]):has(> .Leading) > .Heading {
|
|
3209
|
+
margin-inline-start: calc(14.5px - var(--toolbar-item-gap));
|
|
3210
|
+
}
|
|
1669
3211
|
}
|