vanilla-jui 1.7.9 → 1.7.11

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 (62) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/index.umd.js +1 -1
  3. package/dist/style.css +1 -1
  4. package/package.json +1 -1
  5. package/src/components/accordion.ts +1 -1
  6. package/src/components/flow.ts +1 -1
  7. package/src/components/form.ts +1 -1
  8. package/src/components/modal.ts +1 -1
  9. package/src/css/index.css +1 -2
  10. package/src/css/layout.css +156 -63
  11. package/src/css/status.css +0 -1
  12. package/src/css/themes/default/accordion.css +37 -1
  13. package/src/css/themes/default/avatar.css +23 -1
  14. package/src/css/themes/default/badge.css +20 -3
  15. package/src/css/themes/default/breadcrumb.css +65 -1
  16. package/src/css/themes/default/button.css +64 -11
  17. package/src/css/themes/default/drop.css +19 -1
  18. package/src/css/themes/default/editor.css +781 -7
  19. package/src/css/themes/default/form.css +650 -2
  20. package/src/css/themes/default/index.css +17 -14
  21. package/src/css/themes/default/loading.css +144 -2
  22. package/src/css/themes/default/menu.css +113 -125
  23. package/src/css/themes/default/modal.css +26 -4
  24. package/src/css/themes/default/offcanvas.css +19 -1
  25. package/src/css/themes/default/pagination.css +13 -1
  26. package/src/css/themes/default/swiper.css +99 -1
  27. package/src/css/themes/default/tabs.css +50 -1
  28. package/src/css/themes/default/theme-palette.css +24 -1
  29. package/src/css/themes/default/tip.css +36 -1
  30. package/src/css/themes/default/toast.css +42 -1
  31. package/src/css/themes/default/toolbar.css +29 -1
  32. package/src/css/themes/default/tooltip.css +8 -2
  33. package/src/css/themes/default/tree.css +40 -3
  34. package/src/css/accordion.css +0 -47
  35. package/src/css/avatar.css +0 -27
  36. package/src/css/badge.css +0 -8
  37. package/src/css/breadcrumb.css +0 -71
  38. package/src/css/button.css +0 -32
  39. package/src/css/components.css +0 -28
  40. package/src/css/divider.css +0 -9
  41. package/src/css/drop.css +0 -21
  42. package/src/css/editor.css +0 -794
  43. package/src/css/form.css +0 -658
  44. package/src/css/loading.css +0 -150
  45. package/src/css/menu.css +0 -74
  46. package/src/css/modal.css +0 -33
  47. package/src/css/offcanvas.css +0 -23
  48. package/src/css/pagination.css +0 -15
  49. package/src/css/popup.css +0 -66
  50. package/src/css/skeleton.css +0 -72
  51. package/src/css/swiper.css +0 -107
  52. package/src/css/tabs.css +0 -58
  53. package/src/css/tag.css +0 -36
  54. package/src/css/theme-palette.css +0 -28
  55. package/src/css/themes/default/popup.css +0 -7
  56. package/src/css/themes/default/tag.css +0 -85
  57. package/src/css/tip.css +0 -40
  58. package/src/css/toast.css +0 -54
  59. package/src/css/toolbar.css +0 -34
  60. package/src/css/tooltip.css +0 -12
  61. package/src/css/tree.css +0 -51
  62. /package/src/css/{flow.css → themes/default/flow.css} +0 -0
