vanilla-jui 1.7.31 → 1.7.32

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 +101 -159
  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 +65 -45
  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
@@ -1,17 +1,15 @@
1
1
  @layer components {
2
- .j-button {
2
+ .j-btn {
3
3
  --btn-font-size: var(--font-size-md);
4
- --btn-height: var(--el-height-md);
5
4
  --btn-fg: inherit;
6
- --btn-bg: transparent;
7
- --btn-padding: 0 var(--s3);
5
+ --btn-padding: 0 12px;
8
6
  --btn-border-color: transparent;
9
7
  --btn-radius: var(--radius-md);
10
8
  --btn-box-shadow: var(--shadow-xs);
11
9
 
12
- gap: var(--space);
10
+ gap: 4px;
13
11
  font-size: var(--btn-font-size);
14
- height: var(--btn-height);
12
+ height: var(--btn-height, var(--el-height));
15
13
  line-height: 1;
16
14
  color: var(--btn-fg);
17
15
  background-color: var(--btn-bg);
@@ -24,146 +22,122 @@
24
22
  outline: none;
25
23
  backdrop-filter: blur(4px);
26
24
 
25
+ position: relative;
27
26
  display: flex;
28
27
  justify-content: center;
29
28
  align-items: center;
30
29
  flex-wrap: nowrap;
31
- position: relative;
32
30
  white-space: nowrap;
33
31
  appearance: button;
34
32
  user-select: none;
35
33
  touch-action: manipulation;
34
+ transition-property: box-shadow, opacity, transform;
35
+ transition-duration: 0.15s;
36
+ transition-timing-function: var(--bezier);
36
37
  }
37
38
 
38
- .j-button .button-content {
39
- display: contents;
40
- position: relative;
41
- }
42
-
43
- .j-button svg {
39
+ .j-btn svg {
44
40
  width: var(--btn-font-size);
45
41
  fill: currentColor;
46
42
  }
47
43
 
48
- .j-button a,
49
- .j-button a:hover {
44
+ .j-btn a,
45
+ .j-btn a:hover {
50
46
  color: inherit;
51
47
  }
52
48
 
53
- .j-button.is-xs {
49
+ .j-btn.is-xs {
54
50
  --btn-font-size: var(--font-size-sm);
55
- --btn-height: var(--el-height-xs);
56
- --btn-padding: var(--space) var(--s2);
51
+ --btn-padding: 0 8px;
57
52
  }
58
53
 
59
- .j-button.is-sm {
54
+ .j-btn.is-sm {
60
55
  --btn-font-size: var(--font-size-sm);
61
- --btn-height: var(--el-height-sm);
62
- --btn-padding: var(--space) var(--s2);
56
+ --btn-padding: 0 8px;
63
57
  }
64
58
 
65
- .j-button.is-lg {
59
+ .j-btn.is-lg {
66
60
  --btn-font-size: var(--font-size-lg);
67
- --btn-height: var(--el-height-lg);
68
- --btn-padding: 0 var(--s3);
61
+ --btn-padding: 0 12px;
69
62
  }
70
63
 
71
- .j-button.is-xl {
64
+ .j-btn.is-xl {
72
65
  --btn-font-size: var(--font-size-xl);
73
- --btn-height: var(--el-height-xl);
74
- --btn-padding: 0 var(--s4);
66
+ --btn-padding: 0 14px;
75
67
  }
76
68
 
77
- .j-button.is-default {
69
+ .j-btn.is-default {
78
70
  --btn-fg: var(--ui-fg);
79
71
  --btn-bg: var(--ui-bg);
80
72
  --btn-border-color: var(--ui-border);
81
73
  }
82
74
 
83
- .j-button.is-reverse {
75
+ .j-btn.is-reverse {
84
76
  --btn-fg: var(--ui-bg);
85
77
  --btn-bg: var(--ui-fg);
86
78
  --btn-border-color: var(--ui-fg);
87
79
  }
88
80
 
89
- .j-button.is-solid {
81
+ .j-btn.is-solid {
90
82
  --btn-fg: var(--tone-fg);
91
83
  --btn-bg: var(--tone-solid);
92
84
  --btn-border-color: var(--tone-solid);
93
85
  }
94
86
 
95
- .j-button.is-soft {
87
+ .j-btn.is-soft {
96
88
  --btn-fg: var(--tone-text);
97
89
  --btn-bg: var(--tone-soft);
98
- --btn-border-color: transparent;
90
+ --btn-border-color: var(--tone-soft);
99
91
  }
100
92
 
101
- .j-button.is-wash {
93
+ .j-btn.is-wash {
102
94
  --btn-fg: var(--tone-text);
103
95
  --btn-bg: var(--tone-wash);
104
96
  --btn-border-color: var(--tone-wash);
105
97
  }
106
98
 
107
- .j-button.is-outline {
108
- --btn-bg: var(--tone-card);
99
+ .j-btn.is-outline {
100
+ --btn-bg: var(--ui-bg);
109
101
  --btn-border-color: var(--tone-solid);
110
102
  --btn-fg: var(--tone-solid);
111
103
  }
112
104
 
113
- .j-button.is-ghost {
105
+ .j-btn.is-ghost {
114
106
  --btn-box-shadow: none;
115
- transition-property: none;
116
107
  }
117
108
 
118
- .j-button.is-text {
119
- --btn-border-color: transparent;
109
+ .j-btn.is-text {
120
110
  --btn-box-shadow: none;
111
+ --btn-padding: 0 4px;
121
112
  }
122
113
 
123
- .j-button.is-icon {
114
+ .j-btn.is-icon {
124
115
  aspect-ratio: 1/1;
125
- --btn-padding: var(--icon-padding, 0);
116
+ --btn-padding: 0;
126
117
  }
127
118
 
128
- .j-button.is-info {
129
- --btn-bg: var(--state-info-soft);
119
+ .j-btn.is-info {
130
120
  --btn-fg: var(--state-info-text);
121
+ --btn-bg: var(--state-info-soft);
131
122
  }
132
123
 
133
- .j-button.is-success {
134
- --btn-bg: var(--state-success-soft);
124
+ .j-btn.is-success {
135
125
  --btn-fg: var(--state-success-text);
126
+ --btn-bg: var(--state-success-soft);
136
127
  }
137
128
 
138
- .j-button.is-error {
139
- --btn-bg: var(--state-error-soft);
129
+ .j-btn.is-error {
140
130
  --btn-fg: var(--state-error-text);
131
+ --btn-bg: var(--state-error-soft);
141
132
  }
142
133
 
143
- .j-button.is-warning {
144
- --btn-bg: var(--state-warning-soft);
134
+ .j-btn.is-warning {
145
135
  --btn-fg: var(--state-warning-text);
136
+ --btn-bg: var(--state-warning-soft);
146
137
  }
147
138
 
148
- .j-button[class*='ui-surface-'] {
149
- --btn-border-color: var(--ui-border);
150
- --btn-fg: var(--ui-fg);
151
- }
152
-
153
- .j-button.is-surface-sm {
154
- --btn-bg: var(--ui-surface-subtle);
155
- }
156
-
157
- .j-button.is-surface-md {
158
- --btn-bg: var(--ui-surface-muted);
159
- }
160
-
161
- .j-button.is-surface-lg {
162
- --btn-bg: var(--ui-surface-active);
163
- }
164
-
165
- .j-button-group {
166
- --btn-padding: 0 var(--s2);
139
+ .j-btns {
140
+ --btn-padding: 0 8px;
167
141
  --btn-radius: var(--radius-md);
168
142
 
169
143
  margin: 0;
@@ -171,184 +145,152 @@
171
145
  border-radius: var(--btn-radius);
172
146
 
173
147
  display: flex;
148
+ flex-direction: var(--flex-direction);
174
149
  }
175
150
 
176
151
  /* status */
177
- .j-button:disabled {
152
+ .j-btn:disabled {
178
153
  opacity: var(--opacity-disabled);
179
154
  }
180
155
 
181
- .j-button:not(:disabled) {
156
+ .j-btn:not(:disabled) {
182
157
  cursor: pointer;
183
158
  }
184
159
 
185
- .j-button:not(:disabled):hover {
160
+ .j-btn:not(:disabled):hover {
186
161
  opacity: var(--opacity-hover);
187
162
  }
188
163
 
189
- .j-button:not(:disabled):active {
190
- opacity: var(--opacity-active);
164
+ .j-btn:not(:disabled):active {
165
+ /* opacity: var(--opacity-active); */
166
+ /* transform: scale(0.95); */
167
+ transform: translateY(1px);
191
168
  }
192
169
 
193
- .j-button:not(:disabled).is-active {
170
+ .j-btn:not(:disabled).is-active {
194
171
  --btn-border-color: var(--tone-solid);
195
172
  }
196
173
 
197
- .j-button:not(:disabled):focus,
198
- .j-button:not(:disabled):focus-within,
199
- .j-button:not(:disabled):focus-visible {
174
+ /* .j-btn:not(:disabled):focus-within, */
175
+ .j-btn:not(:disabled):focus-visible {
200
176
  --btn-border-color: var(--tone-solid);
201
177
  --btn-box-shadow: 0 0 0 3px var(--tone-ring);
202
178
  }
203
179
 
204
- .j-button.is-default:not(:disabled):focus,
205
- .j-button.is-default:not(:disabled):focus-within,
206
- .j-button.is-default:not(:disabled):focus-visible {
207
- --btn-border-color: var(--ui-fg-muted);
208
- --btn-box-shadow: 0 0 0 3px var(--tone-card-active);
209
- }
210
-
211
- .j-button.is-reverse:not(:disabled).is-active,
212
- .j-button.is-reverse:not(:disabled):focus,
213
- .j-button.is-reverse:not(:disabled):focus-within,
214
- .j-button.is-reverse:not(:disabled):focus-visible {
180
+ .j-btn.is-reverse:not(:disabled).is-active,
181
+ /* .j-btn.is-reverse:not(:disabled):focus-within, */
182
+ .j-btn.is-reverse:not(:disabled):focus-visible {
215
183
  --btn-border-color: transparent;
216
184
  --btn-box-shadow: 0 0 0 3px var(--tone-card-active);
217
185
  }
218
186
 
219
- .j-button.is-solid:not(:disabled).is-active,
220
- .j-button.is-solid:not(:disabled):focus,
221
- .j-button.is-solid:not(:disabled):focus-within,
222
- .j-button.is-solid:not(:disabled):focus-visible {
187
+ /* .j-btn.is-ghost:not(:disabled):focus-within {
223
188
  --btn-border-color: transparent;
189
+ --btn-box-shadow: none;
190
+ } */
191
+
192
+ .j-btn.is-info:not(:disabled).is-active {
193
+ --btn-border-color: var(--state-info-muted);
224
194
  }
225
195
 
226
- .j-button.is-info:not(:disabled).is-active,
227
- .j-button.is-info:not(:disabled):focus,
228
- .j-button.is-info:not(:disabled):focus-within,
229
- .j-button.is-info:not(:disabled):focus-visible {
196
+ /* .j-btn.is-info:not(:disabled):focus-within, */
197
+ .j-btn.is-info:not(:disabled):focus-visible {
230
198
  --btn-border-color: var(--state-info);
231
199
  --btn-box-shadow: 0 0 0 3px var(--state-info-ring);
232
200
  }
233
201
 
234
- .j-button.is-success:not(:disabled).is-active,
235
- .j-button.is-success:not(:disabled):focus,
236
- .j-button.is-success:not(:disabled):focus-within,
237
- .j-button.is-success:not(:disabled):focus-visible {
202
+ .j-btn.is-success:not(:disabled).is-active {
203
+ --btn-border-color: var(--state-success-muted);
204
+ }
205
+
206
+ /* .j-btn.is-success:not(:disabled):focus-within, */
207
+ .j-btn.is-success:not(:disabled):focus-visible {
238
208
  --btn-border-color: var(--state-success);
239
209
  --btn-box-shadow: 0 0 0 3px var(--state-success-ring);
240
210
  }
241
211
 
242
- .j-button.is-warning:not(:disabled).is-active,
243
- .j-button.is-warning:not(:disabled):focus,
244
- .j-button.is-warning:not(:disabled):focus-within,
245
- .j-button.is-warning:not(:disabled):focus-visible {
212
+ .j-btn.is-warning:not(:disabled).is-active {
213
+ --btn-border-color: var(--state-warning-muted);
214
+ }
215
+
216
+ /* .j-btn.is-warning:not(:disabled):focus-within, */
217
+ .j-btn.is-warning:not(:disabled):focus-visible {
246
218
  --btn-border-color: var(--state-warning);
247
219
  --btn-box-shadow: 0 0 0 3px var(--state-warning-ring);
248
220
  }
249
221
 
250
- .j-button.is-error:not(:disabled).is-active,
251
- .j-button.is-error:not(:disabled):focus,
252
- .j-button.is-error:not(:disabled):focus-within,
253
- .j-button.is-error:not(:disabled):focus-visible {
254
- --btn-border-color: var(--state-error);
255
- --btn-box-shadow: 0 0 0 3px var(--state-error-muted);
222
+ .j-btn.is-error:not(:disabled).is-active {
223
+ --btn-border-color: var(--state-error-muted);
256
224
  }
257
225
 
258
- .j-button.is-default:hover:not(:disabled) {
259
- --btn-bg: var(--ui-surface-hover);
226
+ /* .j-btn.is-error:not(:disabled):focus-within, */
227
+ .j-btn.is-error:not(:disabled):focus-visible {
228
+ --btn-border-color: var(--state-error);
229
+ --btn-box-shadow: 0 0 0 3px var(--state-error-ring);
260
230
  }
261
231
 
262
- .j-button.is-outline:hover:not(:disabled),
263
- .j-button.is-ghost:hover:not(:disabled) {
264
- --btn-bg: var(--tone-subtle);
232
+ .j-btn.is-default:hover:not(:disabled),
233
+ .j-btn.is-outline:hover:not(:disabled),
234
+ .j-btn.is-ghost:hover:not(:disabled) {
235
+ --btn-bg: var(--ui-bg-subtle);
265
236
  }
266
237
 
267
- .j-button.is-text:not(:disabled).is-active,
268
- .j-button.is-text:not(:disabled):active,
269
- .j-button.is-text:not(:disabled):focus,
270
- .j-button.is-text:not(:disabled):focus-within,
271
- .j-button.is-text:not(:disabled):focus-visible {
238
+ .j-btn.is-text:not(:disabled).is-active,
239
+ .j-btn.is-text:not(:disabled):active,
240
+ .j-btn.is-text:not(:disabled):focus-visible {
272
241
  --btn-fg: var(--tone-solid);
273
- text-decoration: underline;
274
- text-underline-offset: var(--space);
275
- }
276
-
277
- .j-button.is-success:not(:disabled):active,
278
- .j-button.is-success:not(:disabled):focus-visible {
279
- --btn-ring: var(--state-success);
280
- }
281
-
282
- .j-button.is-warning:not(:disabled):active,
283
- .j-button.is-warning:not(:disabled):focus-visible {
284
- --btn-ring: var(--state-warning);
285
- }
286
-
287
- .j-button.is-error:not(:disabled):active,
288
- .j-button.is-error:not(:disabled):focus-visible {
289
- --btn-ring: var(--state-error);
290
242
  }
291
243
 
292
- .j-button-group .j-button {
244
+ .j-btns .j-btn {
293
245
  --btn-box-shadow: none;
294
246
  }
295
247
 
296
- .j-button-group .j-button:active,
297
- .j-button-group .j-button:focus,
298
- .j-button-group .j-button:focus-visible,
299
- .j-button-group .j-button:focus-within {
300
- /* opacity: var(--opacity-active); */
248
+ .j-btns .j-btn:active,
249
+ .j-btns .j-btn:focus-within,
250
+ .j-btns .j-btn:focus-visible {
301
251
  z-index: 1;
302
252
  }
303
253
 
304
- .j-button-group .j-button:not(:first-child) {
254
+ .j-btns .j-btn:not(:first-child) {
305
255
  border-top-left-radius: 0;
306
256
  border-bottom-left-radius: 0;
307
257
  }
308
258
 
309
- .j-button-group .j-button:not(:last-child) {
259
+ .j-btns .j-btn:not(:last-child) {
310
260
  border-top-right-radius: 0;
311
261
  border-bottom-right-radius: 0;
312
262
  }
313
263
 
314
- .j-button-group .j-button:not(:first-child):not(:last-child) {
264
+ .j-btns .j-btn:not(:first-child):not(:last-child) {
315
265
  border-top-width: 1px;
316
266
  border-bottom-width: 1px;
317
267
  border-left-width: 0;
318
268
  border-right-width: 0;
319
269
  }
320
270
 
321
- .j-button-group.is-vertical {
322
- flex-direction: column;
323
- }
324
-
325
- .j-button-group.is-vertical .j-button:not(:last-child) {
271
+ .j-btns.is-vertical .j-btn:not(:last-child) {
326
272
  border-bottom-left-radius: 0;
327
273
  border-bottom-right-radius: 0;
328
274
  }
329
275
 
330
- .j-button-group.is-vertical .j-button:not(:first-child) {
276
+ .j-btns.is-vertical .j-btn:not(:first-child) {
331
277
  margin-left: 0;
332
278
  border-top-left-radius: 0;
333
279
  border-top-right-radius: 0;
334
280
  }
335
281
 
336
- .j-button-group.is-vertical .j-button:not(:last-child):not(:first-child) {
282
+ .j-btns.is-vertical .j-btn:not(:last-child):not(:first-child) {
337
283
  border-left-width: 1px;
338
284
  border-right-width: 1px;
339
285
  border-top-width: 0;
340
286
  border-bottom-width: 0;
341
287
  }
342
288
 
343
- .j-button-group.is-vertical .j-button:first-child {
289
+ .j-btns.is-vertical .j-btn:first-child {
344
290
  border-top-right-radius: var(--btn-radius);
345
291
  }
346
292
 
347
- .j-button-group.is-vertical .j-button:last-child {
293
+ .j-btns.is-vertical .j-btn:last-child {
348
294
  border-bottom-left-radius: var(--btn-radius);
349
295
  }
350
-
351
- .j-button-group.is-vertical .j-button:focus-within {
352
- z-index: auto;
353
- }
354
296
  }
@@ -21,7 +21,8 @@
21
21
  .j-editor {
22
22
  --editor-font-size: var(--font-size-lg);
23
23
  --editor-line-height: 1.75;
24
- --editor-block-space: 1.25rem;
24
+ --editor-p-space: 1.25rem;
25
+ --editor-block-space: 1.75rem;
25
26
 
26
27
  --editor-heading-fg: var(--tone-heading);
27
28
  --editor-caption-fg: var(--tone-caption);
@@ -80,7 +81,7 @@
80
81
  position: relative;
81
82
  font-weight: 600;
82
83
  color: var(--editor-heading-fg);
83
- margin-bottom: var(--editor-block-space);
84
+ margin-bottom: var(--editor-p-space);
84
85
  }
85
86
 
86
87
  .j-editor h2,
@@ -90,40 +91,55 @@
90
91
  }
91
92
 
92
93
  .j-editor h1 {
93
- font-size: 2em;
94
+ /* font-size: 2em; */
95
+ /* font-size: 2.5em; */
96
+ font-size: 2.25em;
94
97
  letter-spacing: -0.02em;
95
98
  line-height: 1.25;
96
99
  margin: 0;
97
100
  }
98
101
 
99
102
  .j-editor h2 {
100
- font-size: 1.5em;
103
+ /* font-size: 1.5em; */
104
+ /* font-size: 2em; */
105
+ font-size: 1.75em;
101
106
  letter-spacing: -0.02em;
102
- margin-top: 2.25rem;
107
+ /* margin-top: 2.5rem; */
108
+ margin-top: 3rem;
103
109
  }
104
110
 
105
111
  .j-editor h3 {
112
+ /* font-size: 1.25em; */
113
+ font-size: 1.5em;
114
+ letter-spacing: -0.01em;
115
+ /* margin-top: 2.25rem; */
116
+ margin-top: 2.5rem;
117
+ }
118
+
119
+ .j-editor h4 {
120
+ /* font-size: 1.125em; */
106
121
  font-size: 1.25em;
107
122
  letter-spacing: -0.01em;
108
123
  margin-top: 2rem;
109
124
  }
110
125
 
111
- .j-editor h4 {
126
+ .j-editor h5 {
112
127
  font-size: 1.125em;
113
- letter-spacing: -0.01em;
114
- margin-top: 1.75rem;
115
128
  }
116
129
 
117
- .j-editor h5,
118
130
  .j-editor h6 {
119
131
  font-size: 1em;
120
- margin-top: 1.5rem;
132
+ }
133
+
134
+ .j-editor h5,
135
+ .j-editor h6 {
136
+ margin-top: 1.75rem;
121
137
  line-height: 1.4;
122
138
  }
123
139
 
124
140
  .j-editor p {
125
141
  line-height: var(--editor-line-height);
126
- margin: var(--editor-block-space) 0;
142
+ margin: var(--editor-p-space) 0;
127
143
  }
128
144
 
129
145
  .j-editor>div {
@@ -240,7 +256,7 @@
240
256
 
241
257
  .j-editor ul li,
242
258
  .j-editor ol li {
243
- margin-bottom: 10px;
259
+ margin-bottom: 8px;
244
260
  padding-left: 2px;
245
261
  }
246
262
 
@@ -287,7 +303,6 @@
287
303
 
288
304
  /* Definition List */
289
305
  .j-editor dl {
290
- /* margin-block: var(--editor-block-space); */
291
306
  margin: var(--editor-block-space) 0;
292
307
  }
293
308
 
@@ -342,7 +357,7 @@
342
357
 
343
358
  .j-editor input[type='checkbox'] {
344
359
  border: 1px solid var(--ui-border);
345
- border-radius: var(--radius-sm);
360
+ border-radius: var(--checkbox-radius, var(--radius-sm));
346
361
  background: var(--ui-bg);
347
362
  clear: none;
348
363
  cursor: pointer;
@@ -354,22 +369,11 @@
354
369
  transition: all 0.05s ease-in-out;
355
370
  }
356
371
 
357
- .j-editor input[type='checkbox']:checked {
358
- background: var(--tone-solid);
359
- border-color: var(--tone-solid);
360
- }
361
-
362
- .dark .j-editor input[type='checkbox']:checked {
363
- background: var(--tone-shade);
364
- border-color: var(--tone-shade);
365
- }
366
-
367
- .j-editor input[type='checkbox']:checked:before {
368
- content: url('data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27%23ffffff%27%2F%3E%3C%2Fsvg%3E');
369
- display: inline-block;
370
- margin: -0.1875rem 0 0 -0.25rem;
371
- width: 1.3125rem;
372
- height: 1.3125rem;
372
+ .j-editor:not(:has(.j-checkbox)) input[type='checkbox']:checked {
373
+ border-color: transparent;
374
+ background-color: var(--tone-solid);
375
+ background-image: var(--svg-check);
376
+ background-position: center;
373
377
  }
374
378
 
375
379
  .j-editor ul[data-type='taskList'] li:has(input[type='checkbox']:checked) p {
@@ -391,19 +395,16 @@
391
395
  }
392
396
 
393
397
  .j-editor blockquote>* {
394
- /* margin-block: 0; */
395
398
  margin: 0;
396
399
  }
397
400
 
398
401
  .j-editor blockquote>*+* {
399
- margin-top: 0.25rem;
402
+ margin-top: 4px;
400
403
  }
401
404
 
402
405
  .j-editor cite {
403
406
  display: block;
404
- /* margin-block: 0.25rem; */
405
- margin: 0.25rem 0;
406
- font-style: normal;
407
+ margin: 4px 0;
407
408
  font-size: 0.875em;
408
409
  color: var(--editor-caption-fg);
409
410
  }
@@ -800,7 +801,6 @@
800
801
 
801
802
  .j-editor table,
802
803
  .j-editor .block {
803
- /* margin-block: var(--editor-block-space); */
804
804
  margin: var(--editor-block-space) 0;
805
805
  }
806
806
 
@@ -1,6 +1,6 @@
1
1
  @layer components {
2
2
  .j-flow {
3
- --flow-gap: var(--s2);
3
+ --flow-gap: 8px;
4
4
  --flow-step-size: 28px;
5
5
  }
6
6
 
@@ -25,7 +25,7 @@
25
25
  .j-flow .flow-step-button {
26
26
  display: inline-flex;
27
27
  align-items: center;
28
- gap: var(--space);
28
+ gap: 4px;
29
29
  border: 0;
30
30
  background: transparent;
31
31
  color: var(--ui-fg-muted);
@@ -65,9 +65,9 @@
65
65
  .j-flow .flow-footer {
66
66
  border-top: 1px solid var(--ui-border-subtle);
67
67
  display: flex;
68
- gap: var(--space);
68
+ gap: 4px;
69
69
  justify-content: flex-end;
70
70
  padding-top: var(--flow-gap);
71
71
  position: relative;
72
72
  }
73
- }
73
+ }