@plexui/styles 0.1.33 → 0.1.34
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 +14 -0
- package/dist/es/components/Alert/Alert.module.css +112 -1
- package/dist/es/components/Breadcrumb/Breadcrumb.module.css +34 -0
- package/dist/es/components/Button/Button.module.css +70 -22
- package/dist/es/components/Card/Card.module.css +22 -6
- package/dist/es/components/Checkbox/Checkbox.module.css +26 -72
- package/dist/es/components/CodeBlock/CodeBlock.module.css +20 -0
- package/dist/es/components/ColorPicker/ColorPicker.module.css +396 -0
- package/dist/es/components/ContextMenu/ContextMenu.module.css +55 -0
- package/dist/es/components/DataTable/DataTable.module.css +4 -0
- package/dist/es/components/DatePicker/Calendar.module.css +18 -5
- package/dist/es/components/DateRangePicker/Calendar.module.css +20 -2
- package/dist/es/components/DateRangePicker/Trigger.module.css +29 -1
- package/dist/es/components/Dialog/Dialog.module.css +212 -77
- package/dist/es/components/EmptyMessage/EmptyMessage.module.css +31 -0
- package/dist/es/components/Field/Field.module.css +188 -23
- package/dist/es/components/FieldGroup/FieldGroup.module.css +59 -0
- package/dist/es/components/FloatingLabelInput/FloatingLabelInput.module.css +21 -0
- package/dist/es/components/FloatingLabelSelect/FloatingLabelSelect.module.css +16 -0
- package/dist/es/components/Indicator/LoadingIndicator.module.css +14 -7
- package/dist/es/components/Input/Input.module.css +69 -0
- package/dist/es/components/InputGroup/InputGroup.module.css +4 -0
- package/dist/es/components/Menu/Menu.module.css +278 -28
- package/dist/es/components/Page/Page.module.css +92 -24
- package/dist/es/components/PageControl/PageControl.module.css +81 -0
- package/dist/es/components/Popover/Popover.module.css +10 -1
- package/dist/es/components/Select/Select.module.css +53 -9
- package/dist/es/components/SelectControl/SelectControl.module.css +38 -3
- package/dist/es/components/Sidebar/Sidebar.module.css +276 -57
- package/dist/es/components/Slider/Slider.module.css +52 -45
- package/dist/es/components/Sortable/Sortable.module.css +7 -3
- package/dist/es/components/Stepper/Stepper.module.css +98 -0
- package/dist/es/components/TabBar/TabBar.module.css +233 -0
- package/dist/es/components/Tabs/Tabs.module.css +149 -2
- package/dist/es/components/Toast/Toast.module.css +50 -5
- package/dist/es/components/Toolbar/Toolbar.module.css +208 -18
- package/dist/es/styles/katex-fonts/KaTeX_AMS-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Main-Bold.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Main-Italic.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Main-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Math-Italic.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Script-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Size1-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Size2-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Size3-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Size4-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/LICENSE +21 -0
- package/dist/es/styles/katex.min.css +666 -730
- package/dist/es/styles/mobile-materials.css +56 -14
- package/dist/es/styles/mobile-surfaces.css +39 -32
- package/dist/es/styles/touch.css +328 -90
- package/dist/es/styles/variables-components.css +232 -13
- package/package.json +1 -1
|
@@ -92,6 +92,20 @@
|
|
|
92
92
|
to {
|
|
93
93
|
height: 0;
|
|
94
94
|
}
|
|
95
|
+
}/* On a phone, with touch.css, the chevron of a closed item points to the end, as the iOS disclosure chevron
|
|
96
|
+
(chevron.right) does, and turns down when the item opens: --accordion-chevron-closed-angle -90deg (mirrored for
|
|
97
|
+
right to left) and --accordion-chevron-open-angle 0deg. Without touch.css it keeps the desktop turn. */@media (max-width: 767px) {
|
|
98
|
+
.Chevron {
|
|
99
|
+
transform: rotate(var(--accordion-chevron-closed-angle, 0deg));
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.Chevron:dir(rtl) {
|
|
103
|
+
transform: rotate(calc(var(--accordion-chevron-closed-angle, 0deg) * -1));
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.Trigger[data-state="open"] .Chevron {
|
|
107
|
+
transform: rotate(var(--accordion-chevron-open-angle, 180deg));
|
|
108
|
+
}
|
|
95
109
|
}@media (prefers-reduced-motion: reduce) {
|
|
96
110
|
.Trigger,
|
|
97
111
|
.Chevron {
|
|
@@ -206,5 +206,116 @@
|
|
|
206
206
|
|
|
207
207
|
:where(.Alert[data-actions-placement="bottom"]) .Actions {
|
|
208
208
|
margin-top: var(--alert-gutter);
|
|
209
|
+
}/* The close button of a phone alert (below) */.Alert > .CloseButton {
|
|
210
|
+
display: none;
|
|
211
|
+
}/* On a phone an Alert takes the shape and text of an iOS inline tip (TipKit), the system's message
|
|
212
|
+
inside a screen (kit TipKit, iOS Mini Tip Style=Hint 41:4207): 26 corners, 22 above and 16 at the
|
|
213
|
+
sides and below (22 below as well when no action shows), the icon 22 from the edge and 12 from the message, the title at 17/22 semibold and
|
|
214
|
+
the description at 15/20 4 under it, 22 to the actions, and the actions as 50px capsules with 17/22
|
|
215
|
+
semibold labels (a phone xl Button in touch.css), side by side 12 apart, each at least half the width,
|
|
216
|
+
wrapping when a label needs more. A dismissible alert closes with a 30px button in its corner, 19 from
|
|
217
|
+
the edges, in a 44px target, instead of a Dismiss action. The alert keeps its icon, colors and variants; a banner keeps
|
|
218
|
+
its square strip. */@media (max-width: 767px) {
|
|
219
|
+
.Alert {
|
|
220
|
+
position: relative;
|
|
221
|
+
flex-wrap: wrap;
|
|
222
|
+
align-items: flex-start;
|
|
223
|
+
-moz-column-gap: 12px;
|
|
224
|
+
column-gap: 12px;
|
|
225
|
+
row-gap: 22px;
|
|
226
|
+
padding: 22px 16px;
|
|
227
|
+
border-radius: 26px;
|
|
228
|
+
--alert-indicator-size: 28px;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.Alert:has(> .Content > .Actions > :not(.DismissButton)) {
|
|
232
|
+
padding-bottom: 16px;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.Alert[data-banner] {
|
|
236
|
+
border-radius: 0;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/* The actions take a line of their own under the icon and the message */
|
|
240
|
+
.Content {
|
|
241
|
+
display: contents;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.Indicator {
|
|
245
|
+
padding-inline-start: 6px;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.Indicator::before {
|
|
249
|
+
content: none;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.Message {
|
|
253
|
+
padding-inline-start: 6px;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.Indicator + .Content > .Message {
|
|
257
|
+
padding-inline-start: 0;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.Alert:has(> .CloseButton) .Message {
|
|
261
|
+
padding-inline-end: 34px;
|
|
209
262
|
}
|
|
210
|
-
|
|
263
|
+
|
|
264
|
+
.Title {
|
|
265
|
+
font-size: 17px;
|
|
266
|
+
line-height: 22px;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.Title ~ .Description {
|
|
270
|
+
margin-top: 4px;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.Actions {
|
|
274
|
+
flex: 1 0 100%;
|
|
275
|
+
flex-flow: row wrap;
|
|
276
|
+
gap: 10px 12px;
|
|
277
|
+
align-self: stretch;
|
|
278
|
+
margin: 0;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.Actions:not(:has(> :not(.DismissButton))) {
|
|
282
|
+
display: none;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.Alert .Actions > :where(button, a, [role="link"]) {
|
|
286
|
+
--button-size: var(--button-size-xl, 50px);
|
|
287
|
+
--button-font-size: var(--button-font-size-xl, 17px);
|
|
288
|
+
--button-font-weight: var(--font-weight-semibold);
|
|
289
|
+
--button-gutter: var(--button-gutter-xl, 20px);
|
|
290
|
+
--button-radius: var(--radius-full);
|
|
291
|
+
flex: 1 0 auto;
|
|
292
|
+
min-width: calc(50% - 6px);
|
|
293
|
+
max-width: 100%;
|
|
294
|
+
min-height: var(--button-size-xl, 50px);
|
|
295
|
+
height: auto;
|
|
296
|
+
padding-block: 14px;
|
|
297
|
+
line-height: var(--button-line-height-xl, 22px);
|
|
298
|
+
white-space: normal;
|
|
299
|
+
overflow-wrap: anywhere;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.Alert .Actions > .DismissButton {
|
|
303
|
+
display: none;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
/* A 44px target with its 30px circle (the background and the focus ring) 19 from the edges */
|
|
307
|
+
.Alert > .CloseButton {
|
|
308
|
+
--button-uniform-size: 44px;
|
|
309
|
+
--button-icon-size: 16px;
|
|
310
|
+
position: absolute;
|
|
311
|
+
top: 12px;
|
|
312
|
+
inset-inline-end: 12px;
|
|
313
|
+
display: inline-flex;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.Alert > .CloseButton::before,
|
|
317
|
+
.Alert > .CloseButton::after {
|
|
318
|
+
inset: 7px;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
}
|
|
@@ -55,5 +55,39 @@
|
|
|
55
55
|
}.Current {
|
|
56
56
|
color: var(--color-text);
|
|
57
57
|
overflow-wrap: anywhere;
|
|
58
|
+
}/* iOS has no breadcrumb: a phone screen goes back with the back button of its bar (Toolbar). A trail
|
|
59
|
+
kept on a phone takes the iOS Subheadline, 15/20, at either size (14 and 12 are not iOS text styles),
|
|
60
|
+
as the secondary text of phone rows does, and each link the 44pt touch target of iOS. A link keeps its
|
|
61
|
+
text width in the line; its target reaches 44px wide around a short word, so the gaps stay those of
|
|
62
|
+
the text. Lines of a wrapping trail stand 44px apart, one target each. */@media (max-width: 767px) {
|
|
63
|
+
.Breadcrumb,
|
|
64
|
+
.Breadcrumb[data-size="sm"] {
|
|
65
|
+
--breadcrumb-font-size: 15px;
|
|
66
|
+
--breadcrumb-line-height: 20px;
|
|
67
|
+
--breadcrumb-gap: 6px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.List {
|
|
71
|
+
row-gap: 0;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* Every line of a wrapping trail is a 44px line, also one without a link */
|
|
75
|
+
.Item {
|
|
76
|
+
min-height: 44px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.Item > .Link {
|
|
80
|
+
position: relative;
|
|
81
|
+
display: inline-flex;
|
|
82
|
+
align-items: center;
|
|
83
|
+
min-height: 44px;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.Item > .Link::after {
|
|
87
|
+
position: absolute;
|
|
88
|
+
inset-block: 0;
|
|
89
|
+
inset-inline: min(0px, (100% - 44px) / 2);
|
|
90
|
+
content: "";
|
|
91
|
+
}
|
|
58
92
|
}
|
|
59
93
|
}
|
|
@@ -111,54 +111,54 @@
|
|
|
111
111
|
============================================= */
|
|
112
112
|
.Button:where([data-size="3xs"]) {
|
|
113
113
|
--button-size: var(--button-size-3xs, var(--control-size-3xs));
|
|
114
|
-
--button-uniform-size: var(--control-size-3xs);
|
|
114
|
+
--button-uniform-size: var(--button-uniform-size-3xs, var(--button-size-3xs, var(--control-size-3xs)));
|
|
115
115
|
--button-line-height: var(--button-line-height-3xs, 1);
|
|
116
116
|
--button-gutter: var(--button-gutter-3xs, var(--control-gutter-2xs));
|
|
117
117
|
--button-font-size: var(--button-font-size-3xs, var(--control-font-size-sm));
|
|
118
|
-
--button-icon-size: var(--control-icon-size-xs);
|
|
118
|
+
--button-icon-size: var(--button-icon-size-3xs, var(--control-icon-size-xs));
|
|
119
119
|
--button-gap: var(--button-gap-sm);
|
|
120
120
|
--button-radius: var(--button-touch-radius, var(--control-radius-sm));
|
|
121
121
|
--button-icon-offset: -1px;
|
|
122
|
-
--indicator-size: 11px;
|
|
123
|
-
--circular-progress-size: 11px;
|
|
122
|
+
--indicator-size: var(--button-indicator-size-3xs, 11px);
|
|
123
|
+
--circular-progress-size: var(--button-indicator-size-3xs, 11px);
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
.Button:where([data-size="2xs"]) {
|
|
127
127
|
--button-size: var(--button-size-2xs, var(--control-size-2xs));
|
|
128
|
-
--button-uniform-size: var(--control-size-2xs);
|
|
128
|
+
--button-uniform-size: var(--button-uniform-size-2xs, var(--button-size-2xs, var(--control-size-2xs)));
|
|
129
129
|
--button-line-height: var(--button-line-height-2xs, 1);
|
|
130
130
|
--button-gutter: var(--button-gutter-2xs, var(--control-gutter-xs));
|
|
131
131
|
--button-font-size: var(--button-font-size-2xs, var(--control-font-size-sm));
|
|
132
|
-
--button-icon-size: var(--control-icon-size-sm);
|
|
133
|
-
--button-gap: var(--button-gap-md);
|
|
132
|
+
--button-icon-size: var(--button-icon-size-2xs, var(--control-icon-size-sm));
|
|
133
|
+
--button-gap: var(--button-touch-gap-sm, var(--button-gap-md));
|
|
134
134
|
--button-radius: var(--button-touch-radius, var(--control-radius-sm));
|
|
135
135
|
--button-icon-offset: -1px;
|
|
136
|
-
--indicator-size: 12px;
|
|
137
|
-
--circular-progress-size: 12px;
|
|
136
|
+
--indicator-size: var(--button-indicator-size-2xs, 12px);
|
|
137
|
+
--circular-progress-size: var(--button-indicator-size-2xs, 12px);
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
.Button:where([data-size="xs"]) {
|
|
141
141
|
--button-size: var(--button-size-xs, var(--control-size-xs));
|
|
142
|
-
--button-uniform-size: var(--control-size-xs);
|
|
142
|
+
--button-uniform-size: var(--button-uniform-size-xs, var(--button-size-xs, var(--control-size-xs)));
|
|
143
143
|
--button-line-height: var(--button-line-height-xs, 1);
|
|
144
144
|
--button-gutter: var(--button-gutter-xs, var(--control-gutter-xs));
|
|
145
145
|
--button-font-size: var(--button-font-size-xs, var(--control-font-size-md));
|
|
146
|
-
--button-icon-size: var(--control-icon-size-sm);
|
|
147
|
-
--button-gap: var(--button-gap-md);
|
|
146
|
+
--button-icon-size: var(--button-icon-size-xs, var(--control-icon-size-sm));
|
|
147
|
+
--button-gap: var(--button-touch-gap-sm, var(--button-gap-md));
|
|
148
148
|
--button-radius: var(--button-touch-radius, var(--control-radius-sm));
|
|
149
149
|
--button-icon-offset: -1px;
|
|
150
|
-
--indicator-size: 13px;
|
|
151
|
-
--circular-progress-size: 14px;
|
|
150
|
+
--indicator-size: var(--button-indicator-size-xs, 13px);
|
|
151
|
+
--circular-progress-size: var(--button-indicator-size-xs, 14px);
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
.Button:where([data-size="sm"]) {
|
|
155
155
|
--button-size: var(--button-size-sm, var(--control-size-sm));
|
|
156
|
-
--button-uniform-size: var(--control-size-sm);
|
|
156
|
+
--button-uniform-size: var(--button-uniform-size-sm, var(--button-size-sm, var(--control-size-sm)));
|
|
157
157
|
--button-line-height: var(--button-line-height-sm, 1);
|
|
158
158
|
--button-gutter: var(--button-gutter-sm, var(--control-gutter-sm));
|
|
159
159
|
--button-font-size: var(--button-font-size-sm, var(--control-font-size-md));
|
|
160
160
|
--button-icon-size: var(--control-icon-size-md);
|
|
161
|
-
--button-gap: var(--button-gap-md);
|
|
161
|
+
--button-gap: var(--button-touch-gap-sm, var(--button-gap-md));
|
|
162
162
|
--button-radius: var(--button-touch-radius, var(--control-radius-sm));
|
|
163
163
|
--button-icon-offset: -1px;
|
|
164
164
|
--indicator-size: 15px;
|
|
@@ -167,7 +167,7 @@
|
|
|
167
167
|
|
|
168
168
|
.Button:where([data-size="md"]) {
|
|
169
169
|
--button-size: var(--button-size-md, var(--control-size-md));
|
|
170
|
-
--button-uniform-size: var(--control-size-md);
|
|
170
|
+
--button-uniform-size: var(--button-uniform-size-md, var(--button-size-md, var(--control-size-md)));
|
|
171
171
|
--button-line-height: var(--button-line-height-md, 1);
|
|
172
172
|
--button-gutter: var(--button-gutter-md, var(--control-gutter-md));
|
|
173
173
|
--button-font-size: var(--button-font-size-md, var(--control-font-size-md));
|
|
@@ -181,7 +181,7 @@
|
|
|
181
181
|
|
|
182
182
|
.Button:where([data-size="lg"]) {
|
|
183
183
|
--button-size: var(--button-size-lg, var(--control-size-lg));
|
|
184
|
-
--button-uniform-size: var(--control-size-lg);
|
|
184
|
+
--button-uniform-size: var(--button-uniform-size-lg, var(--button-size-lg, var(--control-size-lg)));
|
|
185
185
|
--button-line-height: var(--button-line-height-lg, 1);
|
|
186
186
|
--button-gutter: var(--button-gutter-lg, var(--control-gutter-md));
|
|
187
187
|
--button-font-size: var(--button-font-size-lg, var(--control-font-size-md));
|
|
@@ -195,11 +195,11 @@
|
|
|
195
195
|
|
|
196
196
|
.Button:where([data-size="xl"]) {
|
|
197
197
|
--button-size: var(--button-size-xl, var(--control-size-xl));
|
|
198
|
-
--button-uniform-size: var(--control-size-xl);
|
|
198
|
+
--button-uniform-size: var(--button-uniform-size-xl, var(--button-size-xl, var(--control-size-xl)));
|
|
199
199
|
--button-line-height: var(--button-line-height-xl, 1);
|
|
200
200
|
--button-gutter: var(--button-gutter-xl, var(--control-gutter-lg));
|
|
201
201
|
--button-font-size: var(--button-font-size-xl, var(--control-font-size-md));
|
|
202
|
-
--button-icon-size: var(--control-icon-size-md);
|
|
202
|
+
--button-icon-size: var(--button-icon-size-xl, var(--control-icon-size-md));
|
|
203
203
|
--button-gap: var(--button-gap-lg);
|
|
204
204
|
--button-radius: var(--button-touch-radius, var(--control-radius-xl));
|
|
205
205
|
--button-icon-offset: -1px;
|
|
@@ -209,7 +209,7 @@
|
|
|
209
209
|
|
|
210
210
|
.Button:where([data-size="2xl"]) {
|
|
211
211
|
--button-size: var(--button-size-2xl, var(--control-size-2xl));
|
|
212
|
-
--button-uniform-size: var(--control-size-2xl);
|
|
212
|
+
--button-uniform-size: var(--button-uniform-size-2xl, var(--button-size-2xl, var(--control-size-2xl)));
|
|
213
213
|
--button-line-height: var(--button-line-height-2xl, 1);
|
|
214
214
|
--button-gutter: var(--button-gutter-2xl, var(--control-gutter-lg));
|
|
215
215
|
--button-font-size: var(--button-font-size-2xl, var(--control-font-size-lg));
|
|
@@ -223,7 +223,7 @@
|
|
|
223
223
|
|
|
224
224
|
.Button:where([data-size="3xl"]) {
|
|
225
225
|
--button-size: var(--button-size-3xl, var(--control-size-3xl));
|
|
226
|
-
--button-uniform-size: var(--control-size-3xl);
|
|
226
|
+
--button-uniform-size: var(--button-uniform-size-3xl, var(--button-size-3xl, var(--control-size-3xl)));
|
|
227
227
|
--button-line-height: var(--button-line-height-3xl, 1);
|
|
228
228
|
--button-gutter: var(--button-gutter-3xl, var(--control-gutter-xl));
|
|
229
229
|
--button-font-size: var(--button-font-size-3xl, var(--control-font-size-lg));
|
|
@@ -315,6 +315,42 @@
|
|
|
315
315
|
width: var(--button-size);
|
|
316
316
|
}
|
|
317
317
|
|
|
318
|
+
/* A lone icon without `uniform` keeps the gutters of a text button. touch.css makes it the kit's symbol
|
|
319
|
+
button on a phone instead (Button - Content Area 40:58696, Label Type=Symbol): no gutters and at least as
|
|
320
|
+
wide as it is tall, a circle of 28, 34 or 50px; a component that makes it wider (a full-width action) keeps
|
|
321
|
+
its width. A literal label beside the icon is wrapped in a span, so it is never taken for a lone icon; a label
|
|
322
|
+
that a component renders as bare text is, so wrap such a label in an element. The rule weighs as .Button
|
|
323
|
+
alone, so a component that sets the padding of its icon button keeps it. */
|
|
324
|
+
.Button:where(:not([data-uniform]):has(> .ButtonInner > svg:only-child)) {
|
|
325
|
+
/* What stands between the edge and the icon: the gutter, or on a phone half of what the circle leaves
|
|
326
|
+
around the icon, as for a uniform button */
|
|
327
|
+
--button-icon-only-inset: max(
|
|
328
|
+
calc(var(--button-gutter) * var(--button-icon-only-gutter-scale, 1)),
|
|
329
|
+
calc((var(--button-size) - var(--button-icon-size)) / 2 * (1 - var(--button-icon-only-gutter-scale, 1)))
|
|
330
|
+
);
|
|
331
|
+
|
|
332
|
+
min-width: var(--button-icon-only-min-width, auto);
|
|
333
|
+
padding-inline: calc(var(--button-gutter) * var(--button-icon-only-gutter-scale, 1));
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.Button:where(:not([data-uniform]):has(> .ButtonInner > svg:only-child)):where([data-pill]) {
|
|
337
|
+
--button-icon-only-inset: max(
|
|
338
|
+
calc(var(--button-gutter) * var(--control-gutter-pill-scaling) * var(--button-icon-only-gutter-scale, 1)),
|
|
339
|
+
calc((var(--button-size) - var(--button-icon-size)) / 2 * (1 - var(--button-icon-only-gutter-scale, 1)))
|
|
340
|
+
);
|
|
341
|
+
|
|
342
|
+
padding-inline: calc(var(--button-gutter) * var(--control-gutter-pill-scaling) * var(--button-icon-only-gutter-scale, 1));
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
/* Outweighs the optical alignment of a text button above, pill included */
|
|
346
|
+
.Button:where(:not([data-uniform]):has(> .ButtonInner > svg:only-child))[data-optically-align="start"] {
|
|
347
|
+
margin-inline-start: calc(var(--button-icon-only-inset) * -1);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.Button:where(:not([data-uniform]):has(> .ButtonInner > svg:only-child))[data-optically-align="end"] {
|
|
351
|
+
margin-inline-end: calc(var(--button-icon-only-inset) * -1);
|
|
352
|
+
}
|
|
353
|
+
|
|
318
354
|
/* =============================================
|
|
319
355
|
Ghost variant
|
|
320
356
|
============================================= */
|
|
@@ -902,6 +938,18 @@
|
|
|
902
938
|
--button-mobile-material-scale: 1;
|
|
903
939
|
}
|
|
904
940
|
|
|
941
|
+
/* A glass text button is the Liquid Glass text button of the iOS 27 kit (Button - Liquid Glass - Text 5473:21667):
|
|
942
|
+
its label is Medium, and 17px from the medium (34px) size up, where a content-area button keeps Regular 15px
|
|
943
|
+
at 28 and 34 (Button - Content Area 40:58696). With touch.css, as the glass itself; disabled ones keep it. */
|
|
944
|
+
.Button[data-mobile-material="glass"]:where([data-color="primary"], [data-color="secondary"]):where([data-variant="soft"], [data-variant="ghost"]) {
|
|
945
|
+
font-weight: var(--button-glass-font-weight, var(--button-font-weight));
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
.Button[data-mobile-material="glass"]:where([data-color="primary"], [data-color="secondary"]):where([data-variant="soft"], [data-variant="ghost"]):where([data-size="md"], [data-size="lg"]) {
|
|
949
|
+
font-size: var(--button-glass-font-size, var(--button-font-size));
|
|
950
|
+
line-height: var(--button-glass-line-height, var(--button-line-height, 1));
|
|
951
|
+
}
|
|
952
|
+
|
|
905
953
|
.Button:is([data-mobile-material="flat"], [data-disabled]) {
|
|
906
954
|
--button-mobile-material-background: initial;
|
|
907
955
|
--button-mobile-material-hover: initial;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
color: var(--card-text-color);
|
|
11
11
|
box-shadow: 0 0 0 1px var(--card-border-color) inset;
|
|
12
12
|
font-size: var(--card-font-size);
|
|
13
|
-
line-height: var(--font-text-sm-line-height);
|
|
13
|
+
line-height: var(--card-line-height, var(--font-text-sm-line-height));
|
|
14
14
|
transition-duration: var(--transition-duration-basic);
|
|
15
15
|
transition-property: background-color, box-shadow, border-color;
|
|
16
16
|
transition-timing-function: var(--transition-ease-basic);
|
|
@@ -50,12 +50,12 @@
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
.Card:where([data-size="md"]) {
|
|
53
|
-
--card-padding: calc(var(--spacing) * 5);
|
|
53
|
+
--card-padding: var(--card-padding-md, calc(var(--spacing) * 5));
|
|
54
54
|
--card-gap: calc(var(--spacing) * 4);
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
.Card:where([data-size="lg"]) {
|
|
58
|
-
--card-padding: calc(var(--spacing) * 6);
|
|
58
|
+
--card-padding: var(--card-padding-lg, calc(var(--spacing) * 6));
|
|
59
59
|
--card-gap: calc(var(--spacing) * 5);
|
|
60
60
|
}
|
|
61
61
|
|
|
@@ -90,14 +90,14 @@
|
|
|
90
90
|
color: var(--card-title-color);
|
|
91
91
|
font-size: var(--card-title-font-size);
|
|
92
92
|
font-weight: var(--card-title-font-weight);
|
|
93
|
-
line-height: var(--font-heading-xs-line-height);
|
|
94
|
-
letter-spacing: var(--font-heading-xs-tracking);
|
|
93
|
+
line-height: var(--card-title-line-height, var(--font-heading-xs-line-height));
|
|
94
|
+
letter-spacing: var(--card-title-letter-spacing, var(--font-heading-xs-tracking));
|
|
95
95
|
text-wrap: balance;
|
|
96
96
|
}.Description {
|
|
97
97
|
margin: calc(calc(var(--spacing) * 1.5) * -1) 0 0;
|
|
98
98
|
color: var(--card-description-color);
|
|
99
99
|
font-size: var(--card-description-font-size);
|
|
100
|
-
line-height: var(--font-text-sm-line-height);
|
|
100
|
+
line-height: var(--card-description-line-height, var(--font-text-sm-line-height));
|
|
101
101
|
text-wrap: pretty;
|
|
102
102
|
}/* ================================================
|
|
103
103
|
Content — primary body
|
|
@@ -123,5 +123,21 @@
|
|
|
123
123
|
display: flex;
|
|
124
124
|
align-items: center;
|
|
125
125
|
gap: calc(var(--spacing) * 1);
|
|
126
|
+
}/*
|
|
127
|
+
* On a phone, with touch.css, an outline card is a section of an iOS inset grouped list, as a FieldGroup is: no
|
|
128
|
+
* border, and the fill of the FieldGroup on the same surface (touch.css resolves --card-section-background on the
|
|
129
|
+
* card itself: the secondary grouped background on a grouped Page or Dialog, a gray section on a plain one). A
|
|
130
|
+
* solid card takes a gray fill so it still stands apart from those sections; a ghost card stays clear. Without
|
|
131
|
+
* touch.css every value falls back to the desktop one.
|
|
132
|
+
*/@media (max-width: 767px) {
|
|
133
|
+
.Card:where([data-variant="outline"]) {
|
|
134
|
+
--card-background: var(--card-section-background, var(--color-surface));
|
|
135
|
+
--card-border-color: var(--card-section-border-color, var(--color-border));
|
|
136
|
+
--card-border-color-hover: var(--card-section-border-color, var(--color-border-primary-outline-hover));
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.Card:where([data-variant="solid"]) {
|
|
140
|
+
--card-background: var(--card-solid-section-background, var(--color-surface-secondary));
|
|
141
|
+
}
|
|
126
142
|
}
|
|
127
143
|
}
|
|
@@ -122,82 +122,33 @@
|
|
|
122
122
|
transition:
|
|
123
123
|
border-color 150ms ease,
|
|
124
124
|
background-color 150ms ease;
|
|
125
|
-
}.
|
|
125
|
+
}/* Solid: the PlexUI Check icon, and Minus when indeterminate, on the filled box. The mark stays
|
|
126
|
+
mounted, so a long list of boxes cleared at once costs no style pass per box and first render
|
|
127
|
+
plays no animation. A new mark is revealed from the left; a cleared one fades out. */.CheckMark {
|
|
126
128
|
position: absolute;
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
129
|
+
inset: 0;
|
|
130
|
+
display: flex;
|
|
131
|
+
align-items: center;
|
|
132
|
+
justify-content: center;
|
|
133
|
+
color: var(--checkbox-checkmark-color, var(--gray-0));
|
|
134
|
+
clip-path: inset(0);
|
|
133
135
|
transition:
|
|
134
136
|
opacity 150ms ease,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
/* CheckMark arms */
|
|
137
|
+
clip-path 200ms ease;
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
/* The indicator stays mounted, so a long list of boxes cleared at once costs
|
|
141
|
-
no style pass per box and first render plays no animation. */
|
|
142
140
|
.Checkbox[data-state="unchecked"] .CheckMark {
|
|
143
141
|
opacity: 0;
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
[data-state="indeterminate"] .CheckMark {
|
|
147
|
-
transform: translate(30%, 80%);
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
[data-state="indeterminate"] .CheckMark::before {
|
|
151
|
-
opacity: 0;
|
|
152
|
-
}
|
|
153
|
-
.CheckMark::before,
|
|
154
|
-
.CheckMark::after {
|
|
155
|
-
position: absolute;
|
|
156
|
-
display: block;
|
|
157
|
-
background: var(--checkbox-checkmark-color, var(--gray-0));
|
|
158
|
-
content: "";
|
|
159
|
-
will-change: transform;
|
|
160
|
-
}
|
|
161
|
-
@starting-style {
|
|
162
|
-
|
|
163
|
-
.Container:focus-within .CheckMark::before,
|
|
164
|
-
.Container:focus-within .CheckMark::after {
|
|
165
|
-
transform: scale(0)
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
@media (hover: hover) and (pointer: fine) {
|
|
170
|
-
@starting-style {
|
|
171
|
-
.Container:hover:where(:not(:root[data-input="touch"] *)) .CheckMark::before,
|
|
172
|
-
.Container:hover:where(:not(:root[data-input="touch"] *)) .CheckMark::after {
|
|
173
|
-
transform: scale(0)
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
.CheckMark::before {
|
|
179
|
-
top: 0;
|
|
180
|
-
bottom: 0;
|
|
181
|
-
left: 0;
|
|
182
|
-
width: 2px;
|
|
183
|
-
transform-origin: 0 0;
|
|
142
|
+
clip-path: inset(0 100% 0 0);
|
|
184
143
|
transition:
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
.CheckMark [data-state="indeterminate"]::before {
|
|
190
|
-
opacity: 0;
|
|
144
|
+
opacity 150ms ease,
|
|
145
|
+
clip-path 0s 150ms;
|
|
191
146
|
}
|
|
192
147
|
|
|
193
|
-
.CheckMark
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
height: 2px;
|
|
198
|
-
transform-origin: 0 100%;
|
|
199
|
-
transition: transform 100ms ease 160ms;
|
|
200
|
-
}/* Ghost: the PlexUI Check icon, and Minus when indeterminate, in the text color. */.GhostMark {
|
|
148
|
+
.CheckMark > svg {
|
|
149
|
+
width: var(--checkbox-check-icon-size, var(--checkbox-indicator-size));
|
|
150
|
+
height: var(--checkbox-check-icon-size, var(--checkbox-indicator-size));
|
|
151
|
+
}/* Ghost: the same icons in the text color, without a box. */.GhostMark {
|
|
201
152
|
position: absolute;
|
|
202
153
|
inset: 0;
|
|
203
154
|
display: flex;
|
|
@@ -209,13 +160,16 @@
|
|
|
209
160
|
|
|
210
161
|
.Checkbox[data-state="unchecked"] .GhostMark {
|
|
211
162
|
opacity: 0;
|
|
212
|
-
}
|
|
213
|
-
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.GhostMark > svg {
|
|
166
|
+
width: var(--checkbox-ghost-icon-size, var(--checkbox-indicator-size));
|
|
167
|
+
height: var(--checkbox-ghost-icon-size, var(--checkbox-indicator-size));
|
|
168
|
+
}.MarkCheck,
|
|
169
|
+
.MarkDash {
|
|
214
170
|
flex-shrink: 0;
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
}.Checkbox[data-state="indeterminate"] .GhostCheck,
|
|
218
|
-
.Checkbox:not([data-state="indeterminate"]) .GhostDash {
|
|
171
|
+
}.Checkbox[data-state="indeterminate"] .MarkCheck,
|
|
172
|
+
.Checkbox:not([data-state="indeterminate"]) .MarkDash {
|
|
219
173
|
display: none;
|
|
220
174
|
}.Label {
|
|
221
175
|
display: block;
|
|
@@ -31,6 +31,26 @@
|
|
|
31
31
|
color: inherit !important;
|
|
32
32
|
padding: 0 !important;
|
|
33
33
|
-webkit-tap-highlight-color: transparent;
|
|
34
|
+
}/* With touch.css a uniform 2xs button is the kit's 28px circle on a phone; the copy button keeps its 24px face and
|
|
35
|
+
glyph inside the 32px box, and its target takes the 44px of iOS around the box, as the clear
|
|
36
|
+
button of SelectControl does. */.CopyButtonContainer {
|
|
37
|
+
--button-uniform-size-2xs: var(--control-size-2xs);
|
|
38
|
+
--button-icon-size-2xs: var(--control-icon-size-sm);
|
|
39
|
+
--button-indicator-size-2xs: 12px;
|
|
40
|
+
}@media (max-width: 767px) {
|
|
41
|
+
.CopyButtonContainer button {
|
|
42
|
+
min-width: 44px;
|
|
43
|
+
min-height: 44px;
|
|
44
|
+
/* The target overhangs the 32px box evenly, so the glyph stays at its centre. */
|
|
45
|
+
margin: calc((32px - 44px) / 2);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.CopyButtonContainer button::before,
|
|
49
|
+
.CopyButtonContainer button::after {
|
|
50
|
+
width: var(--button-size);
|
|
51
|
+
height: var(--button-size);
|
|
52
|
+
margin: auto;
|
|
53
|
+
}
|
|
34
54
|
}/* The button's own outline stays off; keyboard focus shows Button's
|
|
35
55
|
::after ring */.CopyButtonContainer button:focus,
|
|
36
56
|
.CopyButtonContainer button:focus-visible {
|