@@ -1,794 +0,0 @@
1
- @layer components {
2
- #j-editor-container {
3
- max-width: var(--editor-max-width);
4
- border-width: var(--editor-border-width);
5
- border-style: var(--editor-border-style);
6
- border-color: var(--editor-border-color);
7
- border-top: none;
8
- border-bottom: none;
9
- min-height: var(--editor-min-height);
10
- padding: var(--editor-padding);
11
- }
12
-
13
- .ProseMirror {
14
- outline: 0;
15
- }
16
-
17
- /* ============================================
18
- Editor - 文章阅读/编辑器预览样式
19
- ============================================ */
20
- .j-editor {
21
- font-size: var(--editor-font-size);
22
- line-height: 1.5;
23
- letter-spacing: var(--editor-letter-space);
24
- word-spacing: var(--editor-word-space);
25
- word-break: break-word;
26
- outline: 0;
27
- position: relative;
28
- }
29
-
30
- /* ============================================
31
- Typography - 段落与标题
32
- ============================================ */
33
- h1,
34
- h2,
35
- h3,
36
- h4,
37
- h5,
38
- h6,
39
- li,
40
- p {
41
- overflow-wrap: break-word;
42
- }
43
-
44
- .j-editor h1,
45
- .j-editor h2,
46
- .j-editor h3,
47
- .j-editor h4,
48
- .j-editor h5,
49
- .j-editor h6 {
50
- outline: none;
51
- position: relative;
52
- font-weight: 600;
53
- color: var(--editor-heading-fg);
54
- margin-bottom: var(--editor-block-space);
55
- }
56
-
57
- .j-editor h2,
58
- .j-editor h3,
59
- .j-editor h4 {
60
- line-height: 1.33333;
61
- }
62
-
63
- .j-editor h1 {
64
- font-size: 2em;
65
- letter-spacing: -0.02em;
66
- line-height: 1.25;
67
- margin-block: 0;
68
- }
69
-
70
- .j-editor h2 {
71
- font-size: 1.5em;
72
- letter-spacing: -0.02em;
73
- margin-top: 2.25rem;
74
- }
75
-
76
- .j-editor h3 {
77
- font-size: 1.25em;
78
- letter-spacing: -0.01em;
79
- margin-top: 2rem;
80
- }
81
-
82
- .j-editor h4 {
83
- font-size: 1.125em;
84
- letter-spacing: -0.01em;
85
- margin-top: 1.75rem;
86
- }
87
-
88
- .j-editor h5,
89
- .j-editor h6 {
90
- font-size: 1em;
91
- margin-top: 1.5rem;
92
- line-height: 1.4;
93
- }
94
-
95
- .j-editor p {
96
- margin-block: var(--editor-block-space);
97
- line-height: var(--editor-line-height);
98
- }
99
-
100
- /* ============================================
101
- Inline Elements - 内联元素
102
- ============================================ */
103
- .j-editor strong,
104
- .j-editor b {
105
- font-weight: 600;
106
- color: var(--editor-heading-fg);
107
- }
108
-
109
- .j-editor em,
110
- .j-editor i {
111
- font-style: italic;
112
- }
113
-
114
- .j-editor u {
115
- text-decoration: underline;
116
- text-decoration-thickness: 4px;
117
-
118
- text-decoration-color: var(--editor-ring);
119
- text-underline-offset: 0.2em;
120
- }
121
-
122
- .j-editor s,
123
- .j-editor del {
124
- text-decoration: line-through;
125
- color: var(--editor-caption-fg);
126
- }
127
-
128
- .j-editor mark {
129
- background: var(--tone-highlight);
130
- color: var(--tone-highlight-fg);
131
- padding: 0.1em 0.3em;
132
- border-radius: 0.2em;
133
- }
134
-
135
- .j-editor small {
136
- font-size: 0.875em;
137
- color: var(--editor-caption-fg);
138
- }
139
-
140
- .j-editor sub {
141
- vertical-align: sub;
142
- font-size: 0.75em;
143
- }
144
-
145
- .j-editor sup {
146
- vertical-align: super;
147
- font-size: 0.75em;
148
- }
149
-
150
- .j-editor abbr[title] {
151
- text-decoration: underline dotted;
152
- text-decoration-color: var(--tone-muted);
153
- text-underline-offset: 0.2em;
154
- cursor: help;
155
- }
156
-
157
- .j-editor time {
158
- white-space: nowrap;
159
- color: var(--editor-caption-fg);
160
- }
161
-
162
- .j-editor ruby {
163
- font-size: 0.95em;
164
- }
165
-
166
- .j-editor rt {
167
- font-size: 0.7em;
168
- color: var(--editor-caption-fg);
169
- }
170
-
171
- /* ============================================
172
- Links - 链接
173
- ============================================ */
174
- .j-editor a {
175
- color: var(--editor-link);
176
- text-decoration: none;
177
-
178
- text-decoration-color: transparent;
179
- text-underline-offset: 0.15em;
180
- transition:
181
- color 0.15s,
182
- text-decoration-color 0.15s;
183
- }
184
-
185
- .j-editor a:hover {
186
- color: var(--editor-link-hover);
187
- text-decoration: underline;
188
- text-decoration-color: var(--editor-link-hover);
189
- }
190
-
191
- .j-editor a:visited {
192
- color: var(--editor-link-visited);
193
- }
194
-
195
- .j-editor a:active {
196
- color: var(--editor-link-active);
197
- }
198
-
199
- /* ============================================
200
- Lists - 列表
201
- ============================================ */
202
- .j-editor ul,
203
- .j-editor ol {
204
- margin: 0 0 var(--editor-list-space);
205
- padding-left: 1.5em;
206
- }
207
-
208
- .j-editor ul li,
209
- .j-editor ol li {
210
- margin-bottom: 0.375em;
211
- padding-left: 0.25em;
212
- }
213
-
214
- .j-editor ul li:last-child,
215
- .j-editor ol li:last-child {
216
- margin-bottom: 0;
217
- }
218
-
219
- .j-editor ul {
220
- list-style-type: disc;
221
- }
222
-
223
- .j-editor ol {
224
- list-style-type: decimal;
225
- }
226
-
227
- .j-editor ul ul,
228
- .j-editor ol ol,
229
- .j-editor ol ul,
230
- .j-editor ul ol {
231
- margin-top: var(--editor-space);
232
- margin-bottom: 0;
233
- }
234
-
235
- .j-editor ul ul {
236
- list-style-type: circle;
237
- }
238
-
239
- .j-editor ul ul ul {
240
- list-style-type: square;
241
- }
242
-
243
- .j-editor ol ol {
244
- list-style-type: lower-alpha;
245
- }
246
-
247
- .j-editor ol ol ol {
248
- list-style-type: lower-roman;
249
- }
250
-
251
- .j-editor ul p,
252
- .j-editor ol p {
253
- margin: 0;
254
- }
255
-
256
- /* Definition List */
257
- .j-editor dl {
258
- margin-block: var(--editor-block-space);
259
- }
260
-
261
- .j-editor dt {
262
- font-weight: 600;
263
- margin-top: 0.75rem;
264
- margin-bottom: var(--editor-space);
265
- color: var(--editor-heading-fg);
266
- }
267
-
268
- .j-editor dl dt:first-child {
269
- margin-top: 0;
270
- }
271
-
272
- .j-editor dd {
273
- margin: 0 0 0.75rem;
274
- padding-left: var(--editor-list-space);
275
- color: var(--tone-body);
276
- }
277
-
278
- /* ============================================
279
- Blockquote - 引用
280
- ============================================ */
281
- .j-editor blockquote {
282
- margin: var(--editor-block-space) 0;
283
- padding: 0.75rem 1.25rem;
284
- border-left: 3px solid var(--editor-border-tone);
285
- border-radius: 0 var(--radius-md) var(--radius-md) 0;
286
- background-color: var(--editor-blockquote-bg);
287
- color: var(--editor-blockquote-fg);
288
- }
289
-
290
- /* .j-editor blockquote p {
291
- margin-block: 0;
292
- } */
293
-
294
- .j-editor blockquote > * {
295
- margin-block: 0;
296
- }
297
-
298
- /* .j-editor blockquote p+p, */
299
- .j-editor blockquote > * + * {
300
- margin-top: 0.5rem;
301
- }
302
-
303
- .j-editor cite {
304
- display: block;
305
- margin-block: 0.5rem;
306
- font-style: normal;
307
- font-size: 0.875em;
308
- color: var(--editor-caption-fg);
309
- }
310
-
311
- .j-editor cite::before {
312
- content: '— ';
313
- }
314
-
315
- /* ============================================
316
- Code - 代码
317
- ============================================ */
318
- code {
319
- box-decoration-break: clone;
320
- }
321
-
322
- .j-editor code:not([class*='language-']) {
323
- font-family: Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
324
- font-size: 0.875em;
325
- border: 1px solid var(--editor-border-subtle);
326
- border-radius: var(--radius-sm);
327
- word-break: break-word;
328
- padding: 2px 4px;
329
- background: var(--editor-code-bg);
330
- color: var(--editor-code-fg);
331
- }
332
-
333
- .j-editor kbd {
334
- font-family: inherit;
335
- font-size: 0.875em;
336
- background: var(--editor-code-bg);
337
- border: 1px solid var(--editor-border);
338
- border-bottom-width: 2px;
339
- border-radius: var(--radius-sm);
340
- padding: 2px 8px;
341
- color: var(--tone-body);
342
- }
343
-
344
- .j-editor pre {
345
- margin: var(--editor-block-space) 0;
346
- background: var(--editor-code-bg);
347
- font-size: 0.875em;
348
- line-height: 1.6;
349
- tab-size: 2;
350
- }
351
-
352
- .j-editor pre code {
353
- background: none;
354
- color: inherit;
355
- font-size: inherit;
356
- }
357
-
358
- .j-editor pre.code-block {
359
- position: relative;
360
- margin-block: 1rem;
361
- border-radius: var(--radius-md);
362
- border: 1px solid var(--editor-border-subtle);
363
- overflow: auto;
364
- scrollbar-width: thin;
365
- scrollbar-color: var(--ui-border) transparent;
366
- color: var(--ui-fg);
367
- background: var(--editor-bg-subtle);
368
- }
369
-
370
- .j-radius-round .j-editor pre.code-block {
371
- border-radius: 1.25rem;
372
- }
373
-
374
- .code-block .code-header {
375
- display: flex;
376
- align-items: center;
377
- gap: 40px;
378
- padding: 0.5rem 1rem 0;
379
- font-size: 12px;
380
- color: var(--ui-fg-soft);
381
- }
382
-
383
- .code-block .code-header .code-dots {
384
- width: 8px;
385
- height: 8px;
386
- border-radius: 50%;
387
- background: var(--state-success);
388
- box-shadow:
389
- 14px 0 0 var(--state-warning),
390
- 28px 0 0 var(--state-danger);
391
- }
392
-
393
- .code-block .code-header .code-language,
394
- .code-block .code-header select {
395
- font-size: 0.75rem;
396
- color: var(--ui-fg-soft);
397
- }
398
-
399
- .code-block .code-header select {
400
- appearance: none;
401
- background: transparent;
402
- border: none;
403
- }
404
-
405
- .code-block .code-header select::-ms-expand {
406
- display: none;
407
- }
408
-
409
- .code-block .code-header select:focus-visible {
410
- outline: 0;
411
- }
412
-
413
- .j-editor pre code[class*='language-'] {
414
- display: block;
415
- padding: 1.25em 1.5em;
416
- }
417
-
418
- .j-editor pre.code-block .code-header + code[class*='language-'] {
419
- padding: 0.5rem 1rem 1rem;
420
- }
421
-
422
- /* purposely ignored */
423
- .hljs-char.escape_,
424
- .hljs-link,
425
- .hljs-params,
426
- .hljs-property,
427
- .hljs-punctuation,
428
- .hljs-tag {
429
- color: var(--ui-gray);
430
- }
431
-
432
- /* prettylights-syntax-entity */
433
- .hljs-title,
434
- .hljs-title.class_,
435
- .hljs-title.class_.inherited__,
436
- .hljs-title.function_ {
437
- color: var(--ui-violet);
438
- }
439
-
440
- /* prettylights-syntax-constant */
441
- .hljs-attr,
442
- .hljs-attribute,
443
- .hljs-literal,
444
- .hljs-meta,
445
- .hljs-number,
446
- .hljs-operator,
447
- .hljs-variable,
448
- .hljs-selector-attr,
449
- .hljs-selector-class,
450
- .hljs-selector-id {
451
- color: var(--ui-teal);
452
- }
453
-
454
- /* prettylights-syntax-keyword */
455
- .hljs-doctag,
456
- .hljs-keyword,
457
- .hljs-meta .hljs-keyword,
458
- .hljs-template-tag,
459
- .hljs-template-variable,
460
- .hljs-type,
461
- .hljs-variable.language_ {
462
- color: var(--ui-tomato);
463
- }
464
-
465
- /* prettylights-syntax-string */
466
- .hljs-regexp,
467
- .hljs-string,
468
- .hljs-meta .hljs-string {
469
- color: var(--ui-pink);
470
- }
471
-
472
- /* prettylights-syntax-variable */
473
- .hljs-built_in,
474
- .hljs-symbol {
475
- color: var(--ui-orange);
476
- }
477
-
478
- /* prettylights-syntax-comment */
479
- .hljs-comment,
480
- .hljs-code,
481
- .hljs-formula {
482
- color: var(--ui-fg-soft);
483
- }
484
-
485
- .language-markdown .hljs-code {
486
- color: inherit;
487
- }
488
-
489
- /* .dark .hljs-comment,
490
- .dark .hljs-code,
491
- .dark .hljs-formula {
492
- color: var(--ui-gray-shade);
493
- } */
494
-
495
- /* prettylights-syntax-entity-tag */
496
- .hljs-name,
497
- .hljs-quote,
498
- .hljs-selector-tag,
499
- .hljs-selector-pseudo {
500
- color: var(--ui-indigo);
501
- }
502
-
503
- /* prettylights-syntax-storage-modifier-import */
504
- .hljs-subst {
505
- color: var(--ui-fg);
506
- }
507
-
508
- /* prettylights-syntax-markup-heading */
509
- .hljs-section {
510
- color: var(--ui-teal);
511
- font-weight: bold;
512
- }
513
-
514
- /* prettylights-syntax-markup-list */
515
- .hljs-bullet {
516
- color: var(--ui-gold);
517
- }
518
-
519
- /* prettylights-syntax-markup-italic */
520
- .hljs-emphasis {
521
- color: var(--ui-fg);
522
- font-style: italic;
523
- }
524
-
525
- /* prettylights-syntax-markup-bold */
526
- .hljs-strong {
527
- color: var(--ui-fg);
528
- font-weight: bold;
529
- }
530
-
531
- /* prettylights-syntax-markup-inserted */
532
- .hljs-addition {
533
- color: var(--ui-indigo);
534
- background-color: #f0fff4;
535
- }
536
-
537
- /* prettylights-syntax-markup-deleted */
538
- .hljs-deletion {
539
- color: var(--ui-ruby);
540
- background-color: #ffeef0;
541
- }
542
-
543
- /* ============================================
544
- Media - 媒体
545
- ============================================ */
546
-
547
- .j-editor img {
548
- max-width: 100%;
549
- height: auto;
550
- }
551
-
552
- .j-editor figure {
553
- margin: var(--editor-block-space) 0;
554
- }
555
-
556
- .j-editor figure img,
557
- .j-editor figure video,
558
- .j-editor figure iframe {
559
- display: block;
560
- margin: 0 auto;
561
- }
562
-
563
- .j-editor figcaption {
564
- margin-top: 0.5rem;
565
- font-size: var(--font-size-md);
566
- color: var(--editor-caption-fg);
567
- text-align: center;
568
- line-height: 1.2;
569
- }
570
-
571
- .j-editor iframe,
572
- .j-editor video,
573
- .j-editor audio {
574
- max-width: 100%;
575
- }
576
-
577
- .j-editor video,
578
- .j-editor audio {
579
- display: block;
580
- border-radius: var(--radius-lg);
581
- }
582
-
583
- .j-editor video {
584
- background-color: var(--ui-fg);
585
- }
586
-
587
- .j-editor figure:has(audio) {
588
- display: flex;
589
- flex-direction: column;
590
- justify-content: center;
591
- align-items: center;
592
- }
593
-
594
- /* ============================================
595
- Horizontal Rule - 分割线
596
- ============================================ */
597
-
598
- .j-editor hr {
599
- margin: var(--editor-block-space) 0;
600
- border: 0;
601
- height: 1px;
602
- background: var(--editor-border);
603
- }
604
-
605
- /* ============================================
606
- Details / Summary - 折叠
607
- ============================================ */
608
-
609
- .j-editor details {
610
- margin: var(--editor-block-space) 0;
611
- padding: 1em;
612
- background-color: var(--editor-bg-subtle);
613
- border-radius: var(--radius-lg);
614
- border: 1px solid var(--editor-border-subtle);
615
- }
616
-
617
- .j-editor summary {
618
- cursor: pointer;
619
- font-weight: 600;
620
- color: var(--editor-heading-fg);
621
- outline: none;
622
- list-style: none;
623
- display: flex;
624
- align-items: center;
625
- gap: 0.5em;
626
- }
627
-
628
- .j-editor summary::before {
629
- content: '▸';
630
- display: inline-block;
631
- transition: transform 0.2s ease;
632
- }
633
-
634
- .j-editor details[open] > summary::before {
635
- transform: rotate(90deg);
636
- }
637
-
638
- .j-editor details[open] p,
639
- .j-editor details[open] ul,
640
- .j-editor details[open] ol,
641
- .j-editor details[open] > * {
642
- margin-bottom: 1em;
643
- }
644
-
645
- .j-editor details[open] > summary + * {
646
- margin-top: 0;
647
- }
648
-
649
- .j-editor details[open] > *:last-child {
650
- margin-bottom: 0;
651
- }
652
-
653
- /* ============================================
654
- Progress / Meter
655
- ============================================ */
656
-
657
- .j-editor progress {
658
- max-width: 100%;
659
- border-radius: 9999px;
660
- overflow: hidden;
661
- height: 0.625em;
662
- margin-block: 0.25em;
663
- }
664
-
665
- .j-editor meter {
666
- max-width: 100%;
667
- height: 1em;
668
- margin-block: 0.125em;
669
- }
670
-
671
- .j-editor progress::-webkit-progress-value,
672
- .j-editor meter::-webkit-meter-optimum-value {
673
- background-color: var(--tone-solid);
674
- border-radius: 9999px;
675
- }
676
-
677
- .j-editor progress::-webkit-progress-bar,
678
- .j-editor meter::-webkit-meter-bar {
679
- background-color: var(--tone-border);
680
- border: none;
681
- border-radius: 9999px;
682
- }
683
-
684
- /* ============================================
685
- Address
686
- ============================================ */
687
- .j-editor address {
688
- font-style: normal;
689
- margin-block: var(--editor-block-space);
690
- padding: 1em 1.25em;
691
- background-color: var(--editor-bg-subtle);
692
- border-radius: var(--radius-lg);
693
- color: var(--editor-caption-fg);
694
- font-size: 0.9375em;
695
- }
696
-
697
- /* ============================================
698
- Block Item - 通用块级元素
699
- ============================================ */
700
- .j-editor > *:first-child {
701
- margin-top: 0;
702
- }
703
-
704
- .j-editor > *:last-child {
705
- margin-bottom: 0;
706
- }
707
-
708
- .j-editor table,
709
- .j-editor .block {
710
- margin-block: var(--editor-block-space);
711
- }
712
-
713
- .j-editor table {
714
- text-indent: 0;
715
- border-color: inherit;
716
- border-collapse: collapse;
717
-
718
- overflow-x: auto;
719
- scrollbar-width: thin;
720
- scrollbar-color: var(--ui-border) transparent;
721
- display: block;
722
- }
723
-
724
- /* ============================================
725
- * tasklist
726
- * ========================================= */
727
- .j-editor ul[data-type='taskList'] {
728
- list-style: none;
729
- padding: 0;
730
- margin: 0;
731
- }
732
-
733
- .j-editor ul[data-type='taskList'] li {
734
- display: flex;
735
- align-items: center;
736
- gap: 0.5rem;
737
- }
738
-
739
- .j-editor ul[data-type='taskList'] li label,
740
- .j-editor ul[data-type='taskList'] li div {
741
- display: flex;
742
- }
743
-
744
- .j-editor ul[data-type='taskList'] li > label {
745
- flex: none;
746
- user-select: none;
747
- }
748
-
749
- .j-editor ul[data-type='taskList'] li div {
750
- flex: auto;
751
- }
752
-
753
- .j-editor ul[data-type='taskList'] li div p {
754
- line-height: 1.5;
755
- }
756
-
757
- .j-editor input[type='checkbox'] {
758
- border: 1px solid var(--ui-border);
759
- border-radius: var(--radius-sm);
760
- background: var(--ui-bg);
761
- clear: none;
762
- cursor: pointer;
763
- display: inline-block;
764
- width: 1rem;
765
- height: 1rem;
766
- margin: 0;
767
- appearance: none;
768
- transition: all 0.05s ease-in-out;
769
- }
770
-
771
- .j-editor input[type='checkbox']:checked {
772
- background: var(--tone-solid);
773
- border-color: var(--tone-solid);
774
- }
775
-
776
- .dark .j-editor input[type='checkbox']:checked {
777
- background: var(--tone-shade);
778
- border-color: var(--tone-shade);
779
- }
780
-
781
- .j-editor input[type='checkbox']:checked:before {
782
- 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');
783
- display: inline-block;
784
- margin: -0.1875rem 0 0 -0.25rem;
785
- width: 1.3125rem;
786
- height: 1.3125rem;
787
- }
788
-
789
- .j-editor ul[data-type='taskList'] li:has(input[type='checkbox']:checked) p {
790
- text-decoration: line-through;
791
- text-decoration-color: var(--ui-fg);
792
- text-decoration-thickness: 2px;
793
- }
794
- }