@watalabs/lasee-mditor 0.0.0-stage → 0.1.0

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/style.css ADDED
@@ -0,0 +1,990 @@
1
+ /* @watalabs/lasee-mditor — 편집기 모양. 모든 class 는 .mde 로 시작한다.
2
+ 색 · 글꼴은 아래 변수로 바꾼다(.mde 나 그 바깥에서 다시 정하면 된다). */
3
+
4
+ .mde {
5
+ --mde-font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
6
+ --mde-mono: ui-monospace, "SF Mono", "D2Coding", Menlo, Consolas, monospace;
7
+ --mde-bg: #ffffff;
8
+ --mde-bar: #fbfcfc;
9
+ --mde-fg: #1b2430;
10
+ --mde-muted: #5b6672;
11
+ --mde-line: #cdd4da;
12
+ --mde-hover: #e8ecef;
13
+ --mde-accent: #1387c9;
14
+ --mde-accent-ink: #0a6396;
15
+ --mde-accent-tint: #e1f2fb;
16
+ --mde-danger: #c8341f;
17
+ --mde-shade: #d9d9d9;
18
+ --mde-mark: #fff3a3;
19
+ --mde-code-bg: #f3f5f7;
20
+ --mde-radius: 6px;
21
+ --mde-doc-width: 170mm;
22
+ --mde-min-height: 320px;
23
+
24
+ /* 세로로 쌓는다 — 숨긴 줄(찾기 · 오류)이 빠져도 편집 영역이 남은 높이를 다 쓴다 */
25
+ display: flex;
26
+ flex-direction: column;
27
+ min-height: var(--mde-min-height);
28
+ height: 100%;
29
+ border: 1px solid var(--mde-line);
30
+ border-radius: var(--mde-radius);
31
+ background: var(--mde-bg);
32
+ color: var(--mde-fg);
33
+ font-family: var(--mde-font);
34
+ font-size: 15px;
35
+ line-height: 1.6;
36
+ overflow: hidden;
37
+ }
38
+
39
+ .mde *,
40
+ .mde *::before,
41
+ .mde *::after {
42
+ box-sizing: border-box;
43
+ }
44
+
45
+ .mde button,
46
+ .mde input,
47
+ .mde select,
48
+ .mde textarea {
49
+ font: inherit;
50
+ color: inherit;
51
+ }
52
+
53
+ .mde [hidden] {
54
+ display: none !important;
55
+ }
56
+
57
+ /* ───────── 도구 막대 ───────── */
58
+
59
+ .mde-toolbar,
60
+ .mde-bar,
61
+ .mde-findbar {
62
+ display: flex;
63
+ flex-wrap: wrap;
64
+ align-items: center;
65
+ gap: 2px;
66
+ padding: 5px 8px;
67
+ border-bottom: 1px solid var(--mde-line);
68
+ background: var(--mde-bar);
69
+ }
70
+
71
+ .mde-group,
72
+ .mde-slot {
73
+ display: inline-flex;
74
+ flex-wrap: wrap;
75
+ align-items: center;
76
+ gap: 2px;
77
+ }
78
+
79
+ .mde-slot:empty {
80
+ display: none;
81
+ }
82
+
83
+ .mde-sep {
84
+ flex: none;
85
+ width: 1px;
86
+ height: 18px;
87
+ margin: 0 4px;
88
+ background: var(--mde-line);
89
+ }
90
+
91
+ .mde-spacer {
92
+ flex: 1;
93
+ }
94
+
95
+ .mde-btn {
96
+ display: inline-flex;
97
+ align-items: center;
98
+ justify-content: center;
99
+ gap: 4px;
100
+ min-width: 30px;
101
+ height: 30px;
102
+ padding: 0 6px;
103
+ border: 0;
104
+ border-radius: 5px;
105
+ background: none;
106
+ color: inherit;
107
+ font-size: 14px;
108
+ line-height: 1;
109
+ text-decoration: none;
110
+ white-space: nowrap;
111
+ cursor: pointer;
112
+ }
113
+
114
+ .mde-btn:hover:not(:disabled) {
115
+ background: var(--mde-hover);
116
+ }
117
+
118
+ .mde-btn:disabled {
119
+ opacity: 0.35;
120
+ cursor: default;
121
+ }
122
+
123
+ .mde-btn[aria-pressed="true"],
124
+ .mde-btn[aria-expanded="true"] {
125
+ background: var(--mde-accent-tint);
126
+ color: var(--mde-accent-ink);
127
+ }
128
+
129
+ .mde-btn:focus-visible,
130
+ .mde-select:focus-visible,
131
+ .mde-input:focus-visible {
132
+ outline: 2px solid var(--mde-accent);
133
+ outline-offset: 1px;
134
+ }
135
+
136
+ .mde-btn.word {
137
+ padding: 0 8px;
138
+ font-size: 13px;
139
+ font-weight: 500;
140
+ }
141
+
142
+ .mde-btn.primary {
143
+ background: var(--mde-fg);
144
+ color: #fff;
145
+ }
146
+
147
+ .mde-btn.primary:hover:not(:disabled) {
148
+ background: #000;
149
+ }
150
+
151
+ .mde-btn.wide {
152
+ width: 100%;
153
+ justify-content: flex-start;
154
+ border: 1px dashed var(--mde-line);
155
+ }
156
+
157
+ .mde-glyph {
158
+ font-family: Georgia, "Times New Roman", serif;
159
+ font-size: 16px;
160
+ line-height: 1;
161
+ }
162
+
163
+ .mde-glyph.mde-md {
164
+ font-family: var(--mde-font);
165
+ font-size: 12px;
166
+ font-weight: 700;
167
+ letter-spacing: 0.02em;
168
+ }
169
+
170
+ .mde-glyph sup,
171
+ .mde-glyph sub {
172
+ font-size: 0.6em;
173
+ }
174
+
175
+ .mde-caret {
176
+ color: var(--mde-muted);
177
+ font-size: 9px;
178
+ }
179
+
180
+ .mde-select {
181
+ height: 30px;
182
+ padding: 0 2px 0 4px;
183
+ border: 1px solid var(--mde-line);
184
+ border-radius: 5px;
185
+ background: #fff;
186
+ font-size: 13.5px;
187
+ }
188
+
189
+ .mde-input {
190
+ height: 30px;
191
+ min-width: 0;
192
+ padding: 0 8px;
193
+ border: 1px solid var(--mde-line);
194
+ border-radius: 5px;
195
+ background: #fff;
196
+ font-size: 13.5px;
197
+ }
198
+
199
+ /* 팝업 */
200
+ .mde-menu {
201
+ position: relative;
202
+ display: inline-flex;
203
+ }
204
+
205
+ .mde-pop {
206
+ position: absolute;
207
+ z-index: 40;
208
+ top: calc(100% + 6px);
209
+ left: 0;
210
+ min-width: 200px;
211
+ padding: 8px;
212
+ border: 1px solid var(--mde-line);
213
+ border-radius: 8px;
214
+ background: #fff;
215
+ box-shadow: 0 10px 28px rgba(27, 36, 48, 0.16);
216
+ font-size: 14px;
217
+ }
218
+
219
+ .mde-pop.right {
220
+ left: auto;
221
+ right: 0;
222
+ }
223
+
224
+ .mde-row {
225
+ display: flex;
226
+ align-items: center;
227
+ gap: 6px;
228
+ }
229
+
230
+ .mde-menu-item {
231
+ display: flex;
232
+ align-items: center;
233
+ justify-content: space-between;
234
+ gap: 12px;
235
+ width: 100%;
236
+ padding: 7px 10px;
237
+ border: 0;
238
+ border-radius: 5px;
239
+ background: none;
240
+ font-size: 14px;
241
+ text-align: left;
242
+ cursor: pointer;
243
+ }
244
+
245
+ .mde-menu-item:hover {
246
+ background: var(--mde-hover);
247
+ }
248
+
249
+ .mde-menu-sep {
250
+ height: 1px;
251
+ margin: 6px 0;
252
+ background: var(--mde-line);
253
+ }
254
+
255
+ /* 색 */
256
+ .mde-color-glyph {
257
+ display: inline-flex;
258
+ flex-direction: column;
259
+ align-items: center;
260
+ padding: 1px 3px 0;
261
+ border-radius: 3px;
262
+ font-size: 15px;
263
+ line-height: 1;
264
+ }
265
+
266
+ .mde-color-glyph i {
267
+ display: block;
268
+ width: 15px;
269
+ height: 3px;
270
+ margin-top: 2px;
271
+ border-radius: 1px;
272
+ }
273
+
274
+ .mde-color-panel {
275
+ width: 222px;
276
+ }
277
+
278
+ .mde-palette {
279
+ display: grid;
280
+ grid-template-columns: repeat(7, 24px);
281
+ gap: 6px;
282
+ padding: 0 0 8px;
283
+ }
284
+
285
+ .mde-swatch {
286
+ width: 24px;
287
+ height: 24px;
288
+ padding: 0;
289
+ border: 1px solid rgba(27, 36, 48, 0.14);
290
+ border-radius: 50%;
291
+ cursor: pointer;
292
+ }
293
+
294
+ .mde-swatch.light,
295
+ .mde-swatch.none {
296
+ border-color: var(--mde-line);
297
+ }
298
+
299
+ .mde-swatch.none {
300
+ background: #fff linear-gradient(to top right, transparent calc(50% - 1px), #c00000 calc(50% - 1px), #c00000 calc(50% + 1px), transparent calc(50% + 1px));
301
+ }
302
+
303
+ .mde-swatch[aria-pressed="true"] {
304
+ box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--mde-fg);
305
+ }
306
+
307
+ .mde-swatch:disabled {
308
+ opacity: 0.35;
309
+ cursor: default;
310
+ }
311
+
312
+ .mde-hex-row {
313
+ display: flex;
314
+ align-items: center;
315
+ gap: 6px;
316
+ }
317
+
318
+ .mde-hex-row input[type="color"] {
319
+ flex: none;
320
+ width: 28px;
321
+ height: 28px;
322
+ padding: 0;
323
+ border: 1px solid var(--mde-line);
324
+ border-radius: 50%;
325
+ background: none;
326
+ cursor: pointer;
327
+ }
328
+
329
+ .mde-hex-row input[type="color"]::-webkit-color-swatch-wrapper {
330
+ padding: 0;
331
+ }
332
+
333
+ .mde-hex-row input[type="color"]::-webkit-color-swatch {
334
+ border: 0;
335
+ border-radius: 50%;
336
+ }
337
+
338
+ .mde-hex {
339
+ flex: 1;
340
+ min-width: 0;
341
+ height: 28px;
342
+ padding: 0 8px;
343
+ border: 1px solid var(--mde-line);
344
+ border-radius: 5px;
345
+ font: 13px var(--mde-mono);
346
+ }
347
+
348
+ .mde-swatch-row {
349
+ display: inline-flex;
350
+ align-items: center;
351
+ gap: 9px;
352
+ }
353
+
354
+ .mde-square {
355
+ width: 12px;
356
+ height: 12px;
357
+ border-radius: 3px;
358
+ }
359
+
360
+ /* 링크 · 그림 팝업 */
361
+ .mde-link-panel,
362
+ .mde-image-panel {
363
+ display: grid;
364
+ gap: 6px;
365
+ width: 300px;
366
+ }
367
+
368
+ .mde-field-error {
369
+ color: var(--mde-danger);
370
+ font-size: 12.5px;
371
+ line-height: 1.4;
372
+ }
373
+
374
+ /* 표 크기 */
375
+ .mde-grid {
376
+ display: grid;
377
+ gap: 2px;
378
+ }
379
+
380
+ .mde-grid-cell {
381
+ width: 16px;
382
+ height: 16px;
383
+ padding: 0;
384
+ border: 1px solid var(--mde-line);
385
+ border-radius: 2px;
386
+ background: #fff;
387
+ cursor: pointer;
388
+ }
389
+
390
+ .mde-grid-cell.on {
391
+ border-color: var(--mde-accent);
392
+ background: var(--mde-accent-tint);
393
+ }
394
+
395
+ .mde-grid-label {
396
+ margin-top: 6px;
397
+ color: var(--mde-muted);
398
+ font-size: 12.5px;
399
+ text-align: center;
400
+ }
401
+
402
+ /* 특수 문자 */
403
+ .mde-chars {
404
+ display: grid;
405
+ gap: 6px;
406
+ width: 292px;
407
+ max-height: 260px;
408
+ overflow: auto;
409
+ }
410
+
411
+ .mde-chars-group {
412
+ display: grid;
413
+ grid-template-columns: repeat(10, 1fr);
414
+ gap: 2px;
415
+ }
416
+
417
+ .mde-char {
418
+ height: 26px;
419
+ padding: 0;
420
+ border: 0;
421
+ border-radius: 4px;
422
+ background: none;
423
+ font-size: 15px;
424
+ cursor: pointer;
425
+ }
426
+
427
+ .mde-char:hover {
428
+ background: var(--mde-hover);
429
+ }
430
+
431
+ /* 정렬 */
432
+ .mde-align-panel {
433
+ display: flex;
434
+ gap: 2px;
435
+ }
436
+
437
+ .mde-pop:has(.mde-align-panel) {
438
+ min-width: 0;
439
+ padding: 4px;
440
+ }
441
+
442
+ /* 찾아 바꾸기 · 표 · 코드 도구 */
443
+ .mde-findbar .mde-input {
444
+ width: 180px;
445
+ }
446
+
447
+ .mde-find-count {
448
+ min-width: 56px;
449
+ color: var(--mde-muted);
450
+ font-size: 12.5px;
451
+ font-variant-numeric: tabular-nums;
452
+ }
453
+
454
+ .mde-check-label {
455
+ display: inline-flex;
456
+ align-items: center;
457
+ gap: 5px;
458
+ padding: 0 6px;
459
+ color: var(--mde-muted);
460
+ font-size: 13px;
461
+ white-space: nowrap;
462
+ }
463
+
464
+ .mde-bar {
465
+ background: var(--mde-accent-tint);
466
+ border-bottom-color: #c5e3f4;
467
+ }
468
+
469
+ .mde-bar-label {
470
+ margin-right: 6px;
471
+ color: var(--mde-accent-ink);
472
+ font-size: 12.5px;
473
+ font-weight: 600;
474
+ }
475
+
476
+ .mde-lang {
477
+ width: 130px;
478
+ font-family: var(--mde-mono);
479
+ }
480
+
481
+ .mde-error {
482
+ padding: 8px 12px;
483
+ border-bottom: 1px solid #f1c7c0;
484
+ background: #fbe9e6;
485
+ color: var(--mde-danger);
486
+ font-size: 13.5px;
487
+ }
488
+
489
+ /* ───────── 편집 · 미리보기 ───────── */
490
+
491
+ .mde-toolbar,
492
+ .mde-findbar,
493
+ .mde-context,
494
+ .mde-error,
495
+ .mde-status {
496
+ flex: none;
497
+ }
498
+
499
+ .mde-main {
500
+ flex: 1 1 auto;
501
+ display: grid;
502
+ grid-template-columns: minmax(0, 1fr);
503
+ min-height: 0;
504
+ }
505
+
506
+ .mde[data-preview="on"] .mde-main {
507
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
508
+ }
509
+
510
+ .mde-pane {
511
+ display: grid;
512
+ min-height: 0;
513
+ min-width: 0;
514
+ }
515
+
516
+ .mde-preview {
517
+ display: none;
518
+ border-left: 1px solid var(--mde-line);
519
+ background: #f6f8f9;
520
+ }
521
+
522
+ .mde[data-preview="on"] .mde-preview {
523
+ display: grid;
524
+ }
525
+
526
+ .mde-scroll {
527
+ min-height: 0;
528
+ overflow: auto;
529
+ padding: 24px 32px 64px;
530
+ }
531
+
532
+ .mde-mount {
533
+ height: 100%;
534
+ }
535
+
536
+ .mde .ProseMirror {
537
+ max-width: var(--mde-doc-width);
538
+ min-height: 100%;
539
+ margin: 0 auto;
540
+ outline: none;
541
+ white-space: pre-wrap;
542
+ word-wrap: break-word;
543
+ }
544
+
545
+ .mde .ProseMirror > :first-child,
546
+ .mde-preview-doc > :first-child,
547
+ .mde-preview-doc > section:first-child > :first-child {
548
+ margin-top: 0;
549
+ }
550
+
551
+ .mde-preview-doc {
552
+ max-width: var(--mde-doc-width);
553
+ margin: 0 auto;
554
+ }
555
+
556
+ .mde-source {
557
+ width: 100%;
558
+ height: 100%;
559
+ min-height: 0;
560
+ padding: 18px 22px;
561
+ border: 0;
562
+ outline: none;
563
+ resize: none;
564
+ background: #fff;
565
+ font: 13.5px/1.7 var(--mde-mono);
566
+ tab-size: 2;
567
+ }
568
+
569
+ .mde-status {
570
+ padding: 3px 12px;
571
+ border-top: 1px solid var(--mde-line);
572
+ background: var(--mde-bar);
573
+ color: var(--mde-muted);
574
+ font-size: 12px;
575
+ font-variant-numeric: tabular-nums;
576
+ text-align: right;
577
+ }
578
+
579
+ .mde-fullscreen {
580
+ position: fixed;
581
+ inset: 0;
582
+ z-index: 1000;
583
+ height: 100dvh;
584
+ border: 0;
585
+ border-radius: 0;
586
+ }
587
+
588
+ html.mde-noscroll,
589
+ html.mde-noscroll body {
590
+ overflow: hidden;
591
+ }
592
+
593
+ /* 편집기 안에서만 보이는 것 */
594
+ .mde .ProseMirror .selectedCell {
595
+ background-image: linear-gradient(rgba(19, 135, 201, 0.16), rgba(19, 135, 201, 0.16));
596
+ }
597
+
598
+ .mde .ProseMirror .tableWrapper {
599
+ margin-top: 0.75em;
600
+ overflow-x: auto;
601
+ }
602
+
603
+ .mde .ProseMirror .tableWrapper table {
604
+ margin-top: 0;
605
+ }
606
+
607
+ .mde .ProseMirror figure.md-image {
608
+ padding: 8px;
609
+ border: 1px solid transparent;
610
+ border-radius: var(--mde-radius);
611
+ }
612
+
613
+ .mde .ProseMirror figure.md-image.ProseMirror-selectednode,
614
+ .mde .ProseMirror .md-pagebreak.ProseMirror-selectednode,
615
+ .mde .ProseMirror hr.ProseMirror-selectednode {
616
+ outline: 2px solid var(--mde-accent);
617
+ outline-offset: 2px;
618
+ }
619
+
620
+ .mde .md-image-missing {
621
+ padding: 22px 12px;
622
+ border: 1px dashed var(--mde-line);
623
+ border-radius: var(--mde-radius);
624
+ color: var(--mde-muted);
625
+ font-size: 13px;
626
+ }
627
+
628
+ .mde .md-image-caption {
629
+ display: block;
630
+ width: 100%;
631
+ margin-top: 6px;
632
+ padding: 3px 6px;
633
+ border: 1px solid transparent;
634
+ border-radius: 4px;
635
+ background: transparent;
636
+ font-size: 0.9em;
637
+ color: var(--mde-muted);
638
+ text-align: center;
639
+ }
640
+
641
+ .mde .md-image-caption:hover,
642
+ .mde .md-image-caption:focus {
643
+ border-color: var(--mde-line);
644
+ background: #fff;
645
+ }
646
+
647
+ .mde .ProseMirror .md-check {
648
+ cursor: pointer;
649
+ }
650
+
651
+ .mde .ProseMirror a {
652
+ cursor: text;
653
+ }
654
+
655
+ /* 자동 쪽 나눔 — 쪽이 넘어가는 자리(쓰는 쪽이 넘긴 쪽 배치) */
656
+ .mde .mde-pagemark {
657
+ position: relative;
658
+ height: 0;
659
+ margin: 1.1em 0;
660
+ border-top: 1.5px dashed var(--mde-accent);
661
+ font-family: var(--mde-font);
662
+ user-select: none;
663
+ pointer-events: none;
664
+ }
665
+
666
+ .mde .mde-pagemark > span {
667
+ position: absolute;
668
+ right: 0;
669
+ top: -0.85em;
670
+ padding: 0 0.55em;
671
+ border-radius: 999px;
672
+ background: var(--mde-accent);
673
+ color: #fff;
674
+ font-size: 11px;
675
+ font-weight: 600;
676
+ line-height: 1.7;
677
+ font-variant-numeric: tabular-nums;
678
+ }
679
+
680
+ .mde .md-list > .mde-pagemark {
681
+ margin: 0.7em 0;
682
+ }
683
+
684
+ .mde tr.mde-pagemark-row > td {
685
+ height: 0;
686
+ padding: 0 !important;
687
+ border: 0 !important;
688
+ background: none !important;
689
+ }
690
+
691
+ .mde tr.mde-pagemark-row .mde-pagemark {
692
+ margin: 0.6em 0;
693
+ }
694
+
695
+ .mde-find-hit {
696
+ background: rgba(255, 213, 0, 0.45);
697
+ border-radius: 2px;
698
+ }
699
+
700
+ .mde-find-hit.current {
701
+ background: rgba(255, 140, 0, 0.6);
702
+ }
703
+
704
+ .mde .ProseMirror p.is-editor-empty:first-child::before {
705
+ content: attr(data-placeholder);
706
+ float: left;
707
+ height: 0;
708
+ color: #a9b2ba;
709
+ pointer-events: none;
710
+ }
711
+
712
+ @media (max-width: 720px) {
713
+ .mde[data-preview="on"] .mde-main {
714
+ grid-template-columns: minmax(0, 1fr);
715
+ grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
716
+ }
717
+
718
+ .mde-preview {
719
+ border-left: 0;
720
+ border-top: 1px solid var(--mde-line);
721
+ }
722
+
723
+ .mde-scroll {
724
+ padding: 16px 16px 48px;
725
+ }
726
+
727
+ .mde-findbar .mde-input {
728
+ width: 130px;
729
+ }
730
+ }
731
+
732
+ /* ───────── 문서 모양(.mde-doc) — contentClass 를 주지 않았을 때 ───────── */
733
+
734
+ .mde-doc {
735
+ font-size: 10.5pt;
736
+ line-height: 1.6;
737
+ color: var(--mde-fg, #1b2430);
738
+ }
739
+
740
+ .mde-doc h1 {
741
+ margin: 0 0 0.5em;
742
+ font-size: 1.9em;
743
+ line-height: 1.32;
744
+ }
745
+
746
+ .mde-doc h2 {
747
+ margin: 1.1em 0 0.6em;
748
+ padding-bottom: 0.12em;
749
+ border-bottom: 0.8pt solid currentColor;
750
+ font-size: 1.33em;
751
+ line-height: 1.43;
752
+ }
753
+
754
+ .mde-doc h3 {
755
+ margin: 0.9em 0 0.2em;
756
+ font-size: 1.1em;
757
+ line-height: 1.55;
758
+ }
759
+
760
+ .mde-doc p {
761
+ margin: 0.75em 0 0;
762
+ }
763
+
764
+ .mde-doc h3 + p,
765
+ .mde-doc h3 + ul,
766
+ .mde-doc h3 + pre,
767
+ .mde-doc h3 + .md-list {
768
+ margin-top: 0;
769
+ }
770
+
771
+ .mde-doc .md-list {
772
+ margin: 0.75em 0 0;
773
+ padding: 0;
774
+ list-style: none;
775
+ }
776
+
777
+ .mde-doc .md-list > li {
778
+ position: relative;
779
+ margin: 0 0 0.15em;
780
+ padding-left: 1.3em;
781
+ }
782
+
783
+ .mde-doc .md-list > li::before {
784
+ content: "•";
785
+ position: absolute;
786
+ left: 0.3em;
787
+ }
788
+
789
+ .mde-doc .md-list > [data-level="1"] {
790
+ margin-left: 1.3em;
791
+ }
792
+ .mde-doc .md-list > [data-level="2"] {
793
+ margin-left: 2.6em;
794
+ }
795
+ .mde-doc .md-list > [data-level="3"] {
796
+ margin-left: 3.9em;
797
+ }
798
+ .mde-doc .md-list > li[data-level="1"]::before {
799
+ content: "–";
800
+ }
801
+ .mde-doc .md-list > li[data-level="2"]::before,
802
+ .mde-doc .md-list > li[data-level="3"]::before {
803
+ content: "·";
804
+ }
805
+
806
+ .mde-doc .md-list > li[data-ordered]:not([data-checked]) {
807
+ padding-left: 1.9em;
808
+ }
809
+
810
+ .mde-doc .md-list > li[data-ordered]:not([data-checked])::before {
811
+ content: attr(data-num) ".";
812
+ left: 0;
813
+ width: 1.6em;
814
+ text-align: right;
815
+ font-variant-numeric: tabular-nums;
816
+ }
817
+
818
+ .mde-doc .md-list > li[data-checked]::before {
819
+ content: none;
820
+ }
821
+
822
+ .mde-doc .md-list > li[data-checked] {
823
+ padding-left: 1.5em;
824
+ }
825
+
826
+ .mde-doc .md-check {
827
+ position: absolute;
828
+ left: 0.1em;
829
+ top: 0.32em;
830
+ width: 0.95em;
831
+ height: 0.95em;
832
+ border: 1.2px solid currentColor;
833
+ border-radius: 2px;
834
+ background: #fff;
835
+ }
836
+
837
+ .mde-doc li[data-checked="true"] > .md-check {
838
+ background: currentColor;
839
+ }
840
+
841
+ .mde-doc li[data-checked="true"] > .md-check::after {
842
+ content: "";
843
+ position: absolute;
844
+ left: 0.27em;
845
+ top: 0.06em;
846
+ width: 0.28em;
847
+ height: 0.55em;
848
+ border: solid #fff;
849
+ border-width: 0 0.13em 0.13em 0;
850
+ transform: rotate(45deg);
851
+ }
852
+
853
+ .mde-doc li[data-checked="true"] > .md-item-body {
854
+ color: var(--mde-muted, #5b6672);
855
+ text-decoration: line-through;
856
+ }
857
+
858
+ .mde-doc table {
859
+ width: 100%;
860
+ margin: 0.75em 0 0;
861
+ border-collapse: collapse;
862
+ font-size: 0.9em;
863
+ line-height: 1.45;
864
+ }
865
+
866
+ .mde-doc h3 + table,
867
+ .mde-doc h3 + .tableWrapper > table {
868
+ margin-top: 0.35em;
869
+ }
870
+
871
+ .mde-doc th,
872
+ .mde-doc td {
873
+ padding: 3.5pt 5pt;
874
+ border: 0.5pt solid #9aa3ad;
875
+ vertical-align: middle;
876
+ text-align: left;
877
+ }
878
+
879
+ .mde-doc th {
880
+ background: #eef1f4;
881
+ font-weight: 700;
882
+ text-align: center;
883
+ }
884
+
885
+ .mde-doc td p,
886
+ .mde-doc th p {
887
+ margin: 0;
888
+ }
889
+
890
+ .mde-doc .md-note {
891
+ margin: 0.3em 0 0;
892
+ padding: 0;
893
+ border: 0;
894
+ font-size: 0.9em;
895
+ line-height: 1.5;
896
+ color: var(--mde-muted, #5b6672);
897
+ }
898
+
899
+ .mde-doc figure.md-image {
900
+ margin: 0.75em 0 0;
901
+ text-align: center;
902
+ }
903
+
904
+ .mde-doc figure.md-image img {
905
+ max-width: 100%;
906
+ max-height: 110mm;
907
+ vertical-align: top;
908
+ }
909
+
910
+ .mde-doc figcaption {
911
+ margin-top: 0.35em;
912
+ font-size: 0.9em;
913
+ color: var(--mde-muted, #5b6672);
914
+ }
915
+
916
+ .mde-doc .md-shade {
917
+ background: var(--mde-shade, #d9d9d9);
918
+ color: inherit;
919
+ }
920
+
921
+ .mde-doc .md-mark {
922
+ background: var(--mde-mark, #fff3a3);
923
+ color: inherit;
924
+ }
925
+
926
+ .mde-doc a {
927
+ color: #1f4e9b;
928
+ text-decoration: underline;
929
+ }
930
+
931
+ .mde-doc code {
932
+ padding: 0.08em 0.3em;
933
+ border-radius: 3px;
934
+ background: var(--mde-code-bg, #f3f5f7);
935
+ font-family: var(--mde-mono, monospace);
936
+ font-size: 0.92em;
937
+ }
938
+
939
+ .mde-doc pre {
940
+ margin: 0.75em 0 0;
941
+ padding: 0.7em 0.9em;
942
+ border: 1px solid #e3e7eb;
943
+ border-radius: 4px;
944
+ background: var(--mde-code-bg, #f3f5f7);
945
+ font-family: var(--mde-mono, monospace);
946
+ font-size: 0.88em;
947
+ line-height: 1.5;
948
+ white-space: pre-wrap;
949
+ word-break: break-word;
950
+ overflow-x: auto;
951
+ }
952
+
953
+ .mde-doc pre code {
954
+ padding: 0;
955
+ background: none;
956
+ font-size: inherit;
957
+ }
958
+
959
+ .mde-doc hr {
960
+ height: 0;
961
+ margin: 1em 0 0.25em;
962
+ border: 0;
963
+ border-top: 0.8pt solid #9aa3ad;
964
+ }
965
+
966
+ .mde-doc .md-pagebreak {
967
+ position: relative;
968
+ height: 0;
969
+ margin: 1.2em 0;
970
+ border-top: 1.5px dashed var(--mde-accent, #1387c9);
971
+ }
972
+
973
+ .mde-doc .md-pagebreak::after {
974
+ content: attr(data-label);
975
+ position: absolute;
976
+ left: 50%;
977
+ top: -0.8em;
978
+ transform: translateX(-50%);
979
+ padding: 0 0.6em;
980
+ border-radius: 999px;
981
+ background: var(--mde-accent, #1387c9);
982
+ color: #fff;
983
+ font-size: 11px;
984
+ font-weight: 600;
985
+ line-height: 1.6;
986
+ }
987
+
988
+ .mde-doc .md-pagebreak:not([data-label])::after {
989
+ content: "⋯";
990
+ }