vanilla-jui 1.7.31 → 1.7.33

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.
Files changed (44) hide show
  1. package/dist/index.d.ts +24 -4
  2. package/dist/index.js +1 -1
  3. package/dist/index.umd.js +1 -1
  4. package/dist/style.css +1 -1
  5. package/package.json +1 -1
  6. package/src/components/accordion.ts +22 -8
  7. package/src/components/flow.ts +1 -1
  8. package/src/components/form.ts +1 -1
  9. package/src/components/modal.ts +1 -1
  10. package/src/components/offcanvas.ts +2 -2
  11. package/src/components/pagination.ts +5 -5
  12. package/src/components/tabs.ts +132 -16
  13. package/src/css/animation.css +7 -3
  14. package/src/css/card.css +10 -10
  15. package/src/css/font.css +3 -6
  16. package/src/css/icon.css +3 -20
  17. package/src/css/layout.css +11 -18
  18. package/src/css/status.css +39 -3
  19. package/src/css/themes/default/accordion.css +13 -45
  20. package/src/css/themes/default/avatar.css +2 -3
  21. package/src/css/themes/default/badge.css +14 -22
  22. package/src/css/themes/default/breadcrumb.css +11 -12
  23. package/src/css/themes/default/button.css +85 -162
  24. package/src/css/themes/default/editor.css +36 -36
  25. package/src/css/themes/default/flow.css +4 -4
  26. package/src/css/themes/default/form.css +110 -217
  27. package/src/css/themes/default/loading.css +48 -63
  28. package/src/css/themes/default/menu.css +17 -17
  29. package/src/css/themes/default/modal.css +9 -9
  30. package/src/css/themes/default/offcanvas.css +3 -3
  31. package/src/css/themes/default/swiper.css +18 -18
  32. package/src/css/themes/default/tabs.css +38 -24
  33. package/src/css/themes/default/theme-palette.css +22 -18
  34. package/src/css/themes/default/tip.css +24 -13
  35. package/src/css/themes/default/toast.css +66 -46
  36. package/src/css/themes/default/toolbar.css +2 -2
  37. package/src/css/themes/default/tooltip.css +2 -3
  38. package/src/css/tokens.css +89 -59
  39. package/src/css/tokens_/345/211/257/346/234/254.css +4 -4
  40. package/src/icons/index.ts +9 -7
  41. package/src/locales/index.ts +3 -1
  42. package/src/primitives/theme.ts +7 -10
  43. package/src/primitives/toast.ts +191 -107
  44. package/src/utilities/browser.ts +1 -1
@@ -22,7 +22,7 @@
22
22
  border-color: var(--loader-fg);
23
23
  border-right-color: transparent;
24
24
  border-radius: 50%;
25
- animation: var(--speed-xl) linear infinite animate-spin;
25
+ animation: 0.75s linear infinite animate-spin;
26
26
  }
27
27
 
28
28
  .j-loader .polygon-loader {
@@ -53,14 +53,11 @@
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)
57
- top/var(--loader-width) var(--loader-width) no-repeat,
56
+ radial-gradient(farthest-side, var(--tone-solid) 94%, #0000) top/var(--loader-width) var(--loader-width) no-repeat,
58
57
  conic-gradient(#0000 30%, var(--tone-solid));
59
- --loader-mask: radial-gradient(
60
- farthest-side,
61
- #0000 calc(100% - var(--loader-width)),
62
- #000 0
63
- );
58
+ --loader-mask: radial-gradient(farthest-side,
59
+ #0000 calc(100% - var(--loader-width)),
60
+ #000 0);
64
61
 
65
62
  width: var(--loader-size);
66
63
  height: var(--loader-size);
@@ -78,75 +75,63 @@
78
75
  }
79
76
 
80
77
  12.5% {
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
- );
78
+ clip-path: polygon(50% 50%,
79
+ 0 0,
80
+ 50% 0%,
81
+ 100% 0%,
82
+ 100% 0%,
83
+ 100% 0%,
84
+ 100% 0%);
90
85
  }
91
86
 
92
87
  25% {
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
- );
88
+ clip-path: polygon(50% 50%,
89
+ 0 0,
90
+ 50% 0%,
91
+ 100% 0%,
92
+ 100% 100%,
93
+ 100% 100%,
94
+ 100% 100%);
102
95
  }
