@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
|
@@ -561,6 +561,145 @@
|
|
|
561
561
|
var(--page-top) + var(--page-content-padding-top) + var(--toolbar-row-gap) + var(--page-toolbar-rows-height, 0px)
|
|
562
562
|
);
|
|
563
563
|
}
|
|
564
|
+
|
|
565
|
+
/* =============================================
|
|
566
|
+
The Plex Android look (`data-platform="android"`, android.css), after @plexui/react-native on Android (decision
|
|
567
|
+
0026): the content's sections stand 12 from the screen's edges and 12 under the bar. Page.Header is the Android
|
|
568
|
+
top bar (Toolbar.module.css): 46px circles of the bar's glass 6 from the sides, 5 under the status bar and 11 over
|
|
569
|
+
the content, the title Medium 17 centered, a subtitle 14/18. Page.Footer meets the content as a bottom Toolbar
|
|
570
|
+
does on Android: the screen's color at 81% fading in over 60px, no blur, no band.
|
|
571
|
+
============================================= */
|
|
572
|
+
[data-platform="android"] .Page {
|
|
573
|
+
--page-gutter: 12px;
|
|
574
|
+
--page-content-padding-top: 12px;
|
|
575
|
+
--page-top: var(--page-toolbar-height, var(--page-header-height, calc(var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) + 62px)));
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
[data-platform="android"] .Header {
|
|
579
|
+
--toolbar-label-font-size: 15px;
|
|
580
|
+
--toolbar-label-line-height: 20px;
|
|
581
|
+
--toolbar-label-font-weight: var(--font-weight-medium);
|
|
582
|
+
--toolbar-label-prominent-font-weight: var(--font-weight-medium);
|
|
583
|
+
--toolbar-label-gutter: 16px;
|
|
584
|
+
--toolbar-icon-size: 24px;
|
|
585
|
+
--navigation-button-size: 46px;
|
|
586
|
+
--mobile-glass-background: var(--android-bar-glass);
|
|
587
|
+
--mobile-glass-background-hover: var(--android-bar-glass);
|
|
588
|
+
--mobile-glass-background-active: var(--android-bar-glass);
|
|
589
|
+
--mobile-glass-sheen: none;
|
|
590
|
+
--mobile-glass-shadow: var(--android-bar-shadow);
|
|
591
|
+
--mobile-glass-shadow-raised: var(--android-bar-shadow);
|
|
592
|
+
padding: calc(var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) + 5px) 6px 11px;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
[data-platform="android"] .Bar {
|
|
596
|
+
grid-template-columns: var(--page-bar-side-width, 46px) minmax(0, 1fr) var(--page-bar-side-width, 46px);
|
|
597
|
+
min-height: 46px;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
[data-platform="android"] .Title {
|
|
601
|
+
font-size: 17px;
|
|
602
|
+
font-weight: var(--font-weight-medium);
|
|
603
|
+
line-height: 22px;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
[data-platform="android"] .Heading:has(> .Subtitle > *) {
|
|
607
|
+
gap: 0;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
[data-platform="android"] .Heading:has(> .Subtitle > *) > .Title {
|
|
611
|
+
line-height: 20px;
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
[data-platform="android"] .Subtitle {
|
|
615
|
+
font-size: 14px;
|
|
616
|
+
line-height: 18px;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
[data-platform="android"] :is(.Leading, .Actions) > :is(button, a) {
|
|
620
|
+
--button-size: 46px;
|
|
621
|
+
--button-uniform-size: 46px;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
[data-platform="android"] .Actions {
|
|
625
|
+
padding-left: 6px;
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
/* A bar's neutral symbol or label is the text color; a held one ripples (android.css, Android press ripple), as a
|
|
629
|
+
Toolbar's: a symbol as a circle of 20px round its center, a label as a circle round its center that reaches its
|
|
630
|
+
corners, clipped to its glass pill. */
|
|
631
|
+
[data-platform="android"] :is(.Leading, .Actions) > :where(button, a):where(:not([data-disabled])):where([data-color="primary"], [data-color="secondary"]):where([data-variant="soft"], [data-variant="ghost"]) {
|
|
632
|
+
--button-text-color: var(--color-text);
|
|
633
|
+
--button-text-color-hover: var(--color-text);
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
[data-platform="android"] :is(.Leading, .Actions) > :where(button, a)[data-uniform] {
|
|
637
|
+
--android-ripple-radius: 20px;
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
[data-platform="android"] :is(.Leading, .Actions) > :where(button, a)[data-variant][data-variant]:not([data-variant="solid"]) {
|
|
641
|
+
--android-ripple-ink: var(--android-ripple-color);
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
/* The soft edge under the bar: the screen's color at 63% eased out over the bar's last 56px (SoftTopEdge). Glass,
|
|
645
|
+
the default, is the same edge on Android (no fill and no line of its own), shown once content is under the bar. */
|
|
646
|
+
[data-platform="android"] .Header:is([data-background="soft"], [data-background="glass"])::before {
|
|
647
|
+
inset: 0;
|
|
648
|
+
background: color-mix(in srgb, var(--page-background) 62.75%, transparent);
|
|
649
|
+
backdrop-filter: none;
|
|
650
|
+
-webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), rgb(0 0 0 / 62.2%) calc(100% - 32px), rgb(0 0 0 / 17%) calc(100% - 16px), transparent);
|
|
651
|
+
mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), rgb(0 0 0 / 62.2%) calc(100% - 32px), rgb(0 0 0 / 17%) calc(100% - 16px), transparent);
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
[data-platform="android"] .Header:is([data-background="soft"], [data-background="glass"])::after {
|
|
655
|
+
position: absolute;
|
|
656
|
+
z-index: -1;
|
|
657
|
+
inset: 0;
|
|
658
|
+
content: "";
|
|
659
|
+
pointer-events: none;
|
|
660
|
+
transition: opacity var(--transition-duration-basic);
|
|
661
|
+
backdrop-filter: blur(6px);
|
|
662
|
+
-webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), rgb(0 0 0 / 62.2%) calc(100% - 18px), transparent);
|
|
663
|
+
mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), rgb(0 0 0 / 62.2%) calc(100% - 18px), transparent);
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
[data-platform="android"] .Header:is([data-background="glass"], [data-background="hard"])::before {
|
|
667
|
+
border-bottom-color: transparent;
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
[data-platform="android"] .Header[data-background="glass"]:not([data-scrolled])::after {
|
|
671
|
+
opacity: 0;
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
[data-platform="android"] .Footer {
|
|
675
|
+
--page-footer-gutter: 16px;
|
|
676
|
+
--page-footer-padding-top: 5px;
|
|
677
|
+
--page-footer-padding-bottom: calc(var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)) + 13px);
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
[data-platform="android"] .Footer[data-background="soft"]:not([data-mobile-variant="sheet"] *)::after {
|
|
681
|
+
display: none;
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
[data-platform="android"] .Footer[data-background="soft"]:not([data-mobile-variant="sheet"] *)::before {
|
|
685
|
+
inset: -8px 0 0;
|
|
686
|
+
background: color-mix(in srgb, var(--page-background) 81.4%, transparent);
|
|
687
|
+
backdrop-filter: none;
|
|
688
|
+
-webkit-mask-image: linear-gradient(to bottom, transparent, rgb(0 0 0 / 41.4%) 20px, rgb(0 0 0 / 75.9%) 40px, #000 60px);
|
|
689
|
+
mask-image: linear-gradient(to bottom, transparent, rgb(0 0 0 / 41.4%) 20px, rgb(0 0 0 / 75.9%) 40px, #000 60px);
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
/* The rows of a large title stand in the bar's row from the start, as Android has no large title: 8 under the
|
|
693
|
+
controls and 6 from the screen's sides (the bar's numbers, Toolbar.module.css), the content 12 under the bar's
|
|
694
|
+
11 below them. */
|
|
695
|
+
[data-platform="android"] .LargeTitleRows {
|
|
696
|
+
top: calc(8px - 11px - var(--page-content-padding-top));
|
|
697
|
+
margin: calc(8px - 11px - var(--page-content-padding-top)) calc(6px - var(--page-gutter)) calc(11px + var(--page-content-padding-top));
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
[data-platform="android"] .LargeTitleRows:has(> :last-child input) {
|
|
701
|
+
margin-bottom: calc(11px + var(--page-content-padding-top));
|
|
702
|
+
}
|
|
564
703
|
}
|
|
565
704
|
:where([data-plex-layout="phone"]) .Page {
|
|
566
705
|
--page-top: var(--page-toolbar-height, var(--page-header-height, calc(max(10px, var(--safe-area-inset-top, env(safe-area-inset-top, 0px))) + var(--page-bar-height-phone) + 10px)));
|
|
@@ -995,4 +1134,143 @@
|
|
|
995
1134
|
var(--page-top) + var(--page-content-padding-top) + var(--toolbar-row-gap) + var(--page-toolbar-rows-height, 0px)
|
|
996
1135
|
);
|
|
997
1136
|
}
|
|
1137
|
+
|
|
1138
|
+
/* =============================================
|
|
1139
|
+
The Plex Android look (`data-platform="android"`, android.css), after @plexui/react-native on Android (decision
|
|
1140
|
+
0026): the content's sections stand 12 from the screen's edges and 12 under the bar. Page.Header is the Android
|
|
1141
|
+
top bar (Toolbar.module.css): 46px circles of the bar's glass 6 from the sides, 5 under the status bar and 11 over
|
|
1142
|
+
the content, the title Medium 17 centered, a subtitle 14/18. Page.Footer meets the content as a bottom Toolbar
|
|
1143
|
+
does on Android: the screen's color at 81% fading in over 60px, no blur, no band.
|
|
1144
|
+
============================================= */
|
|
1145
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Page {
|
|
1146
|
+
--page-gutter: 12px;
|
|
1147
|
+
--page-content-padding-top: 12px;
|
|
1148
|
+
--page-top: var(--page-toolbar-height, var(--page-header-height, calc(var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) + 62px)));
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Header {
|
|
1152
|
+
--toolbar-label-font-size: 15px;
|
|
1153
|
+
--toolbar-label-line-height: 20px;
|
|
1154
|
+
--toolbar-label-font-weight: var(--font-weight-medium);
|
|
1155
|
+
--toolbar-label-prominent-font-weight: var(--font-weight-medium);
|
|
1156
|
+
--toolbar-label-gutter: 16px;
|
|
1157
|
+
--toolbar-icon-size: 24px;
|
|
1158
|
+
--navigation-button-size: 46px;
|
|
1159
|
+
--mobile-glass-background: var(--android-bar-glass);
|
|
1160
|
+
--mobile-glass-background-hover: var(--android-bar-glass);
|
|
1161
|
+
--mobile-glass-background-active: var(--android-bar-glass);
|
|
1162
|
+
--mobile-glass-sheen: none;
|
|
1163
|
+
--mobile-glass-shadow: var(--android-bar-shadow);
|
|
1164
|
+
--mobile-glass-shadow-raised: var(--android-bar-shadow);
|
|
1165
|
+
padding: calc(var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) + 5px) 6px 11px;
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Bar {
|
|
1169
|
+
grid-template-columns: var(--page-bar-side-width, 46px) minmax(0, 1fr) var(--page-bar-side-width, 46px);
|
|
1170
|
+
min-height: 46px;
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Title {
|
|
1174
|
+
font-size: 17px;
|
|
1175
|
+
font-weight: var(--font-weight-medium);
|
|
1176
|
+
line-height: 22px;
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Heading:has(> .Subtitle > *) {
|
|
1180
|
+
gap: 0;
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Heading:has(> .Subtitle > *) > .Title {
|
|
1184
|
+
line-height: 20px;
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Subtitle {
|
|
1188
|
+
font-size: 14px;
|
|
1189
|
+
line-height: 18px;
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] :is(.Leading, .Actions) > :is(button, a) {
|
|
1193
|
+
--button-size: 46px;
|
|
1194
|
+
--button-uniform-size: 46px;
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Actions {
|
|
1198
|
+
padding-left: 6px;
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
/* A bar's neutral symbol or label is the text color; a held one ripples (android.css, Android press ripple), as a
|
|
1202
|
+
Toolbar's: a symbol as a circle of 20px round its center, a label as a circle round its center that reaches its
|
|
1203
|
+
corners, clipped to its glass pill. */
|
|
1204
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] :is(.Leading, .Actions) > :where(button, a):where(:not([data-disabled])):where([data-color="primary"], [data-color="secondary"]):where([data-variant="soft"], [data-variant="ghost"]) {
|
|
1205
|
+
--button-text-color: var(--color-text);
|
|
1206
|
+
--button-text-color-hover: var(--color-text);
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] :is(.Leading, .Actions) > :where(button, a)[data-uniform] {
|
|
1210
|
+
--android-ripple-radius: 20px;
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] :is(.Leading, .Actions) > :where(button, a)[data-variant][data-variant]:not([data-variant="solid"]) {
|
|
1214
|
+
--android-ripple-ink: var(--android-ripple-color);
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
/* The soft edge under the bar: the screen's color at 63% eased out over the bar's last 56px (SoftTopEdge). Glass,
|
|
1218
|
+
the default, is the same edge on Android (no fill and no line of its own), shown once content is under the bar. */
|
|
1219
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Header:is([data-background="soft"], [data-background="glass"])::before {
|
|
1220
|
+
inset: 0;
|
|
1221
|
+
background: color-mix(in srgb, var(--page-background) 62.75%, transparent);
|
|
1222
|
+
backdrop-filter: none;
|
|
1223
|
+
-webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), rgb(0 0 0 / 62.2%) calc(100% - 32px), rgb(0 0 0 / 17%) calc(100% - 16px), transparent);
|
|
1224
|
+
mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), rgb(0 0 0 / 62.2%) calc(100% - 32px), rgb(0 0 0 / 17%) calc(100% - 16px), transparent);
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Header:is([data-background="soft"], [data-background="glass"])::after {
|
|
1228
|
+
position: absolute;
|
|
1229
|
+
z-index: -1;
|
|
1230
|
+
inset: 0;
|
|
1231
|
+
content: "";
|
|
1232
|
+
pointer-events: none;
|
|
1233
|
+
transition: opacity var(--transition-duration-basic);
|
|
1234
|
+
backdrop-filter: blur(6px);
|
|
1235
|
+
-webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), rgb(0 0 0 / 62.2%) calc(100% - 18px), transparent);
|
|
1236
|
+
mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), rgb(0 0 0 / 62.2%) calc(100% - 18px), transparent);
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Header:is([data-background="glass"], [data-background="hard"])::before {
|
|
1240
|
+
border-bottom-color: transparent;
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Header[data-background="glass"]:not([data-scrolled])::after {
|
|
1244
|
+
opacity: 0;
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Footer {
|
|
1248
|
+
--page-footer-gutter: 16px;
|
|
1249
|
+
--page-footer-padding-top: 5px;
|
|
1250
|
+
--page-footer-padding-bottom: calc(var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)) + 13px);
|
|
1251
|
+
}
|
|
1252
|
+
|
|
1253
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Footer[data-background="soft"]:not([data-mobile-variant="sheet"] *)::after {
|
|
1254
|
+
display: none;
|
|
1255
|
+
}
|
|
1256
|
+
|
|
1257
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Footer[data-background="soft"]:not([data-mobile-variant="sheet"] *)::before {
|
|
1258
|
+
inset: -8px 0 0;
|
|
1259
|
+
background: color-mix(in srgb, var(--page-background) 81.4%, transparent);
|
|
1260
|
+
backdrop-filter: none;
|
|
1261
|
+
-webkit-mask-image: linear-gradient(to bottom, transparent, rgb(0 0 0 / 41.4%) 20px, rgb(0 0 0 / 75.9%) 40px, #000 60px);
|
|
1262
|
+
mask-image: linear-gradient(to bottom, transparent, rgb(0 0 0 / 41.4%) 20px, rgb(0 0 0 / 75.9%) 40px, #000 60px);
|
|
1263
|
+
}
|
|
1264
|
+
|
|
1265
|
+
/* The rows of a large title stand in the bar's row from the start, as Android has no large title: 8 under the
|
|
1266
|
+
controls and 6 from the screen's sides (the bar's numbers, Toolbar.module.css), the content 12 under the bar's
|
|
1267
|
+
11 below them. */
|
|
1268
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .LargeTitleRows {
|
|
1269
|
+
top: calc(8px - 11px - var(--page-content-padding-top));
|
|
1270
|
+
margin: calc(8px - 11px - var(--page-content-padding-top)) calc(6px - var(--page-gutter)) calc(11px + var(--page-content-padding-top));
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .LargeTitleRows:has(> :last-child input) {
|
|
1274
|
+
margin-bottom: calc(11px + var(--page-content-padding-top));
|
|
1275
|
+
}
|
|
998
1276
|
}
|
|
@@ -77,5 +77,40 @@
|
|
|
77
77
|
.Dot {
|
|
78
78
|
transition-duration: 0ms;
|
|
79
79
|
}
|
|
80
|
+
}/* =============================================
|
|
81
|
+
The Plex Android look (`data-platform="android"`, android.css), after @plexui/react-native's PageControl on
|
|
82
|
+
Android (decision 0026): 5px dots 6 apart, a light gray (a dark one at night), the current one in the accent; every
|
|
83
|
+
page keeps its full dot (no shrinking window) and the row never fills a capsule. The target is 48 tall.
|
|
84
|
+
============================================= */@media (max-width: 767px) {
|
|
85
|
+
[data-platform="android"] .PageControl {
|
|
86
|
+
--page-control-dot-size: 5px;
|
|
87
|
+
--page-control-dot-size-small: 5px;
|
|
88
|
+
--page-control-dot-size-smaller: 5px;
|
|
89
|
+
--page-control-gap: 6px;
|
|
90
|
+
--page-control-dot-color: var(--android-dot);
|
|
91
|
+
--page-control-dot-color-current: var(--color-background-accent-solid);
|
|
92
|
+
--page-control-target-size: 48px;
|
|
93
|
+
--page-control-background: transparent;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
[data-platform="android"] .Dot[data-size] {
|
|
97
|
+
display: block;
|
|
98
|
+
margin-inline: 0;
|
|
99
|
+
}
|
|
80
100
|
}
|
|
101
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .PageControl {
|
|
102
|
+
--page-control-dot-size: 5px;
|
|
103
|
+
--page-control-dot-size-small: 5px;
|
|
104
|
+
--page-control-dot-size-smaller: 5px;
|
|
105
|
+
--page-control-gap: 6px;
|
|
106
|
+
--page-control-dot-color: var(--android-dot);
|
|
107
|
+
--page-control-dot-color-current: var(--color-background-accent-solid);
|
|
108
|
+
--page-control-target-size: 48px;
|
|
109
|
+
--page-control-background: transparent;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Dot[data-size] {
|
|
113
|
+
display: block;
|
|
114
|
+
margin-inline: 0;
|
|
115
|
+
}
|
|
81
116
|
}
|
|
@@ -70,11 +70,31 @@
|
|
|
70
70
|
box-shadow: var(--popover-mobile-shadow, var(--menu-shadow, var(--shadow), var(--shadow-hairline)));
|
|
71
71
|
backdrop-filter: var(--popover-mobile-backdrop-filter, none);
|
|
72
72
|
}
|
|
73
|
+
|
|
74
|
+
/* The Plex Android look (`data-platform="android"`, android.css): a popup as the Android reference's current
|
|
75
|
+
popups and the Menu on Android draw one, the glass of the bar's circles (the card at 80% over the blurred
|
|
76
|
+
screen, their rim and soft shadow) with 22px corners. */
|
|
77
|
+
[data-platform="android"] .Popover {
|
|
78
|
+
--popover-radius: 22px;
|
|
79
|
+
--popover-mobile-background: var(--android-bar-glass);
|
|
80
|
+
--popover-mobile-shadow: var(--android-bar-shadow);
|
|
81
|
+
--popover-mobile-backdrop-filter: var(--mobile-glass-backdrop-filter);
|
|
82
|
+
}
|
|
73
83
|
}
|
|
74
84
|
:where([data-plex-layout="phone"]) .Popover {
|
|
75
85
|
background: var(--popover-mobile-background, var(--color-surface-elevated));
|
|
76
86
|
box-shadow: var(--popover-mobile-shadow, var(--menu-shadow, var(--shadow), var(--shadow-hairline)));
|
|
77
87
|
backdrop-filter: var(--popover-mobile-backdrop-filter, none);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* The Plex Android look (`data-platform="android"`, android.css): a popup as the Android reference's current
|
|
91
|
+
popups and the Menu on Android draw one, the glass of the bar's circles (the card at 80% over the blurred
|
|
92
|
+
screen, their rim and soft shadow) with 22px corners. */
|
|
93
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Popover {
|
|
94
|
+
--popover-radius: 22px;
|
|
95
|
+
--popover-mobile-background: var(--android-bar-glass);
|
|
96
|
+
--popover-mobile-shadow: var(--android-bar-shadow);
|
|
97
|
+
--popover-mobile-backdrop-filter: var(--mobile-glass-backdrop-filter);
|
|
78
98
|
}@keyframes shake {
|
|
79
99
|
0% {
|
|
80
100
|
transform: translateX(0);
|
|
@@ -165,5 +165,156 @@
|
|
|
165
165
|
height: 26px;
|
|
166
166
|
margin: -2px;
|
|
167
167
|
color: var(--radio-group-checkmark-color, var(--color-text));
|
|
168
|
+
}/* The Plex Android radio (@plexui/react-native on Android): a 20 ring 2px wide in a 48 target, the empty ring the
|
|
169
|
+
text at 30% over the card, the chosen one the accent solid (Android's own selection color) with a 10 dot in it, in Android's 200ms ease-in-out.
|
|
170
|
+
The target reaches past the ring without taking room: the ring keeps the edge of its line and the label starts 13
|
|
171
|
+
after it. Options in a column stand 48 apart. No checkmark: Android draws the ring in a list row too. */@media (max-width: 767px) {
|
|
172
|
+
[data-platform="android"] .RadioGroup {
|
|
173
|
+
--android-radio-idle: color-mix(in srgb, var(--color-text) 30%, var(--mobile-surface-grouped-secondary, var(--color-surface)));
|
|
174
|
+
--android-radio-chosen: var(--color-background-accent-solid);
|
|
175
|
+
--android-radio-ease: cubic-bezier(0.37, 0, 0.63, 1);
|
|
176
|
+
--radio-group-target-size: 48px;
|
|
177
|
+
--radio-group-indicator-size: 20px;
|
|
178
|
+
--radio-group-item-gap: 0px;
|
|
179
|
+
--radio-group-col-gap: 0px;
|
|
180
|
+
--radio-group-item-font-size: 16px;
|
|
181
|
+
--radio-group-item-line-height: 24px;
|
|
182
|
+
--radio-group-description-font-size: 14px;
|
|
183
|
+
--radio-group-description-line-height: 20px;
|
|
184
|
+
--radio-group-checkmark-display: none;
|
|
185
|
+
--radio-group-dot-display: block;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
[data-platform="android"] .RadioLabel[data-has-label]:not([data-orientation="right"]) > .RadioIndicatorWrapper {
|
|
189
|
+
margin-inline: -14px -1px;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
[data-platform="android"] .RadioLabel[data-has-label][data-orientation="right"] > .RadioIndicatorWrapper {
|
|
193
|
+
margin-inline: -1px -14px;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
[data-platform="android"] .RadioItemGroup:not([data-orientation="right"]) .RadioDescription {
|
|
197
|
+
padding-inline-start: 33px;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
[data-platform="android"] .RadioItem {
|
|
201
|
+
--android-radio-color: var(--android-radio-idle);
|
|
202
|
+
|
|
203
|
+
box-shadow: none;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
[data-platform="android"] .RadioItem[data-state="checked"] {
|
|
207
|
+
--android-radio-color: var(--android-radio-chosen);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
[data-platform="android"] .RadioItem::before {
|
|
211
|
+
position: absolute;
|
|
212
|
+
inset: 0;
|
|
213
|
+
width: 20px;
|
|
214
|
+
height: 20px;
|
|
215
|
+
margin: auto;
|
|
216
|
+
border-radius: var(--radius-full);
|
|
217
|
+
box-shadow: inset 0 0 0 2px var(--android-radio-color);
|
|
218
|
+
content: "";
|
|
219
|
+
transition: box-shadow 200ms var(--android-radio-ease);
|
|
220
|
+
}
|
|
221
|
+
[data-platform="android"] .RadioIndicator::before {
|
|
222
|
+
width: 10px;
|
|
223
|
+
height: 10px;
|
|
224
|
+
animation: android-radio-dot 200ms var(--android-radio-ease);
|
|
225
|
+
background-color: var(--android-radio-chosen);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
[data-platform="android"] .RadioIndicator::after {
|
|
229
|
+
display: none;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .RadioGroup {
|
|
233
|
+
--android-radio-idle: color-mix(in srgb, var(--color-text) 30%, var(--mobile-surface-grouped-secondary, var(--color-surface)));
|
|
234
|
+
--android-radio-chosen: var(--color-background-accent-solid);
|
|
235
|
+
--android-radio-ease: cubic-bezier(0.37, 0, 0.63, 1);
|
|
236
|
+
--radio-group-target-size: 48px;
|
|
237
|
+
--radio-group-indicator-size: 20px;
|
|
238
|
+
--radio-group-item-gap: 0px;
|
|
239
|
+
--radio-group-col-gap: 0px;
|
|
240
|
+
--radio-group-item-font-size: 16px;
|
|
241
|
+
--radio-group-item-line-height: 24px;
|
|
242
|
+
--radio-group-description-font-size: 14px;
|
|
243
|
+
--radio-group-description-line-height: 20px;
|
|
244
|
+
--radio-group-checkmark-display: none;
|
|
245
|
+
--radio-group-dot-display: block;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .RadioLabel[data-has-label]:not([data-orientation="right"]) > .RadioIndicatorWrapper {
|
|
249
|
+
margin-inline: -14px -1px;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .RadioLabel[data-has-label][data-orientation="right"] > .RadioIndicatorWrapper {
|
|
253
|
+
margin-inline: -1px -14px;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .RadioItemGroup:not([data-orientation="right"]) .RadioDescription {
|
|
257
|
+
padding-inline-start: 33px;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .RadioItem {
|
|
261
|
+
--android-radio-color: var(--android-radio-idle);
|
|
262
|
+
|
|
263
|
+
box-shadow: none;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .RadioItem[data-state="checked"] {
|
|
267
|
+
--android-radio-color: var(--android-radio-chosen);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .RadioItem::before {
|
|
271
|
+
position: absolute;
|
|
272
|
+
inset: 0;
|
|
273
|
+
width: 20px;
|
|
274
|
+
height: 20px;
|
|
275
|
+
margin: auto;
|
|
276
|
+
border-radius: var(--radius-full);
|
|
277
|
+
box-shadow: inset 0 0 0 2px var(--android-radio-color);
|
|
278
|
+
content: "";
|
|
279
|
+
transition: box-shadow 200ms var(--android-radio-ease);
|
|
280
|
+
}
|
|
281
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .RadioIndicator::before {
|
|
282
|
+
width: 10px;
|
|
283
|
+
height: 10px;
|
|
284
|
+
animation: android-radio-dot 200ms var(--android-radio-ease);
|
|
285
|
+
background-color: var(--android-radio-chosen);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .RadioIndicator::after {
|
|
289
|
+
display: none;
|
|
290
|
+
}@keyframes android-radio-dot {
|
|
291
|
+
0%,
|
|
292
|
+
50% {
|
|
293
|
+
opacity: 0;
|
|
294
|
+
transform: scale(1.4);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
50.1% {
|
|
298
|
+
opacity: 1;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
100% {
|
|
302
|
+
opacity: 1;
|
|
303
|
+
transform: scale(1);
|
|
304
|
+
}
|
|
305
|
+
}/* On a phone the label of a check, a switch or a radio is part of the control it presses: a long press or a double tap
|
|
306
|
+
does not select it nor call up the text menu. */@media (max-width: 767px) {
|
|
307
|
+
.RadioLabel {
|
|
308
|
+
-webkit-touch-callout: none;
|
|
309
|
+
-webkit-user-select: none;
|
|
310
|
+
-moz-user-select: none;
|
|
311
|
+
user-select: none;
|
|
312
|
+
}
|
|
168
313
|
}
|
|
314
|
+
:where([data-plex-layout="phone"]) .RadioLabel {
|
|
315
|
+
-webkit-touch-callout: none;
|
|
316
|
+
-webkit-user-select: none;
|
|
317
|
+
-moz-user-select: none;
|
|
318
|
+
user-select: none;
|
|
319
|
+
}
|
|
169
320
|
}
|