@plexui/styles 0.1.34 → 0.1.35
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 +12 -1
- package/dist/es/components/Alert/Alert.module.css +101 -0
- package/dist/es/components/Badge/Badge.module.css +37 -0
- package/dist/es/components/Breadcrumb/Breadcrumb.module.css +29 -0
- package/dist/es/components/Button/Button.module.css +53 -0
- package/dist/es/components/Button/NavigationButton.module.css +17 -0
- package/dist/es/components/ButtonGroup/ButtonGroup.module.css +227 -20
- package/dist/es/components/Card/Card.module.css +9 -0
- package/dist/es/components/CodeBlock/CodeBlock.module.css +14 -1
- package/dist/es/components/ColorPicker/ColorPicker.module.css +19 -1
- package/dist/es/components/DatePicker/Calendar.module.css +262 -2
- package/dist/es/components/DatePicker/CalendarNavigationIcon.module.css +10 -0
- package/dist/es/components/DateRangePicker/Calendar.module.css +207 -3
- package/dist/es/components/DateRangePicker/Trigger.module.css +17 -2
- package/dist/es/components/Dialog/Dialog.module.css +660 -13
- package/dist/es/components/EmptyMessage/EmptyMessage.module.css +21 -0
- package/dist/es/components/Field/Field.module.css +387 -2
- package/dist/es/components/FieldGroup/FieldGroup.module.css +129 -3
- package/dist/es/components/FileUpload/FileUpload.module.css +74 -1
- package/dist/es/components/FloatingLabelInput/FloatingLabelInput.module.css +19 -1
- package/dist/es/components/FloatingLabelSelect/FloatingLabelSelect.module.css +12 -1
- package/dist/es/components/IndexBar/IndexBar.module.css +146 -0
- package/dist/es/components/Input/Input.module.css +129 -1
- package/dist/es/components/MarkdownEditor/MarkdownEditor.module.css +18 -0
- package/dist/es/components/Menu/Menu.module.css +267 -7
- package/dist/es/components/OTPInput/OTPInput.module.css +6 -1
- package/dist/es/components/Page/Page.module.css +302 -10
- package/dist/es/components/PhoneLayout/PhoneLayout.module.css +10 -0
- package/dist/es/components/Popover/Popover.module.css +7 -0
- package/dist/es/components/Select/Select.module.css +148 -0
- package/dist/es/components/SelectControl/SelectControl.module.css +113 -1
- package/dist/es/components/Sidebar/Sidebar.module.css +354 -20
- package/dist/es/components/Slider/Slider.module.css +80 -0
- package/dist/es/components/SwipeActions/SwipeActions.module.css +166 -0
- package/dist/es/components/Switch/Switch.module.css +59 -4
- package/dist/es/components/TabBar/TabBar.module.css +255 -10
- package/dist/es/components/Tabs/Tabs.module.css +166 -1
- package/dist/es/components/TagInput/TagInput.module.css +50 -9
- package/dist/es/components/Textarea/Textarea.module.css +6 -0
- package/dist/es/components/Tip/Tip.module.css +456 -0
- package/dist/es/components/Toast/Toast.module.css +148 -5
- package/dist/es/components/Toolbar/Toolbar.module.css +642 -3
- package/dist/es/styles/mobile-materials.css +94 -5
- package/dist/es/styles/mobile-surfaces.css +43 -0
- package/dist/es/styles/touch.css +618 -8
- package/dist/es/styles/variables-components.css +125 -5
- package/package.json +1 -1
- package/postcss/parseLightDark.mjs +20 -2
- package/postcss/phoneLayoutScope.mjs +134 -0
- package/postcss.config.mjs +3 -0
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
@layer components {/* Actions behind a row of a list, after the iOS 27 kit Row with Swipe Actions (Lists 550:49969): the content slides
|
|
2
|
+
aside and the actions stand behind it as solid capsules, 10px apart, 16px from the edge and 10px from the content,
|
|
3
|
+
which turns into a capsule of the row's color on the background of the list. The colors are PlexUI's solid ones. */.SwipeActions {
|
|
4
|
+
position: relative;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
isolation: isolate;
|
|
7
|
+
}/* A revealed row shows the background of the list behind its content and actions: on a desktop the secondary surface
|
|
8
|
+
under the surface. The two backgrounds have no default of their own, so a nested theme does not reset them; set
|
|
9
|
+
`--swipe-actions-background` and `--swipe-actions-content-background` to override them. */.SwipeActions[data-revealed] {
|
|
10
|
+
background: var(--swipe-actions-background, var(--color-surface-secondary));
|
|
11
|
+
}.Content {
|
|
12
|
+
position: relative;
|
|
13
|
+
z-index: 1;
|
|
14
|
+
/* Where a swipe has moved it, set by the row (physical px). */
|
|
15
|
+
translate: var(--swipe-actions-offset, 0px);
|
|
16
|
+
/* A swipe across the row moves it; a swipe down scrolls the list. */
|
|
17
|
+
touch-action: pan-y;
|
|
18
|
+
transition: translate var(--swipe-actions-duration) var(--ease-cubic-move, ease);
|
|
19
|
+
}/* Moved aside, the content is a capsule of the row's color, round on the side of the actions. */.SwipeActions[data-revealed] > .Content {
|
|
20
|
+
background: var(--swipe-actions-content-background, var(--color-surface));
|
|
21
|
+
}/* On a phone the canvas of the Page (or Dialog) and the fill of its FieldGroups, as the kit's row (550:49969) on the
|
|
22
|
+
background of the list; outside them the plain surfaces. */@media (max-width: 767.98px) {
|
|
23
|
+
.SwipeActions[data-revealed] {
|
|
24
|
+
background: var(--swipe-actions-background, var(--mobile-surface-primary, var(--mobile-surface-plain-primary, var(--color-surface-secondary))));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.SwipeActions[data-revealed] > .Content {
|
|
28
|
+
background: var(--swipe-actions-content-background, var(--mobile-surface-secondary, var(--mobile-surface-plain-secondary, var(--color-surface))));
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
:where([data-plex-layout="phone"]) .SwipeActions[data-revealed] {
|
|
32
|
+
background: var(--swipe-actions-background, var(--mobile-surface-primary, var(--mobile-surface-plain-primary, var(--color-surface-secondary))));
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
:where([data-plex-layout="phone"]) .SwipeActions[data-revealed] > .Content {
|
|
36
|
+
background: var(--swipe-actions-content-background, var(--mobile-surface-secondary, var(--mobile-surface-plain-secondary, var(--color-surface))));
|
|
37
|
+
}.SwipeActions[data-revealed="leading"] > .Content {
|
|
38
|
+
border-start-start-radius: var(--swipe-actions-content-radius);
|
|
39
|
+
border-end-start-radius: var(--swipe-actions-content-radius);
|
|
40
|
+
}.SwipeActions[data-revealed="trailing"] > .Content {
|
|
41
|
+
border-start-end-radius: var(--swipe-actions-content-radius);
|
|
42
|
+
border-end-end-radius: var(--swipe-actions-content-radius);
|
|
43
|
+
}.SwipeActions[data-swiping] > .Content {
|
|
44
|
+
transition: none;
|
|
45
|
+
-moz-user-select: none;
|
|
46
|
+
user-select: none;
|
|
47
|
+
-webkit-user-select: none;
|
|
48
|
+
}.Actions {
|
|
49
|
+
position: absolute;
|
|
50
|
+
inset-block: 0;
|
|
51
|
+
display: flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
gap: var(--swipe-actions-gap);
|
|
54
|
+
}.Actions[data-side="leading"] {
|
|
55
|
+
inset-inline-start: 0;
|
|
56
|
+
padding-inline: var(--swipe-actions-edge-inset) var(--swipe-actions-content-gap);
|
|
57
|
+
}.Actions[data-side="trailing"] {
|
|
58
|
+
inset-inline-end: 0;
|
|
59
|
+
padding-inline: var(--swipe-actions-content-gap) var(--swipe-actions-edge-inset);
|
|
60
|
+
}/* The side that is not revealed stays out of sight, its actions still reachable by the keys: the focus on one
|
|
61
|
+
reveals its side. */.SwipeActions:not([data-revealed="leading"]) > .Actions[data-side="leading"],
|
|
62
|
+
.SwipeActions:not([data-revealed="trailing"]) > .Actions[data-side="trailing"] {
|
|
63
|
+
opacity: 0;
|
|
64
|
+
pointer-events: none;
|
|
65
|
+
}.Action {
|
|
66
|
+
display: flex;
|
|
67
|
+
flex-direction: column;
|
|
68
|
+
flex-shrink: 0;
|
|
69
|
+
align-items: stretch;
|
|
70
|
+
padding: 0;
|
|
71
|
+
border: 0;
|
|
72
|
+
background: none;
|
|
73
|
+
color: inherit;
|
|
74
|
+
font: inherit;
|
|
75
|
+
cursor: pointer;
|
|
76
|
+
-webkit-tap-highlight-color: transparent;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.Action:focus {
|
|
80
|
+
outline: none;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.Action:focus-visible > .Capsule {
|
|
84
|
+
outline: 2px solid var(--color-ring);
|
|
85
|
+
outline-offset: 2px;
|
|
86
|
+
}.Capsule {
|
|
87
|
+
display: flex;
|
|
88
|
+
align-items: center;
|
|
89
|
+
justify-content: center;
|
|
90
|
+
gap: var(--swipe-actions-label-gap);
|
|
91
|
+
min-width: var(--swipe-actions-action-min-width);
|
|
92
|
+
height: var(--swipe-actions-action-height);
|
|
93
|
+
padding-inline: var(--swipe-actions-action-padding-inline);
|
|
94
|
+
border-radius: 9999px;
|
|
95
|
+
background: var(--swipe-action-background);
|
|
96
|
+
color: var(--swipe-action-color);
|
|
97
|
+
transition: background-color var(--duration-basic, 120ms) var(--ease-basic, ease);
|
|
98
|
+
}.Action:active > .Capsule {
|
|
99
|
+
background: var(--swipe-action-background-active);
|
|
100
|
+
}.Icon {
|
|
101
|
+
flex-shrink: 0;
|
|
102
|
+
width: var(--swipe-actions-icon-size);
|
|
103
|
+
height: var(--swipe-actions-icon-size);
|
|
104
|
+
}.Label {
|
|
105
|
+
font-size: var(--swipe-actions-label-font-size);
|
|
106
|
+
line-height: var(--swipe-actions-label-line-height);
|
|
107
|
+
font-weight: var(--swipe-actions-label-font-weight);
|
|
108
|
+
white-space: nowrap;
|
|
109
|
+
}/* Symbol and Label: the label inside the capsule, after a smaller symbol. */.SwipeActions[data-label-placement="inside"] .Capsule {
|
|
110
|
+
--swipe-actions-action-min-width: var(--swipe-actions-labeled-min-width);
|
|
111
|
+
--swipe-actions-action-padding-inline: var(--swipe-actions-labeled-padding-inline);
|
|
112
|
+
--swipe-actions-icon-size: var(--swipe-actions-labeled-icon-size);
|
|
113
|
+
}/* Symbol and Label Tall: a lower capsule with the label under it, for a row of two lines. */.SwipeActions[data-label-placement="below"] .Action {
|
|
114
|
+
gap: var(--swipe-actions-caption-gap);
|
|
115
|
+
padding-block: var(--swipe-actions-tall-padding-top) var(--swipe-actions-tall-padding-bottom);
|
|
116
|
+
}.SwipeActions[data-label-placement="below"] .Capsule {
|
|
117
|
+
--swipe-actions-action-height: var(--swipe-actions-tall-action-height);
|
|
118
|
+
}/* The secondary label of the row (touch.css gives a row the native label roles). */.Caption {
|
|
119
|
+
color: var(--swipe-actions-caption-color, var(--color-text-secondary));
|
|
120
|
+
font-size: var(--swipe-actions-label-font-size);
|
|
121
|
+
line-height: var(--swipe-actions-label-line-height);
|
|
122
|
+
font-weight: var(--swipe-actions-caption-font-weight);
|
|
123
|
+
text-align: center;
|
|
124
|
+
white-space: nowrap;
|
|
125
|
+
}/* A full swipe: the first action takes the whole of the open side and the others give way to it. */.Actions[data-full] > .Action:not([data-first]) {
|
|
126
|
+
display: none;
|
|
127
|
+
}.Actions[data-full] > .Action[data-first] {
|
|
128
|
+
flex-grow: 1;
|
|
129
|
+
}.Action[data-color="primary"] {
|
|
130
|
+
--swipe-action-background: var(--color-background-primary-solid);
|
|
131
|
+
--swipe-action-background-active: var(--color-background-primary-solid-active);
|
|
132
|
+
--swipe-action-color: var(--color-text-primary-solid);
|
|
133
|
+
}.Action[data-color="secondary"] {
|
|
134
|
+
--swipe-action-background: var(--color-background-secondary-solid);
|
|
135
|
+
--swipe-action-background-active: var(--color-background-secondary-solid-active);
|
|
136
|
+
--swipe-action-color: var(--color-text-secondary-solid);
|
|
137
|
+
}.Action[data-color="danger"] {
|
|
138
|
+
--swipe-action-background: var(--color-background-danger-solid);
|
|
139
|
+
--swipe-action-background-active: var(--color-background-danger-solid-active);
|
|
140
|
+
--swipe-action-color: var(--color-text-danger-solid);
|
|
141
|
+
}.Action[data-color="success"] {
|
|
142
|
+
--swipe-action-background: var(--color-background-success-solid);
|
|
143
|
+
--swipe-action-background-active: var(--color-background-success-solid-active);
|
|
144
|
+
--swipe-action-color: var(--color-text-success-solid);
|
|
145
|
+
}.Action[data-color="info"] {
|
|
146
|
+
--swipe-action-background: var(--color-background-info-solid);
|
|
147
|
+
--swipe-action-background-active: var(--color-background-info-solid-active);
|
|
148
|
+
--swipe-action-color: var(--color-text-info-solid);
|
|
149
|
+
}.Action[data-color="discovery"] {
|
|
150
|
+
--swipe-action-background: var(--color-background-discovery-solid);
|
|
151
|
+
--swipe-action-background-active: var(--color-background-discovery-solid-active);
|
|
152
|
+
--swipe-action-color: var(--color-text-discovery-solid);
|
|
153
|
+
}.Action[data-color="caution"] {
|
|
154
|
+
--swipe-action-background: var(--color-background-caution-solid);
|
|
155
|
+
--swipe-action-background-active: var(--color-background-caution-solid-active);
|
|
156
|
+
--swipe-action-color: var(--color-text-caution-solid);
|
|
157
|
+
}.Action[data-color="warning"] {
|
|
158
|
+
--swipe-action-background: var(--color-background-warning-solid);
|
|
159
|
+
--swipe-action-background-active: var(--color-background-warning-solid-active);
|
|
160
|
+
--swipe-action-color: var(--color-text-warning-solid);
|
|
161
|
+
}@media (prefers-reduced-motion: reduce) {
|
|
162
|
+
.Content {
|
|
163
|
+
transition: none;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
@@ -69,13 +69,13 @@
|
|
|
69
69
|
border-radius: var(--radius-full);
|
|
70
70
|
background: var(--switch-thumb-color);
|
|
71
71
|
box-shadow: var(--switch-thumb-shadow);
|
|
72
|
-
transition:
|
|
72
|
+
transition: translate 200ms var(--cubic-enter);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
+
/* The translate property, not a transform: the pressed lens of a phone scales the knob on its own centre,
|
|
76
|
+
and a scale would multiply a translation inside the transform. */
|
|
75
77
|
[data-state="checked"] .Thumb {
|
|
76
|
-
|
|
77
|
-
calc(var(--switch-track-width) - var(--switch-thumb-width) - var(--switch-thumb-offset) * 2)
|
|
78
|
-
);
|
|
78
|
+
translate: calc(var(--switch-track-width) - var(--switch-thumb-width) - var(--switch-thumb-offset) * 2) 0;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
.Thumb[data-disabled] {
|
|
@@ -126,5 +126,60 @@
|
|
|
126
126
|
|
|
127
127
|
[data-disabled] .Description {
|
|
128
128
|
cursor: not-allowed;
|
|
129
|
+
}/* A phone switch after the iOS 27 kit (Toggles 29:56814). Held down, the knob turns into the lens of glass
|
|
130
|
+
(mobile-materials.css) over the track, on the knob's centre; without touch.css the knob stays as it is.
|
|
131
|
+
Disabled, the switch keeps its colors and shows at half opacity (Is Enabled=False). */@media (max-width: 767px) {
|
|
132
|
+
.Thumb {
|
|
133
|
+
transition:
|
|
134
|
+
translate 200ms var(--cubic-enter),
|
|
135
|
+
scale 200ms var(--cubic-enter),
|
|
136
|
+
background-color 200ms var(--cubic-enter),
|
|
137
|
+
box-shadow 200ms var(--cubic-enter);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.Track:active:not([data-disabled]) > .Thumb {
|
|
141
|
+
scale: var(--mobile-knob-lens-scale, none);
|
|
142
|
+
background-color: var(--mobile-knob-lens-background, var(--switch-thumb-color));
|
|
143
|
+
box-shadow: var(--mobile-knob-lens-shadow, var(--switch-thumb-shadow));
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.Track[data-disabled] {
|
|
147
|
+
background: var(--switch-track-color);
|
|
148
|
+
opacity: 0.5;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.Track[data-disabled][data-state="checked"] {
|
|
152
|
+
background: var(--switch-track-color-checked);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.Thumb[data-disabled] {
|
|
156
|
+
background: var(--switch-thumb-color);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
:where([data-plex-layout="phone"]) .Thumb {
|
|
160
|
+
transition:
|
|
161
|
+
translate 200ms var(--cubic-enter),
|
|
162
|
+
scale 200ms var(--cubic-enter),
|
|
163
|
+
background-color 200ms var(--cubic-enter),
|
|
164
|
+
box-shadow 200ms var(--cubic-enter);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
:where([data-plex-layout="phone"]) .Track:active:not([data-disabled]) > .Thumb {
|
|
168
|
+
scale: var(--mobile-knob-lens-scale, none);
|
|
169
|
+
background-color: var(--mobile-knob-lens-background, var(--switch-thumb-color));
|
|
170
|
+
box-shadow: var(--mobile-knob-lens-shadow, var(--switch-thumb-shadow));
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
:where([data-plex-layout="phone"]) .Track[data-disabled] {
|
|
174
|
+
background: var(--switch-track-color);
|
|
175
|
+
opacity: 0.5;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
:where([data-plex-layout="phone"]) .Track[data-disabled][data-state="checked"] {
|
|
179
|
+
background: var(--switch-track-color-checked);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
:where([data-plex-layout="phone"]) .Thumb[data-disabled] {
|
|
183
|
+
background: var(--switch-thumb-color);
|
|
129
184
|
}
|
|
130
185
|
}
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
padding: var(--tab-bar-padding-top) var(--tab-bar-gutter) var(--tab-bar-padding-bottom);
|
|
16
16
|
color: var(--color-text);
|
|
17
17
|
|
|
18
|
-
/* With a search tab, or minimized, the capsule keeps to the leading edge and
|
|
18
|
+
/* With a search or a prominent tab, or minimized, the capsule keeps to the leading edge and the circle of
|
|
19
|
+
its own to the trailing one. */
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
/* The soft scroll edge of a bottom Toolbar: the canvas fades out over content under the bar. */
|
|
@@ -60,20 +61,27 @@
|
|
|
60
61
|
.TabBar[data-content-below][data-background="glass"]::before {
|
|
61
62
|
opacity: 1;
|
|
62
63
|
}
|
|
64
|
+
|
|
65
|
+
/* Soft is no band: native iOS 26 lets the list run under and around the tab bar's capsule at full
|
|
66
|
+
contrast (Phone, IMG_5615; plan 172, owner 08.11), and the capsule's glass sets it off. */
|
|
67
|
+
.TabBar[data-background="soft"]::before {
|
|
68
|
+
display: none;
|
|
69
|
+
}
|
|
63
70
|
.TabBar[data-search],
|
|
71
|
+
.TabBar[data-prominent],
|
|
64
72
|
.TabBar[data-minimized] {
|
|
65
73
|
justify-content: space-between;
|
|
66
74
|
}
|
|
67
75
|
|
|
68
76
|
.TabBar[data-minimized] {
|
|
69
|
-
padding
|
|
77
|
+
padding: var(--tab-bar-minimized-padding-top) var(--tab-bar-minimized-gutter) var(--tab-bar-minimized-padding-bottom);
|
|
70
78
|
}
|
|
71
79
|
|
|
72
80
|
/* The glass capsule (Liquid Glass Regular, the shared mobile glass with its raised shadow). Tabs are 94px
|
|
73
81
|
apart at most and share the width when there are more: four or five fill 360px, three take 302. The search
|
|
74
|
-
|
|
82
|
+
and prominent circles name both classes to outrank the reset of `.Item`. */
|
|
75
83
|
.Tabs,
|
|
76
|
-
.Item.Search {
|
|
84
|
+
.Item:is(.Search, .Prominent) {
|
|
77
85
|
border-radius: var(--radius-full);
|
|
78
86
|
background-color: var(--mobile-glass-background);
|
|
79
87
|
background-image: var(--mobile-glass-sheen);
|
|
@@ -176,8 +184,9 @@
|
|
|
176
184
|
white-space: nowrap;
|
|
177
185
|
}
|
|
178
186
|
|
|
179
|
-
/* The separate search tab: a 62px glass circle,
|
|
180
|
-
|
|
187
|
+
/* The separate search tab, and the prominent tab of the iOS 27 kit (Type=Prominent Tab): a 62px glass circle,
|
|
188
|
+
its pill 54. */
|
|
189
|
+
.Item:is(.Search, .Prominent) {
|
|
181
190
|
flex: none;
|
|
182
191
|
justify-content: center;
|
|
183
192
|
width: var(--tab-bar-search-size);
|
|
@@ -185,12 +194,12 @@
|
|
|
185
194
|
padding: 0;
|
|
186
195
|
}
|
|
187
196
|
|
|
188
|
-
.Item.Search::before {
|
|
197
|
+
.Item:is(.Search, .Prominent)::before {
|
|
189
198
|
inset: var(--tab-bar-capsule-padding-block);
|
|
190
199
|
}
|
|
191
200
|
|
|
192
|
-
/* Minimized: the capsule is a 48px circle with the selected tab's symbol in the primary label, and search
|
|
193
|
-
48px circle too; the other tabs hide.
|
|
201
|
+
/* Minimized: the capsule is a 48px circle with the selected tab's symbol in the primary label, and search or
|
|
202
|
+
the prominent tab a 48px circle too; the other tabs hide. */
|
|
194
203
|
.TabBar[data-minimized] .Tabs {
|
|
195
204
|
flex: none;
|
|
196
205
|
padding: var(--tab-bar-capsule-padding-block);
|
|
@@ -225,9 +234,245 @@
|
|
|
225
234
|
white-space: nowrap;
|
|
226
235
|
}
|
|
227
236
|
|
|
228
|
-
.TabBar[data-minimized] .Item.Search {
|
|
237
|
+
.TabBar[data-minimized] .Item:is(.Search, .Prominent) {
|
|
229
238
|
width: var(--tab-bar-minimized-size);
|
|
230
239
|
height: var(--tab-bar-minimized-size);
|
|
231
240
|
}
|
|
232
241
|
}
|
|
242
|
+
/* 402 x 95: the capsule 62 tall, 21px from the sides and the bottom, 12px below the top of the bar. */
|
|
243
|
+
:where([data-plex-layout="phone"]) .TabBar {
|
|
244
|
+
position: relative;
|
|
245
|
+
z-index: 5;
|
|
246
|
+
display: flex;
|
|
247
|
+
flex: none;
|
|
248
|
+
align-items: flex-end;
|
|
249
|
+
justify-content: center;
|
|
250
|
+
gap: var(--tab-bar-gap);
|
|
251
|
+
min-width: 0;
|
|
252
|
+
padding: var(--tab-bar-padding-top) var(--tab-bar-gutter) var(--tab-bar-padding-bottom);
|
|
253
|
+
color: var(--color-text);
|
|
254
|
+
|
|
255
|
+
/* With a search or a prominent tab, or minimized, the capsule keeps to the leading edge and the circle of
|
|
256
|
+
its own to the trailing one. */
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/* The soft scroll edge of a bottom Toolbar: the canvas fades out over content under the bar. */
|
|
260
|
+
:where([data-plex-layout="phone"]) .TabBar::before {
|
|
261
|
+
position: absolute;
|
|
262
|
+
z-index: -1;
|
|
263
|
+
inset: -16px 0 0;
|
|
264
|
+
background: var(--tab-bar-edge-background, var(--page-background));
|
|
265
|
+
backdrop-filter: blur(var(--toolbar-edge-blur-small));
|
|
266
|
+
content: "";
|
|
267
|
+
-webkit-mask-image: linear-gradient(to top, #000, transparent);
|
|
268
|
+
mask-image: linear-gradient(to top, #000, transparent);
|
|
269
|
+
pointer-events: none;
|
|
270
|
+
transition: opacity var(--transition-duration-basic), border-color var(--transition-duration-basic);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
/* The other backgrounds of a bar (`BarBackground`) fill the bar behind the capsule: hard and solid
|
|
274
|
+
opaque, glass translucent and shown once content is under it. Hard and glass then draw a line on
|
|
275
|
+
the bar's top edge. */
|
|
276
|
+
:where([data-plex-layout="phone"]) .TabBar:not([data-background="soft"])::before {
|
|
277
|
+
inset: 0;
|
|
278
|
+
backdrop-filter: none;
|
|
279
|
+
-webkit-mask-image: none;
|
|
280
|
+
mask-image: none;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
:where([data-plex-layout="phone"]) .TabBar[data-background="hard"]::before {
|
|
284
|
+
border-top: 1px solid transparent;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
:where([data-plex-layout="phone"]) .TabBar[data-background="glass"]::before {
|
|
288
|
+
border-top: 0.5px solid var(--page-bar-line);
|
|
289
|
+
background: color-mix(in srgb, var(--tab-bar-edge-background, var(--page-background)) var(--page-bar-veil-opacity), transparent);
|
|
290
|
+
backdrop-filter: var(--page-bar-glass-filter);
|
|
291
|
+
opacity: 0;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
:where([data-plex-layout="phone"]) .TabBar[data-content-below][data-background="hard"]::before {
|
|
295
|
+
border-top-color: var(--page-bar-hard-line);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
:where([data-plex-layout="phone"]) .TabBar[data-content-below][data-background="glass"]::before {
|
|
299
|
+
opacity: 1;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
/* Soft is no band: native iOS 26 lets the list run under and around the tab bar's capsule at full
|
|
303
|
+
contrast (Phone, IMG_5615; plan 172, owner 08.11), and the capsule's glass sets it off. */
|
|
304
|
+
:where([data-plex-layout="phone"]) .TabBar[data-background="soft"]::before {
|
|
305
|
+
display: none;
|
|
306
|
+
}
|
|
307
|
+
:where([data-plex-layout="phone"]) .TabBar[data-search],
|
|
308
|
+
:where([data-plex-layout="phone"]) .TabBar[data-prominent],
|
|
309
|
+
:where([data-plex-layout="phone"]) .TabBar[data-minimized] {
|
|
310
|
+
justify-content: space-between;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
:where([data-plex-layout="phone"]) .TabBar[data-minimized] {
|
|
314
|
+
padding: var(--tab-bar-minimized-padding-top) var(--tab-bar-minimized-gutter) var(--tab-bar-minimized-padding-bottom);
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
/* The glass capsule (Liquid Glass Regular, the shared mobile glass with its raised shadow). Tabs are 94px
|
|
318
|
+
apart at most and share the width when there are more: four or five fill 360px, three take 302. The search
|
|
319
|
+
and prominent circles name both classes to outrank the reset of `.Item`. */
|
|
320
|
+
:where([data-plex-layout="phone"]) .Tabs,
|
|
321
|
+
:where([data-plex-layout="phone"]) .Item:is(.Search, .Prominent) {
|
|
322
|
+
border-radius: var(--radius-full);
|
|
323
|
+
background-color: var(--mobile-glass-background);
|
|
324
|
+
background-image: var(--mobile-glass-sheen);
|
|
325
|
+
box-shadow: var(--mobile-glass-shadow-raised);
|
|
326
|
+
backdrop-filter: var(--mobile-glass-backdrop-filter);
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
:where([data-plex-layout="phone"]) .Tabs {
|
|
330
|
+
display: flex;
|
|
331
|
+
flex: 0 1 auto;
|
|
332
|
+
min-width: 0;
|
|
333
|
+
padding: var(--tab-bar-capsule-padding-block) var(--tab-bar-capsule-padding-inline);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
:where([data-plex-layout="phone"]) .Item {
|
|
337
|
+
position: relative;
|
|
338
|
+
isolation: isolate;
|
|
339
|
+
display: flex;
|
|
340
|
+
/* A width rather than a basis: the capsule sizes itself from it, then the tabs shrink together. */
|
|
341
|
+
flex: 0 1 auto;
|
|
342
|
+
flex-direction: column;
|
|
343
|
+
align-items: center;
|
|
344
|
+
gap: 1px;
|
|
345
|
+
width: var(--tab-bar-item-width);
|
|
346
|
+
min-width: 0;
|
|
347
|
+
height: var(--tab-bar-item-height);
|
|
348
|
+
margin: 0;
|
|
349
|
+
padding: 6px 0 7px;
|
|
350
|
+
border: 0;
|
|
351
|
+
border-radius: var(--radius-full);
|
|
352
|
+
background: none;
|
|
353
|
+
color: var(--tab-bar-item-color);
|
|
354
|
+
font: inherit;
|
|
355
|
+
text-decoration: none;
|
|
356
|
+
cursor: pointer;
|
|
357
|
+
-webkit-tap-highlight-color: transparent;
|
|
358
|
+
-webkit-touch-callout: none;
|
|
359
|
+
-moz-user-select: none;
|
|
360
|
+
user-select: none;
|
|
361
|
+
-webkit-user-select: none;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
/* The selection pill reaches 6px past the tab and 4px from the capsule, as the kit's Selection does. */
|
|
365
|
+
:where([data-plex-layout="phone"]) .Item::before {
|
|
366
|
+
position: absolute;
|
|
367
|
+
z-index: -1;
|
|
368
|
+
inset: 0 calc(-1 * var(--tab-bar-pill-outset));
|
|
369
|
+
border-radius: var(--radius-full);
|
|
370
|
+
background: transparent;
|
|
371
|
+
content: "";
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
:where([data-plex-layout="phone"]) .Item[data-selected] {
|
|
375
|
+
color: var(--tab-bar-item-color-selected);
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
:where([data-plex-layout="phone"]) .Item[data-selected]::before {
|
|
379
|
+
background: var(--tab-bar-item-background-selected);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
:where([data-plex-layout="phone"]) .Item[data-disabled] {
|
|
383
|
+
color: var(--color-text-disabled);
|
|
384
|
+
cursor: default;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
@media (hover: hover) and (pointer: fine) {
|
|
388
|
+
:where([data-plex-layout="phone"]) .Item:hover:where(:not(:root[data-input="touch"] *)):not([data-selected], [data-disabled]) {
|
|
389
|
+
color: var(--tab-bar-item-color-selected);
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
:where([data-plex-layout="phone"]) .Item:focus {
|
|
394
|
+
outline: none;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
:where([data-plex-layout="phone"]) .Item:focus-visible {
|
|
398
|
+
outline: 2px solid var(--color-ring);
|
|
399
|
+
outline-offset: -2px;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
:where([data-plex-layout="phone"]) .Icon {
|
|
403
|
+
display: grid;
|
|
404
|
+
flex: none;
|
|
405
|
+
place-items: center;
|
|
406
|
+
height: var(--tab-bar-icon-box);
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
:where([data-plex-layout="phone"]) .Icon > svg {
|
|
410
|
+
width: var(--tab-bar-icon-size);
|
|
411
|
+
height: var(--tab-bar-icon-size);
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
:where([data-plex-layout="phone"]) .Label {
|
|
415
|
+
max-width: 100%;
|
|
416
|
+
overflow: hidden;
|
|
417
|
+
font-size: var(--tab-bar-label-font-size);
|
|
418
|
+
font-weight: var(--tab-bar-label-font-weight);
|
|
419
|
+
line-height: var(--tab-bar-label-line-height);
|
|
420
|
+
text-overflow: ellipsis;
|
|
421
|
+
white-space: nowrap;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
/* The separate search tab, and the prominent tab of the iOS 27 kit (Type=Prominent Tab): a 62px glass circle,
|
|
425
|
+
its pill 54. */
|
|
426
|
+
:where([data-plex-layout="phone"]) .Item:is(.Search, .Prominent) {
|
|
427
|
+
flex: none;
|
|
428
|
+
justify-content: center;
|
|
429
|
+
width: var(--tab-bar-search-size);
|
|
430
|
+
height: var(--tab-bar-search-size);
|
|
431
|
+
padding: 0;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
:where([data-plex-layout="phone"]) .Item:is(.Search, .Prominent)::before {
|
|
435
|
+
inset: var(--tab-bar-capsule-padding-block);
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
/* Minimized: the capsule is a 48px circle with the selected tab's symbol in the primary label, and search or
|
|
439
|
+
the prominent tab a 48px circle too; the other tabs hide. */
|
|
440
|
+
:where([data-plex-layout="phone"]) .TabBar[data-minimized] .Tabs {
|
|
441
|
+
flex: none;
|
|
442
|
+
padding: var(--tab-bar-capsule-padding-block);
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
:where([data-plex-layout="phone"]) .TabBar[data-minimized] .Tabs > .Item {
|
|
446
|
+
display: none;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
:where([data-plex-layout="phone"]) .TabBar[data-minimized] .Tabs > .Item[data-selected],
|
|
450
|
+
:where([data-plex-layout="phone"]) .TabBar[data-minimized] .Tabs:not(:has(> .Item[data-selected])) > .Item:first-child {
|
|
451
|
+
display: flex;
|
|
452
|
+
flex: none;
|
|
453
|
+
justify-content: center;
|
|
454
|
+
width: calc(var(--tab-bar-minimized-size) - 2 * var(--tab-bar-capsule-padding-block));
|
|
455
|
+
height: calc(var(--tab-bar-minimized-size) - 2 * var(--tab-bar-capsule-padding-block));
|
|
456
|
+
padding: 0;
|
|
457
|
+
color: var(--tab-bar-item-color-minimized);
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
:where([data-plex-layout="phone"]) .TabBar[data-minimized] .Tabs > .Item[data-selected]::before, :where([data-plex-layout="phone"]) .TabBar[data-minimized] .Tabs:not(:has(> .Item[data-selected])) > .Item:first-child::before {
|
|
461
|
+
background: transparent;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
/* The label still names the tab for assistive technology. */
|
|
465
|
+
:where([data-plex-layout="phone"]) .TabBar[data-minimized] .Tabs .Label {
|
|
466
|
+
position: absolute;
|
|
467
|
+
width: 1px;
|
|
468
|
+
height: 1px;
|
|
469
|
+
overflow: hidden;
|
|
470
|
+
clip-path: inset(50%);
|
|
471
|
+
white-space: nowrap;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
:where([data-plex-layout="phone"]) .TabBar[data-minimized] .Item:is(.Search, .Prominent) {
|
|
475
|
+
width: var(--tab-bar-minimized-size);
|
|
476
|
+
height: var(--tab-bar-minimized-size);
|
|
477
|
+
}
|
|
233
478
|
}
|