103
96
 
104
97
  50% {
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
- );
98
+ clip-path: polygon(50% 50%,
99
+ 0 0,
100
+ 50% 0%,
101
+ 100% 0%,
102
+ 100% 100%,
103
+ 50% 100%,
104
+ 0% 100%);
114
105
  }
115
106
 
116
107
  62.5% {
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
- );
108
+ clip-path: polygon(50% 50%,
109
+ 100% 0,
110
+ 100% 0%,
111
+ 100% 0%,
112
+ 100% 100%,
113
+ 50% 100%,
114
+ 0% 100%);
126
115
  }
127
116
 
128
117
  75% {
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
- );
118
+ clip-path: polygon(50% 50%,
119
+ 100% 100%,
120
+ 100% 100%,
121
+ 100% 100%,
122
+ 100% 100%,
123
+ 50% 100%,
124
+ 0% 100%);
138
125
  }
139
126
 
140
127
  100% {
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
- );
128
+ clip-path: polygon(50% 50%,
129
+ 50% 100%,
130
+ 50% 100%,
131
+ 50% 100%,
132
+ 50% 100%,
133
+ 50% 100%,
134
+ 0% 100%);
150
135
  }
151
136
  }
152
137
 
@@ -167,4 +152,4 @@
167
152
  transform: scaleY(-1) rotate(-135deg);
168
153
  }
169
154
  }
170
- }
155
+ }
@@ -71,7 +71,7 @@
71
71
  }
72
72
 
73
73
  .j-menu .menu .menu-item a {
74
- gap: var(--s2);
74
+ gap: 8px;
75
75
  color: currentColor;
76
76
  padding: 0.5rem 0.75rem;
77
77
  height: var(--menu-item-height);
@@ -200,7 +200,7 @@
200
200
  }
201
201
 
202
202
  .j-menu .menu-item.list-menu>.sub-menu>.menu-item>a {
203
- padding: calc(var(--space) * 1.25) var(--s2d5);
203
+ padding: 5px 10px;
204
204
  line-height: 1.75;
205
205
  }
206
206
 
@@ -232,7 +232,7 @@
232
232
  }
233
233
 
234
234
  .j-menu[data-menu-type='mobile'] .menu .menu-item:not(:has(a)) {
235
- padding: 0.5rem 1rem;
235
+ padding: 8px 16px;
236
236
  }
237
237
 
238
238
  .j-menu[data-menu-type='mobile'] .menu .menu-item a {
@@ -241,8 +241,8 @@
241
241
  white-space: normal;
242
242
  position: relative;
243
243
 
244
- padding: 0.5rem 1rem;
245
- gap: var(--s2);
244
+ padding: 8px 16px;
245
+ gap: 8px;
246
246
  min-height: var(--el-height-2xl);
247
247
  line-height: var(--line-height-paragraph);
248
248
  }
@@ -309,7 +309,7 @@
309
309
  justify-content: space-between;
310
310
  gap: 1px;
311
311
  border-top: 1px solid var(--ui-border-subtle);
312
- position: relative;
312
+ padding: 4px;
313
313
  }
314
314
 
