@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
|
@@ -806,6 +806,359 @@
|
|
|
806
806
|
[data-field-columns] .Field:where([data-row]:not([data-orientation="vertical"])) .Control > :is([data-variant="outline"], [data-variant="soft"])[role="button"] {
|
|
807
807
|
width: 100%;
|
|
808
808
|
}
|
|
809
|
+
|
|
810
|
+
/* The Plex Android look (`data-platform="android"`), as @plexui/react-native's ListItem on Android (the row tokens
|
|
811
|
+
are in android.css): the label 16/20 and its description 13/16 4 under it; a field at the row's end is a card's
|
|
812
|
+
bare field, its text 17/20 from 14 after the label's 16 (from the column with `columns`), its hint a light gray,
|
|
813
|
+
its caret the text color; an error a 13/16 line in the error color 4 under the row's line, with no mark; a
|
|
814
|
+
disabled row fades to half; a held row (a switch row too) shows the list selector; a symbol (24) leads 20 in and
|
|
815
|
+
a tile 18 in, the text following both at 64; a row of a text field is 54. */
|
|
816
|
+
[data-platform="android"] .Field:where([data-row]) {
|
|
817
|
+
--field-label-description-gap: 4px;
|
|
818
|
+
--field-error-color: var(--android-danger-text);
|
|
819
|
+
--mobile-field-error-font-size: 13px;
|
|
820
|
+
--mobile-field-error-line-height: 16px;
|
|
821
|
+
--mobile-field-error-icon-display: none;
|
|
822
|
+
--input-placeholder-text-color: var(--android-hint);
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
[data-platform="android"] .Field:where([data-row]):has(> .Icon > svg) {
|
|
826
|
+
--field-row-icon-offset: -1px;
|
|
827
|
+
--field-row-icon-size: 24px;
|
|
828
|
+
--field-row-icon-gap: 20px;
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
[data-platform="android"] .Field:where([data-row]:not([data-orientation="vertical"])):has(> .Content > .Control > [data-variant] > :is(input, textarea)) {
|
|
832
|
+
min-height: 54px;
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
[data-platform="android"] .Field:where([data-row]) .Control [data-slot="input"],
|
|
836
|
+
[data-platform="android"] .Field:where([data-row]) .Control [data-slot="input"] > input,
|
|
837
|
+
[data-platform="android"] .Field:where([data-row]) .Control textarea,
|
|
838
|
+
[data-platform="android"] .Field:where([data-row]) .Control [data-slot="input-group-control"] {
|
|
839
|
+
font-size: 17px;
|
|
840
|
+
line-height: 20px;
|
|
841
|
+
caret-color: var(--color-text);
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
/* A row's multi-line field starts one line tall and grows as it is written in, up to its maximum rows, as the
|
|
845
|
+
reference's text fields: no empty lines are held under the hint (its `rows` still sets the lines elsewhere). */
|
|
846
|
+
[data-platform="android"] .Field:where([data-row]) .Control > [data-variant]:has(> textarea) {
|
|
847
|
+
--textarea-line-height: 20px;
|
|
848
|
+
--textarea-min-height: calc(var(--textarea-gutter-y) * 2 + var(--textarea-line-height));
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
[data-platform="android"] .Field:where([data-row]:not([data-orientation="vertical"])) .Control > [data-variant] > input {
|
|
852
|
+
text-align: start;
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
[data-platform="android"] .Field:where([data-row]:not([data-orientation="vertical"])) .Control:has(> [data-variant] > input, > [data-variant] > textarea) {
|
|
856
|
+
margin-inline-start: 14px;
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
[data-platform="android"] [data-field-columns] .Field:where([data-row]:not([data-orientation="vertical"])) .Control:has(> [data-variant] > input, > [data-variant] > textarea) {
|
|
860
|
+
margin-inline-start: 0;
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
/* A field under its label (13/16, 4 over it, 10 above and below: android.css) or alone in the row: alone, its
|
|
864
|
+
value stands 17 above and below, a 54dp row, and starts at the row's text (21 in), where the line above the row
|
|
865
|
+
starts. The reference sets it 22 in, a point off its own rows and headers: here a card's text keeps one edge. */
|
|
866
|
+
[data-platform="android"] .Field:where([data-row][data-label-hidden][data-orientation="vertical"]):has(> .Content > .Control > [data-variant] > :is(input, textarea)):not(:has(> .LabelGroup > .Description, > .Content > :not(.Control))) {
|
|
867
|
+
--field-group-separator-inset-start: var(--field-row-padding-inline);
|
|
868
|
+
|
|
869
|
+
padding-block: 17px;
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
/* A row's text field being typed in: the line under the row turns the accent, 2 thick, spreading from its middle in
|
|
873
|
+
150ms, as the line of an input card's field (below) and the reference's text fields; while the field is invalid
|
|
874
|
+
it is the error color. It lies over the card's separator under the row (the next row's line), from where that
|
|
875
|
+
line starts to the card's edge. A card's last row, where no separator runs, ends 8 lower (a clear border, so its
|
|
876
|
+
padding and the line's place are the rows' above): its line stands as far under its text as theirs and 7 over
|
|
877
|
+
the card's edge (on the edge it read as the card's border), to where the card's 16 corner has curved in at that
|
|
878
|
+
height. An input card's field draws its own line. */
|
|
879
|
+
[data-platform="android"] .Field:where([data-row]:not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="hidden"], [type="file"], [type="color"], [aria-hidden="true"]), textarea)) {
|
|
880
|
+
position: relative;
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
[data-platform="android"] .Field:where([data-row]:not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="hidden"], [type="file"], [type="color"], [aria-hidden="true"]), textarea))::before {
|
|
884
|
+
content: "";
|
|
885
|
+
position: absolute;
|
|
886
|
+
z-index: 1;
|
|
887
|
+
inset-inline: var(--field-group-separator-inset-start, var(--field-group-separator-inset, 0px)) 0;
|
|
888
|
+
bottom: -1px;
|
|
889
|
+
height: 2px;
|
|
890
|
+
background: var(--android-accent-text);
|
|
891
|
+
pointer-events: none;
|
|
892
|
+
transform: scaleX(0);
|
|
893
|
+
transition: transform 150ms ease-in-out;
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
[data-platform="android"] .Field:where([data-row]:not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="hidden"], [type="file"], [type="color"], [aria-hidden="true"]), textarea)):last-child {
|
|
897
|
+
/* The 54 row and the 8 under it */
|
|
898
|
+
min-height: 62px;
|
|
899
|
+
border-block-end: 8px solid transparent;
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
[data-platform="android"] .Field:where([data-row]:not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="hidden"], [type="file"], [type="color"], [aria-hidden="true"]), textarea)):last-child::before {
|
|
903
|
+
inset-inline-end: 3px;
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
[data-platform="android"] .Field:where([data-row]:not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="hidden"], [type="file"], [type="color"], [aria-hidden="true"]), textarea)):has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="range"], [aria-hidden="true"]), textarea):focus:not([readonly]))::before {
|
|
907
|
+
transform: scaleX(1);
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
[data-platform="android"] .Field:where([data-row]:not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="hidden"], [type="file"], [type="color"], [aria-hidden="true"]), textarea)):has(> .Content > .Control :is(input, textarea)[aria-invalid="true"])::before {
|
|
911
|
+
background: var(--android-danger-text);
|
|
912
|
+
transform: scaleX(1);
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
@media (prefers-reduced-motion: reduce) {
|
|
916
|
+
[data-platform="android"] .Field:where([data-row]:not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="hidden"], [type="file"], [type="color"], [aria-hidden="true"]), textarea))::before {
|
|
917
|
+
transition: none;
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
/* The reference's input card: a text field under its label (a vertical row with the label shown) is a field with a
|
|
922
|
+
floating label and a line under it (a row with a hidden label stays the hint cell above). The row is 64 tall, the
|
|
923
|
+
value 16/20 at the row's text (21 in; the reference sets its fields 17 in, off its own rows and headers, so a card
|
|
924
|
+
with a header here keeps one edge), its baseline 38.5 under the row's top; the line runs as far in from both of
|
|
925
|
+
the card's edges, its
|
|
926
|
+
top 46 under the row's top (7.6 under the baseline): 1 in a light gray, 2 in the accent while the field is edited
|
|
927
|
+
(spreading from its middle in 150ms), 2 in the error color with an error. Empty and unfocused, the label stands in
|
|
928
|
+
the value's place as the hint (16 in the hint's gray; a placeholder shows only while the field is edited); with
|
|
929
|
+
the focus or a value it floats to 0.7 of its size (11.2) in the accent, its baseline 21.3 over the value's, in
|
|
930
|
+
200ms. The first field of a card stands 6 lower in its 64 (the line 52 under the card's top). An error is a 13/16
|
|
931
|
+
line 8 under the value's line. The value's 20px line starts 22.25 under the row's top, which sets the 16px type's
|
|
932
|
+
baseline at 38.5. A Textarea is such a field too: the row grows with its lines and the line stays under the last
|
|
933
|
+
one (the Control draws it, 2.75 under the value). The field's line stands for the card's separator: none above
|
|
934
|
+
the field nor under it. A field with no placeholder gets a blank one on Android from Field, so
|
|
935
|
+
:placeholder-shown tells an empty field. */
|
|
936
|
+
[data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)) {
|
|
937
|
+
--android-float-top: 22.25px;
|
|
938
|
+
|
|
939
|
+
position: relative;
|
|
940
|
+
min-height: 64px;
|
|
941
|
+
padding: var(--android-float-top) var(--field-row-padding-inline) calc(64px - var(--android-float-top) - 20px);
|
|
942
|
+
/* Not a text row's last-row room: the field's line has its own place */
|
|
943
|
+
border-block-end-width: 0;
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
[data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)):first-child {
|
|
947
|
+
--android-float-top: 28.25px;
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
[data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow))::before,
|
|
951
|
+
[data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow))::after,
|
|
952
|
+
[data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)) + [data-row]::after,
|
|
953
|
+
[data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)) + [data-sortable] > [data-row]:first-child::after {
|
|
954
|
+
content: none;
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
[data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)):has(> .Content > [role="alert"]) {
|
|
958
|
+
row-gap: 8px;
|
|
959
|
+
padding-bottom: 12px;
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
[data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)) > .Content > .Control > :is([data-slot="input"], [data-slot="textarea"]), [data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)) > .Content > .Control > :is([data-slot="input"], [data-slot="textarea"]) > :is(input, textarea) {
|
|
963
|
+
font-size: 16px;
|
|
964
|
+
line-height: 20px;
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
[data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)):not(:focus-within) > .Content > .Control > [data-variant] > :is(input, textarea)::-moz-placeholder {
|
|
968
|
+
color: transparent;
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
[data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)):not(:focus-within) > .Content > .Control > [data-variant] > :is(input, textarea)::placeholder {
|
|
972
|
+
color: transparent;
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
[data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)) > .LabelGroup {
|
|
976
|
+
position: absolute;
|
|
977
|
+
grid-area: auto;
|
|
978
|
+
inset-inline: var(--field-row-padding-inline);
|
|
979
|
+
top: var(--android-float-top);
|
|
980
|
+
display: block;
|
|
981
|
+
width: auto;
|
|
982
|
+
height: 20px;
|
|
983
|
+
margin: 0;
|
|
984
|
+
overflow: visible;
|
|
985
|
+
clip-path: none;
|
|
986
|
+
pointer-events: none;
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
[data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)) > .LabelGroup > .Label {
|
|
990
|
+
position: static;
|
|
991
|
+
display: block;
|
|
992
|
+
width: calc(100% / 0.7);
|
|
993
|
+
height: auto;
|
|
994
|
+
margin: 0;
|
|
995
|
+
overflow: hidden;
|
|
996
|
+
clip-path: none;
|
|
997
|
+
color: var(--android-accent-text);
|
|
998
|
+
font-size: 16px;
|
|
999
|
+
line-height: 20px;
|
|
1000
|
+
font-weight: var(--font-weight-normal);
|
|
1001
|
+
white-space: nowrap;
|
|
1002
|
+
text-overflow: ellipsis;
|
|
1003
|
+
transform-origin: 0 0;
|
|
1004
|
+
translate: 0 -16.5px;
|
|
1005
|
+
scale: 0.7;
|
|
1006
|
+
transition:
|
|
1007
|
+
translate 200ms cubic-bezier(0.23, 1, 0.32, 1),
|
|
1008
|
+
scale 200ms cubic-bezier(0.23, 1, 0.32, 1),
|
|
1009
|
+
width 200ms cubic-bezier(0.23, 1, 0.32, 1),
|
|
1010
|
+
color 200ms cubic-bezier(0.23, 1, 0.32, 1);
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
[data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)):not(:focus-within):has(> .Content > .Control > [data-variant] > :is(input, textarea):-moz-placeholder-shown) > .LabelGroup > .Label {
|
|
1014
|
+
width: 100%;
|
|
1015
|
+
color: var(--android-hint);
|
|
1016
|
+
translate: 0 0;
|
|
1017
|
+
scale: 1;
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
[data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)):not(:focus-within):has(> .Content > .Control > [data-variant] > :is(input, textarea):placeholder-shown) > .LabelGroup > .Label {
|
|
1021
|
+
width: 100%;
|
|
1022
|
+
color: var(--android-hint);
|
|
1023
|
+
translate: 0 0;
|
|
1024
|
+
scale: 1;
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
[data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)) > .Content > .Control {
|
|
1028
|
+
position: relative;
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
[data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)) > .Content > .Control::after {
|
|
1032
|
+
content: "";
|
|
1033
|
+
position: absolute;
|
|
1034
|
+
inset-inline: 0;
|
|
1035
|
+
top: calc(100% + 2.75px);
|
|
1036
|
+
height: 2px;
|
|
1037
|
+
background:
|
|
1038
|
+
linear-gradient(var(--android-accent-text), var(--android-accent-text)) center bottom / 0% 2px no-repeat,
|
|
1039
|
+
linear-gradient(var(--android-field-line), var(--android-field-line)) center bottom / 100% 1px no-repeat;
|
|
1040
|
+
pointer-events: none;
|
|
1041
|
+
transition: background-size 150ms ease-in-out;
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
[data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)):focus-within > .Content > .Control::after {
|
|
1045
|
+
background-size: 100% 2px, 100% 1px;
|
|
1046
|
+
}
|
|
1047
|
+
[data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)):has(> .Content > .Control > [data-variant] > [aria-invalid="true"]) > .LabelGroup > .Label {
|
|
1048
|
+
color: var(--android-danger-text);
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
[data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)):has(> .Content > .Control > [data-variant] > [aria-invalid="true"]) > .Content > .Control::after {
|
|
1052
|
+
background: var(--android-danger-text);
|
|
1053
|
+
}
|
|
1054
|
+
[data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)):has(> .Content > .Control > [data-variant] > :disabled) > .LabelGroup,
|
|
1055
|
+
[data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)):has(> .Content > .Control > [data-variant] > :disabled) > .Content > .Control::after {
|
|
1056
|
+
opacity: 0.5;
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1060
|
+
[data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)) > .LabelGroup > .Label,
|
|
1061
|
+
[data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)) > .Content > .Control::after {
|
|
1062
|
+
transition: none;
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
/* A disabled row fades to half, its value and control too (they dim themselves) */
|
|
1067
|
+
[data-platform="android"] .Field:where([data-row]:not([data-orientation="vertical"]):not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(button[role="checkbox"], button[role="radio"], button[role="switch"], input[type="checkbox"], input[type="radio"]):is([disabled], [data-disabled], [aria-disabled="true"])):not(:has(> .Content > .Control :is(button[role="checkbox"], button[role="radio"], button[role="switch"], input[type="checkbox"], input[type="radio"]):not([disabled], [data-disabled], [aria-disabled="true"], [aria-hidden="true"]))),
|
|
1068
|
+
[data-platform="android"] .Field:where([data-row]:not([data-orientation="vertical"])):has(> .Content > .Control > :is(button, [role="button"])[aria-haspopup]:not([aria-haspopup="false"]):is([disabled], [data-disabled], [aria-disabled="true"])),
|
|
1069
|
+
[data-platform="android"] .Field:where([data-row][data-disabled]) {
|
|
1070
|
+
--field-description-color: color-mix(in srgb, var(--mobile-label-secondary, var(--color-text-secondary)) 50%, transparent);
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
[data-platform="android"] .Field:where([data-row]:not([data-orientation="vertical"]):not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(button[role="checkbox"], button[role="radio"], button[role="switch"], input[type="checkbox"], input[type="radio"]):is([disabled], [data-disabled], [aria-disabled="true"])):not(:has(> .Content > .Control :is(button[role="checkbox"], button[role="radio"], button[role="switch"], input[type="checkbox"], input[type="radio"]):not([disabled], [data-disabled], [aria-disabled="true"], [aria-hidden="true"]))) > .LabelGroup .Label, [data-platform="android"] .Field:where([data-row]:not([data-orientation="vertical"])):has(> .Content > .Control > :is(button, [role="button"])[aria-haspopup]:not([aria-haspopup="false"]):is([disabled], [data-disabled], [aria-disabled="true"])) > .LabelGroup .Label, [data-platform="android"] .Field:where([data-row][data-disabled]) > .LabelGroup .Label {
|
|
1074
|
+
color: color-mix(in srgb, var(--color-text) 50%, transparent);
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
/* Android's rows ripple when held, a switch row too (android.css, Android press ripple), in the row's own shape: the
|
|
1078
|
+
card's corners on its first and last rows (FieldGroup). No flat fill. */
|
|
1079
|
+
[data-platform="android"] .Field:where([data-row]:not([data-orientation="vertical"]):not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(button[role="switch"], button[role="checkbox"], button[role="radio"], input[type="checkbox"], input[type="radio"]):not([disabled], [data-disabled], [aria-disabled="true"], [aria-hidden="true"])):active:not(:has(:is(button, a, [role="button"]):not([role="checkbox"], [role="radio"], [role="switch"]):active)) {
|
|
1080
|
+
background: none;
|
|
1081
|
+
transition-duration: 0s;
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
[data-platform="android"] .Field:where([data-row]:not([data-orientation="vertical"]):not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(button[role="switch"], button[role="checkbox"], button[role="radio"], input[type="checkbox"], input[type="radio"]):not([disabled], [data-disabled], [aria-disabled="true"], [aria-hidden="true"]))[data-ripple],
|
|
1085
|
+
[data-platform="android"] .Field:where([data-row]:not([data-orientation="vertical"]):not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(button[role="switch"], button[role="checkbox"], button[role="radio"], input[type="checkbox"], input[type="radio"]):not([disabled], [data-disabled], [aria-disabled="true"], [aria-hidden="true"]))[data-ripple]:active:not(:has(:is(button, a, [role="button"]):not([role="checkbox"], [role="radio"], [role="switch"]):active)) {
|
|
1086
|
+
background-image: var(--android-ripple-image);
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
/* A value row (a Select or a date at its end) is one press, which opens its choices (Field.tsx forwards it): held,
|
|
1090
|
+
on its value or anywhere on it, the row ripples in its own shape (androidRipple.ts gives the row the press of the
|
|
1091
|
+
value in it), in a card's row selector in a card (FieldGroup). */
|
|
1092
|
+
[data-platform="android"] .Field:where([data-row]:not([data-orientation="vertical"])):has(> .Content > .Control [data-slot="select-control"]:not([data-disabled]))[data-ripple] {
|
|
1093
|
+
background-image: var(--android-ripple-image);
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
/* A row's lone checkbox leads the row, as Android's multi-select lists: its circle 22 in from the card's edge (its
|
|
1097
|
+
center at 32), the row's text and the line above the row at 64, the circle centered in the row's height. Beside
|
|
1098
|
+
an icon it stays at the row's end, 21 in from the card's edge; a radio there stands 23 in. Their 48 targets
|
|
1099
|
+
take no room: the row keeps its height. */
|
|
1100
|
+
[data-platform="android"] .Field:where([data-row]:not([data-fill], [data-orientation="vertical"])):has(> .Content > .Control > :only-child:not([data-has-label]) > [role="checkbox"]):not(:has(> .Icon, > .Content > .Control > :only-child > [role="checkbox"] ~ [role="checkbox"], > .Content > .Control > :only-child > :not([role="checkbox"], input[type="checkbox"][aria-hidden="true"]))) {
|
|
1101
|
+
--field-group-separator-inset-start: 64px;
|
|
1102
|
+
|
|
1103
|
+
position: relative;
|
|
1104
|
+
padding-inline-start: 64px;
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
[data-platform="android"] .Field:where([data-row]:not([data-fill], [data-orientation="vertical"])):has(> .Content > .Control > :only-child:not([data-has-label]) > [role="checkbox"]):not(:has(> .Icon, > .Content > .Control > :only-child > [role="checkbox"] ~ [role="checkbox"], > .Content > .Control > :only-child > :not([role="checkbox"], input[type="checkbox"][aria-hidden="true"]))):not(:has(> .Action)) {
|
|
1108
|
+
grid-template-columns: minmax(0, 1fr);
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
[data-platform="android"] .Field:where([data-row]:not([data-fill], [data-orientation="vertical"])):has(> .Content > .Control > :only-child:not([data-has-label]) > [role="checkbox"]):not(:has(> .Icon, > .Content > .Control > :only-child > [role="checkbox"] ~ [role="checkbox"], > .Content > .Control > :only-child > :not([role="checkbox"], input[type="checkbox"][aria-hidden="true"]))) > .Content > .Control {
|
|
1112
|
+
position: absolute;
|
|
1113
|
+
grid-area: auto;
|
|
1114
|
+
inset-inline-start: 22px;
|
|
1115
|
+
top: 50%;
|
|
1116
|
+
display: flex;
|
|
1117
|
+
margin: 0;
|
|
1118
|
+
translate: 0 -50%;
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
[data-platform="android"] .Field:where([data-row]:not([data-orientation="vertical"])):has(> .Icon) > .Content > .Control > :only-child:not([data-has-label]):has(> [role="checkbox"]):not(:has(> [role="checkbox"] ~ [role="checkbox"], > :not([role="checkbox"], input[type="checkbox"][aria-hidden="true"]))) {
|
|
1122
|
+
margin-inline-end: -14px;
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
[data-platform="android"] .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > :only-child > label:only-child:not([data-has-label]) > [data-radio-indicator]:only-child:has(> [role="radio"]):not(:has(> [role="radio"] ~ [role="radio"], > :not([role="radio"], input[type="radio"][aria-hidden="true"]))) {
|
|
1126
|
+
margin-block: -14px;
|
|
1127
|
+
margin-inline-end: -12px;
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
/* A date in a row is the row's value, as a Select's (SelectControl.module.css): no capsule, the date 16/20 in the
|
|
1131
|
+
accent (a date and a time 8 apart), the placeholder the text at 35%, at half when disabled */
|
|
1132
|
+
[data-platform="android"] .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"]) {
|
|
1133
|
+
padding-inline: 0;
|
|
1134
|
+
border-radius: 0;
|
|
1135
|
+
color: var(--color-background-accent-solid);
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
[data-platform="android"] .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"])::before {
|
|
1139
|
+
background-color: transparent;
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1142
|
+
[data-platform="android"] .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"])[data-selected="false"] {
|
|
1143
|
+
color: color-mix(in srgb, var(--color-text) 35%, transparent);
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
[data-platform="android"] .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"])[data-disabled] {
|
|
1147
|
+
color: color-mix(in srgb, var(--color-background-accent-solid) 50%, transparent);
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
[data-platform="android"] .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"])[data-disabled][data-selected="false"] {
|
|
1151
|
+
color: color-mix(in srgb, var(--color-text) 17.5%, transparent);
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
[data-platform="android"] .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"])[aria-expanded="true"]:not([data-disabled]) {
|
|
1155
|
+
color: var(--color-background-accent-solid);
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
[data-platform="android"] .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"]):has([data-date-parts]) [data-date-part] {
|
|
1159
|
+
padding: 0;
|
|
1160
|
+
background-color: transparent;
|
|
1161
|
+
}
|
|
809
1162
|
}
|
|
810
1163
|
:where([data-plex-layout="phone"]) .Field:where([data-row]) {
|
|
811
1164
|
--field-description-color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
@@ -1219,6 +1572,351 @@
|
|
|
1219
1572
|
|
|
1220
1573
|
:where([data-plex-layout="phone"]) [data-field-columns] .Field:where([data-row]:not([data-orientation="vertical"])) .Control > :is([data-variant="outline"], [data-variant="soft"])[role="button"] {
|
|
1221
1574
|
width: 100%;
|
|
1575
|
+
}
|
|
1576
|
+
|
|
1577
|
+
/* The Plex Android look (`data-platform="android"`), as @plexui/react-native's ListItem on Android (the row tokens
|
|
1578
|
+
are in android.css): the label 16/20 and its description 13/16 4 under it; a field at the row's end is a card's
|
|
1579
|
+
bare field, its text 17/20 from 14 after the label's 16 (from the column with `columns`), its hint a light gray,
|
|
1580
|
+
its caret the text color; an error a 13/16 line in the error color 4 under the row's line, with no mark; a
|
|
1581
|
+
disabled row fades to half; a held row (a switch row too) shows the list selector; a symbol (24) leads 20 in and
|
|
1582
|
+
a tile 18 in, the text following both at 64; a row of a text field is 54. */
|
|
1583
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row]) {
|
|
1584
|
+
--field-label-description-gap: 4px;
|
|
1585
|
+
--field-error-color: var(--android-danger-text);
|
|
1586
|
+
--mobile-field-error-font-size: 13px;
|
|
1587
|
+
--mobile-field-error-line-height: 16px;
|
|
1588
|
+
--mobile-field-error-icon-display: none;
|
|
1589
|
+
--input-placeholder-text-color: var(--android-hint);
|
|
1590
|
+
}
|
|
1591
|
+
|
|
1592
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row]):has(> .Icon > svg) {
|
|
1593
|
+
--field-row-icon-offset: -1px;
|
|
1594
|
+
--field-row-icon-size: 24px;
|
|
1595
|
+
--field-row-icon-gap: 20px;
|
|
1596
|
+
}
|
|
1597
|
+
|
|
1598
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row]:not([data-orientation="vertical"])):has(> .Content > .Control > [data-variant] > :is(input, textarea)) {
|
|
1599
|
+
min-height: 54px;
|
|
1600
|
+
}
|
|
1601
|
+
|
|
1602
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row]) .Control [data-slot="input"],
|
|
1603
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row]) .Control [data-slot="input"] > input,
|
|
1604
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row]) .Control textarea,
|
|
1605
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row]) .Control [data-slot="input-group-control"] {
|
|
1606
|
+
font-size: 17px;
|
|
1607
|
+
line-height: 20px;
|
|
1608
|
+
caret-color: var(--color-text);
|
|
1609
|
+
}
|
|
1610
|
+
|
|
1611
|
+
/* A row's multi-line field starts one line tall and grows as it is written in, up to its maximum rows, as the
|
|
1612
|
+
reference's text fields: no empty lines are held under the hint (its `rows` still sets the lines elsewhere). */
|
|
1613
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row]) .Control > [data-variant]:has(> textarea) {
|
|
1614
|
+
--textarea-line-height: 20px;
|
|
1615
|
+
--textarea-min-height: calc(var(--textarea-gutter-y) * 2 + var(--textarea-line-height));
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1618
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row]:not([data-orientation="vertical"])) .Control > [data-variant] > input {
|
|
1619
|
+
text-align: start;
|
|
1620
|
+
}
|
|
1621
|
+
|
|
1622
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row]:not([data-orientation="vertical"])) .Control:has(> [data-variant] > input, > [data-variant] > textarea) {
|
|
1623
|
+
margin-inline-start: 14px;
|
|
1624
|
+
}
|
|
1625
|
+
|
|
1626
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] [data-field-columns] .Field:where([data-row]:not([data-orientation="vertical"])) .Control:has(> [data-variant] > input, > [data-variant] > textarea) {
|
|
1627
|
+
margin-inline-start: 0;
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1630
|
+
/* A field under its label (13/16, 4 over it, 10 above and below: android.css) or alone in the row: alone, its
|
|
1631
|
+
value stands 17 above and below, a 54dp row, and starts at the row's text (21 in), where the line above the row
|
|
1632
|
+
starts. The reference sets it 22 in, a point off its own rows and headers: here a card's text keeps one edge. */
|
|
1633
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row][data-label-hidden][data-orientation="vertical"]):has(> .Content > .Control > [data-variant] > :is(input, textarea)):not(:has(> .LabelGroup > .Description, > .Content > :not(.Control))) {
|
|
1634
|
+
--field-group-separator-inset-start: var(--field-row-padding-inline);
|
|
1635
|
+
|
|
1636
|
+
padding-block: 17px;
|
|
1637
|
+
}
|
|
1638
|
+
|
|
1639
|
+
/* A row's text field being typed in: the line under the row turns the accent, 2 thick, spreading from its middle in
|
|
1640
|
+
150ms, as the line of an input card's field (below) and the reference's text fields; while the field is invalid
|
|
1641
|
+
it is the error color. It lies over the card's separator under the row (the next row's line), from where that
|
|
1642
|
+
line starts to the card's edge. A card's last row, where no separator runs, ends 8 lower (a clear border, so its
|
|
1643
|
+
padding and the line's place are the rows' above): its line stands as far under its text as theirs and 7 over
|
|
1644
|
+
the card's edge (on the edge it read as the card's border), to where the card's 16 corner has curved in at that
|
|
1645
|
+
height. An input card's field draws its own line. */
|
|
1646
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row]:not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="hidden"], [type="file"], [type="color"], [aria-hidden="true"]), textarea)) {
|
|
1647
|
+
position: relative;
|
|
1648
|
+
}
|
|
1649
|
+
|
|
1650
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row]:not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="hidden"], [type="file"], [type="color"], [aria-hidden="true"]), textarea))::before {
|
|
1651
|
+
content: "";
|
|
1652
|
+
position: absolute;
|
|
1653
|
+
z-index: 1;
|
|
1654
|
+
inset-inline: var(--field-group-separator-inset-start, var(--field-group-separator-inset, 0px)) 0;
|
|
1655
|
+
bottom: -1px;
|
|
1656
|
+
height: 2px;
|
|
1657
|
+
background: var(--android-accent-text);
|
|
1658
|
+
pointer-events: none;
|
|
1659
|
+
transform: scaleX(0);
|
|
1660
|
+
transition: transform 150ms ease-in-out;
|
|
1661
|
+
}
|
|
1662
|
+
|
|
1663
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row]:not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="hidden"], [type="file"], [type="color"], [aria-hidden="true"]), textarea)):last-child {
|
|
1664
|
+
/* The 54 row and the 8 under it */
|
|
1665
|
+
min-height: 62px;
|
|
1666
|
+
border-block-end: 8px solid transparent;
|
|
1667
|
+
}
|
|
1668
|
+
|
|
1669
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row]:not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="hidden"], [type="file"], [type="color"], [aria-hidden="true"]), textarea)):last-child::before {
|
|
1670
|
+
inset-inline-end: 3px;
|
|
1671
|
+
}
|
|
1672
|
+
|
|
1673
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row]:not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="hidden"], [type="file"], [type="color"], [aria-hidden="true"]), textarea)):has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="range"], [aria-hidden="true"]), textarea):focus:not([readonly]))::before {
|
|
1674
|
+
transform: scaleX(1);
|
|
1675
|
+
}
|
|
1676
|
+
|
|
1677
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row]:not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="hidden"], [type="file"], [type="color"], [aria-hidden="true"]), textarea)):has(> .Content > .Control :is(input, textarea)[aria-invalid="true"])::before {
|
|
1678
|
+
background: var(--android-danger-text);
|
|
1679
|
+
transform: scaleX(1);
|
|
1680
|
+
}
|
|
1681
|
+
|
|
1682
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1683
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row]:not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="hidden"], [type="file"], [type="color"], [aria-hidden="true"]), textarea))::before {
|
|
1684
|
+
transition: none;
|
|
1685
|
+
}
|
|
1686
|
+
}
|
|
1687
|
+
|
|
1688
|
+
/* The reference's input card: a text field under its label (a vertical row with the label shown) is a field with a
|
|
1689
|
+
floating label and a line under it (a row with a hidden label stays the hint cell above). The row is 64 tall, the
|
|
1690
|
+
value 16/20 at the row's text (21 in; the reference sets its fields 17 in, off its own rows and headers, so a card
|
|
1691
|
+
with a header here keeps one edge), its baseline 38.5 under the row's top; the line runs as far in from both of
|
|
1692
|
+
the card's edges, its
|
|
1693
|
+
top 46 under the row's top (7.6 under the baseline): 1 in a light gray, 2 in the accent while the field is edited
|
|
1694
|
+
(spreading from its middle in 150ms), 2 in the error color with an error. Empty and unfocused, the label stands in
|
|
1695
|
+
the value's place as the hint (16 in the hint's gray; a placeholder shows only while the field is edited); with
|
|
1696
|
+
the focus or a value it floats to 0.7 of its size (11.2) in the accent, its baseline 21.3 over the value's, in
|
|
1697
|
+
200ms. The first field of a card stands 6 lower in its 64 (the line 52 under the card's top). An error is a 13/16
|
|
1698
|
+
line 8 under the value's line. The value's 20px line starts 22.25 under the row's top, which sets the 16px type's
|
|
1699
|
+
baseline at 38.5. A Textarea is such a field too: the row grows with its lines and the line stays under the last
|
|
1700
|
+
one (the Control draws it, 2.75 under the value). The field's line stands for the card's separator: none above
|
|
1701
|
+
the field nor under it. A field with no placeholder gets a blank one on Android from Field, so
|
|
1702
|
+
:placeholder-shown tells an empty field. */
|
|
1703
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)) {
|
|
1704
|
+
--android-float-top: 22.25px;
|
|
1705
|
+
|
|
1706
|
+
position: relative;
|
|
1707
|
+
min-height: 64px;
|
|
1708
|
+
padding: var(--android-float-top) var(--field-row-padding-inline) calc(64px - var(--android-float-top) - 20px);
|
|
1709
|
+
/* Not a text row's last-row room: the field's line has its own place */
|
|
1710
|
+
border-block-end-width: 0;
|
|
1711
|
+
}
|
|
1712
|
+
|
|
1713
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)):first-child {
|
|
1714
|
+
--android-float-top: 28.25px;
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1717
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow))::before, :where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow))::after, :where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)) + [data-row]::after, :where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)) + [data-sortable] > [data-row]:first-child::after {
|
|
1718
|
+
content: none;
|
|
1719
|
+
}
|
|
1720
|
+
|
|
1721
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)):has(> .Content > [role="alert"]) {
|
|
1722
|
+
row-gap: 8px;
|
|
1723
|
+
padding-bottom: 12px;
|
|
1724
|
+
}
|
|
1725
|
+
|
|
1726
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)) > .Content > .Control > :is([data-slot="input"], [data-slot="textarea"]), :where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)) > .Content > .Control > :is([data-slot="input"], [data-slot="textarea"]) > :is(input, textarea) {
|
|
1727
|
+
font-size: 16px;
|
|
1728
|
+
line-height: 20px;
|
|
1729
|
+
}
|
|
1730
|
+
|
|
1731
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)):not(:focus-within) > .Content > .Control > [data-variant] > :is(input, textarea)::-moz-placeholder {
|
|
1732
|
+
color: transparent;
|
|
1733
|
+
}
|
|
1734
|
+
|
|
1735
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)):not(:focus-within) > .Content > .Control > [data-variant] > :is(input, textarea)::placeholder {
|
|
1736
|
+
color: transparent;
|
|
1737
|
+
}
|
|
1738
|
+
|
|
1739
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)) > .LabelGroup {
|
|
1740
|
+
position: absolute;
|
|
1741
|
+
grid-area: auto;
|
|
1742
|
+
inset-inline: var(--field-row-padding-inline);
|
|
1743
|
+
top: var(--android-float-top);
|
|
1744
|
+
display: block;
|
|
1745
|
+
width: auto;
|
|
1746
|
+
height: 20px;
|
|
1747
|
+
margin: 0;
|
|
1748
|
+
overflow: visible;
|
|
1749
|
+
clip-path: none;
|
|
1750
|
+
pointer-events: none;
|
|
1751
|
+
}
|
|
1752
|
+
|
|
1753
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)) > .LabelGroup > .Label {
|
|
1754
|
+
position: static;
|
|
1755
|
+
display: block;
|
|
1756
|
+
width: calc(100% / 0.7);
|
|
1757
|
+
height: auto;
|
|
1758
|
+
margin: 0;
|
|
1759
|
+
overflow: hidden;
|
|
1760
|
+
clip-path: none;
|
|
1761
|
+
color: var(--android-accent-text);
|
|
1762
|
+
font-size: 16px;
|
|
1763
|
+
line-height: 20px;
|
|
1764
|
+
font-weight: var(--font-weight-normal);
|
|
1765
|
+
white-space: nowrap;
|
|
1766
|
+
text-overflow: ellipsis;
|
|
1767
|
+
transform-origin: 0 0;
|
|
1768
|
+
translate: 0 -16.5px;
|
|
1769
|
+
scale: 0.7;
|
|
1770
|
+
transition:
|
|
1771
|
+
translate 200ms cubic-bezier(0.23, 1, 0.32, 1),
|
|
1772
|
+
scale 200ms cubic-bezier(0.23, 1, 0.32, 1),
|
|
1773
|
+
width 200ms cubic-bezier(0.23, 1, 0.32, 1),
|
|
1774
|
+
color 200ms cubic-bezier(0.23, 1, 0.32, 1);
|
|
1775
|
+
}
|
|
1776
|
+
|
|
1777
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)):not(:focus-within):has(> .Content > .Control > [data-variant] > :is(input, textarea):-moz-placeholder-shown) > .LabelGroup > .Label {
|
|
1778
|
+
width: 100%;
|
|
1779
|
+
color: var(--android-hint);
|
|
1780
|
+
translate: 0 0;
|
|
1781
|
+
scale: 1;
|
|
1782
|
+
}
|
|
1783
|
+
|
|
1784
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)):not(:focus-within):has(> .Content > .Control > [data-variant] > :is(input, textarea):placeholder-shown) > .LabelGroup > .Label {
|
|
1785
|
+
width: 100%;
|
|
1786
|
+
color: var(--android-hint);
|
|
1787
|
+
translate: 0 0;
|
|
1788
|
+
scale: 1;
|
|
1789
|
+
}
|
|
1790
|
+
|
|
1791
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)) > .Content > .Control {
|
|
1792
|
+
position: relative;
|
|
1793
|
+
}
|
|
1794
|
+
|
|
1795
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)) > .Content > .Control::after {
|
|
1796
|
+
content: "";
|
|
1797
|
+
position: absolute;
|
|
1798
|
+
inset-inline: 0;
|
|
1799
|
+
top: calc(100% + 2.75px);
|
|
1800
|
+
height: 2px;
|
|
1801
|
+
background:
|
|
1802
|
+
linear-gradient(var(--android-accent-text), var(--android-accent-text)) center bottom / 0% 2px no-repeat,
|
|
1803
|
+
linear-gradient(var(--android-field-line), var(--android-field-line)) center bottom / 100% 1px no-repeat;
|
|
1804
|
+
pointer-events: none;
|
|
1805
|
+
transition: background-size 150ms ease-in-out;
|
|
1806
|
+
}
|
|
1807
|
+
|
|
1808
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)):focus-within > .Content > .Control::after {
|
|
1809
|
+
background-size: 100% 2px, 100% 1px;
|
|
1810
|
+
}
|
|
1811
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)):has(> .Content > .Control > [data-variant] > [aria-invalid="true"]) > .LabelGroup > .Label {
|
|
1812
|
+
color: var(--android-danger-text);
|
|
1813
|
+
}
|
|
1814
|
+
|
|
1815
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)):has(> .Content > .Control > [data-variant] > [aria-invalid="true"]) > .Content > .Control::after {
|
|
1816
|
+
background: var(--android-danger-text);
|
|
1817
|
+
}
|
|
1818
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)):has(> .Content > .Control > [data-variant] > :disabled) > .LabelGroup, :where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)):has(> .Content > .Control > [data-variant] > :disabled) > .Content > .Control::after {
|
|
1819
|
+
opacity: 0.5;
|
|
1820
|
+
}
|
|
1821
|
+
|
|
1822
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1823
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)) > .LabelGroup > .Label, :where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row][data-orientation="vertical"]:not([data-label-hidden])):has(> .Content > .Control > :is([data-slot="input"], [data-slot="textarea"])[data-variant] > :is(input, textarea)):not(:has(> .Icon, > .Action, > .LabelGroup > .Description, > .LabelGroup > .LabelRow)) > .Content > .Control::after {
|
|
1824
|
+
transition: none;
|
|
1825
|
+
}
|
|
1826
|
+
}
|
|
1827
|
+
|
|
1828
|
+
/* A disabled row fades to half, its value and control too (they dim themselves) */
|
|
1829
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row]:not([data-orientation="vertical"]):not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(button[role="checkbox"], button[role="radio"], button[role="switch"], input[type="checkbox"], input[type="radio"]):is([disabled], [data-disabled], [aria-disabled="true"])):not(:has(> .Content > .Control :is(button[role="checkbox"], button[role="radio"], button[role="switch"], input[type="checkbox"], input[type="radio"]):not([disabled], [data-disabled], [aria-disabled="true"], [aria-hidden="true"]))), :where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row]:not([data-orientation="vertical"])):has(> .Content > .Control > :is(button, [role="button"])[aria-haspopup]:not([aria-haspopup="false"]):is([disabled], [data-disabled], [aria-disabled="true"])), :where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row][data-disabled]) {
|
|
1830
|
+
--field-description-color: color-mix(in srgb, var(--mobile-label-secondary, var(--color-text-secondary)) 50%, transparent);
|
|
1831
|
+
}
|
|
1832
|
+
|
|
1833
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row]:not([data-orientation="vertical"]):not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(button[role="checkbox"], button[role="radio"], button[role="switch"], input[type="checkbox"], input[type="radio"]):is([disabled], [data-disabled], [aria-disabled="true"])):not(:has(> .Content > .Control :is(button[role="checkbox"], button[role="radio"], button[role="switch"], input[type="checkbox"], input[type="radio"]):not([disabled], [data-disabled], [aria-disabled="true"], [aria-hidden="true"]))) > .LabelGroup .Label, :where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row]:not([data-orientation="vertical"])):has(> .Content > .Control > :is(button, [role="button"])[aria-haspopup]:not([aria-haspopup="false"]):is([disabled], [data-disabled], [aria-disabled="true"])) > .LabelGroup .Label, :where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row][data-disabled]) > .LabelGroup .Label {
|
|
1834
|
+
color: color-mix(in srgb, var(--color-text) 50%, transparent);
|
|
1835
|
+
}
|
|
1836
|
+
|
|
1837
|
+
/* Android's rows ripple when held, a switch row too (android.css, Android press ripple), in the row's own shape: the
|
|
1838
|
+
card's corners on its first and last rows (FieldGroup). No flat fill. */
|
|
1839
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row]:not([data-orientation="vertical"]):not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(button[role="switch"], button[role="checkbox"], button[role="radio"], input[type="checkbox"], input[type="radio"]):not([disabled], [data-disabled], [aria-disabled="true"], [aria-hidden="true"])):active:not(:has(:is(button, a, [role="button"]):not([role="checkbox"], [role="radio"], [role="switch"]):active)) {
|
|
1840
|
+
background: none;
|
|
1841
|
+
transition-duration: 0s;
|
|
1842
|
+
}
|
|
1843
|
+
|
|
1844
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row]:not([data-orientation="vertical"]):not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(button[role="switch"], button[role="checkbox"], button[role="radio"], input[type="checkbox"], input[type="radio"]):not([disabled], [data-disabled], [aria-disabled="true"], [aria-hidden="true"]))[data-ripple], :where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row]:not([data-orientation="vertical"]):not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(button[role="switch"], button[role="checkbox"], button[role="radio"], input[type="checkbox"], input[type="radio"]):not([disabled], [data-disabled], [aria-disabled="true"], [aria-hidden="true"]))[data-ripple]:active:not(:has(:is(button, a, [role="button"]):not([role="checkbox"], [role="radio"], [role="switch"]):active)) {
|
|
1845
|
+
background-image: var(--android-ripple-image);
|
|
1846
|
+
}
|
|
1847
|
+
|
|
1848
|
+
/* A value row (a Select or a date at its end) is one press, which opens its choices (Field.tsx forwards it): held,
|
|
1849
|
+
on its value or anywhere on it, the row ripples in its own shape (androidRipple.ts gives the row the press of the
|
|
1850
|
+
value in it), in a card's row selector in a card (FieldGroup). */
|
|
1851
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row]:not([data-orientation="vertical"])):has(> .Content > .Control [data-slot="select-control"]:not([data-disabled]))[data-ripple] {
|
|
1852
|
+
background-image: var(--android-ripple-image);
|
|
1853
|
+
}
|
|
1854
|
+
|
|
1855
|
+
/* A row's lone checkbox leads the row, as Android's multi-select lists: its circle 22 in from the card's edge (its
|
|
1856
|
+
center at 32), the row's text and the line above the row at 64, the circle centered in the row's height. Beside
|
|
1857
|
+
an icon it stays at the row's end, 21 in from the card's edge; a radio there stands 23 in. Their 48 targets
|
|
1858
|
+
take no room: the row keeps its height. */
|
|
1859
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row]:not([data-fill], [data-orientation="vertical"])):has(> .Content > .Control > :only-child:not([data-has-label]) > [role="checkbox"]):not(:has(> .Icon, > .Content > .Control > :only-child > [role="checkbox"] ~ [role="checkbox"], > .Content > .Control > :only-child > :not([role="checkbox"], input[type="checkbox"][aria-hidden="true"]))) {
|
|
1860
|
+
--field-group-separator-inset-start: 64px;
|
|
1861
|
+
|
|
1862
|
+
position: relative;
|
|
1863
|
+
padding-inline-start: 64px;
|
|
1864
|
+
}
|
|
1865
|
+
|
|
1866
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row]:not([data-fill], [data-orientation="vertical"])):has(> .Content > .Control > :only-child:not([data-has-label]) > [role="checkbox"]):not(:has(> .Icon, > .Content > .Control > :only-child > [role="checkbox"] ~ [role="checkbox"], > .Content > .Control > :only-child > :not([role="checkbox"], input[type="checkbox"][aria-hidden="true"]))):not(:has(> .Action)) {
|
|
1867
|
+
grid-template-columns: minmax(0, 1fr);
|
|
1868
|
+
}
|
|
1869
|
+
|
|
1870
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row]:not([data-fill], [data-orientation="vertical"])):has(> .Content > .Control > :only-child:not([data-has-label]) > [role="checkbox"]):not(:has(> .Icon, > .Content > .Control > :only-child > [role="checkbox"] ~ [role="checkbox"], > .Content > .Control > :only-child > :not([role="checkbox"], input[type="checkbox"][aria-hidden="true"]))) > .Content > .Control {
|
|
1871
|
+
position: absolute;
|
|
1872
|
+
grid-area: auto;
|
|
1873
|
+
inset-inline-start: 22px;
|
|
1874
|
+
top: 50%;
|
|
1875
|
+
display: flex;
|
|
1876
|
+
margin: 0;
|
|
1877
|
+
translate: 0 -50%;
|
|
1878
|
+
}
|
|
1879
|
+
|
|
1880
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row]:not([data-orientation="vertical"])):has(> .Icon) > .Content > .Control > :only-child:not([data-has-label]):has(> [role="checkbox"]):not(:has(> [role="checkbox"] ~ [role="checkbox"], > :not([role="checkbox"], input[type="checkbox"][aria-hidden="true"]))) {
|
|
1881
|
+
margin-inline-end: -14px;
|
|
1882
|
+
}
|
|
1883
|
+
|
|
1884
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > :only-child > label:only-child:not([data-has-label]) > [data-radio-indicator]:only-child:has(> [role="radio"]):not(:has(> [role="radio"] ~ [role="radio"], > :not([role="radio"], input[type="radio"][aria-hidden="true"]))) {
|
|
1885
|
+
margin-block: -14px;
|
|
1886
|
+
margin-inline-end: -12px;
|
|
1887
|
+
}
|
|
1888
|
+
|
|
1889
|
+
/* A date in a row is the row's value, as a Select's (SelectControl.module.css): no capsule, the date 16/20 in the
|
|
1890
|
+
accent (a date and a time 8 apart), the placeholder the text at 35%, at half when disabled */
|
|
1891
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"]) {
|
|
1892
|
+
padding-inline: 0;
|
|
1893
|
+
border-radius: 0;
|
|
1894
|
+
color: var(--color-background-accent-solid);
|
|
1895
|
+
}
|
|
1896
|
+
|
|
1897
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"])::before {
|
|
1898
|
+
background-color: transparent;
|
|
1899
|
+
}
|
|
1900
|
+
|
|
1901
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"])[data-selected="false"] {
|
|
1902
|
+
color: color-mix(in srgb, var(--color-text) 35%, transparent);
|
|
1903
|
+
}
|
|
1904
|
+
|
|
1905
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"])[data-disabled] {
|
|
1906
|
+
color: color-mix(in srgb, var(--color-background-accent-solid) 50%, transparent);
|
|
1907
|
+
}
|
|
1908
|
+
|
|
1909
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"])[data-disabled][data-selected="false"] {
|
|
1910
|
+
color: color-mix(in srgb, var(--color-text) 17.5%, transparent);
|
|
1911
|
+
}
|
|
1912
|
+
|
|
1913
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"])[aria-expanded="true"]:not([data-disabled]) {
|
|
1914
|
+
color: var(--color-background-accent-solid);
|
|
1915
|
+
}
|
|
1916
|
+
|
|
1917
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"]):has([data-date-parts]) [data-date-part] {
|
|
1918
|
+
padding: 0;
|
|
1919
|
+
background-color: transparent;
|
|
1222
1920
|
}/* =============================================
|
|
1223
1921
|
Hidden label (hideLabel)
|
|
1224
1922
|
The label still names the control for assistive
|
|
@@ -1240,5 +1938,20 @@
|
|
|
1240
1938
|
order: 1;
|
|
1241
1939
|
}.Field:where([data-row][data-label-hidden][data-orientation="vertical"]) > .LabelGroup {
|
|
1242
1940
|
grid-row: auto;
|
|
1941
|
+
}/* On a phone a row pressed as a whole (its check, radio, switch or value takes the press) is a control, not text: a
|
|
1942
|
+
long press or a double tap does not select its label nor call up the text menu, as a native list row. A row with a
|
|
1943
|
+
text field keeps its text selectable. */@media (max-width: 767px) {
|
|
1944
|
+
.Field:where([data-row]):has(> .Content > .Control :is(button[role="checkbox"], button[role="radio"], button[role="switch"], input[type="checkbox"], input[type="radio"], [data-slot="select-control"], [data-date-picker])):not(:has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="hidden"]), textarea, [contenteditable="true"]))) {
|
|
1945
|
+
-webkit-touch-callout: none;
|
|
1946
|
+
-webkit-user-select: none;
|
|
1947
|
+
-moz-user-select: none;
|
|
1948
|
+
user-select: none;
|
|
1949
|
+
}
|
|
1243
1950
|
}
|
|
1951
|
+
:where([data-plex-layout="phone"]) .Field:where([data-row]):has(> .Content > .Control :is(button[role="checkbox"], button[role="radio"], button[role="switch"], input[type="checkbox"], input[type="radio"], [data-slot="select-control"], [data-date-picker])):not(:has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="hidden"]), textarea, [contenteditable="true"]))) {
|
|
1952
|
+
-webkit-touch-callout: none;
|
|
1953
|
+
-webkit-user-select: none;
|
|
1954
|
+
-moz-user-select: none;
|
|
1955
|
+
user-select: none;
|
|
1956
|
+
}
|
|
1244
1957
|
}
|