vanilla-jui 1.7.34 → 1.7.36
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/index.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +5 -10
- package/src/components/accordion.ts +2 -2
- package/src/components/toc.ts +1 -1
- package/src/css/animation.css +2 -8
- package/src/css/card.css +4 -4
- package/src/css/font.css +6 -3
- package/src/css/gradient.css +128 -63
- package/src/css/icon.css +1 -5
- package/src/css/layout.css +15 -12
- package/src/css/status.css +5 -8
- package/src/css/themes/default/accordion.css +8 -7
- package/src/css/themes/default/avatar.css +3 -4
- package/src/css/themes/default/badge.css +2 -2
- package/src/css/themes/default/breadcrumb.css +11 -12
- package/src/css/themes/default/button.css +7 -15
- package/src/css/themes/default/captcha.css +69 -71
- package/src/css/themes/default/drop.css +1 -1
- package/src/css/themes/default/editor.css +16 -16
- package/src/css/themes/default/flow.css +6 -13
- package/src/css/themes/default/form.css +49 -52
- package/src/css/themes/default/index.css +1 -1
- package/src/css/themes/default/loading.css +62 -47
- package/src/css/themes/default/menu.css +133 -79
- package/src/css/themes/default/modal.css +7 -11
- package/src/css/themes/default/offcanvas.css +12 -13
- package/src/css/themes/default/swiper.css +25 -23
- package/src/css/themes/default/tabs.css +3 -3
- package/src/css/themes/default/theme-palette.css +2 -2
- package/src/css/themes/default/tip.css +8 -10
- package/src/css/themes/default/toast.css +2 -2
- package/src/css/themes/default/toolbar.css +4 -6
- package/src/css/themes/default/tooltip.css +4 -8
- package/src/css/tokens.css +18 -57
- package/src/css/tokens_/345/211/257/346/234/254.css +1 -1
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
.j-input:not([type='checkbox']) {
|
|
54
|
-
border:
|
|
54
|
+
border: var(--border);
|
|
55
55
|
border-radius: var(--radius-md);
|
|
56
56
|
padding: var(--input-padding, 0 8px);
|
|
57
57
|
height: var(--input-height, var(--el-height));
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
width: 1rem;
|
|
149
149
|
height: 1rem;
|
|
150
150
|
border-radius: 50%;
|
|
151
|
-
border:
|
|
151
|
+
border: var(--border);
|
|
152
152
|
background-color: var(--ui-bg);
|
|
153
153
|
margin: 0;
|
|
154
154
|
cursor: pointer;
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
top: 50%;
|
|
165
165
|
left: 50%;
|
|
166
166
|
transform: translate(-50%, -50%) scale(0);
|
|
167
|
-
transition: transform 0.
|
|
167
|
+
transition: transform 0.2s ease;
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
.j-radio label input[type='radio']:checked::before {
|
|
@@ -201,14 +201,16 @@
|
|
|
201
201
|
align-items: center;
|
|
202
202
|
text-align: center;
|
|
203
203
|
user-select: none;
|
|
204
|
-
transition:
|
|
204
|
+
transition-property: box-shadow, color, background-color;
|
|
205
|
+
transition-duration: 0.2s;
|
|
206
|
+
transition-timing-function: ease;
|
|
205
207
|
}
|
|
206
208
|
|
|
207
209
|
.j-radio.is-group label:not(:first-child) span.radio-text {
|
|
208
210
|
margin-left: 1px;
|
|
209
211
|
}
|
|
210
212
|
|
|
211
|
-
.j-radio.is-group input[type='radio']:checked+span.radio-text {
|
|
213
|
+
.j-radio.is-group input[type='radio']:checked + span.radio-text {
|
|
212
214
|
box-shadow: 0 0 0 1px var(--tone-solid);
|
|
213
215
|
color: var(--tone-solid);
|
|
214
216
|
background-color: var(--tone-soft);
|
|
@@ -275,7 +277,7 @@
|
|
|
275
277
|
width: 1rem;
|
|
276
278
|
height: 1rem;
|
|
277
279
|
aspect-ratio: 1/1;
|
|
278
|
-
border:
|
|
280
|
+
border: var(--border);
|
|
279
281
|
border-radius: var(--checkbox-radius, var(--radius-sm));
|
|
280
282
|
cursor: pointer;
|
|
281
283
|
position: relative;
|
|
@@ -322,7 +324,7 @@
|
|
|
322
324
|
inset: 0;
|
|
323
325
|
border-radius: 50px;
|
|
324
326
|
background-color: var(--ui-border);
|
|
325
|
-
transition: all 0.2s
|
|
327
|
+
transition: all 0.2s ease;
|
|
326
328
|
}
|
|
327
329
|
|
|
328
330
|
.j-switch .switch-slider:after {
|
|
@@ -330,7 +332,7 @@
|
|
|
330
332
|
position: absolute;
|
|
331
333
|
border-radius: 50%;
|
|
332
334
|
background-color: #fff;
|
|
333
|
-
transition: all 0.2s
|
|
335
|
+
transition: all 0.2s ease;
|
|
334
336
|
}
|
|
335
337
|
|
|
336
338
|
.j-switch.is-sm .switch-slider:after {
|
|
@@ -354,27 +356,33 @@
|
|
|
354
356
|
height: 1.5rem;
|
|
355
357
|
}
|
|
356
358
|
|
|
357
|
-
.j-switch input[type='checkbox']:checked
|
|
359
|
+
.j-switch input[type='checkbox']:checked + .switch-slider {
|
|
358
360
|
background-color: var(--tone-solid);
|
|
359
361
|
}
|
|
360
362
|
|
|
361
|
-
.j-switch.is-sm input[type='checkbox']:checked
|
|
363
|
+
.j-switch.is-sm input[type='checkbox']:checked + .switch-slider:after {
|
|
362
364
|
transform: translateX(0.75rem);
|
|
363
365
|
}
|
|
364
366
|
|
|
365
|
-
.j-switch.is-md input[type='checkbox']:checked
|
|
367
|
+
.j-switch.is-md input[type='checkbox']:checked + .switch-slider:after {
|
|
366
368
|
transform: translateX(1.125rem);
|
|
367
369
|
}
|
|
368
370
|
|
|
369
|
-
.j-switch.is-lg input[type='checkbox']:checked
|
|
371
|
+
.j-switch.is-lg input[type='checkbox']:checked + .switch-slider:after {
|
|
370
372
|
transform: translateX(1.5rem);
|
|
371
373
|
}
|
|
372
374
|
|
|
373
|
-
.j-theme-gray
|
|
375
|
+
.j-theme-gray
|
|
376
|
+
.j-switch
|
|
377
|
+
input[type='checkbox']:checked
|
|
378
|
+
+ .switch-slider:after {
|
|
374
379
|
background-color: var(--ui-bg);
|
|
375
380
|
}
|
|
376
381
|
|
|
377
|
-
.j-theme-olive
|
|
382
|
+
.j-theme-olive
|
|
383
|
+
.j-switch
|
|
384
|
+
input[type='checkbox']:checked
|
|
385
|
+
+ .switch-slider:after {
|
|
378
386
|
background-color: var(--ui-bg);
|
|
379
387
|
}
|
|
380
388
|
|
|
@@ -385,7 +393,7 @@
|
|
|
385
393
|
/* select */
|
|
386
394
|
select.j-select {
|
|
387
395
|
padding: var(--input-padding, 0 6px);
|
|
388
|
-
border:
|
|
396
|
+
border: var(--border);
|
|
389
397
|
border-radius: var(--radius-md);
|
|
390
398
|
height: var(--el-height);
|
|
391
399
|
line-height: var(--line-height);
|
|
@@ -402,7 +410,7 @@
|
|
|
402
410
|
/* textarea */
|
|
403
411
|
textarea.j-textarea {
|
|
404
412
|
min-height: 72px;
|
|
405
|
-
border:
|
|
413
|
+
border: var(--border);
|
|
406
414
|
border-radius: var(--radius-md);
|
|
407
415
|
color: var(--tone-body);
|
|
408
416
|
background-color: var(--ui-bg);
|
|
@@ -446,9 +454,9 @@
|
|
|
446
454
|
--btn-box-shadow: none;
|
|
447
455
|
}
|
|
448
456
|
|
|
449
|
-
.input-group .el-addon
|
|
457
|
+
.input-group .el-addon > .el-text {
|
|
450
458
|
background-color: var(--ui-bg-muted);
|
|
451
|
-
border:
|
|
459
|
+
border: var(--border);
|
|
452
460
|
border-radius: var(--radius-md);
|
|
453
461
|
}
|
|
454
462
|
|
|
@@ -457,28 +465,31 @@
|
|
|
457
465
|
width: var(--input-height);
|
|
458
466
|
}
|
|
459
467
|
|
|
460
|
-
.input-group
|
|
468
|
+
.input-group > *:not(:first-child) {
|
|
461
469
|
margin-left: -1px;
|
|
462
470
|
}
|
|
463
471
|
|
|
464
|
-
.input-group>input.j-input:not(:first-child),
|
|
465
|
-
.input-group>select.j-select:not(:first-child),
|
|
466
|
-
.input-group
|
|
472
|
+
.input-group > input.j-input:not(:first-child),
|
|
473
|
+
.input-group > select.j-select:not(:first-child),
|
|
474
|
+
.input-group
|
|
475
|
+
> :not(select.j-select)
|
|
476
|
+
+ .el-addon:not(:first-child)
|
|
477
|
+
> .el-text {
|
|
467
478
|
border-left-color: transparent;
|
|
468
479
|
}
|
|
469
480
|
|
|
470
|
-
.input-group>input.j-input:not(:first-child),
|
|
471
|
-
.input-group>select.j-select:not(:first-child),
|
|
472
|
-
.input-group
|
|
473
|
-
.input-group
|
|
481
|
+
.input-group > input.j-input:not(:first-child),
|
|
482
|
+
.input-group > select.j-select:not(:first-child),
|
|
483
|
+
.input-group > *:not(:first-child) > *,
|
|
484
|
+
.input-group > *:not(:first-child) > .el-text {
|
|
474
485
|
border-top-left-radius: 0;
|
|
475
486
|
border-bottom-left-radius: 0;
|
|
476
487
|
}
|
|
477
488
|
|
|
478
|
-
.input-group>input.j-input:not(:last-child),
|
|
479
|
-
.input-group>select.j-select:not(:last-child),
|
|
480
|
-
.input-group
|
|
481
|
-
.input-group
|
|
489
|
+
.input-group > input.j-input:not(:last-child),
|
|
490
|
+
.input-group > select.j-select:not(:last-child),
|
|
491
|
+
.input-group > *:not(:last-child) > *,
|
|
492
|
+
.input-group > *:not(:last-child) > .el-text {
|
|
482
493
|
border-top-right-radius: 0;
|
|
483
494
|
border-bottom-right-radius: 0;
|
|
484
495
|
}
|
|
@@ -493,7 +504,7 @@
|
|
|
493
504
|
}
|
|
494
505
|
|
|
495
506
|
.input-inner-group {
|
|
496
|
-
border:
|
|
507
|
+
border: var(--border);
|
|
497
508
|
border-radius: var(--radius-md);
|
|
498
509
|
}
|
|
499
510
|
|
|
@@ -507,13 +518,13 @@
|
|
|
507
518
|
--btn-box-shadow: none;
|
|
508
519
|
}
|
|
509
520
|
|
|
510
|
-
.input-inner-group .el-addon
|
|
521
|
+
.input-inner-group .el-addon + .j-input {
|
|
511
522
|
padding-left: 0;
|
|
512
523
|
padding-right: 4px;
|
|
513
524
|
}
|
|
514
525
|
|
|
515
|
-
.input-inner-group .el-addon
|
|
516
|
-
padding
|
|
526
|
+
.input-inner-group .el-addon + .j-select {
|
|
527
|
+
padding: 0;
|
|
517
528
|
}
|
|
518
529
|
|
|
519
530
|
.input-inner-group .el-addon {
|
|
@@ -524,15 +535,6 @@
|
|
|
524
535
|
justify-content: center;
|
|
525
536
|
}
|
|
526
537
|
|
|
527
|
-
.input-inner-group .el-addon .j-btn:not(.is-icon) {
|
|
528
|
-
--btn-height: var(--el-height-sm);
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
.input-inner-group .el-addon .j-btn.is-xs:not(.is-icon),
|
|
532
|
-
.input-inner-group .el-addon .j-btn.is-sm:not(.is-icon) {
|
|
533
|
-
height: inherit;
|
|
534
|
-
}
|
|
535
|
-
|
|
536
538
|
/* .input-group .j-btn:active, */
|
|
537
539
|
.input-inner-group:has(input:focus),
|
|
538
540
|
.input-inner-group:has(select:focus) {
|
|
@@ -545,8 +547,8 @@
|
|
|
545
547
|
height: var(--font-size-xl);
|
|
546
548
|
}
|
|
547
549
|
|
|
548
|
-
.input-group .el-addon
|
|
549
|
-
.input-inner-group .el-addon
|
|
550
|
+
.input-group .el-addon > .el-text,
|
|
551
|
+
.input-inner-group .el-addon > .el-text {
|
|
550
552
|
display: flex;
|
|
551
553
|
align-items: center;
|
|
552
554
|
user-select: none;
|
|
@@ -649,7 +651,7 @@
|
|
|
649
651
|
background-color: var(--ui-bg-disabled);
|
|
650
652
|
}
|
|
651
653
|
|
|
652
|
-
.j-radio.is-group label input[type='radio']:disabled
|
|
654
|
+
.j-radio.is-group label input[type='radio']:disabled + .radio-text {
|
|
653
655
|
cursor: not-allowed;
|
|
654
656
|
background-color: var(--ui-bg-disabled);
|
|
655
657
|
color: var(--ui-fg-disabled);
|
|
@@ -683,12 +685,7 @@
|
|
|
683
685
|
/*************************
|
|
684
686
|
* .mobile
|
|
685
687
|
*************************/
|
|
686
|
-
.mobile input.j-input[type='file'] {
|
|
687
|
-
--input-padding: 8px;
|
|
688
|
-
}
|
|
689
|
-
|
|
690
|
-
.mobile .j-input[type='file'],
|
|
691
688
|
.mobile .j-textarea {
|
|
692
689
|
width: 100%;
|
|
693
690
|
}
|
|
694
|
-
}
|
|
691
|
+
}
|
|
@@ -53,11 +53,14 @@
|
|
|
53
53
|
.j-loader .flow-loader {
|
|
54
54
|
--loader-width: 2px;
|
|
55
55
|
--loader-bg:
|
|
56
|
-
radial-gradient(farthest-side, var(--tone-solid) 94%, #0000)
|
|
56
|
+
radial-gradient(farthest-side, var(--tone-solid) 94%, #0000)
|
|
57
|
+
top/var(--loader-width) var(--loader-width) no-repeat,
|
|
57
58
|
conic-gradient(#0000 30%, var(--tone-solid));
|
|
58
|
-
--loader-mask: radial-gradient(
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
--loader-mask: radial-gradient(
|
|
60
|
+
farthest-side,
|
|
61
|
+
#0000 calc(100% - var(--loader-width)),
|
|
62
|
+
#000 0
|
|
63
|
+
);
|
|
61
64
|
|
|
62
65
|
width: var(--loader-size);
|
|
63
66
|
height: var(--loader-size);
|
|
@@ -75,63 +78,75 @@
|
|
|
75
78
|
}
|
|
76
79
|
|
|
77
80
|
12.5% {
|
|
78
|
-
clip-path: polygon(
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
81
|
+
clip-path: polygon(
|
|
82
|
+
50% 50%,
|
|
83
|
+
0 0,
|
|
84
|
+
50% 0%,
|
|
85
|
+
100% 0%,
|
|
86
|
+
100% 0%,
|
|
87
|
+
100% 0%,
|
|
88
|
+
100% 0%
|
|
89
|
+
);
|
|
85
90
|
}
|
|
86
91
|
|
|
87
92
|
25% {
|
|
88
|
-
clip-path: polygon(
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
clip-path: polygon(
|
|
94
|
+
50% 50%,
|
|
95
|
+
0 0,
|
|
96
|
+
50% 0%,
|
|
97
|
+
100% 0%,
|
|
98
|
+
100% 100%,
|
|
99
|
+
100% 100%,
|
|
100
|
+
100% 100%
|
|
101
|
+
);
|
|
95
102
|
}
|
|
96
103
|
|
|
97
104
|
50% {
|
|
98
|
-
clip-path: polygon(
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
+
clip-path: polygon(
|
|
106
|
+
50% 50%,
|
|
107
|
+
0 0,
|
|
108
|
+
50% 0%,
|
|
109
|
+
100% 0%,
|
|
110
|
+
100% 100%,
|
|
111
|
+
50% 100%,
|
|
112
|
+
0% 100%
|
|
113
|
+
);
|
|
105
114
|
}
|
|
106
115
|
|
|
107
116
|
62.5% {
|
|
108
|
-
clip-path: polygon(
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
117
|
+
clip-path: polygon(
|
|
118
|
+
50% 50%,
|
|
119
|
+
100% 0,
|
|
120
|
+
100% 0%,
|
|
121
|
+
100% 0%,
|
|
122
|
+
100% 100%,
|
|
123
|
+
50% 100%,
|
|
124
|
+
0% 100%
|
|
125
|
+
);
|
|
115
126
|
}
|
|
116
127
|
|
|
117
128
|
75% {
|
|
118
|
-
clip-path: polygon(
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
129
|
+
clip-path: polygon(
|
|
130
|
+
50% 50%,
|
|
131
|
+
100% 100%,
|
|
132
|
+
100% 100%,
|
|
133
|
+
100% 100%,
|
|
134
|
+
100% 100%,
|
|
135
|
+
50% 100%,
|
|
136
|
+
0% 100%
|
|
137
|
+
);
|
|
125
138
|
}
|
|
126
139
|
|
|
127
140
|
100% {
|
|
128
|
-
clip-path: polygon(
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
141
|
+
clip-path: polygon(
|
|
142
|
+
50% 50%,
|
|
143
|
+
50% 100%,
|
|
144
|
+
50% 100%,
|
|
145
|
+
50% 100%,
|
|
146
|
+
50% 100%,
|
|
147
|
+
50% 100%,
|
|
148
|
+
0% 100%
|
|
149
|
+
);
|
|
135
150
|
}
|
|
136
151
|
}
|
|
137
152
|
|
|
@@ -152,4 +167,4 @@
|
|
|
152
167
|
transform: scaleY(-1) rotate(-135deg);
|
|
153
168
|
}
|
|
154
169
|
}
|
|
155
|
-
}
|
|
170
|
+
}
|