315
315
  .j-menu[data-menu-type='bottom'] .menu .menu-item {
@@ -322,18 +322,18 @@
322
322
 
323
323
  .j-menu[data-menu-type='bottom'] .menu .menu-item a {
324
324
  width: 100%;
325
- height: var(--el-height-2xl);
325
+ height: var(--el-height-xl);
326
326
  color: var(--ui-fg);
327
327
  }
328
328
 
329
329
  .j-menu[data-menu-type='bottom']>.menu>.menu-item.menu-item-has-children>a::after {
330
330
  content: '☰';
331
331
  font-size: var(--font-size-sm);
332
- margin-left: unset;
333
- border: unset;
334
- width: unset;
335
- height: unset;
336
- transition: unset;
332
+ border: none;
333
+ /* margin-left: unset; */
334
+ /* width: unset; */
335
+ /* height: unset; */
336
+ /* transition: unset; */
337
337
  }
338
338
 
339
339
  .j-menu[data-menu-type='bottom']>.menu .menu-item.menu-item-has-children:hover>a::after {
@@ -357,7 +357,7 @@
357
357
  max-width: 18rem;
358
358
  left: 50%;
359
359
  transform: translateX(-50%) translateY(100%);
360
- bottom: calc(100% + var(--space));
360
+ bottom: calc(100% + 4px);
361
361
  transition:
362
362
  transform 0.3s ease-in-out,
363
363
  visibility 0.3s ease-in-out,
@@ -391,7 +391,7 @@
391
391
  .drop-menu .drop-container {
392
392
  min-width: 100px;
393
393
  max-width: 200px;
394
- padding: var(--space);
394
+ padding: 4px;
395
395
  font-size: var(--font-size-md);
396
396
  background-color: var(--ui-surface-subtle);
397
397
  border-radius: var(--radius-sm);
@@ -409,9 +409,9 @@
409
409
  .drop-menu .menu-item a {
410
410
  display: flex;
411
411
  align-items: center;
412
- gap: var(--s2);
412
+ gap: 8px;
413
413
  width: 100%;
414
- padding: var(--space) var(--s2);
414
+ padding: 4px 8px;
415
415
  text-decoration: none;
416
416
  color: var(--ui-fg-muted);
417
417
  user-select: none;
@@ -435,7 +435,7 @@
435
435
  }
436
436
 
437
437
  .drop-menu .menu-item.menu-heading {
438
- padding: 2px var(--s2);
438
+ padding: 2px 8px;
439
439
  color: var(--ui-fg-soft);
440
440
  font-size: var(--font-size-sm);
441
441
  }
@@ -1,8 +1,8 @@
1
1
  @layer components {
2
2
  .j-modal {
3
- --modal-header-padding: var(--s3) var(--s4) 0;
4
- --modal-body-padding: var(--s4);
5
- --modal-footer-padding: 0 var(--s4) var(--s4);
3
+ --modal-header-padding: 12px 16px 0;
4
+ --modal-body-padding: 16px;
5
+ --modal-footer-padding: 0 16px 16px;
6
6
 
7
7
  color: var(--ui-fg);
8
8
  background: var(--ui-bg);
@@ -21,7 +21,7 @@
21
21
  }
22
22
 
23
23
  .j-modal .modal-header {
24
- gap: var(--space);
24
+ gap: 4px;
25
25
  padding: var(--modal-header-padding);
26
26
  border-bottom: transparent;
27
27
 
@@ -49,7 +49,7 @@
49
49
  overflow-y: auto;
50
50
  overflow-wrap: break-word;
51
51
  scrollbar-width: thin;
52
- scrollbar-color: var(--ui-border) transparent;
52
+ scrollbar-color: var(--ui-border-subtle) transparent;
53
53
  }
54
54
 
55
55
  .j-modal .modal-body p {
@@ -58,7 +58,7 @@
58
58
  }
59
59
 
60
60
  .j-modal .modal-footer {
61
- gap: var(--s2);
61
+ gap: 8px;
62
62
  padding: var(--modal-footer-padding);
63
63
  border-top: 1px solid transparent;
64
64
 
@@ -74,7 +74,7 @@
74
74
  }
75
75
 
76
76
  .j-modal.is-fullscreen .modal-header {
77
- --modal-header-padding: var(--s4);
77
+ --modal-header-padding: 16px;
78
78
  }
79
79
 
80
80
  .j-modal.is-fullscreen .modal-body {
@@ -82,10 +82,10 @@
82
82
  }
83
83
 
84
84
  .j-modal.is-fullscreen .modal-footer {
85
- --modal-footer-padding: var(--s4);
85
+ --modal-footer-padding: 16px;
86
86
  }
87
87
 
88
88
  .j-popup-layout:has(.is-fullscreen) {
89
89
  padding: 0;
90
90
  }
91
- }
91
+ }
@@ -1,6 +1,6 @@
1
1
  @layer components {
2
2
  .j-offcanvas-overlay {
3
- background: var(--ui-overlay-muted);
3
+ background: var(--ui-popup-bg);
4
4
 
5
5
  position: fixed;
6
6
  top: 0;
@@ -59,10 +59,10 @@
59
59
  --offcanvas-block-width: 316px;
60
60
  }
61
61
 
62
- .j-offcanvas .offcanvas-content {
62
+ .j-offcanvas .offcanvas-panel {
63
63
  position: relative;
64
64
  height: 100%;
65
65
  overflow-y: auto;
66
66
  scrollbar-width: none;
67
67
  }
68
- }
68
+ }
@@ -1,9 +1,9 @@
1
1
  @layer components {
2
2
  .j-swiper {
3
3
  --swiper-min-height: 120px;
4
- --swiper-title-inset: var(--s3);
4
+ --swiper-title-inset: 12px;
5
5
  --swiper-title-font-size: var(--font-size-lg);
6
- --swiper-navigation-size: 36px;
6
+ --swiper-navigation-size: 32px;
7
7
 
8
8
  position: relative;
9
9
  display: block;
@@ -77,11 +77,11 @@
77
77
  right: var(--swiper-title-inset);
78
78
  bottom: var(--swiper-title-inset);
79
79
  left: var(--swiper-title-inset);
80
- padding: var(--s1d5) var(--s2);
80
+ padding: 6px 8px;
81
81
  color: #fff;
82
82
  font-size: var(--swiper-title-font-size);
83
83
  font-weight: var(--font-bold);
84
- background: rgb(0 0 0 / 35%);
84
+ background: rgba(0, 0, 0, 0.35);
85
85
  border-radius: var(--radius-sm);
86
86
  line-height: var(--line-height-heading);
87
87
 
@@ -104,32 +104,33 @@
104
104
  }
105
105
 
106
106
  .j-swiper .swiper-pagination.is-horizontal {
107
- right: var(--s3);
108
- bottom: var(--s2);
109
- left: var(--s3);
107
+ right: 12px;
108
+ bottom: 8px;
109
+ left: 12px;
110
110
  }
111
111
 
112
112
  .j-swiper .swiper-pagination-indicator {
113
113
  width: 8px;
114
114
  height: 8px;
115
115
  padding: 0;
116
- background: rgb(255 255 255 / 62%);
116
+ background: rgba(255, 255, 255, 0.62);
117
117
  border: 0;
118
118
 
119
119
  display: inline-block;
120
120
  cursor: pointer;
121
121
  border-radius: 999px;
122
122
  outline: none;
123
+ transition: width 0.5s var(--bezier);
123
124
  }
124
125
 
125
126
  .j-swiper .swiper-pagination-indicator:hover,
126
127
  .j-swiper .swiper-pagination-indicator:focus-visible {
127
- background: rgb(255 255 255 / 86%);
128
+ background: rgba(255, 255, 255, 0.86);
128
129
  }
129
130
 
130
131
  .j-swiper .swiper-pagination-indicator.is-active,
131
132
  .j-swiper .swiper-pagination-indicator.active {
132
- width: 22px;
133
+ width: 20px;
133
134
  background: #fff;
134
135
  }
135
136
 
@@ -138,7 +139,7 @@
138
139
  height: var(--swiper-navigation-size);
139
140
  padding: 0;
140
141
  color: #fff;
141
- background: rgb(0 0 0 / 35%);
142
+ background: rgba(0, 0, 0, 0.35);
142
143
  border: 0;
143
144
  transform: translateY(-50%);
144
145
  opacity: 0;
@@ -160,21 +161,21 @@
160
161
 
161
162
  .j-swiper .swiper-navigation:hover,
162
163
  .j-swiper .swiper-navigation:focus-visible {
163
- background: rgb(0 0 0 / 65%);
164
+ background: rgba(0, 0, 0, 0.65);
164
165
  outline: none;
165
166
  }
166
167
 
167
168
  .j-swiper .swiper-navigation.is-prev {
168
- left: var(--s2);
169
+ left: 8px;
169
170
  }
170
171
 
171
172
  .j-swiper .swiper-navigation.is-next {
172
- right: var(--s2);
173
+ right: 8px;
173
174
  }
174
175
 
175
176
  .j-swiper .swiper-navigation svg {
176
- width: 18px;
177
- height: 18px;
177
+ width: 16px;
178
+ height: 16px;
178
179
 
179
180
  pointer-events: none;
180
181
  }
@@ -188,8 +189,7 @@
188
189
  @media (max-width: 640px) {
189
190
  .j-swiper {
190
191
  --swiper-title-font-size: var(--font-size-md);
191
- --swiper-title-inset: var(--s2);
192
- --swiper-navigation-size: 32px;
192
+ --swiper-title-inset: 8px;
193
193
  }
194
194
  }
195
195
  }
@@ -1,24 +1,24 @@
1
1
  @layer components {
2
2
  .j-tabs {
3
- --tab-wrap-border: 1px solid var(--ui-border-subtle);
3
+ --tab-wrap-border: none;
4
4
 
5
5
  display: flex;
6
6
  }
7
7
 
8
8
  .j-tabs,
9
- .j-tabs[data-tabs-direction='top'] {
9
+ .j-tabs[data-direction='top'] {
10
10
  flex-direction: column;
11
11
  }
12
12
 
13
- .j-tabs[data-tabs-direction='bottom'] {
13
+ .j-tabs[data-direction='bottom'] {
14
14
  flex-direction: column-reverse;
15
15
  }
16
16
 
17
- .j-tabs[data-tabs-direction='left'] {
17
+ .j-tabs[data-direction='left'] {
18
18
  flex-direction: row;
19
19
  }
20
20
 
21
- .j-tabs[data-tabs-direction='right'] {
21
+ .j-tabs[data-direction='right'] {
22
22
  flex-direction: row-reverse;
23
23
  }
24
24
 
@@ -26,61 +26,75 @@
26
26
  overflow: hidden;
27
27
  position: relative;
28
28
  margin: 0;
29
+ padding: var(--tab-wrap-padding, 4px);
30
+ width: var(--tab-wrap-width, fit-content);
31
+ background-color: var(--tab-bg, var(--ui-bg-subtle));
32
+ border-radius: var(--tab-wrap-radius, var(--radius-md));
29
33
  }
30
34
 
31
- .j-tabs[data-tabs-direction='top'] .tab-wrap {
35
+ .j-tabs[data-direction='top'] .tab-wrap {
32
36
  border-bottom: var(--tab-wrap-border);
33
37
  }
34
38
 
35
- .j-tabs[data-tabs-direction='bottom'] .tab-wrap {
39
+ .j-tabs[data-direction='bottom'] .tab-wrap {
36
40
  border-top: var(--tab-wrap-border);
37
41
  }
38
42
 
39
- .j-tabs[data-tabs-direction='left'] .tab-wrap {
43
+ .j-tabs[data-direction='left'] .tab-wrap {
40
44
  border-right: var(--tab-wrap-border);
41
45
  }
42
46
 
43
- .j-tabs[data-tabs-direction='right'] .tab-wrap {
47
+ .j-tabs[data-direction='right'] .tab-wrap {
44
48
  border-left: var(--tab-wrap-border);
45
49
  }
46
50
 
47
- .j-tabs .tab-list {
51
+ .j-tabs .tab-nav {
52
+ position: relative;
48
53
  display: flex;
49
54
  -webkit-overflow-scrolling: touch;
50
55
  scroll-behavior: smooth;
51
56
  }
52
57
 
53
- .j-tabs[data-tabs-direction='left'] .tab-list,
54
- .j-tabs[data-tabs-direction='right'] .tab-list {
58
+ .j-tabs .tab-indicator {
59
+ background-color: var(--tab-indicator-bg, var(--tone-soft));
60
+ border-radius: var(--tab-indicator-radius, var(--radius-md));
61
+ }
62
+
63
+ .j-tabs[data-direction='left'] .tab-nav,
64
+ .j-tabs[data-direction='right'] .tab-nav {
55
65
  flex-direction: column;
56
66
  }
57
67
 
58
- .j-tabs .tab-list .tab-item {
59
- padding: var(--s2) var(--s3);
68
+ .j-tabs .tab-nav .tab-item {
69
+ padding: var(--tab-item-padding, 6px 12px);
60
70
  margin: 0;
61
- color: var(--tab-fg);
71
+ color: var(--tab-fg, var(--tone-body));
62
72
  font-weight: var(--font-medium);
63
73
 
64
74
  flex-shrink: 0;
65
75
  cursor: pointer;
76
+ position: relative;
66
77
  }
67
78
 
68
- .j-tabs .tab-list .tab-item[aria-selected='true'] {
79
+ .j-tabs .tab-nav .tab-item:hover {
69
80
  --tab-fg: var(--tone-solid);
70
81
  }
71
82
 
72
- .j-tabs .tab-list .tab-item[aria-disabled='true'] {
73
- --tab-fg: var(--ui-border-strong);
83
+ .j-tabs .tab-nav .tab-item[aria-selected='true'] {
84
+ --tab-fg: var(--tone-solid);
74
85
  }
75
86
 
76
- .j-tabs .panel-list {
77
- padding: var(--s3);
78
- margin: 0;
87
+ .j-tabs .tab-nav .tab-item[aria-disabled='true'] {
88
+ --tab-fg: var(--tone-disabled);
89
+ }
79
90
 
91
+ .j-tabs .tab-panel {
92
+ padding: var(--tab-panel-padding, 12px);
93
+ margin: 0;
80
94
  flex: 1;
81
95
  }
82
96
 
83
- .j-tabs .panel-list .panel-item {
97
+ .j-tabs .tab-panel .panel-item {
84
98
  margin: 0;
85
99
 
86
100
  display: none;
@@ -88,7 +102,7 @@
88
102
  min-height: 22px;
89
103
  }
90
104
 
91
- .j-tabs .panel-list .panel-item[aria-hidden='false'] {
105
+ .j-tabs .tab-panel .panel-item[aria-hidden='false'] {
92
106
  display: block;
93
107
  }
94
- }
108
+ }
@@ -1,45 +1,49 @@
1
1
  @layer components {
2
- .j-theme-palette {
2
+ .j-themes {
3
3
  padding: 1rem 1rem 2rem;
4
4
  }
5
5
 
6
- .j-theme-palette .palette-container,
7
- .j-theme-palette .palette-item {
6
+ .j-themes .theme-title {
7
+ margin: 0 0 1rem;
8
+ }
9
+
10
+ .j-themes .theme-container,
11
+ .j-themes .theme-item {
8
12
  display: flex;
9
13
  flex-direction: column;
10
14
  }
11
15
 
12
- .j-theme-palette .palette-container {
13
- gap: var(--s4);
16
+ .j-themes .theme-container {
17
+ gap: 16px;
14
18
  }
15
19
 
16
- .j-theme-palette .palette-item {
17
- gap: var(--s2);
20
+ .j-themes .theme-item {
21
+ gap: 8px;
18
22
  }
19
23
 
20
- .j-theme-palette .item-title {
24
+ .j-themes .item-title {
21
25
  font-size: var(--font-size-md);
22
26
  font-weight: var(--font-bold);
23
27
  }
24
28
 
25
- .j-theme-palette .items {
26
- gap: var(--space);
29
+ .j-themes .items {
30
+ gap: 4px;
27
31
 
28
32
  display: grid;
29
33
  grid-template-columns: repeat(3, 1fr);
30
34
  }
31
35
 
32
- .j-theme-palette .j-button {
36
+ .j-themes .j-btn {
33
37
  min-width: 0;
34
38
  overflow: hidden;
35
39
  }
36
40
 
37
- .j-theme-palette [data-theme-group='theme'] .j-button {
41
+ .j-themes [data-theme-group='theme'] .j-btn {
38
42
  justify-content: flex-start;
39
- --btn-padding: 0 var(--s2);
43
+ --btn-padding: 0 8px;
40
44
  }
41
45
 
42
- .j-theme-palette .j-button .item-hex {
46
+ .j-themes .j-btn .item-hex {
43
47
  width: var(--font-size-sm);
44
48
  height: var(--font-size-sm);
45
49
 
@@ -48,16 +52,16 @@
48
52
  flex-shrink: 0;
49
53
  }
50
54
 
51
- .mobile .j-theme-palette {
55
+ .mobile .j-themes {
52
56
  padding: 1rem 1rem 4rem;
53
57
  }
54
58
 
55
- .mobile .j-theme-palette [data-theme-group='theme'] .j-button {
59
+ .mobile .j-themes [data-theme-group='theme'] .j-btn {
56
60
  --btn-padding: 0 6px;
57
61
  }
58
62
 
59
- .j-theme-palette .j-button .button-text {
63
+ .j-themes .j-btn .el-text {
60
64
  overflow: hidden;
61
65
  text-overflow: ellipsis;
62
66
  }
63
- }
67
+ }