vanilla-jui 1.7.26 → 1.7.28
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.d.ts +2 -4
- package/dist/index.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/form.ts +1 -2
- package/src/css/gradient.css +64 -129
- package/src/css/themes/default/badge.css +5 -11
- package/src/css/themes/default/button.css +24 -36
- package/src/css/themes/default/captcha.css +2 -2
- package/src/css/themes/default/editor.css +13 -13
- package/src/css/themes/default/form.css +42 -63
- package/src/css/themes/default/menu.css +35 -89
- package/src/css/themes/default/tip.css +8 -8
- package/src/css/themes/default/toast.css +22 -18
- package/src/css/themes/default/tooltip.css +4 -4
- package/src/css/tokens.css +27 -25
- package/src/primitives/toast.ts +15 -18
|
@@ -1,54 +1,42 @@
|
|
|
1
1
|
@layer components {
|
|
2
|
-
.j-form,
|
|
3
|
-
.j-form .form-field,
|
|
4
|
-
.j-form .form-field .field-legend {
|
|
5
|
-
display: flex;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.j-form {
|
|
9
|
-
flex-direction: column;
|
|
10
|
-
gap: var(--s3);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
2
|
.j-form .form-field {
|
|
14
|
-
gap: var(--space);
|
|
15
|
-
margin: 0;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.j-form fieldset.form-field {
|
|
19
3
|
border: 0;
|
|
20
4
|
padding: 0;
|
|
5
|
+
margin: 0 0 var(--s3);
|
|
21
6
|
}
|
|
22
7
|
|
|
23
|
-
.j-form .form-field {
|
|
24
|
-
|
|
8
|
+
.j-form .form-field:last-of-type {
|
|
9
|
+
margin: 0;
|
|
25
10
|
}
|
|
26
11
|
|
|
27
12
|
.j-form .form-field .field-legend {
|
|
28
13
|
color: var(--ui-fg-muted);
|
|
29
14
|
font-size: var(--font-size-sm);
|
|
30
|
-
|
|
15
|
+
display: block;
|
|
16
|
+
padding: 0;
|
|
17
|
+
margin-bottom: var(--space);
|
|
31
18
|
}
|
|
32
19
|
|
|
33
20
|
.j-form .field-legend.is-required::after {
|
|
34
21
|
content: '*';
|
|
35
|
-
color: var(--state-
|
|
22
|
+
color: var(--state-error);
|
|
23
|
+
margin-left: var(--space);
|
|
36
24
|
}
|
|
37
25
|
|
|
38
26
|
.j-form .form-field .field-control .help-block {
|
|
39
27
|
font-size: var(--font-size-sm);
|
|
40
28
|
color: var(--ui-fg-soft);
|
|
41
|
-
margin: 0;
|
|
29
|
+
margin: var(--space) 0 0;
|
|
42
30
|
}
|
|
43
31
|
|
|
44
32
|
.j-form .form-field .field-control .help-block[data-valid='false'] {
|
|
45
|
-
color: var(--state-
|
|
33
|
+
color: var(--state-error);
|
|
46
34
|
}
|
|
47
35
|
|
|
48
36
|
.j-form .form-buttons {
|
|
49
37
|
display: flex;
|
|
50
38
|
gap: var(--s2);
|
|
51
|
-
margin-top: var(--
|
|
39
|
+
margin-top: var(--s6);
|
|
52
40
|
}
|
|
53
41
|
|
|
54
42
|
.j-form [data-field-buttons] button {
|
|
@@ -276,7 +264,7 @@
|
|
|
276
264
|
margin-left: 1px;
|
|
277
265
|
}
|
|
278
266
|
|
|
279
|
-
.j-radio.is-group input[type='radio']:checked
|
|
267
|
+
.j-radio.is-group input[type='radio']:checked+span.radio-text {
|
|
280
268
|
box-shadow: 0 0 0 1px var(--tone-solid);
|
|
281
269
|
background-color: var(--tone-solid);
|
|
282
270
|
z-index: 1;
|
|
@@ -332,11 +320,11 @@
|
|
|
332
320
|
.j-checkbox label {
|
|
333
321
|
display: flex;
|
|
334
322
|
align-items: center;
|
|
335
|
-
gap:
|
|
336
|
-
font-size: var(--
|
|
323
|
+
gap: calc(var(--space) * 1.5);
|
|
324
|
+
font-size: var(--font-size-md);
|
|
337
325
|
height: var(--el-height-md);
|
|
338
|
-
padding:
|
|
339
|
-
border-radius: var(--
|
|
326
|
+
padding: var(--s2);
|
|
327
|
+
border-radius: var(--radius-md);
|
|
340
328
|
}
|
|
341
329
|
|
|
342
330
|
.j-radio label,
|
|
@@ -345,7 +333,7 @@
|
|
|
345
333
|
}
|
|
346
334
|
|
|
347
335
|
.j-checkbox label:not(:has(input[type='checkbox']:disabled)):hover {
|
|
348
|
-
background-color: var(--
|
|
336
|
+
background-color: var(--ui-surface-hover);
|
|
349
337
|
}
|
|
350
338
|
|
|
351
339
|
.j-checkbox input[type='checkbox'] {
|
|
@@ -440,33 +428,27 @@
|
|
|
440
428
|
height: 1.5rem;
|
|
441
429
|
}
|
|
442
430
|
|
|
443
|
-
.j-switch input[type='checkbox']:checked
|
|
431
|
+
.j-switch input[type='checkbox']:checked+.switch-slider {
|
|
444
432
|
background-color: var(--tone-solid);
|
|
445
433
|
}
|
|
446
434
|
|
|
447
|
-
.j-switch.is-sm input[type='checkbox']:checked
|
|
435
|
+
.j-switch.is-sm input[type='checkbox']:checked+.switch-slider:after {
|
|
448
436
|
transform: translateX(0.75rem);
|
|
449
437
|
}
|
|
450
438
|
|
|
451
|
-
.j-switch.is-md input[type='checkbox']:checked
|
|
439
|
+
.j-switch.is-md input[type='checkbox']:checked+.switch-slider:after {
|
|
452
440
|
transform: translateX(1.125rem);
|
|
453
441
|
}
|
|
454
442
|
|
|
455
|
-
.j-switch.is-lg input[type='checkbox']:checked
|
|
443
|
+
.j-switch.is-lg input[type='checkbox']:checked+.switch-slider:after {
|
|
456
444
|
transform: translateX(1.5rem);
|
|
457
445
|
}
|
|
458
446
|
|
|
459
|
-
.j-theme-gray
|
|
460
|
-
.j-switch
|
|
461
|
-
input[type='checkbox']:checked
|
|
462
|
-
+ .switch-slider:after {
|
|
447
|
+
.j-theme-gray .j-switch input[type='checkbox']:checked+.switch-slider:after {
|
|
463
448
|
background-color: var(--ui-bg);
|
|
464
449
|
}
|
|
465
450
|
|
|
466
|
-
.j-theme-olive
|
|
467
|
-
.j-switch
|
|
468
|
-
input[type='checkbox']:checked
|
|
469
|
-
+ .switch-slider:after {
|
|
451
|
+
.j-theme-olive .j-switch input[type='checkbox']:checked+.switch-slider:after {
|
|
470
452
|
background-color: var(--ui-bg);
|
|
471
453
|
}
|
|
472
454
|
|
|
@@ -564,31 +546,28 @@
|
|
|
564
546
|
width: var(--input-height);
|
|
565
547
|
}
|
|
566
548
|
|
|
567
|
-
.input-group
|
|
549
|
+
.input-group>*:not(:first-child) {
|
|
568
550
|
margin-left: -1px;
|
|
569
551
|
}
|
|
570
552
|
|
|
571
|
-
.input-group
|
|
572
|
-
.input-group
|
|
573
|
-
.input-group
|
|
574
|
-
> :not(select.j-select)
|
|
575
|
-
+ .el-addon:not(:first-child)
|
|
576
|
-
> .is-text {
|
|
553
|
+
.input-group>input.j-input:not(:first-child),
|
|
554
|
+
.input-group>select.j-select:not(:first-child),
|
|
555
|
+
.input-group> :not(select.j-select)+.el-addon:not(:first-child)>.is-text {
|
|
577
556
|
border-left-color: transparent;
|
|
578
557
|
}
|
|
579
558
|
|
|
580
|
-
.input-group
|
|
581
|
-
.input-group
|
|
582
|
-
.input-group
|
|
583
|
-
.input-group
|
|
559
|
+
.input-group>input.j-input:not(:first-child),
|
|
560
|
+
.input-group>select.j-select:not(:first-child),
|
|
561
|
+
.input-group>*:not(:first-child)>*,
|
|
562
|
+
.input-group>*:not(:first-child)>.is-text {
|
|
584
563
|
border-top-left-radius: 0;
|
|
585
564
|
border-bottom-left-radius: 0;
|
|
586
565
|
}
|
|
587
566
|
|
|
588
|
-
.input-group
|
|
589
|
-
.input-group
|
|
590
|
-
.input-group
|
|
591
|
-
.input-group
|
|
567
|
+
.input-group>input.j-input:not(:last-child),
|
|
568
|
+
.input-group>select.j-select:not(:last-child),
|
|
569
|
+
.input-group>*:not(:last-child)>*,
|
|
570
|
+
.input-group>*:not(:last-child)>.is-text {
|
|
592
571
|
border-top-right-radius: 0;
|
|
593
572
|
border-bottom-right-radius: 0;
|
|
594
573
|
}
|
|
@@ -617,13 +596,13 @@
|
|
|
617
596
|
--btn-box-shadow: none;
|
|
618
597
|
}
|
|
619
598
|
|
|
620
|
-
.input-inner-group .el-addon
|
|
599
|
+
.input-inner-group .el-addon+.j-input {
|
|
621
600
|
/* padding-inline: 0 var(--space); */
|
|
622
601
|
padding-left: 0;
|
|
623
602
|
padding-right: var(--space);
|
|
624
603
|
}
|
|
625
604
|
|
|
626
|
-
.input-inner-group .el-addon
|
|
605
|
+
.input-inner-group .el-addon+.j-select {
|
|
627
606
|
/* padding-inline-start: 2px; */
|
|
628
607
|
padding-left: 2px;
|
|
629
608
|
}
|
|
@@ -649,7 +628,7 @@
|
|
|
649
628
|
.input-inner-group:has(input:focus),
|
|
650
629
|
.input-inner-group:has(select:focus) {
|
|
651
630
|
border-color: var(--tone-solid);
|
|
652
|
-
box-shadow: 0 0 0
|
|
631
|
+
box-shadow: 0 0 0 3px var(--tone-ring);
|
|
653
632
|
}
|
|
654
633
|
|
|
655
634
|
.input-inner-group .el-addon svg {
|
|
@@ -703,7 +682,7 @@
|
|
|
703
682
|
.j-input[data-valid='false'],
|
|
704
683
|
.j-select[data-valid='false'],
|
|
705
684
|
.j-textarea[data-valid='false'] {
|
|
706
|
-
border-color: var(--state-
|
|
685
|
+
border-color: var(--state-error);
|
|
707
686
|
/* background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23d63939' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cline x1='18' y1='6' x2='6' y2='18'%3e%3c/line%3e%3cline x1='6' y1='6' x2='18' y2='18'%3e%3c/line%3e%3c/svg%3e"); */
|
|
708
687
|
}
|
|
709
688
|
|
|
@@ -731,7 +710,7 @@
|
|
|
731
710
|
.input-group .j-button:not(:disabled):active {
|
|
732
711
|
outline: 0;
|
|
733
712
|
border-color: var(--tone-solid);
|
|
734
|
-
box-shadow: 0 0 0
|
|
713
|
+
box-shadow: 0 0 0 3px var(--tone-ring);
|
|
735
714
|
}
|
|
736
715
|
|
|
737
716
|
.j-radio label input[type='radio']:focus-within {
|
|
@@ -774,7 +753,7 @@
|
|
|
774
753
|
border-color: var(--ui-border);
|
|
775
754
|
}
|
|
776
755
|
|
|
777
|
-
.j-radio.is-group label input[type='radio']:disabled
|
|
756
|
+
.j-radio.is-group label input[type='radio']:disabled+.radio-text {
|
|
778
757
|
cursor: not-allowed;
|
|
779
758
|
background-color: var(--ui-disabled-bg);
|
|
780
759
|
color: var(--ui-disabled-fg);
|
|
@@ -819,4 +798,4 @@
|
|
|
819
798
|
.mobile .j-textarea {
|
|
820
799
|
width: 100%;
|
|
821
800
|
}
|
|
822
|
-
}
|
|
801
|
+
}
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
|
|
46
46
|
text-decoration: underline;
|
|
47
47
|
text-decoration-style: wavy;
|
|
48
|
-
text-decoration-color: var(--state-
|
|
48
|
+
text-decoration-color: var(--state-error);
|
|
49
49
|
text-underline-offset: 4px;
|
|
50
50
|
padding: 4px 1rem;
|
|
51
51
|
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
.j-menu .menu .menu-item:not(:has(a)):hover {
|
|
57
|
-
background: var(--state-
|
|
57
|
+
background: var(--state-error-subtle);
|
|
58
58
|
border-radius: 4px;
|
|
59
59
|
}
|
|
60
60
|
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
position: absolute;
|
|
64
64
|
top: 0;
|
|
65
65
|
right: 0;
|
|
66
|
-
background: var(--state-
|
|
67
|
-
color: var(--state-
|
|
66
|
+
background: var(--state-error);
|
|
67
|
+
color: var(--state-error-fg);
|
|
68
68
|
font-size: 12px;
|
|
69
69
|
padding: 0 4px;
|
|
70
70
|
border-radius: 4px;
|
|
@@ -95,11 +95,11 @@
|
|
|
95
95
|
height: var(--menu-item-icon-size);
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
.j-menu .menu .menu-item.menu-item-has-children
|
|
98
|
+
.j-menu .menu .menu-item.menu-item-has-children>a {
|
|
99
99
|
position: relative;
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
.j-menu .menu .menu-item.menu-item-has-children
|
|
102
|
+
.j-menu .menu .menu-item.menu-item-has-children>a::after {
|
|
103
103
|
/* width: 0; */
|
|
104
104
|
/* height: 0; */
|
|
105
105
|
/* vertical-align: middle; */
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
border-top: 4px solid currentColor;
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
.j-menu .menu .menu-item.menu-item-has-children:hover
|
|
114
|
+
.j-menu .menu .menu-item.menu-item-has-children:hover>a::after {
|
|
115
115
|
transform: rotate(180deg);
|
|
116
116
|
}
|
|
117
117
|
|
|
@@ -124,11 +124,9 @@
|
|
|
124
124
|
background-color: var(--ui-bg-subtle);
|
|
125
125
|
|
|
126
126
|
@supports (color: color-mix(in srgb, red 50%, blue)) {
|
|
127
|
-
background-color: color-mix(
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
transparent
|
|
131
|
-
);
|
|
127
|
+
background-color: color-mix(in srgb,
|
|
128
|
+
var(--ui-bg-subtle) 75%,
|
|
129
|
+
transparent);
|
|
132
130
|
}
|
|
133
131
|
|
|
134
132
|
backdrop-filter: blur(4px);
|
|
@@ -150,36 +148,23 @@
|
|
|
150
148
|
white-space: normal;
|
|
151
149
|
}
|
|
152
150
|
|
|
153
|
-
.j-menu .menu
|
|
154
|
-
.j-menu .menu
|
|
151
|
+
.j-menu .menu>.menu-item.current-menu-item>a,
|
|
152
|
+
.j-menu .menu>.menu-item.current-menu-ancestor>a {
|
|
155
153
|
color: var(--tone-solid);
|
|
156
154
|
}
|
|
157
155
|
|
|
158
|
-
.j-menu
|
|
159
|
-
.menu
|
|
160
|
-
.menu-item.current-menu-item
|
|
161
|
-
> .sub-menu
|
|
162
|
-
> .menu-item:not(.current-menu-item)
|
|
163
|
-
a {
|
|
156
|
+
.j-menu .menu .menu-item.current-menu-item>.sub-menu>.menu-item:not(.current-menu-item) a {
|
|
164
157
|
color: inherit;
|
|
165
158
|
}
|
|
166
159
|
|
|
167
|
-
.j-menu
|
|
168
|
-
.menu-item.current-menu-item
|
|
169
|
-
> .sub-menu
|
|
170
|
-
> .menu-item:not(.current-menu-item):hover
|
|
171
|
-
a {
|
|
160
|
+
.j-menu .menu-item.current-menu-item>.sub-menu>.menu-item:not(.current-menu-item):hover a {
|
|
172
161
|
color: var(--tone-fg);
|
|
173
162
|
}
|
|
174
163
|
|
|
175
164
|
.j-menu .menu .menu-item .sub-menu .menu-item:hover a,
|
|
176
165
|
.j-menu .menu .menu-item a:hover,
|
|
177
|
-
.j-menu .menu .menu-item.menu-item-has-children:hover
|
|
178
|
-
.j-menu
|
|
179
|
-
.menu-item.menu-item-has-children:hover
|
|
180
|
-
> .sub-menu
|
|
181
|
-
> .menu-item.current-menu-item
|
|
182
|
-
a {
|
|
166
|
+
.j-menu .menu .menu-item.menu-item-has-children:hover>a,
|
|
167
|
+
.j-menu .menu-item.menu-item-has-children:hover>.sub-menu>.menu-item.current-menu-item a {
|
|
183
168
|
background: var(--tone-soft);
|
|
184
169
|
color: var(--tone-text);
|
|
185
170
|
}
|
|
@@ -189,21 +174,18 @@
|
|
|
189
174
|
z-index: var(--z-submenu);
|
|
190
175
|
}
|
|
191
176
|
|
|
192
|
-
.j-menu:not([data-menu-type='mobile']):not([data-menu-type='bottom'])
|
|
193
|
-
.menu
|
|
194
|
-
.menu-item.menu-item-has-children
|
|
195
|
-
> a {
|
|
177
|
+
.j-menu:not([data-menu-type='mobile']):not([data-menu-type='bottom']) .menu .menu-item.menu-item-has-children>a {
|
|
196
178
|
pointer-events: none;
|
|
197
179
|
}
|
|
198
180
|
|
|
199
181
|
/* list card menu */
|
|
200
|
-
.j-menu .menu-item.menu-item-has-children.list-menu:hover
|
|
182
|
+
.j-menu .menu-item.menu-item-has-children.list-menu:hover>.sub-menu {
|
|
201
183
|
width: auto;
|
|
202
184
|
display: grid;
|
|
203
185
|
grid-template-columns: repeat(2, 1fr);
|
|
204
186
|
}
|
|
205
187
|
|
|
206
|
-
.j-menu .menu-item.list-menu
|
|
188
|
+
.j-menu .menu-item.list-menu>.sub-menu>.menu-item>a {
|
|
207
189
|
overflow: hidden;
|
|
208
190
|
display: -webkit-box;
|
|
209
191
|
-webkit-box-orient: vertical;
|
|
@@ -211,13 +193,13 @@
|
|
|
211
193
|
line-clamp: 1;
|
|
212
194
|
}
|
|
213
195
|
|
|
214
|
-
.j-menu .menu-item.menu-item-has-children.list-menu:hover
|
|
196
|
+
.j-menu .menu-item.menu-item-has-children.list-menu:hover>.sub-menu {
|
|
215
197
|
min-width: 240px;
|
|
216
198
|
max-width: 360px;
|
|
217
199
|
transform: translateX(-20%) translateY(1px);
|
|
218
200
|
}
|
|
219
201
|
|
|
220
|
-
.j-menu .menu-item.list-menu
|
|
202
|
+
.j-menu .menu-item.list-menu>.sub-menu>.menu-item>a {
|
|
221
203
|
padding: calc(var(--space) * 1.25) calc(var(--space) * 2.5);
|
|
222
204
|
line-height: 1.75;
|
|
223
205
|
}
|
|
@@ -265,10 +247,7 @@
|
|
|
265
247
|
line-height: var(--line-height-paragraph);
|
|
266
248
|
}
|
|
267
249
|
|
|
268
|
-
.j-menu[data-menu-type='mobile']
|
|
269
|
-
.menu
|
|
270
|
-
.menu-item.menu-item-has-children
|
|
271
|
-
> a::after {
|
|
250
|
+
.j-menu[data-menu-type='mobile'] .menu .menu-item.menu-item-has-children>a::after {
|
|
272
251
|
vertical-align: middle;
|
|
273
252
|
position: absolute;
|
|
274
253
|
right: 1rem;
|
|
@@ -278,10 +257,7 @@
|
|
|
278
257
|
border-top: 4px solid transparent;
|
|
279
258
|
}
|
|
280
259
|
|
|
281
|
-
.j-menu[data-menu-type='mobile']
|
|
282
|
-
.menu
|
|
283
|
-
.menu-item.menu-item-has-children:hover
|
|
284
|
-
> a::after {
|
|
260
|
+
.j-menu[data-menu-type='mobile'] .menu .menu-item.menu-item-has-children:hover>a::after {
|
|
285
261
|
transform: none;
|
|
286
262
|
}
|
|
287
263
|
|
|
@@ -299,10 +275,7 @@
|
|
|
299
275
|
}
|
|
300
276
|
|
|
301
277
|
.j-menu[data-menu-type='mobile'] .menu .menu-item a:hover,
|
|
302
|
-
.j-menu[data-menu-type='mobile']
|
|
303
|
-
.menu
|
|
304
|
-
.menu-item.menu-item-has-children:hover
|
|
305
|
-
> a,
|
|
278
|
+
.j-menu[data-menu-type='mobile'] .menu .menu-item.menu-item-has-children:hover>a,
|
|
306
279
|
.j-menu[data-menu-type='mobile'] .menu .sub-menu .menu-item:hover a {
|
|
307
280
|
background: inherit;
|
|
308
281
|
color: inherit;
|
|
@@ -312,10 +285,7 @@
|
|
|
312
285
|
background: var(--menu-item-active-bg);
|
|
313
286
|
}
|
|
314
287
|
|
|
315
|
-
.j-menu[data-menu-type='mobile']
|
|
316
|
-
.menu
|
|
317
|
-
.menu-item.menu-item-has-children.is-active
|
|
318
|
-
> .sub-menu {
|
|
288
|
+
.j-menu[data-menu-type='mobile'] .menu .menu-item.menu-item-has-children.is-active>.sub-menu {
|
|
319
289
|
visibility: visible;
|
|
320
290
|
opacity: 1;
|
|
321
291
|
z-index: var(--z-submenu);
|
|
@@ -356,10 +326,7 @@
|
|
|
356
326
|
color: var(--ui-fg);
|
|
357
327
|
}
|
|
358
328
|
|
|
359
|
-
.j-menu[data-menu-type='bottom']
|
|
360
|
-
> .menu
|
|
361
|
-
> .menu-item.menu-item-has-children
|
|
362
|
-
> a::after {
|
|
329
|
+
.j-menu[data-menu-type='bottom']>.menu>.menu-item.menu-item-has-children>a::after {
|
|
363
330
|
content: '☰';
|
|
364
331
|
font-size: var(--font-size-sm);
|
|
365
332
|
margin-left: unset;
|
|
@@ -369,26 +336,17 @@
|
|
|
369
336
|
transition: unset;
|
|
370
337
|
}
|
|
371
338
|
|
|
372
|
-
.j-menu[data-menu-type='bottom']
|
|
373
|
-
> .menu
|
|
374
|
-
.menu-item.menu-item-has-children:hover
|
|
375
|
-
> a::after {
|
|
339
|
+
.j-menu[data-menu-type='bottom']>.menu .menu-item.menu-item-has-children:hover>a::after {
|
|
376
340
|
transform: none;
|
|
377
341
|
}
|
|
378
342
|
|
|
379
|
-
.j-menu[data-menu-type='bottom'] .menu .menu-item.current-menu-parent
|
|
380
|
-
.j-menu[data-menu-type='bottom'] .menu .menu-item.current-menu-item
|
|
381
|
-
.j-menu[data-menu-type='bottom']
|
|
382
|
-
.menu
|
|
383
|
-
.menu-item.menu-item-has-children.is-active
|
|
384
|
-
> a {
|
|
343
|
+
.j-menu[data-menu-type='bottom'] .menu .menu-item.current-menu-parent>a,
|
|
344
|
+
.j-menu[data-menu-type='bottom'] .menu .menu-item.current-menu-item>a,
|
|
345
|
+
.j-menu[data-menu-type='bottom'] .menu .menu-item.menu-item-has-children.is-active>a {
|
|
385
346
|
color: var(--tone-solid);
|
|
386
347
|
}
|
|
387
348
|
|
|
388
|
-
.j-menu[data-menu-type='bottom']
|
|
389
|
-
.menu
|
|
390
|
-
.menu-item.menu-item-has-children
|
|
391
|
-
> .sub-menu {
|
|
349
|
+
.j-menu[data-menu-type='bottom'] .menu .menu-item.menu-item-has-children>.sub-menu {
|
|
392
350
|
opacity: 0;
|
|
393
351
|
visibility: hidden;
|
|
394
352
|
display: flex;
|
|
@@ -407,29 +365,17 @@
|
|
|
407
365
|
z-index: -1;
|
|
408
366
|
}
|
|
409
367
|
|
|
410
|
-
.j-menu[data-menu-type='bottom']
|
|
411
|
-
.menu
|
|
412
|
-
.menu-item.menu-item-has-children.is-active
|
|
413
|
-
> .sub-menu {
|
|
368
|
+
.j-menu[data-menu-type='bottom'] .menu .menu-item.menu-item-has-children.is-active>.sub-menu {
|
|
414
369
|
opacity: 1;
|
|
415
370
|
visibility: visible;
|
|
416
371
|
transform: translateX(-50%) translateY(0%);
|
|
417
372
|
}
|
|
418
373
|
|
|
419
|
-
.j-menu[data-menu-type='bottom']
|
|
420
|
-
.menu
|
|
421
|
-
.menu-item.menu-item-has-children
|
|
422
|
-
> .sub-menu
|
|
423
|
-
> .menu-item {
|
|
374
|
+
.j-menu[data-menu-type='bottom'] .menu .menu-item.menu-item-has-children>.sub-menu>.menu-item {
|
|
424
375
|
white-space: normal;
|
|
425
376
|
}
|
|
426
377
|
|
|
427
|
-
.j-menu[data-menu-type='bottom']
|
|
428
|
-
.menu
|
|
429
|
-
.menu-item.menu-item-has-children
|
|
430
|
-
> .sub-menu
|
|
431
|
-
> .menu-item
|
|
432
|
-
> a {
|
|
378
|
+
.j-menu[data-menu-type='bottom'] .menu .menu-item.menu-item-has-children>.sub-menu>.menu-item>a {
|
|
433
379
|
min-height: var(--el-height-2xl);
|
|
434
380
|
justify-content: center;
|
|
435
381
|
}
|
|
@@ -493,4 +439,4 @@
|
|
|
493
439
|
color: var(--ui-fg-soft);
|
|
494
440
|
font-size: var(--font-size-sm);
|
|
495
441
|
}
|
|
496
|
-
}
|
|
442
|
+
}
|
|
@@ -65,15 +65,15 @@
|
|
|
65
65
|
margin: 6px 0;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
.j-tip .tip-content
|
|
68
|
+
.j-tip .tip-content>*:first-child {
|
|
69
69
|
margin-top: 0;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
.j-tip .tip-content
|
|
72
|
+
.j-tip .tip-content>*:last-child {
|
|
73
73
|
margin-bottom: 0;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
.j-tip.is-
|
|
76
|
+
.j-tip.is-info {
|
|
77
77
|
--tip-border-color: var(--state-info-border);
|
|
78
78
|
--tip-bg: var(--state-info-soft);
|
|
79
79
|
--tip-fg: var(--state-info-text);
|
|
@@ -91,9 +91,9 @@
|
|
|
91
91
|
--tip-fg: var(--state-warning-text);
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
.j-tip.is-
|
|
95
|
-
--tip-border-color: var(--state-
|
|
96
|
-
--tip-bg: var(--state-
|
|
97
|
-
--tip-fg: var(--state-
|
|
94
|
+
.j-tip.is-error {
|
|
95
|
+
--tip-border-color: var(--state-error-border);
|
|
96
|
+
--tip-bg: var(--state-error-soft);
|
|
97
|
+
--tip-fg: var(--state-error-text);
|
|
98
98
|
}
|
|
99
|
-
}
|
|
99
|
+
}
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
.j-toast {
|
|
18
18
|
--toast-fg: var(--ui-fg);
|
|
19
19
|
--toast-bg: var(--ui-bg);
|
|
20
|
-
--toast-border-color: var(--ui-border);
|
|
20
|
+
--toast-border-color: var(--ui-border-subtle);
|
|
21
21
|
|
|
22
22
|
gap: var(--s2);
|
|
23
23
|
padding: var(--s3) var(--s4);
|
|
@@ -52,31 +52,35 @@
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
.j-toast.is-info {
|
|
55
|
-
--toast-
|
|
56
|
-
|
|
55
|
+
/* --toast-fg: var(--state-info-text); */
|
|
56
|
+
/* --toast-bg: var(--state-info-soft); */
|
|
57
|
+
/* --toast-border-color: var(--state-info-ring); */
|
|
57
58
|
|
|
58
|
-
|
|
59
|
-
--toast-fg: var(--state-info-text);
|
|
60
|
-
--toast-bg: var(--state-info-soft);
|
|
61
|
-
--toast-border-color: var(--state-info-ring);
|
|
59
|
+
--toast-fg: var(--state-info);
|
|
62
60
|
}
|
|
63
61
|
|
|
64
62
|
.j-toast.is-success {
|
|
65
|
-
--toast-fg: var(--state-success-text);
|
|
66
|
-
--toast-bg: var(--state-success-soft);
|
|
67
|
-
--toast-border-color: var(--state-success-ring);
|
|
63
|
+
/* --toast-fg: var(--state-success-text); */
|
|
64
|
+
/* --toast-bg: var(--state-success-soft); */
|
|
65
|
+
/* --toast-border-color: var(--state-success-ring); */
|
|
66
|
+
|
|
67
|
+
--toast-fg: var(--state-success);
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
.j-toast.is-warning {
|
|
71
|
-
--toast-fg: var(--state-warning-text);
|
|
72
|
-
--toast-bg: var(--state-warning-soft);
|
|
73
|
-
--toast-border-color: var(--state-warning-ring);
|
|
71
|
+
/* --toast-fg: var(--state-warning-text); */
|
|
72
|
+
/* --toast-bg: var(--state-warning-soft); */
|
|
73
|
+
/* --toast-border-color: var(--state-warning-ring); */
|
|
74
|
+
|
|
75
|
+
--toast-fg: var(--state-warning);
|
|
74
76
|
}
|
|
75
77
|
|
|
76
78
|
.j-toast.is-error {
|
|
77
|
-
--toast-fg: var(--state-
|
|
78
|
-
--toast-bg: var(--state-
|
|
79
|
-
--toast-border-color: var(--state-
|
|
79
|
+
/* --toast-fg: var(--state-error-text); */
|
|
80
|
+
/* --toast-bg: var(--state-error-soft); */
|
|
81
|
+
/* --toast-border-color: var(--state-error-ring); */
|
|
82
|
+
|
|
83
|
+
--toast-fg: var(--state-error);
|
|
80
84
|
}
|
|
81
85
|
|
|
82
86
|
.j-toast-lite {
|
|
@@ -99,7 +103,7 @@
|
|
|
99
103
|
}
|
|
100
104
|
|
|
101
105
|
.j-toast.is-confirm {
|
|
102
|
-
--toast-bg: color-mix(in srgb, var(--ui-bg) 50%, transparent);
|
|
106
|
+
/* --toast-bg: color-mix(in srgb, var(--ui-bg) 50%, transparent); */
|
|
103
107
|
|
|
104
108
|
gap: var(--s4);
|
|
105
109
|
min-width: 280px;
|
|
@@ -117,4 +121,4 @@
|
|
|
117
121
|
justify-content: flex-end;
|
|
118
122
|
position: relative;
|
|
119
123
|
}
|
|
120
|
-
}
|
|
124
|
+
}
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
.j-tooltip.is-error {
|
|
44
|
-
--tooltip-fg: var(--state-
|
|
45
|
-
--tooltip-bg: var(--state-
|
|
46
|
-
--tooltip-border-color: var(--state-
|
|
44
|
+
--tooltip-fg: var(--state-error-fg);
|
|
45
|
+
--tooltip-bg: var(--state-error-text);
|
|
46
|
+
--tooltip-border-color: var(--state-error-border);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
.j-tooltip .el-text {
|
|
@@ -60,4 +60,4 @@
|
|
|
60
60
|
background: unset;
|
|
61
61
|
box-shadow: unset;
|
|
62
62
|
}
|
|
63
|
-
}
|
|
63
|
+
}
|