@plexui/styles 0.16.7 → 0.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/Accordion/Accordion.module.css +74 -12
- package/dist/es/components/Alert/Alert.module.css +196 -0
- package/dist/es/components/Breadcrumb/Breadcrumb.module.css +32 -1
- package/dist/es/components/Button/Button.module.css +483 -5
- package/dist/es/components/Button/NavigationButton.module.css +195 -0
- package/dist/es/components/Checkbox/Checkbox.module.css +246 -0
- package/dist/es/components/CodeBlock/CodeBlock.module.css +15 -1
- package/dist/es/components/DatePicker/Calendar.module.css +216 -0
- package/dist/es/components/DatePicker/CalendarNavigationIcon.module.css +19 -0
- package/dist/es/components/DateRangePicker/Calendar.module.css +200 -0
- package/dist/es/components/DateRangePicker/Trigger.module.css +15 -1
- package/dist/es/components/Dialog/Dialog.module.css +456 -0
- package/dist/es/components/Field/Field.module.css +713 -0
- package/dist/es/components/FieldGroup/FieldGroup.module.css +272 -0
- package/dist/es/components/FloatingLabelInput/FloatingLabelInput.module.css +49 -0
- package/dist/es/components/FloatingLabelSelect/FloatingLabelSelect.module.css +81 -0
- package/dist/es/components/Input/Input.module.css +184 -0
- package/dist/es/components/InputGroup/InputGroup.module.css +17 -0
- package/dist/es/components/MarkdownEditor/MarkdownEditor.module.css +60 -0
- package/dist/es/components/Menu/Menu.module.css +244 -0
- package/dist/es/components/NavigationRow/NavigationRow.module.css +82 -0
- package/dist/es/components/Page/Page.module.css +278 -0
- package/dist/es/components/PageControl/PageControl.module.css +35 -0
- package/dist/es/components/Popover/Popover.module.css +20 -0
- package/dist/es/components/RadioGroup/RadioGroup.module.css +151 -0
- package/dist/es/components/Select/Select.module.css +315 -0
- package/dist/es/components/SelectControl/SelectControl.module.css +104 -0
- package/dist/es/components/Sidebar/Sidebar.module.css +210 -4
- package/dist/es/components/Skeleton/Skeleton.module.css +50 -0
- package/dist/es/components/Slider/Slider.module.css +12 -1
- package/dist/es/components/Switch/Switch.module.css +143 -0
- package/dist/es/components/TabBar/TabBar.module.css +354 -0
- package/dist/es/components/Tabs/Tabs.module.css +162 -0
- package/dist/es/components/Tip/Tip.module.css +225 -0
- package/dist/es/components/Toast/Toast.module.css +207 -0
- package/dist/es/components/Toolbar/Toolbar.module.css +1542 -0
- package/dist/es/components/Tooltip/Tooltip.module.css +44 -0
- package/dist/es/styles/android.css +882 -0
- package/dist/es/styles/touch.css +672 -0
- package/dist/es/styles/variables-components.css +4 -0
- package/dist/es/styles/variables-semantic.css +28 -0
- package/dist/es/tokens/resolve.js +2 -0
- package/dist/es/tokens/resolve.js.map +1 -1
- package/dist/es/tokens/tokens.generated.js +64 -10
- package/dist/es/tokens/tokens.generated.js.map +1 -1
- package/dist/types/tokens/resolve.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,882 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* The Plex Android look of the phone layer (touch.css). The phone rules draw iOS 26 by default; a document whose
|
|
3
|
+
* root has `data-platform="android"` takes the Android look instead: PlexUIProvider sets it on an Android browser
|
|
4
|
+
* (`platform="auto"`, the default) or when asked (`platform="android"`), and the docs' Android phone frame sets it.
|
|
5
|
+
*
|
|
6
|
+
* It follows @plexui/react-native on Android (packages/react-native/src/components, their `android` branches; decision
|
|
7
|
+
* 0026): the reference messenger's numbers first, then Google's own apps, then Compose / Material 3. Component rules
|
|
8
|
+
* live next to their iOS phone rules in each component's stylesheet, under `[data-platform="android"]`; shared values
|
|
9
|
+
* are here.
|
|
10
|
+
*/
|
|
11
|
+
@media (max-width: 767px) {
|
|
12
|
+
:root[data-platform="android"] {
|
|
13
|
+
/* A bottom bar stands on the line of the 56dp tab bar, 8dp over the gesture bar: its 46dp circles 13dp over the
|
|
14
|
+
inset (iOS: 28 from the edge, the 34 home indicator less 6), 16dp from the screen's sides (iOS 28). Without an
|
|
15
|
+
inset (a browser that keeps its own bar) 13 from the window's edge. */
|
|
16
|
+
--toolbar-bottom-padding-bottom: calc(var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)) + 13px);
|
|
17
|
+
--toolbar-bottom-gutter: 16px;
|
|
18
|
+
/* A page's groups (its cards) stand 12dp from the screen's sides at every width, as in a sheet (Dialog.module.css):
|
|
19
|
+
the reference's settings cards (iOS: the layout margin, 16 or 20). */
|
|
20
|
+
--page-gutter: 12px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* Bars and overlays (Toolbar, TabBar, NavigationButton, a Sheet's bar). A glass control (a bar's circle or pill, a
|
|
24
|
+
search field in a bar, a Button with `mobileMaterial="glass"`) is no liquid glass: the card's color at 80% over the
|
|
25
|
+
screen, white by day and the dark card at night, as the reference's glass follows its theme's card in each of its
|
|
26
|
+
palettes (so a themed palette tints it too), a 0.55dp white rim along its top and bottom (white at 12.5% and 7.8% at
|
|
27
|
+
night), a shadow of #333 at 8.6% blurred 8 and 2.33 down (none at night), the content blurred 7 under it. The tab
|
|
28
|
+
bar's capsule is the card at 76% with a thinner, darker rim and a tighter shadow. A held control ripples (Android
|
|
29
|
+
press ripple, at the end of this file) over its glass, which keeps its color. */
|
|
30
|
+
:root[data-platform="android"] {
|
|
31
|
+
--android-bar-glass: color-mix(in srgb, var(--android-card) 80%, transparent);
|
|
32
|
+
--mobile-glass-background: var(--android-bar-glass);
|
|
33
|
+
--mobile-glass-background-hover: var(--android-bar-glass);
|
|
34
|
+
--mobile-glass-background-active: color-mix(in srgb, var(--android-bar-glass), var(--color-text) 7%);
|
|
35
|
+
--mobile-glass-shadow: var(--android-bar-shadow);
|
|
36
|
+
--mobile-glass-shadow-raised: var(--android-bar-shadow);
|
|
37
|
+
--mobile-glass-backdrop-filter: blur(7px);
|
|
38
|
+
/* A prominent control (an accent circle or capsule) casts the shadow of a card: 6% under it, 30% at night. */
|
|
39
|
+
/* Disabled content of a bar's control: the text at 38%. */
|
|
40
|
+
--android-bar-disabled: color-mix(in srgb, var(--color-text) 38%, transparent);
|
|
41
|
+
/* Overlays. The light and dark pairs are set here, on the root: the build writes a component's light-dark() as
|
|
42
|
+
a rule under a [data-theme] ancestor, which the root that holds data-platform has not. A popup's card (a menu,
|
|
43
|
+
a badge's ring, a skeleton's band): white, at night a raised gray. A centered dialog: white, at night the gray
|
|
44
|
+
of a container. A toast: a dark card, its action the accent mixed with white. A skeleton block: the text at 6%
|
|
45
|
+
(5% at night). A row's menu: its gap a light gray band (a darker gray at night), its shadow soft and 3 down, the
|
|
46
|
+
screen behind it dimmed 40% (20% at night). A page's dots: light gray, dark gray at night. A selected tab's
|
|
47
|
+
label: the accent's text (the bright accent at night). */
|
|
48
|
+
--android-menu-band: color-mix(in srgb, var(--color-text) 6%, transparent);
|
|
49
|
+
/* A segmented control's selected segment: the accent at 12% over the card. */
|
|
50
|
+
--android-segment-thumb: color-mix(in srgb, var(--color-background-accent-solid) 12%, var(--android-card));
|
|
51
|
+
/* Material 3's tooltips: a rich one on the surface container (tone 94, 12 at night), a plain one on the inverse
|
|
52
|
+
surface (tone 20, 90 at night) with the inverse text; a rich one's text the surface's variant ink (tone 30, 80). */
|
|
53
|
+
/* A context menu dims the screen as a row's menu does, black at 40% (20% at night), with no blur; the element
|
|
54
|
+
stays clear, without a shadow. */
|
|
55
|
+
--context-menu-dimming-background: var(--android-popup-dim);
|
|
56
|
+
--context-menu-dimming-backdrop-filter: none;
|
|
57
|
+
--context-menu-preview-shadow: none;
|
|
58
|
+
}
|
|
59
|
+
:root[data-platform="android"], :root[data-platform="android"]:where([data-theme="light"]) {
|
|
60
|
+
--android-bar-shadow: 0 2.33px 8px rgb(51 51 51 / 8.6%), inset 0 0.55px 0 #fff, inset 0 -0.55px 0 #fff;
|
|
61
|
+
--android-tabs-glass: rgb(255 255 255 / 76%);
|
|
62
|
+
--android-tabs-shadow: 0 0.85px 2.67px rgb(0 0 0 / 12.5%), inset 0 0.4px 0 rgb(0 0 0 / 6.7%), inset 0 -0.4px 0 rgb(0 0 0 / 12.5%);
|
|
63
|
+
--android-accent-shadow: 0 2px 8px rgb(0 0 0 / 6%);
|
|
64
|
+
--android-card: #fff;
|
|
65
|
+
--android-dialog-surface: #fff;
|
|
66
|
+
--android-toast-fill: rgb(39 47 56 / 92%);
|
|
67
|
+
--android-toast-action: color-mix(in srgb, #fff 50%, var(--color-background-accent-solid));
|
|
68
|
+
--android-skeleton-fill: color-mix(in srgb, var(--color-text) 6%, transparent);
|
|
69
|
+
--android-popup-gap: #f5f5f5;
|
|
70
|
+
--android-popup-shadow: 0 3px 8px rgb(0 0 0 / 14%), 0 0 1px rgb(0 0 0 / 12%);
|
|
71
|
+
--android-popup-dim: rgb(0 0 0 / 40%);
|
|
72
|
+
--android-dot: #bbb;
|
|
73
|
+
--android-tab-selected: var(--color-text-accent);
|
|
74
|
+
--android-tooltip-fill: #eee;
|
|
75
|
+
--android-tooltip-text: #474747;
|
|
76
|
+
--android-tooltip-inverse: #303030;
|
|
77
|
+
--android-tooltip-inverse-text: #f1f1f1;
|
|
78
|
+
}
|
|
79
|
+
:root[data-platform="android"]:where([data-theme="dark"]) {
|
|
80
|
+
--android-bar-shadow: 0 2.33px 8px transparent, inset 0 0.55px 0 rgb(255 255 255 / 12.5%), inset 0 -0.55px 0 rgb(255 255 255 / 7.8%);
|
|
81
|
+
--android-tabs-glass: color-mix(in srgb, var(--gray-300) 76%, transparent);
|
|
82
|
+
--android-tabs-shadow: 0 0.85px 2.67px rgb(255 255 255 / 1.6%), inset 0 0.4px 0 rgb(255 255 255 / 2.4%), inset 0 -0.4px 0 rgb(255 255 255 / 6.7%);
|
|
83
|
+
--android-accent-shadow: 0 2px 8px rgb(0 0 0 / 30%);
|
|
84
|
+
--android-card: var(--gray-300);
|
|
85
|
+
--android-dialog-surface: var(--gray-200);
|
|
86
|
+
--android-toast-fill: rgb(24 24 24 / 96%);
|
|
87
|
+
--android-toast-action: color-mix(in srgb, #fff 60%, var(--color-background-accent-solid));
|
|
88
|
+
--android-skeleton-fill: color-mix(in srgb, var(--color-text) 5%, transparent);
|
|
89
|
+
--android-popup-gap: #262626;
|
|
90
|
+
--android-popup-shadow: 0 3px 8px rgb(0 0 0 / 40%), 0 0 1px transparent;
|
|
91
|
+
--android-popup-dim: rgb(0 0 0 / 20%);
|
|
92
|
+
--android-dot: #555;
|
|
93
|
+
--android-tab-selected: var(--color-background-accent-solid);
|
|
94
|
+
--android-tooltip-fill: #1f1f1f;
|
|
95
|
+
--android-tooltip-text: #c6c6c6;
|
|
96
|
+
--android-tooltip-inverse: #e2e2e2;
|
|
97
|
+
--android-tooltip-inverse-text: #303030;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/* Menus (Menu, ContextMenu, Select's list and every list drawn with the --menu-* values): the popup of a row. Opaque,
|
|
101
|
+
the popup's card with 12px corners and a soft shadow, the screen behind it dimmed 40% (20% at night: a spread of
|
|
102
|
+
its shadow, which a press goes through), no space above and under its rows, which run flush with its sides. A row
|
|
103
|
+
is 48 tall, its 24px symbol 18 in (the glyph about 20) and the label 16/20 Regular 20 after it (62 in); a
|
|
104
|
+
description 13/16 in the secondary text; a held row ripples (Android press ripple, at the end of this file). A
|
|
105
|
+
chosen row's check stands at its end. A separator is an 8px band of light gray; a section title 13/16 in the text,
|
|
106
|
+
13 from the sides and 8 above and under it. A disabled row is the text at 38%. A menu opened from a bar's button is the bar's glass instead
|
|
107
|
+
(Menu.module.css: --android-header-menu-*). */
|
|
108
|
+
:root[data-platform="android"] {
|
|
109
|
+
--menu-radius: 12px;
|
|
110
|
+
--menu-radius-pill: 12px;
|
|
111
|
+
--menu-gutter: 0px;
|
|
112
|
+
--menu-pill-gutter: 0px;
|
|
113
|
+
--menu-padding-inline: 0px;
|
|
114
|
+
--menu-default-width: max-content;
|
|
115
|
+
--menu-default-min-width: 196px;
|
|
116
|
+
--menu-shadow: var(--android-popup-shadow), 0 0 0 100vmax var(--android-popup-dim);
|
|
117
|
+
--menu-mobile-background: var(--android-card);
|
|
118
|
+
--menu-mobile-backdrop-filter: none;
|
|
119
|
+
--menu-font-size: 16px;
|
|
120
|
+
--menu-line-height: 20px;
|
|
121
|
+
--menu-letter-spacing: var(--font-sans-tracking);
|
|
122
|
+
--menu-row-min-height: 48px;
|
|
123
|
+
--menu-row-padding-block: 6px;
|
|
124
|
+
--menu-item-padding: 0 18px;
|
|
125
|
+
--menu-pill-item-padding: 0 18px;
|
|
126
|
+
--menu-item-gap: 0px;
|
|
127
|
+
--menu-item-radius: 0px;
|
|
128
|
+
--menu-press-background: color-mix(in srgb, var(--color-text) 12%, transparent);
|
|
129
|
+
--menu-description-font-size: 13px;
|
|
130
|
+
--menu-description-line-height: 16px;
|
|
131
|
+
--menu-description-color: var(--color-text-secondary);
|
|
132
|
+
--menu-disabled-label-color: color-mix(in srgb, var(--color-text) 38%, transparent);
|
|
133
|
+
--menu-disabled-description-color: color-mix(in srgb, var(--color-text) 38%, transparent);
|
|
134
|
+
--menu-separator-gutter: 0;
|
|
135
|
+
--menu-pill-separator-gutter: 0;
|
|
136
|
+
--menu-separator-background-color: var(--android-popup-gap);
|
|
137
|
+
--menu-label-padding: 8px 13px;
|
|
138
|
+
--menu-label-padding-bottom: 8px;
|
|
139
|
+
--menu-label-font-size: 13px;
|
|
140
|
+
--menu-label-font-weight: var(--font-weight-normal);
|
|
141
|
+
--menu-label-line-height: 16px;
|
|
142
|
+
--menu-leading-icon-size: 24px;
|
|
143
|
+
--menu-leading-icon-slot: 24px;
|
|
144
|
+
--menu-leading-icon-gap: 20px;
|
|
145
|
+
--menu-check-column: 24px;
|
|
146
|
+
--menu-check-gap: 18px;
|
|
147
|
+
--menu-check-size: 24px;
|
|
148
|
+
--menu-check-stroke: 0px;
|
|
149
|
+
--menu-check-icon-offset: 0px;
|
|
150
|
+
--menu-check-icon-gap: 20px;
|
|
151
|
+
--menu-check-label-inset: 18px;
|
|
152
|
+
/* A menu opened from a bar's button (the header menu): the bar's glass blurred 36 under it, 22px corners, 5
|
|
153
|
+
above and under its rows, the screen dimmed 10%, its separator an 8px band of the text at 6%. */
|
|
154
|
+
--android-header-menu-shadow: var(--android-bar-shadow), 0 0 0 100vmax rgb(0 0 0 / 10%);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/* Lists and forms (FieldGroup, Field, NavigationRow; List and ListItem on Android): a settings screen's rows. A row
|
|
158
|
+
is 50dp at least (64 with a description, its text 12 from the row's top and bottom), its label 16/20, a
|
|
159
|
+
description 13/16 in the secondary label 4 under it, the text 21 in; a label over its value (a vertical row) 13/16,
|
|
160
|
+
4 over it, 10 above and below. A tile leads 18 in and the text follows at 64 (corners 10). An error under a row or a field is a line of 13/16 (14/18 under a
|
|
161
|
+
field of its own) in the error color, with no mark. A held row ripples in the reference's selector for a card's
|
|
162
|
+
rows (Android press ripple, at the end of this file). The text in the accent (a header, a value) is the bright accent over a
|
|
163
|
+
light card and its lighter text at night; red text is the danger solid, its soft text at night; the line between
|
|
164
|
+
rows is a light gray, the darkest gray at night. */
|
|
165
|
+
:root[data-platform="android"] {
|
|
166
|
+
/* An off switch's track and an empty checkbox's outline: a mid gray, a darker one at night. A held solid button's
|
|
167
|
+
layer: black at 5.9%, white at 5.1% at night. */
|
|
168
|
+
/* A field's hint: a light gray, a dim one at night. A field's idle outline: a light gray, the text at 24% at
|
|
169
|
+
night. A search field in the content: the text at 5%, 7% at
|
|
170
|
+
night. */
|
|
171
|
+
--list-row-inset: 21px;
|
|
172
|
+
--field-row-min-height: 50px;
|
|
173
|
+
--field-row-text-padding-block: 12px;
|
|
174
|
+
--field-row-label-font-size: 16px;
|
|
175
|
+
--field-row-label-line-height: 20px;
|
|
176
|
+
--field-row-description-font-size: 13px;
|
|
177
|
+
--field-row-description-line-height: 16px;
|
|
178
|
+
--field-row-description-min-height: 64px;
|
|
179
|
+
--field-row-above-font-size: 13px;
|
|
180
|
+
--field-row-above-line-height: 16px;
|
|
181
|
+
--field-row-above-gap: 4px;
|
|
182
|
+
--field-row-above-padding-block: 10px;
|
|
183
|
+
--field-row-icon-offset: -3px;
|
|
184
|
+
--field-row-icon-gap: 18px;
|
|
185
|
+
--field-row-icon-radius: 10px;
|
|
186
|
+
--field-row-press-background: var(--android-ripple-card-color);
|
|
187
|
+
--field-group-radius: 16px;
|
|
188
|
+
--mobile-field-error-font-size: 14px;
|
|
189
|
+
--mobile-field-error-line-height: 18px;
|
|
190
|
+
--mobile-field-error-icon-display: none;
|
|
191
|
+
}
|
|
192
|
+
:root[data-platform="android"], :root[data-platform="android"]:where([data-theme="light"]) {
|
|
193
|
+
--android-accent-text: var(--color-background-accent-solid);
|
|
194
|
+
--android-danger-text: var(--color-background-danger-solid);
|
|
195
|
+
--android-divider: #d9d9d9;
|
|
196
|
+
--android-switch-off: #a7adb2;
|
|
197
|
+
--android-checkbox-ring: #b0b9c2;
|
|
198
|
+
--android-button-solid-press: rgb(0 0 0 / 5.9%);
|
|
199
|
+
--android-hint: #a8a8a8;
|
|
200
|
+
--android-field-line: #dbdbdb;
|
|
201
|
+
--android-search-fill: color-mix(in srgb, var(--color-text) 5%, transparent);
|
|
202
|
+
}
|
|
203
|
+
:root[data-platform="android"]:where([data-theme="dark"]) {
|
|
204
|
+
--android-accent-text: var(--color-text-accent);
|
|
205
|
+
--android-danger-text: var(--color-text-danger-soft);
|
|
206
|
+
--android-divider: var(--gray-0);
|
|
207
|
+
--android-switch-off: var(--gray-500);
|
|
208
|
+
--android-checkbox-ring: var(--gray-500);
|
|
209
|
+
--android-button-solid-press: rgb(255 255 255 / 5.1%);
|
|
210
|
+
--android-hint: #7d7d7d;
|
|
211
|
+
--android-field-line: color-mix(in srgb, var(--color-text) 24%, transparent);
|
|
212
|
+
--android-search-fill: color-mix(in srgb, var(--color-text) 7%, transparent);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/* A field with a floating label (FloatingLabelInput, FloatingLabelSelect; @plexui/react-native's on Android): an
|
|
216
|
+
outlined field 56 tall, corners 8, the text 16 14 in, a hairline in a light gray (the text at 24% at night)
|
|
217
|
+
that turns to the accent while it is edited, the label 16 in the hint color at rest and 12 in the accent on
|
|
218
|
+
the line once it floats. With the label inside it is filled with the text at 5%, its label floated 8 from the top
|
|
219
|
+
and the value 10 from the bottom. */
|
|
220
|
+
:root[data-platform="android"] {
|
|
221
|
+
--floating-input-height: 56px;
|
|
222
|
+
--floating-input-inside-height: 56px;
|
|
223
|
+
--floating-input-box-radius: 8px;
|
|
224
|
+
--floating-input-box-gutter: 14px;
|
|
225
|
+
--floating-input-font-size: 16px;
|
|
226
|
+
--floating-input-border-color: var(--android-field-line);
|
|
227
|
+
--floating-input-border-color-hover: var(--android-field-line);
|
|
228
|
+
--floating-input-border-color-focus: var(--android-accent-text);
|
|
229
|
+
--floating-input-border-color-invalid: var(--android-danger-text);
|
|
230
|
+
--floating-input-label-color: var(--android-hint);
|
|
231
|
+
--floating-input-label-color-focus: var(--android-accent-text);
|
|
232
|
+
--floating-input-label-color-invalid: var(--android-danger-text);
|
|
233
|
+
--floating-input-inside-label-color: var(--android-hint);
|
|
234
|
+
--floating-input-label-scale: 0.75;
|
|
235
|
+
--floating-input-inside-label-scale: 0.75;
|
|
236
|
+
--floating-input-inside-label-shift: -12px;
|
|
237
|
+
--floating-input-inside-value-shift: 16px;
|
|
238
|
+
--floating-input-inside-line-height: 20px;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/* A search field in the content (under a large title, at the top of a sheet) is Android's pill of the text at 5%,
|
|
242
|
+
with no glass (its size and colors: Input.module.css); an invalid one keeps its red line. */
|
|
243
|
+
html[data-platform="android"] [data-slot="input"][data-variant="soft"]:has(> input[type="search"]):not(:where([data-row] *, [data-toolbar] *)) {
|
|
244
|
+
--input-soft-background-color: var(--android-search-fill);
|
|
245
|
+
|
|
246
|
+
background-image: none;
|
|
247
|
+
backdrop-filter: none;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
html[data-platform="android"] [data-slot="input"][data-variant="soft"]:has(> input[type="search"]):not(:where([data-row] *, [data-toolbar] *)):not([data-invalid]) {
|
|
251
|
+
box-shadow: none;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/* Sliders: a 3 track (corners 1.5) in a light gray, its fill in the accent, a 12 knob of the accent with no ring
|
|
255
|
+
and no shadow (and no lens: Slider.module.css); the label 16 and the value 16 in the accent at the end. */
|
|
256
|
+
:root[data-platform="android"] {
|
|
257
|
+
--slider-track-size: 3px;
|
|
258
|
+
--slider-track-radius: 1.5px;
|
|
259
|
+
--slider-range-color: var(--color-background-accent-solid);
|
|
260
|
+
--slider-thumb-width: 12px;
|
|
261
|
+
--slider-thumb-height: 12px;
|
|
262
|
+
--slider-thumb-background: var(--color-background-accent-solid);
|
|
263
|
+
--slider-thumb-shadow: none;
|
|
264
|
+
--slider-label-font-size: 16px;
|
|
265
|
+
--slider-label-line-height: 20px;
|
|
266
|
+
--slider-value-font-size: 16px;
|
|
267
|
+
--slider-value-line-height: 20px;
|
|
268
|
+
--slider-value-color: var(--android-accent-text);
|
|
269
|
+
--slider-unit-color: var(--android-accent-text);
|
|
270
|
+
}
|
|
271
|
+
:root[data-platform="android"], :root[data-platform="android"]:where([data-theme="light"]) {
|
|
272
|
+
--slider-track-color: #ebedf0;
|
|
273
|
+
}
|
|
274
|
+
:root[data-platform="android"]:where([data-theme="dark"]) {
|
|
275
|
+
--slider-track-color: var(--gray-300);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
/* Buttons (@plexui/react-native's Button on Android): three steps, 32 (3xs to sm), 40 (md, lg) and 48 (xl to 3xl),
|
|
279
|
+
their gutters 12, 16 and 20, the label 14/20 Medium (15/20 in the 48), 4 (32) or 6 from its symbol, a symbol of 16
|
|
280
|
+
(32) or 20, a spinner of 18 (24 in the 48). A bar that sizes its own buttons keeps its sizes. */
|
|
281
|
+
:root[data-platform="android"] {
|
|
282
|
+
--button-font-weight: var(--font-weight-medium);
|
|
283
|
+
--button-touch-gap-sm: 4px;
|
|
284
|
+
--button-touch-gap: 6px;
|
|
285
|
+
--button-size-3xs: 32px;
|
|
286
|
+
--button-size-2xs: 32px;
|
|
287
|
+
--button-size-xs: 32px;
|
|
288
|
+
--button-size-sm: 32px;
|
|
289
|
+
--button-size-md: 40px;
|
|
290
|
+
--button-size-lg: 40px;
|
|
291
|
+
--button-size-xl: 48px;
|
|
292
|
+
--button-size-2xl: 48px;
|
|
293
|
+
--button-size-3xl: 48px;
|
|
294
|
+
--button-gutter-3xs: 12px;
|
|
295
|
+
--button-gutter-2xs: 12px;
|
|
296
|
+
--button-gutter-xs: 12px;
|
|
297
|
+
--button-gutter-sm: 12px;
|
|
298
|
+
--button-gutter-md: 16px;
|
|
299
|
+
--button-gutter-lg: 16px;
|
|
300
|
+
--button-gutter-xl: 20px;
|
|
301
|
+
--button-gutter-2xl: 20px;
|
|
302
|
+
--button-gutter-3xl: 20px;
|
|
303
|
+
--button-font-size-3xs: 14px;
|
|
304
|
+
--button-font-size-2xs: 14px;
|
|
305
|
+
--button-font-size-xs: 14px;
|
|
306
|
+
--button-font-size-sm: 14px;
|
|
307
|
+
--button-font-size-md: 14px;
|
|
308
|
+
--button-font-size-lg: 14px;
|
|
309
|
+
--button-font-size-xl: 15px;
|
|
310
|
+
--button-font-size-2xl: 15px;
|
|
311
|
+
--button-font-size-3xl: 15px;
|
|
312
|
+
--button-line-height-3xs: 20px;
|
|
313
|
+
--button-line-height-2xs: 20px;
|
|
314
|
+
--button-line-height-xs: 20px;
|
|
315
|
+
--button-line-height-sm: 20px;
|
|
316
|
+
--button-line-height-md: 20px;
|
|
317
|
+
--button-line-height-lg: 20px;
|
|
318
|
+
--button-line-height-xl: 20px;
|
|
319
|
+
--button-line-height-2xl: 20px;
|
|
320
|
+
--button-line-height-3xl: 20px;
|
|
321
|
+
--button-icon-size-3xs: 16px;
|
|
322
|
+
--button-icon-size-2xs: 16px;
|
|
323
|
+
--button-icon-size-xs: 16px;
|
|
324
|
+
--button-indicator-size-3xs: 18px;
|
|
325
|
+
--button-indicator-size-2xs: 18px;
|
|
326
|
+
--button-indicator-size-xs: 18px;
|
|
327
|
+
--button-indicator-size-sm: 18px;
|
|
328
|
+
--button-indicator-size-md: 18px;
|
|
329
|
+
--button-indicator-size-lg: 18px;
|
|
330
|
+
--button-indicator-size-xl: 24px;
|
|
331
|
+
--button-indicator-size-2xl: 24px;
|
|
332
|
+
--button-indicator-size-3xl: 24px;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
:root[data-platform="android"] :where([data-plex-layout="phone"]) {
|
|
336
|
+
/* A bottom bar stands on the line of the 56dp tab bar, 8dp over the gesture bar: its 46dp circles 13dp over the
|
|
337
|
+
inset (iOS: 28 from the edge, the 34 home indicator less 6), 16dp from the screen's sides (iOS 28). Without an
|
|
338
|
+
inset (a browser that keeps its own bar) 13 from the window's edge. */
|
|
339
|
+
--toolbar-bottom-padding-bottom: calc(var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)) + 13px);
|
|
340
|
+
--toolbar-bottom-gutter: 16px;
|
|
341
|
+
/* A page's groups (its cards) stand 12dp from the screen's sides at every width, as in a sheet (Dialog.module.css):
|
|
342
|
+
the reference's settings cards (iOS: the layout margin, 16 or 20). */
|
|
343
|
+
--page-gutter: 12px;
|
|
344
|
+
}
|
|
345
|
+
/* Bars and overlays (Toolbar, TabBar, NavigationButton, a Sheet's bar). A glass control (a bar's circle or pill, a
|
|
346
|
+
search field in a bar, a Button with `mobileMaterial="glass"`) is no liquid glass: the card's color at 80% over the
|
|
347
|
+
screen, white by day and the dark card at night, as the reference's glass follows its theme's card in each of its
|
|
348
|
+
palettes (so a themed palette tints it too), a 0.55dp white rim along its top and bottom (white at 12.5% and 7.8% at
|
|
349
|
+
night), a shadow of #333 at 8.6% blurred 8 and 2.33 down (none at night), the content blurred 7 under it. The tab
|
|
350
|
+
bar's capsule is the card at 76% with a thinner, darker rim and a tighter shadow. A held control ripples (Android
|
|
351
|
+
press ripple, at the end of this file) over its glass, which keeps its color. */
|
|
352
|
+
:root[data-platform="android"] :where([data-plex-layout="phone"]) {
|
|
353
|
+
--android-bar-glass: color-mix(in srgb, var(--android-card) 80%, transparent);
|
|
354
|
+
--mobile-glass-background: var(--android-bar-glass);
|
|
355
|
+
--mobile-glass-background-hover: var(--android-bar-glass);
|
|
356
|
+
--mobile-glass-background-active: color-mix(in srgb, var(--android-bar-glass), var(--color-text) 7%);
|
|
357
|
+
--mobile-glass-shadow: var(--android-bar-shadow);
|
|
358
|
+
--mobile-glass-shadow-raised: var(--android-bar-shadow);
|
|
359
|
+
--mobile-glass-backdrop-filter: blur(7px);
|
|
360
|
+
/* A prominent control (an accent circle or capsule) casts the shadow of a card: 6% under it, 30% at night. */
|
|
361
|
+
/* Disabled content of a bar's control: the text at 38%. */
|
|
362
|
+
--android-bar-disabled: color-mix(in srgb, var(--color-text) 38%, transparent);
|
|
363
|
+
/* Overlays. The light and dark pairs are set here, on the root: the build writes a component's light-dark() as
|
|
364
|
+
a rule under a [data-theme] ancestor, which the root that holds data-platform has not. A popup's card (a menu,
|
|
365
|
+
a badge's ring, a skeleton's band): white, at night a raised gray. A centered dialog: white, at night the gray
|
|
366
|
+
of a container. A toast: a dark card, its action the accent mixed with white. A skeleton block: the text at 6%
|
|
367
|
+
(5% at night). A row's menu: its gap a light gray band (a darker gray at night), its shadow soft and 3 down, the
|
|
368
|
+
screen behind it dimmed 40% (20% at night). A page's dots: light gray, dark gray at night. A selected tab's
|
|
369
|
+
label: the accent's text (the bright accent at night). */
|
|
370
|
+
--android-menu-band: color-mix(in srgb, var(--color-text) 6%, transparent);
|
|
371
|
+
/* A segmented control's selected segment: the accent at 12% over the card. */
|
|
372
|
+
--android-segment-thumb: color-mix(in srgb, var(--color-background-accent-solid) 12%, var(--android-card));
|
|
373
|
+
/* Material 3's tooltips: a rich one on the surface container (tone 94, 12 at night), a plain one on the inverse
|
|
374
|
+
surface (tone 20, 90 at night) with the inverse text; a rich one's text the surface's variant ink (tone 30, 80). */
|
|
375
|
+
/* A context menu dims the screen as a row's menu does, black at 40% (20% at night), with no blur; the element
|
|
376
|
+
stays clear, without a shadow. */
|
|
377
|
+
--context-menu-dimming-background: var(--android-popup-dim);
|
|
378
|
+
--context-menu-dimming-backdrop-filter: none;
|
|
379
|
+
--context-menu-preview-shadow: none;
|
|
380
|
+
}
|
|
381
|
+
:root[data-platform="android"] :where([data-plex-layout="phone"]), :root[data-platform="android"]:where([data-theme="light"]) :where([data-plex-layout="phone"]), :root[data-platform="android"] :where([data-theme="light"]) :where([data-plex-layout="phone"]) {
|
|
382
|
+
--android-bar-shadow: 0 2.33px 8px rgb(51 51 51 / 8.6%), inset 0 0.55px 0 #fff, inset 0 -0.55px 0 #fff;
|
|
383
|
+
--android-tabs-glass: rgb(255 255 255 / 76%);
|
|
384
|
+
--android-tabs-shadow: 0 0.85px 2.67px rgb(0 0 0 / 12.5%), inset 0 0.4px 0 rgb(0 0 0 / 6.7%), inset 0 -0.4px 0 rgb(0 0 0 / 12.5%);
|
|
385
|
+
--android-accent-shadow: 0 2px 8px rgb(0 0 0 / 6%);
|
|
386
|
+
--android-card: #fff;
|
|
387
|
+
--android-dialog-surface: #fff;
|
|
388
|
+
--android-toast-fill: rgb(39 47 56 / 92%);
|
|
389
|
+
--android-toast-action: color-mix(in srgb, #fff 50%, var(--color-background-accent-solid));
|
|
390
|
+
--android-skeleton-fill: color-mix(in srgb, var(--color-text) 6%, transparent);
|
|
391
|
+
--android-popup-gap: #f5f5f5;
|
|
392
|
+
--android-popup-shadow: 0 3px 8px rgb(0 0 0 / 14%), 0 0 1px rgb(0 0 0 / 12%);
|
|
393
|
+
--android-popup-dim: rgb(0 0 0 / 40%);
|
|
394
|
+
--android-dot: #bbb;
|
|
395
|
+
--android-tab-selected: var(--color-text-accent);
|
|
396
|
+
--android-tooltip-fill: #eee;
|
|
397
|
+
--android-tooltip-text: #474747;
|
|
398
|
+
--android-tooltip-inverse: #303030;
|
|
399
|
+
--android-tooltip-inverse-text: #f1f1f1;
|
|
400
|
+
}
|
|
401
|
+
:root[data-platform="android"]:where([data-theme="dark"]) :where([data-plex-layout="phone"]), :root[data-platform="android"] :where([data-theme="dark"]) :where([data-plex-layout="phone"]) {
|
|
402
|
+
--android-bar-shadow: 0 2.33px 8px transparent, inset 0 0.55px 0 rgb(255 255 255 / 12.5%), inset 0 -0.55px 0 rgb(255 255 255 / 7.8%);
|
|
403
|
+
--android-tabs-glass: color-mix(in srgb, var(--gray-300) 76%, transparent);
|
|
404
|
+
--android-tabs-shadow: 0 0.85px 2.67px rgb(255 255 255 / 1.6%), inset 0 0.4px 0 rgb(255 255 255 / 2.4%), inset 0 -0.4px 0 rgb(255 255 255 / 6.7%);
|
|
405
|
+
--android-accent-shadow: 0 2px 8px rgb(0 0 0 / 30%);
|
|
406
|
+
--android-card: var(--gray-300);
|
|
407
|
+
--android-dialog-surface: var(--gray-200);
|
|
408
|
+
--android-toast-fill: rgb(24 24 24 / 96%);
|
|
409
|
+
--android-toast-action: color-mix(in srgb, #fff 60%, var(--color-background-accent-solid));
|
|
410
|
+
--android-skeleton-fill: color-mix(in srgb, var(--color-text) 5%, transparent);
|
|
411
|
+
--android-popup-gap: #262626;
|
|
412
|
+
--android-popup-shadow: 0 3px 8px rgb(0 0 0 / 40%), 0 0 1px transparent;
|
|
413
|
+
--android-popup-dim: rgb(0 0 0 / 20%);
|
|
414
|
+
--android-dot: #555;
|
|
415
|
+
--android-tab-selected: var(--color-background-accent-solid);
|
|
416
|
+
--android-tooltip-fill: #1f1f1f;
|
|
417
|
+
--android-tooltip-text: #c6c6c6;
|
|
418
|
+
--android-tooltip-inverse: #e2e2e2;
|
|
419
|
+
--android-tooltip-inverse-text: #303030;
|
|
420
|
+
}
|
|
421
|
+
/* Menus (Menu, ContextMenu, Select's list and every list drawn with the --menu-* values): the popup of a row. Opaque,
|
|
422
|
+
the popup's card with 12px corners and a soft shadow, the screen behind it dimmed 40% (20% at night: a spread of
|
|
423
|
+
its shadow, which a press goes through), no space above and under its rows, which run flush with its sides. A row
|
|
424
|
+
is 48 tall, its 24px symbol 18 in (the glyph about 20) and the label 16/20 Regular 20 after it (62 in); a
|
|
425
|
+
description 13/16 in the secondary text; a held row ripples (Android press ripple, at the end of this file). A
|
|
426
|
+
chosen row's check stands at its end. A separator is an 8px band of light gray; a section title 13/16 in the text,
|
|
427
|
+
13 from the sides and 8 above and under it. A disabled row is the text at 38%. A menu opened from a bar's button is the bar's glass instead
|
|
428
|
+
(Menu.module.css: --android-header-menu-*). */
|
|
429
|
+
:root[data-platform="android"] :where([data-plex-layout="phone"]) {
|
|
430
|
+
--menu-radius: 12px;
|
|
431
|
+
--menu-radius-pill: 12px;
|
|
432
|
+
--menu-gutter: 0px;
|
|
433
|
+
--menu-pill-gutter: 0px;
|
|
434
|
+
--menu-padding-inline: 0px;
|
|
435
|
+
--menu-default-width: max-content;
|
|
436
|
+
--menu-default-min-width: 196px;
|
|
437
|
+
--menu-shadow: var(--android-popup-shadow), 0 0 0 100vmax var(--android-popup-dim);
|
|
438
|
+
--menu-mobile-background: var(--android-card);
|
|
439
|
+
--menu-mobile-backdrop-filter: none;
|
|
440
|
+
--menu-font-size: 16px;
|
|
441
|
+
--menu-line-height: 20px;
|
|
442
|
+
--menu-letter-spacing: var(--font-sans-tracking);
|
|
443
|
+
--menu-row-min-height: 48px;
|
|
444
|
+
--menu-row-padding-block: 6px;
|
|
445
|
+
--menu-item-padding: 0 18px;
|
|
446
|
+
--menu-pill-item-padding: 0 18px;
|
|
447
|
+
--menu-item-gap: 0px;
|
|
448
|
+
--menu-item-radius: 0px;
|
|
449
|
+
--menu-press-background: color-mix(in srgb, var(--color-text) 12%, transparent);
|
|
450
|
+
--menu-description-font-size: 13px;
|
|
451
|
+
--menu-description-line-height: 16px;
|
|
452
|
+
--menu-description-color: var(--color-text-secondary);
|
|
453
|
+
--menu-disabled-label-color: color-mix(in srgb, var(--color-text) 38%, transparent);
|
|
454
|
+
--menu-disabled-description-color: color-mix(in srgb, var(--color-text) 38%, transparent);
|
|
455
|
+
--menu-separator-gutter: 0;
|
|
456
|
+
--menu-pill-separator-gutter: 0;
|
|
457
|
+
--menu-separator-background-color: var(--android-popup-gap);
|
|
458
|
+
--menu-label-padding: 8px 13px;
|
|
459
|
+
--menu-label-padding-bottom: 8px;
|
|
460
|
+
--menu-label-font-size: 13px;
|
|
461
|
+
--menu-label-font-weight: var(--font-weight-normal);
|
|
462
|
+
--menu-label-line-height: 16px;
|
|
463
|
+
--menu-leading-icon-size: 24px;
|
|
464
|
+
--menu-leading-icon-slot: 24px;
|
|
465
|
+
--menu-leading-icon-gap: 20px;
|
|
466
|
+
--menu-check-column: 24px;
|
|
467
|
+
--menu-check-gap: 18px;
|
|
468
|
+
--menu-check-size: 24px;
|
|
469
|
+
--menu-check-stroke: 0px;
|
|
470
|
+
--menu-check-icon-offset: 0px;
|
|
471
|
+
--menu-check-icon-gap: 20px;
|
|
472
|
+
--menu-check-label-inset: 18px;
|
|
473
|
+
/* A menu opened from a bar's button (the header menu): the bar's glass blurred 36 under it, 22px corners, 5
|
|
474
|
+
above and under its rows, the screen dimmed 10%, its separator an 8px band of the text at 6%. */
|
|
475
|
+
--android-header-menu-shadow: var(--android-bar-shadow), 0 0 0 100vmax rgb(0 0 0 / 10%);
|
|
476
|
+
}
|
|
477
|
+
/* Lists and forms (FieldGroup, Field, NavigationRow; List and ListItem on Android): a settings screen's rows. A row
|
|
478
|
+
is 50dp at least (64 with a description, its text 12 from the row's top and bottom), its label 16/20, a
|
|
479
|
+
description 13/16 in the secondary label 4 under it, the text 21 in; a label over its value (a vertical row) 13/16,
|
|
480
|
+
4 over it, 10 above and below. A tile leads 18 in and the text follows at 64 (corners 10). An error under a row or a field is a line of 13/16 (14/18 under a
|
|
481
|
+
field of its own) in the error color, with no mark. A held row ripples in the reference's selector for a card's
|
|
482
|
+
rows (Android press ripple, at the end of this file). The text in the accent (a header, a value) is the bright accent over a
|
|
483
|
+
light card and its lighter text at night; red text is the danger solid, its soft text at night; the line between
|
|
484
|
+
rows is a light gray, the darkest gray at night. */
|
|
485
|
+
:root[data-platform="android"] :where([data-plex-layout="phone"]) {
|
|
486
|
+
/* An off switch's track and an empty checkbox's outline: a mid gray, a darker one at night. A held solid button's
|
|
487
|
+
layer: black at 5.9%, white at 5.1% at night. */
|
|
488
|
+
/* A field's hint: a light gray, a dim one at night. A field's idle outline: a light gray, the text at 24% at
|
|
489
|
+
night. A search field in the content: the text at 5%, 7% at
|
|
490
|
+
night. */
|
|
491
|
+
--list-row-inset: 21px;
|
|
492
|
+
--field-row-min-height: 50px;
|
|
493
|
+
--field-row-text-padding-block: 12px;
|
|
494
|
+
--field-row-label-font-size: 16px;
|
|
495
|
+
--field-row-label-line-height: 20px;
|
|
496
|
+
--field-row-description-font-size: 13px;
|
|
497
|
+
--field-row-description-line-height: 16px;
|
|
498
|
+
--field-row-description-min-height: 64px;
|
|
499
|
+
--field-row-above-font-size: 13px;
|
|
500
|
+
--field-row-above-line-height: 16px;
|
|
501
|
+
--field-row-above-gap: 4px;
|
|
502
|
+
--field-row-above-padding-block: 10px;
|
|
503
|
+
--field-row-icon-offset: -3px;
|
|
504
|
+
--field-row-icon-gap: 18px;
|
|
505
|
+
--field-row-icon-radius: 10px;
|
|
506
|
+
--field-row-press-background: var(--android-ripple-card-color);
|
|
507
|
+
--field-group-radius: 16px;
|
|
508
|
+
--mobile-field-error-font-size: 14px;
|
|
509
|
+
--mobile-field-error-line-height: 18px;
|
|
510
|
+
--mobile-field-error-icon-display: none;
|
|
511
|
+
}
|
|
512
|
+
:root[data-platform="android"] :where([data-plex-layout="phone"]), :root[data-platform="android"]:where([data-theme="light"]) :where([data-plex-layout="phone"]), :root[data-platform="android"] :where([data-theme="light"]) :where([data-plex-layout="phone"]) {
|
|
513
|
+
--android-accent-text: var(--color-background-accent-solid);
|
|
514
|
+
--android-danger-text: var(--color-background-danger-solid);
|
|
515
|
+
--android-divider: #d9d9d9;
|
|
516
|
+
--android-switch-off: #a7adb2;
|
|
517
|
+
--android-checkbox-ring: #b0b9c2;
|
|
518
|
+
--android-button-solid-press: rgb(0 0 0 / 5.9%);
|
|
519
|
+
--android-hint: #a8a8a8;
|
|
520
|
+
--android-field-line: #dbdbdb;
|
|
521
|
+
--android-search-fill: color-mix(in srgb, var(--color-text) 5%, transparent);
|
|
522
|
+
}
|
|
523
|
+
:root[data-platform="android"]:where([data-theme="dark"]) :where([data-plex-layout="phone"]), :root[data-platform="android"] :where([data-theme="dark"]) :where([data-plex-layout="phone"]) {
|
|
524
|
+
--android-accent-text: var(--color-text-accent);
|
|
525
|
+
--android-danger-text: var(--color-text-danger-soft);
|
|
526
|
+
--android-divider: var(--gray-0);
|
|
527
|
+
--android-switch-off: var(--gray-500);
|
|
528
|
+
--android-checkbox-ring: var(--gray-500);
|
|
529
|
+
--android-button-solid-press: rgb(255 255 255 / 5.1%);
|
|
530
|
+
--android-hint: #7d7d7d;
|
|
531
|
+
--android-field-line: color-mix(in srgb, var(--color-text) 24%, transparent);
|
|
532
|
+
--android-search-fill: color-mix(in srgb, var(--color-text) 7%, transparent);
|
|
533
|
+
}
|
|
534
|
+
/* A field with a floating label (FloatingLabelInput, FloatingLabelSelect; @plexui/react-native's on Android): an
|
|
535
|
+
outlined field 56 tall, corners 8, the text 16 14 in, a hairline in a light gray (the text at 24% at night)
|
|
536
|
+
that turns to the accent while it is edited, the label 16 in the hint color at rest and 12 in the accent on
|
|
537
|
+
the line once it floats. With the label inside it is filled with the text at 5%, its label floated 8 from the top
|
|
538
|
+
and the value 10 from the bottom. */
|
|
539
|
+
:root[data-platform="android"] :where([data-plex-layout="phone"]) {
|
|
540
|
+
--floating-input-height: 56px;
|
|
541
|
+
--floating-input-inside-height: 56px;
|
|
542
|
+
--floating-input-box-radius: 8px;
|
|
543
|
+
--floating-input-box-gutter: 14px;
|
|
544
|
+
--floating-input-font-size: 16px;
|
|
545
|
+
--floating-input-border-color: var(--android-field-line);
|
|
546
|
+
--floating-input-border-color-hover: var(--android-field-line);
|
|
547
|
+
--floating-input-border-color-focus: var(--android-accent-text);
|
|
548
|
+
--floating-input-border-color-invalid: var(--android-danger-text);
|
|
549
|
+
--floating-input-label-color: var(--android-hint);
|
|
550
|
+
--floating-input-label-color-focus: var(--android-accent-text);
|
|
551
|
+
--floating-input-label-color-invalid: var(--android-danger-text);
|
|
552
|
+
--floating-input-inside-label-color: var(--android-hint);
|
|
553
|
+
--floating-input-label-scale: 0.75;
|
|
554
|
+
--floating-input-inside-label-scale: 0.75;
|
|
555
|
+
--floating-input-inside-label-shift: -12px;
|
|
556
|
+
--floating-input-inside-value-shift: 16px;
|
|
557
|
+
--floating-input-inside-line-height: 20px;
|
|
558
|
+
}
|
|
559
|
+
/* A search field in the content (under a large title, at the top of a sheet) is Android's pill of the text at 5%,
|
|
560
|
+
with no glass (its size and colors: Input.module.css); an invalid one keeps its red line. */
|
|
561
|
+
html[data-platform="android"] :where([data-plex-layout="phone"]) [data-slot="input"][data-variant="soft"]:has(> input[type="search"]):not(:where([data-row] *, [data-toolbar] *)) {
|
|
562
|
+
--input-soft-background-color: var(--android-search-fill);
|
|
563
|
+
|
|
564
|
+
background-image: none;
|
|
565
|
+
backdrop-filter: none;
|
|
566
|
+
}
|
|
567
|
+
html[data-platform="android"] :where([data-plex-layout="phone"]) [data-slot="input"][data-variant="soft"]:has(> input[type="search"]):not(:where([data-row] *, [data-toolbar] *)):not([data-invalid]) {
|
|
568
|
+
box-shadow: none;
|
|
569
|
+
}
|
|
570
|
+
/* Sliders: a 3 track (corners 1.5) in a light gray, its fill in the accent, a 12 knob of the accent with no ring
|
|
571
|
+
and no shadow (and no lens: Slider.module.css); the label 16 and the value 16 in the accent at the end. */
|
|
572
|
+
:root[data-platform="android"] :where([data-plex-layout="phone"]) {
|
|
573
|
+
--slider-track-size: 3px;
|
|
574
|
+
--slider-track-radius: 1.5px;
|
|
575
|
+
--slider-range-color: var(--color-background-accent-solid);
|
|
576
|
+
--slider-thumb-width: 12px;
|
|
577
|
+
--slider-thumb-height: 12px;
|
|
578
|
+
--slider-thumb-background: var(--color-background-accent-solid);
|
|
579
|
+
--slider-thumb-shadow: none;
|
|
580
|
+
--slider-label-font-size: 16px;
|
|
581
|
+
--slider-label-line-height: 20px;
|
|
582
|
+
--slider-value-font-size: 16px;
|
|
583
|
+
--slider-value-line-height: 20px;
|
|
584
|
+
--slider-value-color: var(--android-accent-text);
|
|
585
|
+
--slider-unit-color: var(--android-accent-text);
|
|
586
|
+
}
|
|
587
|
+
:root[data-platform="android"] :where([data-plex-layout="phone"]), :root[data-platform="android"]:where([data-theme="light"]) :where([data-plex-layout="phone"]), :root[data-platform="android"] :where([data-theme="light"]) :where([data-plex-layout="phone"]) {
|
|
588
|
+
--slider-track-color: #ebedf0;
|
|
589
|
+
}
|
|
590
|
+
:root[data-platform="android"]:where([data-theme="dark"]) :where([data-plex-layout="phone"]), :root[data-platform="android"] :where([data-theme="dark"]) :where([data-plex-layout="phone"]) {
|
|
591
|
+
--slider-track-color: var(--gray-300);
|
|
592
|
+
}
|
|
593
|
+
/* Buttons (@plexui/react-native's Button on Android): three steps, 32 (3xs to sm), 40 (md, lg) and 48 (xl to 3xl),
|
|
594
|
+
their gutters 12, 16 and 20, the label 14/20 Medium (15/20 in the 48), 4 (32) or 6 from its symbol, a symbol of 16
|
|
595
|
+
(32) or 20, a spinner of 18 (24 in the 48). A bar that sizes its own buttons keeps its sizes. */
|
|
596
|
+
:root[data-platform="android"] :where([data-plex-layout="phone"]) {
|
|
597
|
+
--button-font-weight: var(--font-weight-medium);
|
|
598
|
+
--button-touch-gap-sm: 4px;
|
|
599
|
+
--button-touch-gap: 6px;
|
|
600
|
+
--button-size-3xs: 32px;
|
|
601
|
+
--button-size-2xs: 32px;
|
|
602
|
+
--button-size-xs: 32px;
|
|
603
|
+
--button-size-sm: 32px;
|
|
604
|
+
--button-size-md: 40px;
|
|
605
|
+
--button-size-lg: 40px;
|
|
606
|
+
--button-size-xl: 48px;
|
|
607
|
+
--button-size-2xl: 48px;
|
|
608
|
+
--button-size-3xl: 48px;
|
|
609
|
+
--button-gutter-3xs: 12px;
|
|
610
|
+
--button-gutter-2xs: 12px;
|
|
611
|
+
--button-gutter-xs: 12px;
|
|
612
|
+
--button-gutter-sm: 12px;
|
|
613
|
+
--button-gutter-md: 16px;
|
|
614
|
+
--button-gutter-lg: 16px;
|
|
615
|
+
--button-gutter-xl: 20px;
|
|
616
|
+
--button-gutter-2xl: 20px;
|
|
617
|
+
--button-gutter-3xl: 20px;
|
|
618
|
+
--button-font-size-3xs: 14px;
|
|
619
|
+
--button-font-size-2xs: 14px;
|
|
620
|
+
--button-font-size-xs: 14px;
|
|
621
|
+
--button-font-size-sm: 14px;
|
|
622
|
+
--button-font-size-md: 14px;
|
|
623
|
+
--button-font-size-lg: 14px;
|
|
624
|
+
--button-font-size-xl: 15px;
|
|
625
|
+
--button-font-size-2xl: 15px;
|
|
626
|
+
--button-font-size-3xl: 15px;
|
|
627
|
+
--button-line-height-3xs: 20px;
|
|
628
|
+
--button-line-height-2xs: 20px;
|
|
629
|
+
--button-line-height-xs: 20px;
|
|
630
|
+
--button-line-height-sm: 20px;
|
|
631
|
+
--button-line-height-md: 20px;
|
|
632
|
+
--button-line-height-lg: 20px;
|
|
633
|
+
--button-line-height-xl: 20px;
|
|
634
|
+
--button-line-height-2xl: 20px;
|
|
635
|
+
--button-line-height-3xl: 20px;
|
|
636
|
+
--button-icon-size-3xs: 16px;
|
|
637
|
+
--button-icon-size-2xs: 16px;
|
|
638
|
+
--button-icon-size-xs: 16px;
|
|
639
|
+
--button-indicator-size-3xs: 18px;
|
|
640
|
+
--button-indicator-size-2xs: 18px;
|
|
641
|
+
--button-indicator-size-xs: 18px;
|
|
642
|
+
--button-indicator-size-sm: 18px;
|
|
643
|
+
--button-indicator-size-md: 18px;
|
|
644
|
+
--button-indicator-size-lg: 18px;
|
|
645
|
+
--button-indicator-size-xl: 24px;
|
|
646
|
+
--button-indicator-size-2xl: 24px;
|
|
647
|
+
--button-indicator-size-3xl: 24px;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
/* Android sheet search. The search field a top bar opens (`Toolbar.Content search`, Toolbar.module.css): its hint in
|
|
651
|
+
the reference's hint gray (#A8A8A8, #7D7D7D at night). It morphs out of its circle over 380ms on the reference's
|
|
652
|
+
EASE_OUT_QUINT, and a clear button grows in over 250ms. */
|
|
653
|
+
@media (max-width: 767px) {
|
|
654
|
+
:root[data-platform="android"] {
|
|
655
|
+
--android-search-duration: 380ms;
|
|
656
|
+
--android-search-clear-duration: 250ms;
|
|
657
|
+
--android-search-easing: cubic-bezier(0.23, 1, 0.32, 1);
|
|
658
|
+
}
|
|
659
|
+
:root[data-platform="android"], :root[data-platform="android"]:where([data-theme="light"]) {
|
|
660
|
+
--android-search-hint: #a8a8a8;
|
|
661
|
+
}
|
|
662
|
+
:root[data-platform="android"]:where([data-theme="dark"]) {
|
|
663
|
+
--android-search-hint: #7d7d7d;
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
:root[data-platform="android"] :where([data-plex-layout="phone"]) {
|
|
667
|
+
--android-search-duration: 380ms;
|
|
668
|
+
--android-search-clear-duration: 250ms;
|
|
669
|
+
--android-search-easing: cubic-bezier(0.23, 1, 0.32, 1);
|
|
670
|
+
}
|
|
671
|
+
:root[data-platform="android"] :where([data-plex-layout="phone"]), :root[data-platform="android"]:where([data-theme="light"]) :where([data-plex-layout="phone"]), :root[data-platform="android"] :where([data-theme="light"]) :where([data-plex-layout="phone"]) {
|
|
672
|
+
--android-search-hint: #a8a8a8;
|
|
673
|
+
}
|
|
674
|
+
:root[data-platform="android"]:where([data-theme="dark"]) :where([data-plex-layout="phone"]), :root[data-platform="android"] :where([data-theme="dark"]) :where([data-plex-layout="phone"]) {
|
|
675
|
+
--android-search-hint: #7d7d7d;
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
/* Android press ripple. A press in the Android look is Android's RippleDrawable (its RippleForeground), not a flat
|
|
679
|
+
fill. PlexUIProvider marks the control under the finger (`data-ripple`) and gives it where the circle starts and
|
|
680
|
+
ends (--android-ripple-x, -y, -r0, -r1: its packages' androidRipple.ts); a control's own stylesheet paints
|
|
681
|
+
--android-ripple-image on the layer that has its shape (its corners, a menu's first and last rows, a circle). The
|
|
682
|
+
circle starts at 30% of the control's longer side round the finger and grows over 225ms (fast out, slow in) to
|
|
683
|
+
the circle round the control's center that reaches its corners, sliding to that center as it grows; a key starts
|
|
684
|
+
it at the center. It shows in 75ms and stays at least 225ms from the press, then fades over 150ms once the finger
|
|
685
|
+
lifts. With reduced motion it is a plain fade of the whole circle. No scale and no other fill. The ink is the
|
|
686
|
+
reference's list selector: black at 5.9% (#0F000000), white at 5.1% at night (the night theme's
|
|
687
|
+
listSelectorSDK21, #0DFFFFFF); a row of a card (a sectioned list) black at 4.7%, as the phone's build draws a
|
|
688
|
+
held card row (243 on its white; the public source's settings selector, #1D000010 at 11.4%, read as too dark
|
|
689
|
+
beside it), at night the list selector's white at 5.1%; a menu's row its dialog button selector,
|
|
690
|
+
white at 9.8% at night (#19FFFFFF). A small button's circle (a bar's icon, a field's button) is borderless: 20px
|
|
691
|
+
round the button's center, not clipped to its box. */
|
|
692
|
+
@property --android-ripple-r {
|
|
693
|
+
syntax: "<length>";
|
|
694
|
+
inherits: true;
|
|
695
|
+
initial-value: 0px;
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
@property --android-ripple-cx {
|
|
699
|
+
syntax: "<length-percentage>";
|
|
700
|
+
inherits: true;
|
|
701
|
+
initial-value: 50%;
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
@property --android-ripple-cy {
|
|
705
|
+
syntax: "<length-percentage>";
|
|
706
|
+
inherits: true;
|
|
707
|
+
initial-value: 50%;
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
/* Shown (0 to 1 in the first 75ms), the hold (1 for 225ms, then 0 over 150ms) and the finger down (1, then 0 over
|
|
711
|
+
150ms from the release): the ripple's strength is shown × the larger of the other two, which is Android's fade
|
|
712
|
+
delayed until 225ms after the press. */
|
|
713
|
+
@property --android-ripple-in {
|
|
714
|
+
syntax: "<number>";
|
|
715
|
+
inherits: true;
|
|
716
|
+
initial-value: 0;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
@property --android-ripple-hold {
|
|
720
|
+
syntax: "<number>";
|
|
721
|
+
inherits: true;
|
|
722
|
+
initial-value: 0;
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
@property --android-ripple-held {
|
|
726
|
+
syntax: "<number>";
|
|
727
|
+
inherits: true;
|
|
728
|
+
initial-value: 0;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
@keyframes android-ripple-grow {
|
|
732
|
+
from {
|
|
733
|
+
--android-ripple-r: var(--android-ripple-r0, 0px);
|
|
734
|
+
--android-ripple-cx: var(--android-ripple-x, 50%);
|
|
735
|
+
--android-ripple-cy: var(--android-ripple-y, 50%);
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
to {
|
|
739
|
+
--android-ripple-r: var(--android-ripple-r1, 0px);
|
|
740
|
+
--android-ripple-cx: 50%;
|
|
741
|
+
--android-ripple-cy: 50%;
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
@keyframes android-ripple-fade {
|
|
746
|
+
0% {
|
|
747
|
+
--android-ripple-in: 0;
|
|
748
|
+
--android-ripple-hold: 1;
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
20% {
|
|
752
|
+
--android-ripple-in: 1;
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
60% {
|
|
756
|
+
--android-ripple-hold: 1;
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
100% {
|
|
760
|
+
--android-ripple-in: 1;
|
|
761
|
+
--android-ripple-hold: 0;
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
@keyframes android-ripple-release {
|
|
766
|
+
from {
|
|
767
|
+
--android-ripple-held: 1;
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
to {
|
|
771
|
+
--android-ripple-held: 0;
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
@media (max-width: 767px) {
|
|
776
|
+
:root[data-platform="android"] {
|
|
777
|
+
--android-ripple-grow-duration: 225ms;
|
|
778
|
+
}
|
|
779
|
+
:root[data-platform="android"], :root[data-platform="android"]:where([data-theme="light"]) {
|
|
780
|
+
--android-ripple-color: rgb(0 0 0 / 5.9%);
|
|
781
|
+
--android-ripple-card-color: rgb(0 0 0 / 4.7%);
|
|
782
|
+
--android-ripple-menu-color: rgb(0 0 0 / 5.9%);
|
|
783
|
+
}
|
|
784
|
+
:root[data-platform="android"]:where([data-theme="dark"]) {
|
|
785
|
+
--android-ripple-color: rgb(255 255 255 / 5.1%);
|
|
786
|
+
--android-ripple-card-color: rgb(255 255 255 / 5.1%);
|
|
787
|
+
--android-ripple-menu-color: rgb(255 255 255 / 9.8%);
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
/* The ink is a control's --android-ripple-ink (a button's label at 10%, a menu's row), else the list selector */
|
|
791
|
+
:root[data-platform="android"] [data-ripple] {
|
|
792
|
+
--android-ripple-image: radial-gradient(
|
|
793
|
+
circle var(--android-ripple-r) at var(--android-ripple-cx) var(--android-ripple-cy),
|
|
794
|
+
color-mix(in srgb, var(--android-ripple-ink, var(--android-ripple-color)) calc(var(--android-ripple-in) * max(var(--android-ripple-hold), var(--android-ripple-held)) * 100%), transparent) calc(100% - 0.5px),
|
|
795
|
+
transparent 100%
|
|
796
|
+
);
|
|
797
|
+
|
|
798
|
+
animation:
|
|
799
|
+
android-ripple-grow var(--android-ripple-grow-duration) cubic-bezier(0.4, 0, 0.2, 1) both,
|
|
800
|
+
android-ripple-fade 375ms linear both;
|
|
801
|
+
/* No flat layer beside it: a held glass keeps its glass */
|
|
802
|
+
--mobile-glass-background-active: var(--mobile-glass-background);
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
:root[data-platform="android"] [data-ripple]:active {
|
|
806
|
+
--android-ripple-held: 1;
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
:root[data-platform="android"] [data-ripple]:not(:active) {
|
|
810
|
+
animation:
|
|
811
|
+
android-ripple-grow var(--android-ripple-grow-duration) cubic-bezier(0.4, 0, 0.2, 1) both,
|
|
812
|
+
android-ripple-fade 375ms linear both,
|
|
813
|
+
android-ripple-release 150ms linear both;
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
:root[data-platform="android"] :where([data-plex-layout="phone"]) {
|
|
818
|
+
--android-ripple-grow-duration: 225ms;
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
:root[data-platform="android"] :where([data-plex-layout="phone"]), :root[data-platform="android"]:where([data-theme="light"]) :where([data-plex-layout="phone"]), :root[data-platform="android"] :where([data-theme="light"]) :where([data-plex-layout="phone"]) {
|
|
822
|
+
--android-ripple-color: rgb(0 0 0 / 5.9%);
|
|
823
|
+
--android-ripple-card-color: rgb(0 0 0 / 4.7%);
|
|
824
|
+
--android-ripple-menu-color: rgb(0 0 0 / 5.9%);
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
:root[data-platform="android"]:where([data-theme="dark"]) :where([data-plex-layout="phone"]), :root[data-platform="android"] :where([data-theme="dark"]) :where([data-plex-layout="phone"]) {
|
|
828
|
+
--android-ripple-color: rgb(255 255 255 / 5.1%);
|
|
829
|
+
--android-ripple-card-color: rgb(255 255 255 / 5.1%);
|
|
830
|
+
--android-ripple-menu-color: rgb(255 255 255 / 9.8%);
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
/* The ink is a control's --android-ripple-ink (a button's label at 10%, a menu's row), else the list selector */
|
|
834
|
+
|
|
835
|
+
:root[data-platform="android"] :where([data-plex-layout="phone"]) [data-ripple] {
|
|
836
|
+
--android-ripple-image: radial-gradient(
|
|
837
|
+
circle var(--android-ripple-r) at var(--android-ripple-cx) var(--android-ripple-cy),
|
|
838
|
+
color-mix(in srgb, var(--android-ripple-ink, var(--android-ripple-color)) calc(var(--android-ripple-in) * max(var(--android-ripple-hold), var(--android-ripple-held)) * 100%), transparent) calc(100% - 0.5px),
|
|
839
|
+
transparent 100%
|
|
840
|
+
);
|
|
841
|
+
|
|
842
|
+
animation:
|
|
843
|
+
android-ripple-grow var(--android-ripple-grow-duration) cubic-bezier(0.4, 0, 0.2, 1) both,
|
|
844
|
+
android-ripple-fade 375ms linear both;
|
|
845
|
+
/* No flat layer beside it: a held glass keeps its glass */
|
|
846
|
+
--mobile-glass-background-active: var(--mobile-glass-background);
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
:root[data-platform="android"] :where([data-plex-layout="phone"]) [data-ripple]:active {
|
|
850
|
+
--android-ripple-held: 1;
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
:root[data-platform="android"] :where([data-plex-layout="phone"]) [data-ripple]:not(:active) {
|
|
854
|
+
animation:
|
|
855
|
+
android-ripple-grow var(--android-ripple-grow-duration) cubic-bezier(0.4, 0, 0.2, 1) both,
|
|
856
|
+
android-ripple-fade 375ms linear both,
|
|
857
|
+
android-ripple-release 150ms linear both;
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
|
|
861
|
+
:root[data-platform="android"] {
|
|
862
|
+
--android-ripple-grow-duration: 0s;
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
@media (prefers-reduced-motion: reduce) {
|
|
867
|
+
:root[data-platform="android"] :where([data-plex-layout="phone"]) {
|
|
868
|
+
--android-ripple-grow-duration: 0s;
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
/* A segmented control in a bar's own row (Tabs.module.css, the Plex Android segmented control in a bar): the
|
|
873
|
+
reference's in-bar capsule shows its selected segment in the screen's gray, the grouped page's color (#f1f1f3 on
|
|
874
|
+
its white capsule), and at night the dark page's, under the glass of the bar. */
|
|
875
|
+
@media (max-width: 767px) {
|
|
876
|
+
:root[data-platform="android"] {
|
|
877
|
+
--android-bar-segment-thumb: var(--mobile-surface-grouped-primary);
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
:root[data-platform="android"] :where([data-plex-layout="phone"]) {
|
|
881
|
+
--android-bar-segment-thumb: var(--mobile-surface-grouped-primary);
|
|
882
|
+
}
|