zidan-select 2.1.2 → 2.2.0
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/README.md +175 -22
- package/dist/file/plugin-file-core.css +464 -0
- package/dist/file/plugin-file-theme.css +1247 -0
- package/dist/file/zidan-file.js +1946 -0
- package/dist/file/zidan-file.mjs +24 -0
- package/dist/plugin-core.css +22 -1
- package/dist/plugin-theme.css +10 -1
- package/dist/select/plugin-select-core.css +515 -0
- package/dist/select/plugin-select-theme.css +1034 -0
- package/dist/select/zidan-select.js +2515 -0
- package/dist/select/zidan-select.mjs +24 -0
- package/dist/zidan-form.js +316 -86
- package/docs/build.md +55 -3
- package/docs/comparison.md +14 -3
- package/docs/index.html +5 -1
- package/docs/options.md +77 -4
- package/package.json +19 -3
- package/plugin-core.css +22 -1
- package/plugin-theme.css +10 -1
- package/zidan-form.js +316 -86
|
@@ -0,0 +1,515 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* ZidanForm Select-only v2.2.0 — plugin-select-core.css
|
|
3
|
+
* Structure for the select / combobox / tags control only.
|
|
4
|
+
* Pairs with zidan-select.js and plugin-select-theme.css.
|
|
5
|
+
*
|
|
6
|
+
* Generated by scripts/build.mjs — edit the shared stylesheets instead.
|
|
7
|
+
* https://github.com/akhtar1985/zidan-select
|
|
8
|
+
* MIT License © akhtar1985
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/* ==================================================================
|
|
12
|
+
1. Scope reset
|
|
13
|
+
================================================================== */
|
|
14
|
+
|
|
15
|
+
.zs-root,
|
|
16
|
+
.zs-field,
|
|
17
|
+
.zs-radio-group {
|
|
18
|
+
position: relative;
|
|
19
|
+
display: block;
|
|
20
|
+
width: 100%;
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
font-family: var(--zs-font-family, inherit);
|
|
23
|
+
font-size: var(--zs-font-size, 0.9375rem);
|
|
24
|
+
line-height: var(--zs-line-height, 1.4);
|
|
25
|
+
-webkit-tap-highlight-color: transparent;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.zs-root *,
|
|
29
|
+
.zs-root *::before,
|
|
30
|
+
.zs-root *::after,
|
|
31
|
+
.zs-field *,
|
|
32
|
+
.zs-field *::before,
|
|
33
|
+
.zs-field *::after,
|
|
34
|
+
.zs-radio-group *,
|
|
35
|
+
.zs-radio-group *::before,
|
|
36
|
+
.zs-radio-group *::after {
|
|
37
|
+
box-sizing: border-box;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* ==================================================================
|
|
41
|
+
2. Select / combobox / tags — shell
|
|
42
|
+
================================================================== */
|
|
43
|
+
|
|
44
|
+
.zs-root .zs-label {
|
|
45
|
+
display: block;
|
|
46
|
+
margin-bottom: 6px;
|
|
47
|
+
font-size: var(--zs-label-size, 0.8125rem);
|
|
48
|
+
font-weight: 600;
|
|
49
|
+
letter-spacing: 0.01em;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.zs-control {
|
|
53
|
+
position: relative;
|
|
54
|
+
display: flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
flex-wrap: wrap;
|
|
57
|
+
gap: var(--zs-gap, 6px);
|
|
58
|
+
width: 100%;
|
|
59
|
+
min-height: var(--zs-height, 44px);
|
|
60
|
+
padding: var(--zs-padding-y, 5px) var(--zs-padding-x, 12px);
|
|
61
|
+
border-width: var(--zs-border-width, 1px);
|
|
62
|
+
border-style: solid;
|
|
63
|
+
border-radius: var(--zs-radius, 10px);
|
|
64
|
+
cursor: pointer;
|
|
65
|
+
transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* bootstrap mounted inside the widget must not double-style our control */
|
|
69
|
+
.zs-root .zs-control.form-control {
|
|
70
|
+
display: flex;
|
|
71
|
+
align-items: center;
|
|
72
|
+
flex-wrap: wrap;
|
|
73
|
+
gap: var(--zs-gap, 6px);
|
|
74
|
+
padding: var(--zs-padding-y, 5px) var(--zs-padding-x, 12px);
|
|
75
|
+
height: auto;
|
|
76
|
+
min-height: var(--zs-height, 44px);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.zs-root--focus .zs-control,
|
|
80
|
+
.zs-root--open .zs-control {
|
|
81
|
+
outline: none;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.zs-root--disabled .zs-control,
|
|
85
|
+
.zs-root--disabled .zs-control:hover {
|
|
86
|
+
cursor: not-allowed;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* ==================================================================
|
|
90
|
+
3. Values, chips, input, icons
|
|
91
|
+
================================================================== */
|
|
92
|
+
|
|
93
|
+
.zs-root .zs-chips {
|
|
94
|
+
display: flex;
|
|
95
|
+
flex-wrap: wrap;
|
|
96
|
+
align-items: center;
|
|
97
|
+
gap: var(--zs-gap, 6px);
|
|
98
|
+
max-width: 100%;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.zs-root .zs-chips[hidden] {
|
|
102
|
+
display: none;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.zs-root .zs-chip {
|
|
106
|
+
display: inline-flex;
|
|
107
|
+
align-items: center;
|
|
108
|
+
gap: 4px;
|
|
109
|
+
max-width: 100%;
|
|
110
|
+
padding: 3px 4px 3px 9px;
|
|
111
|
+
font-size: 0.8125rem;
|
|
112
|
+
font-weight: 500;
|
|
113
|
+
border-width: 1px;
|
|
114
|
+
border-style: solid;
|
|
115
|
+
border-radius: var(--zs-chip-radius, 8px);
|
|
116
|
+
transition: background-color 150ms ease, border-color 150ms ease;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.zs-root .zs-chip-label {
|
|
120
|
+
overflow: hidden;
|
|
121
|
+
text-overflow: ellipsis;
|
|
122
|
+
white-space: nowrap;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.zs-root .zs-chip-remove {
|
|
126
|
+
display: inline-flex;
|
|
127
|
+
align-items: center;
|
|
128
|
+
justify-content: center;
|
|
129
|
+
width: 18px;
|
|
130
|
+
height: 18px;
|
|
131
|
+
padding: 0;
|
|
132
|
+
border: 0;
|
|
133
|
+
border-radius: 50%;
|
|
134
|
+
cursor: pointer;
|
|
135
|
+
opacity: 0.6;
|
|
136
|
+
transition: opacity 150ms ease, background-color 150ms ease;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.zs-root .zs-chip-remove:hover,
|
|
140
|
+
.zs-root .zs-chip-remove:focus-visible {
|
|
141
|
+
opacity: 1;
|
|
142
|
+
outline: none;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.zs-root .zs-input {
|
|
146
|
+
flex: 1 1 60px;
|
|
147
|
+
min-width: 60px;
|
|
148
|
+
height: 32px;
|
|
149
|
+
margin: 0;
|
|
150
|
+
padding: 0;
|
|
151
|
+
font: inherit;
|
|
152
|
+
border: 0;
|
|
153
|
+
border-radius: 0;
|
|
154
|
+
outline: none;
|
|
155
|
+
box-shadow: none;
|
|
156
|
+
appearance: none;
|
|
157
|
+
-webkit-appearance: none;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.zs-root .zs-input:focus {
|
|
161
|
+
outline: none;
|
|
162
|
+
box-shadow: none;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.zs-root .zs-input[readonly],
|
|
166
|
+
.zs-root--disabled .zs-input {
|
|
167
|
+
cursor: pointer;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.zs-root--disabled .zs-input {
|
|
171
|
+
cursor: not-allowed;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.zs-root .zs-clear,
|
|
175
|
+
.zs-root .zs-arrow {
|
|
176
|
+
display: inline-flex;
|
|
177
|
+
align-items: center;
|
|
178
|
+
justify-content: center;
|
|
179
|
+
flex: 0 0 auto;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.zs-root .zs-clear {
|
|
183
|
+
width: 22px;
|
|
184
|
+
height: 22px;
|
|
185
|
+
padding: 0;
|
|
186
|
+
border: 0;
|
|
187
|
+
border-radius: 50%;
|
|
188
|
+
cursor: pointer;
|
|
189
|
+
opacity: 0.75;
|
|
190
|
+
transition: opacity 150ms ease, background-color 150ms ease;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.zs-root .zs-clear[hidden] {
|
|
194
|
+
display: none;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.zs-root .zs-clear:hover {
|
|
198
|
+
opacity: 1;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.zs-root .zs-clear:focus-visible {
|
|
202
|
+
outline: none;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.zs-root .zs-arrow {
|
|
206
|
+
pointer-events: none;
|
|
207
|
+
transition: transform 150ms ease, color 150ms ease;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.zs-root--open .zs-arrow {
|
|
211
|
+
transform: rotate(180deg);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.zs-root--tags .zs-control {
|
|
215
|
+
padding-top: 6px;
|
|
216
|
+
padding-bottom: 6px;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.zs-root--tags .zs-input {
|
|
220
|
+
height: 28px;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/* ==================================================================
|
|
224
|
+
4. Dropdown / listbox
|
|
225
|
+
================================================================== */
|
|
226
|
+
|
|
227
|
+
.zs-root .zs-dropdown {
|
|
228
|
+
position: absolute;
|
|
229
|
+
z-index: var(--zs-z-index, 1055);
|
|
230
|
+
top: calc(100% + 6px);
|
|
231
|
+
left: 0;
|
|
232
|
+
right: 0;
|
|
233
|
+
display: none;
|
|
234
|
+
max-height: 280px;
|
|
235
|
+
padding: 6px;
|
|
236
|
+
overflow-y: auto;
|
|
237
|
+
overscroll-behavior: contain;
|
|
238
|
+
border-width: var(--zs-dropdown-border-width, 1px);
|
|
239
|
+
border-style: solid;
|
|
240
|
+
border-radius: var(--zs-dropdown-radius, 12px);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.zs-root--open .zs-dropdown {
|
|
244
|
+
display: block;
|
|
245
|
+
animation: zs-dropdown-in 140ms ease-out;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.zs-root--dropup .zs-dropdown {
|
|
249
|
+
top: auto;
|
|
250
|
+
bottom: calc(100% + 6px);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.zs-root--dropup.zs-root--open .zs-dropdown {
|
|
254
|
+
animation-name: zs-dropdown-in-up;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
@keyframes zs-dropdown-in {
|
|
258
|
+
from { opacity: 0; transform: translateY(-4px); }
|
|
259
|
+
to { opacity: 1; transform: translateY(0); }
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
@keyframes zs-dropdown-in-up {
|
|
263
|
+
from { opacity: 0; transform: translateY(4px); }
|
|
264
|
+
to { opacity: 1; transform: translateY(0); }
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.zs-root .zs-group {
|
|
268
|
+
padding: 8px 10px 4px;
|
|
269
|
+
font-size: 0.6875rem;
|
|
270
|
+
font-weight: 700;
|
|
271
|
+
letter-spacing: 0.06em;
|
|
272
|
+
text-transform: uppercase;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.zs-root .zs-option {
|
|
276
|
+
display: flex;
|
|
277
|
+
align-items: center;
|
|
278
|
+
gap: 8px;
|
|
279
|
+
padding: var(--zs-option-padding-y, 9px) var(--zs-option-padding-x, 12px);
|
|
280
|
+
border-radius: var(--zs-option-radius, 8px);
|
|
281
|
+
cursor: pointer;
|
|
282
|
+
transition: background-color 90ms linear, color 90ms linear;
|
|
283
|
+
scroll-margin: 6px;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.zs-root .zs-option-label {
|
|
287
|
+
flex: 1 1 auto;
|
|
288
|
+
min-width: 0;
|
|
289
|
+
overflow: hidden;
|
|
290
|
+
text-overflow: ellipsis;
|
|
291
|
+
white-space: nowrap;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.zs-root .zs-option--selected::after {
|
|
295
|
+
content: "";
|
|
296
|
+
flex: 0 0 auto;
|
|
297
|
+
width: 14px;
|
|
298
|
+
height: 14px;
|
|
299
|
+
margin-left: auto;
|
|
300
|
+
background-color: currentColor;
|
|
301
|
+
-webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
|
|
302
|
+
mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
|
|
303
|
+
opacity: 0.85;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.zs-root .zs-option--disabled {
|
|
307
|
+
cursor: not-allowed;
|
|
308
|
+
opacity: 0.45;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.zs-root .zs-option--disabled::after {
|
|
312
|
+
display: none;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.zs-root .zs-state {
|
|
316
|
+
display: flex;
|
|
317
|
+
align-items: center;
|
|
318
|
+
gap: 8px;
|
|
319
|
+
padding: 12px;
|
|
320
|
+
font-size: 0.875rem;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.zs-root .zs-spinner {
|
|
324
|
+
width: 14px;
|
|
325
|
+
height: 14px;
|
|
326
|
+
border-width: 2px;
|
|
327
|
+
border-style: solid;
|
|
328
|
+
border-radius: 50%;
|
|
329
|
+
animation: zs-spin 700ms linear infinite;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
@keyframes zs-spin {
|
|
333
|
+
to { transform: rotate(360deg); }
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
@media (max-width: 480px) {
|
|
337
|
+
.zs-root .zs-dropdown {
|
|
338
|
+
max-height: min(280px, 45vh);
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
/* screen-reader only live region */
|
|
343
|
+
.zs-root .zs-live,
|
|
344
|
+
.zs-field .zs-sr-only {
|
|
345
|
+
position: absolute;
|
|
346
|
+
width: 1px;
|
|
347
|
+
height: 1px;
|
|
348
|
+
margin: -1px;
|
|
349
|
+
padding: 0;
|
|
350
|
+
overflow: hidden;
|
|
351
|
+
clip: rect(0 0 0 0);
|
|
352
|
+
clip-path: inset(50%);
|
|
353
|
+
white-space: nowrap;
|
|
354
|
+
border: 0;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
/* ==================================================================
|
|
358
|
+
5. Select layout mechanics
|
|
359
|
+
(skin and token presets live in plugin-theme.css)
|
|
360
|
+
================================================================== */
|
|
361
|
+
|
|
362
|
+
.zs-root[data-zs-layout="classic-clean"] .zs-control {
|
|
363
|
+
padding-top: var(--zs-padding-y, 5px);
|
|
364
|
+
padding-bottom: var(--zs-padding-y, 5px);
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.zs-root[data-zs-layout="floating-label"] .zs-control {
|
|
368
|
+
padding-top: 16px;
|
|
369
|
+
padding-bottom: 6px;
|
|
370
|
+
align-items: flex-end;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.zs-root[data-zs-layout="floating-label"] .zs-label {
|
|
374
|
+
position: absolute;
|
|
375
|
+
left: calc(var(--zs-padding-x, 12px) + 1px);
|
|
376
|
+
top: 50%;
|
|
377
|
+
margin: 0;
|
|
378
|
+
padding: 0 4px;
|
|
379
|
+
transform: translateY(-50%);
|
|
380
|
+
font-size: var(--zs-font-size, 0.9375rem);
|
|
381
|
+
font-weight: 500;
|
|
382
|
+
border-radius: 4px;
|
|
383
|
+
pointer-events: none;
|
|
384
|
+
transition: transform 150ms ease, font-size 150ms ease, color 150ms ease, top 150ms ease;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.zs-root[data-zs-layout="floating-label"].zs-root--focus .zs-label,
|
|
388
|
+
.zs-root[data-zs-layout="floating-label"].zs-root--open .zs-label,
|
|
389
|
+
.zs-root[data-zs-layout="floating-label"].zs-root--has-value .zs-label {
|
|
390
|
+
top: 10px;
|
|
391
|
+
transform: translateY(-50%) scale(0.86);
|
|
392
|
+
transform-origin: left center;
|
|
393
|
+
font-weight: 600;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.zs-root[data-zs-layout="floating-label"] .zs-input {
|
|
397
|
+
height: 28px;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
.zs-root[data-zs-layout="floating-label"].zs-root--multiple .zs-control,
|
|
401
|
+
.zs-root[data-zs-layout="floating-label"].zs-root--tags .zs-control {
|
|
402
|
+
padding-top: 20px;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.zs-root[data-zs-layout="soft-pill"] .zs-chip-remove {
|
|
406
|
+
width: 20px;
|
|
407
|
+
height: 20px;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
.zs-root[data-zs-layout="soft-pill"] .zs-dropdown {
|
|
411
|
+
padding: 8px;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
.zs-root[data-zs-layout="soft-pill"].zs-root--multiple .zs-input,
|
|
415
|
+
.zs-root[data-zs-layout="soft-pill"].zs-root--tags .zs-input {
|
|
416
|
+
min-width: 90px;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
.zs-root[data-zs-layout="bordered-brutalist"] .zs-control {
|
|
420
|
+
font-weight: 600;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
.zs-root[data-zs-layout="bordered-brutalist"] .zs-chip {
|
|
424
|
+
font-weight: 700;
|
|
425
|
+
letter-spacing: 0.01em;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
.zs-root[data-zs-layout="bordered-brutalist"] .zs-dropdown {
|
|
429
|
+
padding: 0;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
.zs-root[data-zs-layout="bordered-brutalist"] .zs-option {
|
|
433
|
+
border-bottom-width: 1px;
|
|
434
|
+
border-bottom-style: solid;
|
|
435
|
+
font-weight: 500;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
.zs-root[data-zs-layout="bordered-brutalist"] .zs-option:last-child {
|
|
439
|
+
border-bottom: 0;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
.zs-root[data-zs-layout="bordered-brutalist"] .zs-group {
|
|
443
|
+
border-bottom-width: 2px;
|
|
444
|
+
border-bottom-style: solid;
|
|
445
|
+
font-weight: 800;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
.zs-root[data-zs-layout="glass-elevated"] .zs-control,
|
|
449
|
+
.zs-root[data-zs-layout="glass-elevated"] .zs-dropdown {
|
|
450
|
+
-webkit-backdrop-filter: blur(14px) saturate(150%);
|
|
451
|
+
backdrop-filter: blur(14px) saturate(150%);
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
.zs-root[data-zs-layout="glass-elevated"] .zs-dropdown {
|
|
455
|
+
-webkit-backdrop-filter: blur(18px) saturate(160%);
|
|
456
|
+
backdrop-filter: blur(18px) saturate(160%);
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
.zs-root--mount {
|
|
460
|
+
margin: 0;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
/* ==================================================================
|
|
464
|
+
11. Form layout helper
|
|
465
|
+
================================================================== */
|
|
466
|
+
|
|
467
|
+
.zs-form-grid {
|
|
468
|
+
display: grid;
|
|
469
|
+
grid-template-columns: repeat(auto-fit, minmax(var(--zs-grid-min, 230px), 1fr));
|
|
470
|
+
gap: var(--zs-grid-gap, 16px);
|
|
471
|
+
align-items: start;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
.zs-form-grid > .zs-full {
|
|
475
|
+
grid-column: 1 / -1;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
/* ==================================================================
|
|
479
|
+
12. Focus & motion
|
|
480
|
+
================================================================== */
|
|
481
|
+
|
|
482
|
+
.zs-check input:focus-visible + .zs-check-box,
|
|
483
|
+
.zs-check input:focus-visible + .zs-switch-track,
|
|
484
|
+
.zs-radio input:focus-visible + .zs-radio-dot {
|
|
485
|
+
outline: 2px solid transparent;
|
|
486
|
+
outline-offset: 2px;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
.zs-input-native:focus-visible,
|
|
490
|
+
.zs-file-input:focus-visible {
|
|
491
|
+
outline: none;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
@media (prefers-reduced-motion: reduce) {
|
|
495
|
+
.zs-root,
|
|
496
|
+
.zs-root *,
|
|
497
|
+
.zs-root *::before,
|
|
498
|
+
.zs-root *::after,
|
|
499
|
+
.zs-field,
|
|
500
|
+
.zs-field *,
|
|
501
|
+
.zs-field *::before,
|
|
502
|
+
.zs-field *::after,
|
|
503
|
+
.zs-radio-group,
|
|
504
|
+
.zs-radio-group * {
|
|
505
|
+
animation-duration: 0.001ms !important;
|
|
506
|
+
animation-iteration-count: 1 !important;
|
|
507
|
+
transition-duration: 0.001ms !important;
|
|
508
|
+
scroll-behavior: auto !important;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
.zs-root .zs-spinner {
|
|
512
|
+
animation-duration: 1.2s !important;
|
|
513
|
+
animation-iteration-count: infinite !important;
|
|
514
|
+
}
|
|
515
|
+
}
|