@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
|
@@ -141,6 +141,8 @@
|
|
|
141
141
|
padding: 0 12px 8px;
|
|
142
142
|
line-height: 14px;
|
|
143
143
|
transition: opacity var(--sidebar-collapse-duration) var(--cubic-move);
|
|
144
|
+
}/* A label over a panel of fields, not rows: it starts at the panel's edge */.GroupLabel[data-inset="false"] {
|
|
145
|
+
padding-inline: 0;
|
|
144
146
|
}/* Small header - compact dashboard/settings style */.GroupLabel[data-size="sm"] {
|
|
145
147
|
margin: 0;
|
|
146
148
|
color: var(--sidebar-group-label-color);
|
|
@@ -230,8 +232,9 @@
|
|
|
230
232
|
}/* Press effect */.MenuButton:active:not([data-active="true"])::before {
|
|
231
233
|
opacity: 0.7;
|
|
232
234
|
transform: scale(0.98);
|
|
233
|
-
}/* Focus visible
|
|
234
|
-
|
|
235
|
+
}/* Focus visible: the ring inside the row, so a list that clips its rows
|
|
236
|
+
(a submenu's collapse, a scroller) never cuts its corners */.MenuButton:focus-visible::before {
|
|
237
|
+
box-shadow: inset 0 0 0 2px var(--color-ring);
|
|
235
238
|
}/* Inner container - controls height like reference .abr-y */.MenuButtonInner {
|
|
236
239
|
/* The row's height: a badge keeps an even inset inside it */
|
|
237
240
|
--sidebar-menu-row-height: var(--sidebar-menu-item-height);
|
|
@@ -461,7 +464,16 @@
|
|
|
461
464
|
opacity: 0.7;
|
|
462
465
|
transform: scale(0.98);
|
|
463
466
|
}.MenuSubButton:focus-visible::before {
|
|
464
|
-
box-shadow: 0 0 0 2px var(--color-ring);
|
|
467
|
+
box-shadow: inset 0 0 0 2px var(--color-ring);
|
|
468
|
+
}/* The text of a submenu row: over the row's fill, cut with an ellipsis */.MenuSubButtonLabel {
|
|
469
|
+
position: relative;
|
|
470
|
+
z-index: 1;
|
|
471
|
+
flex: 1;
|
|
472
|
+
min-width: 0;
|
|
473
|
+
overflow: hidden;
|
|
474
|
+
text-align: start;
|
|
475
|
+
text-overflow: ellipsis;
|
|
476
|
+
white-space: nowrap;
|
|
465
477
|
}@media (min-width: 768px) {
|
|
466
478
|
.MenuSubButton:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
|
|
467
479
|
--sidebar-menu-row-height: calc(12px + var(--sidebar-menu-sub-item-line-height, 20px));
|
|
@@ -476,8 +488,17 @@
|
|
|
476
488
|
padding-left: 36px;
|
|
477
489
|
}.MenuSubButton.indent3 {
|
|
478
490
|
padding-left: 48px;
|
|
479
|
-
}/* When parent has icons, level 1 children align with parent text at 38px
|
|
491
|
+
}/* When parent has icons, level 1 children align with parent text at 38px,
|
|
492
|
+
and each level below steps 12px further */.MenuSub[data-has-icons="true"] .MenuSubButton.indent1 {
|
|
480
493
|
padding-left: 38px;
|
|
494
|
+
}.MenuSub[data-has-icons="true"] .MenuSubButton.indent2 {
|
|
495
|
+
padding-left: 50px;
|
|
496
|
+
}.MenuSub[data-has-icons="true"] .MenuSubButton.indent3 {
|
|
497
|
+
padding-left: 62px;
|
|
498
|
+
}/* An open branch of a tree leaves a gap before the row after it */@media (min-width: 768px) {
|
|
499
|
+
.MenuSub[data-state="open"]:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
|
|
500
|
+
padding-bottom: var(--sidebar-menu-sub-open-gap, 4px);
|
|
501
|
+
}
|
|
481
502
|
}/* Submenu visibility with animation */.MenuSub {
|
|
482
503
|
/* The open height animates from 0 to this cap; raise it for long lists */
|
|
483
504
|
max-height: var(--sidebar-menu-sub-max-height, 1000px);
|
|
@@ -1062,10 +1083,18 @@
|
|
|
1062
1083
|
--sidebar-row-inset: calc(var(--sidebar-list-inset) + 2 * var(--sidebar-list-indent));
|
|
1063
1084
|
}
|
|
1064
1085
|
|
|
1086
|
+
.MobileSidebar:not(:where(.App *)) .MenuSub[data-has-icons="true"] .MenuSubButton.indent2 {
|
|
1087
|
+
--sidebar-row-inset: calc(var(--sidebar-list-inset) + var(--sidebar-list-icon-column) + var(--sidebar-list-indent));
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1065
1090
|
.MobileSidebar:not(:where(.App *)) .MenuSubButton.indent3 {
|
|
1066
1091
|
--sidebar-row-inset: calc(var(--sidebar-list-inset) + 3 * var(--sidebar-list-indent));
|
|
1067
1092
|
}
|
|
1068
1093
|
|
|
1094
|
+
.MobileSidebar:not(:where(.App *)) .MenuSub[data-has-icons="true"] .MenuSubButton.indent3 {
|
|
1095
|
+
--sidebar-row-inset: calc(var(--sidebar-list-inset) + var(--sidebar-list-icon-column) + 2 * var(--sidebar-list-indent));
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1069
1098
|
/* A selected or pressed row fills its cell edge to edge; the card clips
|
|
1070
1099
|
the corners. */
|
|
1071
1100
|
.MobileSidebar:not(:where(.App *)) :is(.MenuButton, .MenuSubButton):is(*, :hover, :active, :focus-visible)::before {
|
|
@@ -1263,10 +1292,18 @@
|
|
|
1263
1292
|
--sidebar-row-inset: calc(var(--sidebar-list-inset) + 2 * var(--sidebar-list-indent));
|
|
1264
1293
|
}
|
|
1265
1294
|
|
|
1295
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .MenuSub[data-has-icons="true"] .MenuSubButton.indent2 {
|
|
1296
|
+
--sidebar-row-inset: calc(var(--sidebar-list-inset) + var(--sidebar-list-icon-column) + var(--sidebar-list-indent));
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1266
1299
|
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .MenuSubButton.indent3 {
|
|
1267
1300
|
--sidebar-row-inset: calc(var(--sidebar-list-inset) + 3 * var(--sidebar-list-indent));
|
|
1268
1301
|
}
|
|
1269
1302
|
|
|
1303
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .MenuSub[data-has-icons="true"] .MenuSubButton.indent3 {
|
|
1304
|
+
--sidebar-row-inset: calc(var(--sidebar-list-inset) + var(--sidebar-list-icon-column) + 2 * var(--sidebar-list-indent));
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1270
1307
|
/* A selected or pressed row fills its cell edge to edge; the card clips
|
|
1271
1308
|
the corners. */
|
|
1272
1309
|
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) :is(.MenuButton, .MenuSubButton):is(*, :hover, :active, :focus-visible)::before {
|
|
@@ -1827,5 +1864,174 @@ background: var(--gray-300);
|
|
|
1827
1864
|
.MenuSkeletonLabel {
|
|
1828
1865
|
animation: none;
|
|
1829
1866
|
}
|
|
1867
|
+
}/* The Plex Android look (`data-platform="android"`, android.css): the phone's list is a settings screen of Android,
|
|
1868
|
+
as FieldGroup draws it there. Cards of 16 corners stand 12 apart; a group's label heads its card inside it, a 40px
|
|
1869
|
+
line of 14/18 Medium in the accent 20 in (15 above the text); rows are 50 tall with their label at 16/20, an icon
|
|
1870
|
+
24px at the inset and the text at 64; the line between rows runs from the text to the card's end in Android's
|
|
1871
|
+
divider gray; a row that leads to another page shows no chevron, as Android's lists do not. */@media (max-width: 767px) {
|
|
1872
|
+
[data-platform="android"] .MobileSidebar:not(:where(.App *)) {
|
|
1873
|
+
--sidebar-mobile-list-row-height: 50px;
|
|
1874
|
+
--sidebar-mobile-list-radius: 16px;
|
|
1875
|
+
--sidebar-mobile-list-section-gap: 12px;
|
|
1876
|
+
--sidebar-mobile-list-header-gap: 12px;
|
|
1877
|
+
--sidebar-mobile-list-header-height: 40px;
|
|
1878
|
+
--sidebar-mobile-list-header-font-size: 14px;
|
|
1879
|
+
--sidebar-mobile-list-header-line-height: 18px;
|
|
1880
|
+
--sidebar-mobile-list-header-font-weight: var(--font-weight-medium);
|
|
1881
|
+
--sidebar-mobile-list-icon-column: 44px;
|
|
1882
|
+
--sidebar-mobile-list-chevron-size: 24px;
|
|
1883
|
+
--sidebar-mobile-list-chevron-offset: 0px;
|
|
1884
|
+
--sidebar-menu-item-font-size: 16px;
|
|
1885
|
+
--sidebar-menu-item-line-height: 20px;
|
|
1886
|
+
--sidebar-menu-sub-item-font-size: 16px;
|
|
1887
|
+
--sidebar-menu-sub-item-line-height: 20px;
|
|
1888
|
+
}
|
|
1889
|
+
|
|
1890
|
+
[data-platform="android"] .MobileSidebar:not(:where(.App *)) .Group .GroupLabel:is(.GroupLabel, [data-size]) {
|
|
1891
|
+
align-items: flex-start;
|
|
1892
|
+
padding-top: 15px;
|
|
1893
|
+
border-start-start-radius: var(--sidebar-mobile-list-radius);
|
|
1894
|
+
border-start-end-radius: var(--sidebar-mobile-list-radius);
|
|
1895
|
+
background: var(
|
|
1896
|
+
--sidebar-mobile-list-background,
|
|
1897
|
+
var(--mobile-surface-secondary, var(--mobile-surface-grouped-secondary, var(--color-surface)))
|
|
1898
|
+
);
|
|
1899
|
+
color: var(--android-accent-text);
|
|
1900
|
+
letter-spacing: var(--font-sans-tracking);
|
|
1901
|
+
}
|
|
1902
|
+
|
|
1903
|
+
[data-platform="android"] .MobileSidebar:not(:where(.App *)) .Group:has(> .GroupLabel) .Menu {
|
|
1904
|
+
border-start-start-radius: 0;
|
|
1905
|
+
border-start-end-radius: 0;
|
|
1906
|
+
}
|
|
1907
|
+
|
|
1908
|
+
[data-platform="android"] .MobileSidebar:not(:where(.App *)) .Menu :is(.MenuButton, .MenuSubButton)::after {
|
|
1909
|
+
inset-inline-end: 0;
|
|
1910
|
+
background: var(--android-divider);
|
|
1911
|
+
}
|
|
1912
|
+
|
|
1913
|
+
[data-platform="android"] .MobileSidebar:not(:where(.App *)) .MenuDisclosure {
|
|
1914
|
+
display: none;
|
|
1915
|
+
}
|
|
1916
|
+
}
|
|
1917
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .MobileSidebar:not(:where(.App *)) {
|
|
1918
|
+
--sidebar-mobile-list-row-height: 50px;
|
|
1919
|
+
--sidebar-mobile-list-radius: 16px;
|
|
1920
|
+
--sidebar-mobile-list-section-gap: 12px;
|
|
1921
|
+
--sidebar-mobile-list-header-gap: 12px;
|
|
1922
|
+
--sidebar-mobile-list-header-height: 40px;
|
|
1923
|
+
--sidebar-mobile-list-header-font-size: 14px;
|
|
1924
|
+
--sidebar-mobile-list-header-line-height: 18px;
|
|
1925
|
+
--sidebar-mobile-list-header-font-weight: var(--font-weight-medium);
|
|
1926
|
+
--sidebar-mobile-list-icon-column: 44px;
|
|
1927
|
+
--sidebar-mobile-list-chevron-size: 24px;
|
|
1928
|
+
--sidebar-mobile-list-chevron-offset: 0px;
|
|
1929
|
+
--sidebar-menu-item-font-size: 16px;
|
|
1930
|
+
--sidebar-menu-item-line-height: 20px;
|
|
1931
|
+
--sidebar-menu-sub-item-font-size: 16px;
|
|
1932
|
+
--sidebar-menu-sub-item-line-height: 20px;
|
|
1933
|
+
}
|
|
1934
|
+
|
|
1935
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .MobileSidebar:not(:where(.App *)) .Group .GroupLabel:is(.GroupLabel, [data-size]) {
|
|
1936
|
+
align-items: flex-start;
|
|
1937
|
+
padding-top: 15px;
|
|
1938
|
+
border-start-start-radius: var(--sidebar-mobile-list-radius);
|
|
1939
|
+
border-start-end-radius: var(--sidebar-mobile-list-radius);
|
|
1940
|
+
background: var(
|
|
1941
|
+
--sidebar-mobile-list-background,
|
|
1942
|
+
var(--mobile-surface-secondary, var(--mobile-surface-grouped-secondary, var(--color-surface)))
|
|
1943
|
+
);
|
|
1944
|
+
color: var(--android-accent-text);
|
|
1945
|
+
letter-spacing: var(--font-sans-tracking);
|
|
1946
|
+
}
|
|
1947
|
+
|
|
1948
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .MobileSidebar:not(:where(.App *)) .Group:has(> .GroupLabel) .Menu {
|
|
1949
|
+
border-start-start-radius: 0;
|
|
1950
|
+
border-start-end-radius: 0;
|
|
1951
|
+
}
|
|
1952
|
+
|
|
1953
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .MobileSidebar:not(:where(.App *)) .Menu :is(.MenuButton, .MenuSubButton)::after {
|
|
1954
|
+
inset-inline-end: 0;
|
|
1955
|
+
background: var(--android-divider);
|
|
1956
|
+
}
|
|
1957
|
+
|
|
1958
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .MobileSidebar:not(:where(.App *)) .MenuDisclosure {
|
|
1959
|
+
display: none;
|
|
1960
|
+
}/* Android press ripple. Held, a row of the phone's list ripples over its cell (android.css, Android press ripple), in
|
|
1961
|
+
the reference's selector for a card's rows (black at 11.4%), with no flat fill; the card clips the corners, and a
|
|
1962
|
+
selected row keeps its fill under the ripple. The menu button ripples as a small icon button: a borderless circle of
|
|
1963
|
+
20px round its symbol, in the list selector. */@media (max-width: 767px) {
|
|
1964
|
+
[data-platform="android"] :is(.MenuButton, .MenuSubButton) {
|
|
1965
|
+
--android-ripple-ink: var(--android-ripple-card-color);
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1968
|
+
[data-platform="android"] :is(.MenuButton, .MenuSubButton):active:not([data-active="true"])::before {
|
|
1969
|
+
opacity: 0;
|
|
1970
|
+
}
|
|
1971
|
+
|
|
1972
|
+
[data-platform="android"] :is(.MenuButton, .MenuSubButton)[data-ripple]::before {
|
|
1973
|
+
background-image: var(--android-ripple-image);
|
|
1974
|
+
transform: none;
|
|
1975
|
+
transition: none;
|
|
1976
|
+
}
|
|
1977
|
+
|
|
1978
|
+
[data-platform="android"] :is(.MenuButton, .MenuSubButton)[data-ripple]:not([data-active="true"])::before {
|
|
1979
|
+
background-color: transparent;
|
|
1980
|
+
opacity: 1;
|
|
1981
|
+
}
|
|
1982
|
+
|
|
1983
|
+
[data-platform="android"] .MobileMenuButton {
|
|
1984
|
+
--android-ripple-radius: 20px;
|
|
1985
|
+
}
|
|
1986
|
+
|
|
1987
|
+
[data-platform="android"] .MobileMenuButton:active:not([data-expanded])::before {
|
|
1988
|
+
opacity: 0;
|
|
1989
|
+
}
|
|
1990
|
+
|
|
1991
|
+
[data-platform="android"] .MobileMenuButton[data-ripple]::after {
|
|
1992
|
+
position: absolute;
|
|
1993
|
+
inset: calc(50% - 20px);
|
|
1994
|
+
border-radius: 50%;
|
|
1995
|
+
background-image: var(--android-ripple-image);
|
|
1996
|
+
content: "";
|
|
1997
|
+
pointer-events: none;
|
|
1998
|
+
translate: var(--android-ripple-ox, 0px) var(--android-ripple-oy, 0px);
|
|
1999
|
+
}
|
|
1830
2000
|
}
|
|
2001
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] :is(.MenuButton, .MenuSubButton) {
|
|
2002
|
+
--android-ripple-ink: var(--android-ripple-card-color);
|
|
2003
|
+
}
|
|
2004
|
+
|
|
2005
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] :is(.MenuButton, .MenuSubButton):active:not([data-active="true"])::before {
|
|
2006
|
+
opacity: 0;
|
|
2007
|
+
}
|
|
2008
|
+
|
|
2009
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] :is(.MenuButton, .MenuSubButton)[data-ripple]::before {
|
|
2010
|
+
background-image: var(--android-ripple-image);
|
|
2011
|
+
transform: none;
|
|
2012
|
+
transition: none;
|
|
2013
|
+
}
|
|
2014
|
+
|
|
2015
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] :is(.MenuButton, .MenuSubButton)[data-ripple]:not([data-active="true"])::before {
|
|
2016
|
+
background-color: transparent;
|
|
2017
|
+
opacity: 1;
|
|
2018
|
+
}
|
|
2019
|
+
|
|
2020
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .MobileMenuButton {
|
|
2021
|
+
--android-ripple-radius: 20px;
|
|
2022
|
+
}
|
|
2023
|
+
|
|
2024
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .MobileMenuButton:active:not([data-expanded])::before {
|
|
2025
|
+
opacity: 0;
|
|
2026
|
+
}
|
|
2027
|
+
|
|
2028
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .MobileMenuButton[data-ripple]::after {
|
|
2029
|
+
position: absolute;
|
|
2030
|
+
inset: calc(50% - 20px);
|
|
2031
|
+
border-radius: 50%;
|
|
2032
|
+
background-image: var(--android-ripple-image);
|
|
2033
|
+
content: "";
|
|
2034
|
+
pointer-events: none;
|
|
2035
|
+
translate: var(--android-ripple-ox, 0px) var(--android-ripple-oy, 0px);
|
|
2036
|
+
}
|
|
1831
2037
|
}
|
|
@@ -17,5 +17,55 @@
|
|
|
17
17
|
.Skeleton {
|
|
18
18
|
animation: none;
|
|
19
19
|
}
|
|
20
|
+
}/* =============================================
|
|
21
|
+
The Plex Android look (`data-platform="android"`, android.css), after @plexui/react-native's Skeleton on Android
|
|
22
|
+
(decision 0026): a block of the text at 6% (5% at night) with 4px corners, and no pulse: a band 600px tall of the
|
|
23
|
+
popup's color (white; at night a raised gray), clear at its edges, sweeps down the screen, one band for every block
|
|
24
|
+
(fixed to the screen), a pass about 1.3s on a phone's height.
|
|
25
|
+
============================================= */@keyframes skeleton-android-sweep {
|
|
26
|
+
from {
|
|
27
|
+
background-position: 0 -1200px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
to {
|
|
31
|
+
background-position: 0 200vh;
|
|
32
|
+
}
|
|
33
|
+
}@media (max-width: 767px) {
|
|
34
|
+
[data-platform="android"] .Skeleton {
|
|
35
|
+
border-radius: 4px;
|
|
36
|
+
background-color: var(--android-skeleton-fill);
|
|
37
|
+
background-image: linear-gradient(180deg, transparent 0%, var(--android-card) 40%, var(--android-card) 60%, transparent 100%);
|
|
38
|
+
background-size: 100% 600px;
|
|
39
|
+
background-repeat: no-repeat;
|
|
40
|
+
background-attachment: fixed;
|
|
41
|
+
animation: skeleton-android-sweep 1.32s linear infinite;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
[data-platform="android"] .Skeleton[data-circle] {
|
|
45
|
+
border-radius: var(--radius-full);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Skeleton {
|
|
49
|
+
border-radius: 4px;
|
|
50
|
+
background-color: var(--android-skeleton-fill);
|
|
51
|
+
background-image: linear-gradient(180deg, transparent 0%, var(--android-card) 40%, var(--android-card) 60%, transparent 100%);
|
|
52
|
+
background-size: 100% 600px;
|
|
53
|
+
background-repeat: no-repeat;
|
|
54
|
+
background-attachment: fixed;
|
|
55
|
+
animation: skeleton-android-sweep 1.32s linear infinite;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Skeleton[data-circle] {
|
|
59
|
+
border-radius: var(--radius-full);
|
|
60
|
+
}@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
|
|
61
|
+
[data-platform="android"] .Skeleton {
|
|
62
|
+
background-image: none;
|
|
63
|
+
animation: none;
|
|
64
|
+
}
|
|
65
|
+
}@media (prefers-reduced-motion: reduce) {
|
|
66
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Skeleton {
|
|
67
|
+
background-image: none;
|
|
68
|
+
animation: none;
|
|
69
|
+
}
|
|
20
70
|
}
|
|
21
71
|
}
|
|
@@ -479,5 +479,16 @@
|
|
|
479
479
|
|
|
480
480
|
:where([data-plex-layout="phone"]) .Slider[data-disabled] .Thumb {
|
|
481
481
|
box-shadow: var(--slider-thumb-shadow, inset 0 0 0 2px var(--slider-range-color));
|
|
482
|
-
}
|
|
482
|
+
}/* The Plex Android slider (its sizes and colors: android.css): the knob stays as it is while it is dragged */@media (max-width: 767px) {
|
|
483
|
+
[data-platform="android"] .Slider {
|
|
484
|
+
--mobile-knob-lens-scale: none;
|
|
485
|
+
--mobile-knob-lens-background: var(--slider-thumb-background);
|
|
486
|
+
--mobile-knob-lens-shadow: none;
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Slider {
|
|
490
|
+
--mobile-knob-lens-scale: none;
|
|
491
|
+
--mobile-knob-lens-background: var(--slider-thumb-background);
|
|
492
|
+
--mobile-knob-lens-shadow: none;
|
|
493
|
+
}
|
|
483
494
|
}
|
|
@@ -156,6 +156,70 @@
|
|
|
156
156
|
.Thumb[data-disabled] {
|
|
157
157
|
background: var(--switch-thumb-color);
|
|
158
158
|
}
|
|
159
|
+
|
|
160
|
+
/* The Plex Android switch (@plexui/react-native on Android): a 37 x 20 view holding a 31 x 14 track (corners 7)
|
|
161
|
+
and a 20 thumb over it, a 2px ring of the track's color around a 16 knob of the card's color, its center 7 along
|
|
162
|
+
the track off and 24 on. Off the track is a mid gray, on the accent solid (Android's own
|
|
163
|
+
selection color, as the reference app); the color changes as the thumb moves, in Android's 200ms ease-in-out. A held switch shows no
|
|
164
|
+
lens (a row lights instead); disabled, it fades to half with its colors. The label is 16/24, 11 from the
|
|
165
|
+
switch, a description 13/16. At the end of a row with no text of its own it stands at the row's inset, 21 from
|
|
166
|
+
the card's edge. */
|
|
167
|
+
[data-platform="android"] .Container {
|
|
168
|
+
--android-switch-on: var(--color-background-accent-solid);
|
|
169
|
+
--android-switch-ease: cubic-bezier(0.37, 0, 0.63, 1);
|
|
170
|
+
--switch-track-width: 37px;
|
|
171
|
+
--switch-track-height: 20px;
|
|
172
|
+
--switch-thumb-width: 20px;
|
|
173
|
+
--switch-thumb-size: 20px;
|
|
174
|
+
--switch-thumb-offset: 0px;
|
|
175
|
+
--switch-thumb-color: var(--mobile-surface-grouped-secondary, var(--color-surface));
|
|
176
|
+
--switch-track-color: transparent;
|
|
177
|
+
--switch-track-color-hover: transparent;
|
|
178
|
+
--switch-track-color-checked: transparent;
|
|
179
|
+
--switch-track-color-checked-disabled: transparent;
|
|
180
|
+
--switch-track-color-disabled: transparent;
|
|
181
|
+
--switch-track-top-offset: 2px;
|
|
182
|
+
--switch-label-padding-top: 0px;
|
|
183
|
+
--switch-label-gap: 11px;
|
|
184
|
+
--switch-label-font-size: 16px;
|
|
185
|
+
--switch-label-line-height: 24px;
|
|
186
|
+
--switch-description-font-size: 13px;
|
|
187
|
+
--switch-description-line-height: 16px;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
[data-platform="android"] .Container[data-color="accent"] {
|
|
191
|
+
--android-switch-on: var(--color-background-accent-solid);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
[data-platform="android"] .Track {
|
|
195
|
+
--android-switch-track: var(--android-switch-off);
|
|
196
|
+
--switch-thumb-shadow: inset 0 0 0 2px var(--android-switch-track);
|
|
197
|
+
--mobile-switch-knob-lens-scale: none;
|
|
198
|
+
--mobile-knob-lens-background: var(--switch-thumb-color);
|
|
199
|
+
--mobile-knob-lens-shadow: var(--switch-thumb-shadow);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
[data-platform="android"] .Track[data-state="checked"] {
|
|
203
|
+
--android-switch-track: var(--android-switch-on);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
[data-platform="android"] .Track::before {
|
|
207
|
+
position: absolute;
|
|
208
|
+
inset: 3px;
|
|
209
|
+
border-radius: 7px;
|
|
210
|
+
background: var(--android-switch-track);
|
|
211
|
+
content: "";
|
|
212
|
+
transition: background-color 200ms var(--android-switch-ease);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
[data-platform="android"] .Thumb {
|
|
216
|
+
transition-timing-function: var(--android-switch-ease);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
[data-platform="android"] .Thumb[data-disabled] {
|
|
220
|
+
box-shadow: var(--switch-thumb-shadow);
|
|
221
|
+
}
|
|
222
|
+
|
|
159
223
|
}
|
|
160
224
|
:where([data-plex-layout="phone"]) .Thumb {
|
|
161
225
|
transition:
|
|
@@ -183,4 +247,83 @@
|
|
|
183
247
|
:where([data-plex-layout="phone"]) .Thumb[data-disabled] {
|
|
184
248
|
background: var(--switch-thumb-color);
|
|
185
249
|
}
|
|
250
|
+
|
|
251
|
+
/* The Plex Android switch (@plexui/react-native on Android): a 37 x 20 view holding a 31 x 14 track (corners 7)
|
|
252
|
+
and a 20 thumb over it, a 2px ring of the track's color around a 16 knob of the card's color, its center 7 along
|
|
253
|
+
the track off and 24 on. Off the track is a mid gray, on the accent solid (Android's own
|
|
254
|
+
selection color, as the reference app); the color changes as the thumb moves, in Android's 200ms ease-in-out. A held switch shows no
|
|
255
|
+
lens (a row lights instead); disabled, it fades to half with its colors. The label is 16/24, 11 from the
|
|
256
|
+
switch, a description 13/16. At the end of a row with no text of its own it stands at the row's inset, 21 from
|
|
257
|
+
the card's edge. */
|
|
258
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Container {
|
|
259
|
+
--android-switch-on: var(--color-background-accent-solid);
|
|
260
|
+
--android-switch-ease: cubic-bezier(0.37, 0, 0.63, 1);
|
|
261
|
+
--switch-track-width: 37px;
|
|
262
|
+
--switch-track-height: 20px;
|
|
263
|
+
--switch-thumb-width: 20px;
|
|
264
|
+
--switch-thumb-size: 20px;
|
|
265
|
+
--switch-thumb-offset: 0px;
|
|
266
|
+
--switch-thumb-color: var(--mobile-surface-grouped-secondary, var(--color-surface));
|
|
267
|
+
--switch-track-color: transparent;
|
|
268
|
+
--switch-track-color-hover: transparent;
|
|
269
|
+
--switch-track-color-checked: transparent;
|
|
270
|
+
--switch-track-color-checked-disabled: transparent;
|
|
271
|
+
--switch-track-color-disabled: transparent;
|
|
272
|
+
--switch-track-top-offset: 2px;
|
|
273
|
+
--switch-label-padding-top: 0px;
|
|
274
|
+
--switch-label-gap: 11px;
|
|
275
|
+
--switch-label-font-size: 16px;
|
|
276
|
+
--switch-label-line-height: 24px;
|
|
277
|
+
--switch-description-font-size: 13px;
|
|
278
|
+
--switch-description-line-height: 16px;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Container[data-color="accent"] {
|
|
282
|
+
--android-switch-on: var(--color-background-accent-solid);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Track {
|
|
286
|
+
--android-switch-track: var(--android-switch-off);
|
|
287
|
+
--switch-thumb-shadow: inset 0 0 0 2px var(--android-switch-track);
|
|
288
|
+
--mobile-switch-knob-lens-scale: none;
|
|
289
|
+
--mobile-knob-lens-background: var(--switch-thumb-color);
|
|
290
|
+
--mobile-knob-lens-shadow: var(--switch-thumb-shadow);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Track[data-state="checked"] {
|
|
294
|
+
--android-switch-track: var(--android-switch-on);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Track::before {
|
|
298
|
+
position: absolute;
|
|
299
|
+
inset: 3px;
|
|
300
|
+
border-radius: 7px;
|
|
301
|
+
background: var(--android-switch-track);
|
|
302
|
+
content: "";
|
|
303
|
+
transition: background-color 200ms var(--android-switch-ease);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Thumb {
|
|
307
|
+
transition-timing-function: var(--android-switch-ease);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
:where([data-plex-layout="phone"]) [data-platform="android"] .Thumb[data-disabled] {
|
|
311
|
+
box-shadow: var(--switch-thumb-shadow);
|
|
312
|
+
}/* 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
|
|
313
|
+
does not select it nor call up the text menu. */@media (max-width: 767px) {
|
|
314
|
+
.Container > .Label,
|
|
315
|
+
.LabelGroup {
|
|
316
|
+
-webkit-touch-callout: none;
|
|
317
|
+
-webkit-user-select: none;
|
|
318
|
+
-moz-user-select: none;
|
|
319
|
+
user-select: none;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
:where([data-plex-layout="phone"]) .Container > .Label,
|
|
323
|
+
:where([data-plex-layout="phone"]) .LabelGroup {
|
|
324
|
+
-webkit-touch-callout: none;
|
|
325
|
+
-webkit-user-select: none;
|
|
326
|
+
-moz-user-select: none;
|
|
327
|
+
user-select: none;
|
|
328
|
+
}
|
|
186
329
|
}
|