@eworkbase/sdk 0.3.5 → 0.4.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,2376 @@
1
+ /*!
2
+ * Vditor v4.0.1 - A markdown editor written in TypeScript.
3
+ *
4
+ * MIT License
5
+ *
6
+ * Copyright (c) 2018-present B3log 开源, b3log.org
7
+ *
8
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ * of this software and associated documentation files (the "Software"), to deal
10
+ * in the Software without restriction, including without limitation the rights
11
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ * copies of the Software, and to permit persons to whom the Software is
13
+ * furnished to do so, subject to the following conditions:
14
+ *
15
+ * The above copyright notice and this permission notice shall be included in all
16
+ * copies or substantial portions of the Software.
17
+ *
18
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
+ * SOFTWARE.
25
+ *
26
+ */
27
+ /*!
28
+ * Vditor v4.0.1 - A markdown editor written in TypeScript.
29
+ *
30
+ * MIT License
31
+ *
32
+ * Copyright (c) 2018-present B3log 开源, b3log.org
33
+ *
34
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
35
+ * of this software and associated documentation files (the "Software"), to deal
36
+ * in the Software without restriction, including without limitation the rights
37
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
38
+ * copies of the Software, and to permit persons to whom the Software is
39
+ * furnished to do so, subject to the following conditions:
40
+ *
41
+ * The above copyright notice and this permission notice shall be included in all
42
+ * copies or substantial portions of the Software.
43
+ *
44
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
45
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
46
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
47
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
48
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
49
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
50
+ * SOFTWARE.
51
+ *
52
+ */
53
+ .vditor {
54
+ --border-color: #d1d5da;
55
+ --second-color: #5860695c;
56
+ --panel-background-color: #fff;
57
+ --panel-shadow: 0 1px 2px #0003;
58
+ --toolbar-background-color: #f6f8fa;
59
+ --toolbar-icon-color: #586069;
60
+ --toolbar-icon-hover-color: #4285f4;
61
+ --toolbar-height: 35px;
62
+ --toolbar-divider-margin-top: 8px;
63
+ --textarea-background-color: #fafbfc;
64
+ --textarea-text-color: #24292e;
65
+ --resize-icon-color: var(--toolbar-icon-color);
66
+ --resize-background-color: var(--toolbar-background-color);
67
+ --resize-hover-icon-color: var(--panel-background-color);
68
+ --resize-hover-background-color: var(--toolbar-icon-hover-color);
69
+ --count-background-color: #1b1f230d;
70
+ --heading-border-color: #eaecef;
71
+ --blockquote-color: #6a737d;
72
+ --blockquote-border-color: #e0e0e0;
73
+ --blockquote-text-color: #5f6368;
74
+ --callout-note-color: #3575f0;
75
+ --callout-tip-color: #65b84d;
76
+ --callout-important-color: #8957e5;
77
+ --callout-warning-color: #ff9632;
78
+ --callout-caution-color: #d23f31;
79
+ --ir-heading-color: #660e7a;
80
+ --ir-title-color: gray;
81
+ --ir-bi-color: #0033b3;
82
+ --ir-link-color: green;
83
+ --ir-bracket-color: #00f;
84
+ --ir-paren-color: green;
85
+ }
86
+
87
+ .vditor--dark {
88
+ --border-color: #141414;
89
+ --second-color: #b9b9b95c;
90
+ --panel-background-color: #24292e;
91
+ --panel-shadow: 0 1px 2px #fff3;
92
+ --toolbar-background-color: #1d2125;
93
+ --toolbar-icon-color: #b9b9b9;
94
+ --toolbar-icon-hover-color: #fff;
95
+ --textarea-background-color: #2f363d;
96
+ --textarea-text-color: #d1d5da;
97
+ --resize-icon-color: var(--border-color);
98
+ --resize-background-color: var(--second-color);
99
+ --resize-hover-icon-color: var(--toolbar-icon-hover-color);
100
+ --resize-hover-background-color: #b9b9b9db;
101
+ --count-background-color: #4285f45c;
102
+ --heading-border-color: var(--textarea-text-color);
103
+ --blockquote-color: var(--toolbar-icon-color);
104
+ --blockquote-border-color: #e6e6e61a;
105
+ --blockquote-text-color: #9aa0a6;
106
+ --callout-note-color: #3575f0;
107
+ --callout-tip-color: #65b84d;
108
+ --callout-important-color: #b388ff;
109
+ --callout-warning-color: #ff9632;
110
+ --callout-caution-color: #d23f31;
111
+ --ir-heading-color: #9876aa;
112
+ --ir-title-color: gray;
113
+ --ir-bi-color: #cc7832;
114
+ --ir-link-color: #ffc66d;
115
+ --ir-bracket-color: #287bde;
116
+ --ir-paren-color: #6a8759;
117
+ }
118
+
119
+ @keyframes tooltip-appear {
120
+ from {
121
+ opacity: 0;
122
+ }
123
+
124
+ to {
125
+ opacity: 1;
126
+ }
127
+ }
128
+
129
+ .vditor-tooltipped {
130
+ cursor: pointer;
131
+ position: relative;
132
+ }
133
+
134
+ .vditor-tooltipped:after {
135
+ z-index: 1000000;
136
+ -webkit-font-smoothing: subpixel-antialiased;
137
+ color: #fff;
138
+ text-align: center;
139
+ text-shadow: none;
140
+ text-transform: none;
141
+ letter-spacing: normal;
142
+ word-wrap: break-word;
143
+ white-space: pre;
144
+ pointer-events: none;
145
+ content: attr(aria-label);
146
+ opacity: 0;
147
+ background: #3b3e43;
148
+ border-radius: 3px;
149
+ padding: 5px 8px;
150
+ font-size: 11px;
151
+ font-weight: normal;
152
+ line-height: 16px;
153
+ text-decoration: none;
154
+ display: none;
155
+ position: absolute;
156
+ }
157
+
158
+ .vditor-tooltipped:before {
159
+ z-index: 1000001;
160
+ color: #3b3e43;
161
+ pointer-events: none;
162
+ content: "";
163
+ opacity: 0;
164
+ border: 5px solid #0000;
165
+ width: 0;
166
+ height: 0;
167
+ display: none;
168
+ position: absolute;
169
+ }
170
+
171
+ .vditor-tooltipped--hover:before, .vditor-tooltipped--hover:after, .vditor-tooltipped:hover:before, .vditor-tooltipped:hover:after, .vditor-tooltipped:active:before, .vditor-tooltipped:active:after, .vditor-tooltipped:focus:before, .vditor-tooltipped:focus:after {
172
+ text-decoration: none;
173
+ animation-name: tooltip-appear;
174
+ animation-duration: .15s;
175
+ animation-timing-function: ease-in;
176
+ animation-fill-mode: forwards;
177
+ display: inline-block;
178
+ }
179
+
180
+ .vditor-tooltipped__s:after, .vditor-tooltipped__se:after, .vditor-tooltipped__sw:after {
181
+ margin-top: 5px;
182
+ top: 100%;
183
+ right: 50%;
184
+ }
185
+
186
+ .vditor-tooltipped__s:before, .vditor-tooltipped__se:before, .vditor-tooltipped__sw:before {
187
+ border-bottom-color: #3b3e43;
188
+ margin-right: -5px;
189
+ top: auto;
190
+ bottom: -5px;
191
+ right: 50%;
192
+ }
193
+
194
+ .vditor-tooltipped__se:after {
195
+ margin-left: -15px;
196
+ left: 50%;
197
+ right: auto;
198
+ }
199
+
200
+ .vditor-tooltipped__sw:after {
201
+ margin-right: -15px;
202
+ }
203
+
204
+ .vditor-tooltipped__n:after, .vditor-tooltipped__ne:after, .vditor-tooltipped__nw:after {
205
+ margin-bottom: 5px;
206
+ bottom: 100%;
207
+ right: 50%;
208
+ }
209
+
210
+ .vditor-tooltipped__n:before, .vditor-tooltipped__ne:before, .vditor-tooltipped__nw:before {
211
+ border-top-color: #3b3e43;
212
+ margin-right: -5px;
213
+ top: -5px;
214
+ bottom: auto;
215
+ right: 50%;
216
+ }
217
+
218
+ .vditor-tooltipped__ne:after {
219
+ margin-left: -15px;
220
+ left: 50%;
221
+ right: auto;
222
+ }
223
+
224
+ .vditor-tooltipped__nw:after {
225
+ margin-right: -15px;
226
+ }
227
+
228
+ .vditor-tooltipped__s:after, .vditor-tooltipped__n:after {
229
+ transform: translateX(50%);
230
+ }
231
+
232
+ .vditor-tooltipped__w:after {
233
+ margin-right: 5px;
234
+ bottom: 50%;
235
+ right: 100%;
236
+ transform: translateY(50%);
237
+ }
238
+
239
+ .vditor-tooltipped__w:before {
240
+ border-left-color: #3b3e43;
241
+ margin-top: -5px;
242
+ top: 50%;
243
+ bottom: 50%;
244
+ left: -5px;
245
+ }
246
+
247
+ .vditor-tooltipped__e:after {
248
+ margin-left: 5px;
249
+ bottom: 50%;
250
+ left: 100%;
251
+ transform: translateY(50%);
252
+ }
253
+
254
+ .vditor-tooltipped__e:before {
255
+ border-right-color: #3b3e43;
256
+ margin-top: -5px;
257
+ top: 50%;
258
+ bottom: 50%;
259
+ right: -5px;
260
+ }
261
+
262
+ @media screen and (width <= 520px) {
263
+ .vditor-tooltipped:before, .vditor-tooltipped:after {
264
+ content: none;
265
+ }
266
+ }
267
+
268
+ @keyframes scale-in {
269
+ 0% {
270
+ opacity: 0;
271
+ transform: scale(.5);
272
+ }
273
+
274
+ 100% {
275
+ opacity: 1;
276
+ transform: scale(1);
277
+ }
278
+ }
279
+
280
+ .vditor-panel {
281
+ background-color: var(--panel-background-color);
282
+ box-shadow: var(--panel-shadow);
283
+ z-index: 3;
284
+ -webkit-user-select: none;
285
+ -moz-user-select: none;
286
+ user-select: none;
287
+ min-width: 80px;
288
+ max-width: 320px;
289
+ color: var(--toolbar-icon-color);
290
+ border-radius: 3px;
291
+ padding: 5px;
292
+ font-size: 14px;
293
+ animation-name: scale-in;
294
+ animation-duration: .15s;
295
+ animation-timing-function: cubic-bezier(.2, 0, .13, 1.5);
296
+ display: none;
297
+ position: absolute;
298
+ }
299
+
300
+ .vditor-panel--none {
301
+ white-space: nowrap;
302
+ opacity: .86;
303
+ min-width: auto;
304
+ max-width: none;
305
+ padding: 0;
306
+ animation: none;
307
+ }
308
+
309
+ .vditor-panel--arrow:before {
310
+ pointer-events: none;
311
+ content: " ";
312
+ border: 7px solid #0000;
313
+ border-bottom-color: var(--panel-background-color);
314
+ width: 0;
315
+ height: 0;
316
+ position: absolute;
317
+ top: -14px;
318
+ left: 5px;
319
+ }
320
+
321
+ .vditor-panel--left {
322
+ right: 0;
323
+ }
324
+
325
+ .vditor-panel--left.vditor-panel--arrow:before {
326
+ left: auto;
327
+ right: 5px;
328
+ }
329
+
330
+ .vditor-input {
331
+ background-color: var(--panel-background-color);
332
+ color: var(--textarea-text-color);
333
+ border: 0;
334
+ padding: 3px 5px;
335
+ font-size: 12px;
336
+ }
337
+
338
+ .vditor-input:focus {
339
+ background-color: var(--toolbar-background-color);
340
+ outline: none;
341
+ }
342
+
343
+ .vditor-icon {
344
+ color: var(--toolbar-icon-color);
345
+ cursor: pointer;
346
+ float: left;
347
+ box-sizing: border-box;
348
+ background-color: #0000;
349
+ border: 0;
350
+ width: 23px;
351
+ height: 21px;
352
+ padding: 4px 5px;
353
+ }
354
+
355
+ .vditor-icon:hover, .vditor-icon--current {
356
+ color: var(--toolbar-icon-hover-color);
357
+ background-color: #0000;
358
+ }
359
+
360
+ .vditor-icon:focus {
361
+ outline: none;
362
+ }
363
+
364
+ .vditor-icon svg {
365
+ float: left;
366
+ fill: currentColor;
367
+ pointer-events: none;
368
+ width: 13px !important;
369
+ height: 13px !important;
370
+ }
371
+
372
+ .vditor-toolbar {
373
+ background-color: var(--toolbar-background-color);
374
+ border-bottom: 1px solid var(--border-color);
375
+ padding: 0 5px;
376
+ line-height: 1;
377
+ }
378
+
379
+ .vditor-toolbar--pin {
380
+ z-index: 1;
381
+ position: sticky;
382
+ top: 0;
383
+ }
384
+
385
+ .vditor-toolbar--hide {
386
+ height: 5px;
387
+ transition: all .15s ease-in-out;
388
+ overflow: hidden;
389
+ }
390
+
391
+ .vditor-toolbar--hide:hover {
392
+ background-color: var(--toolbar-background-color);
393
+ height: auto;
394
+ overflow: visible;
395
+ }
396
+
397
+ .vditor-toolbar__item {
398
+ float: left;
399
+ position: relative;
400
+ }
401
+
402
+ .vditor-toolbar__item .vditor-tooltipped {
403
+ color: var(--toolbar-icon-color);
404
+ height: var(--toolbar-height);
405
+ box-sizing: border-box;
406
+ background-color: #0000;
407
+ border: 0;
408
+ width: 25px;
409
+ padding: 10px 5px;
410
+ font-size: 0;
411
+ }
412
+
413
+ .vditor-toolbar__item .vditor-tooltipped:focus {
414
+ cursor: pointer;
415
+ color: var(--toolbar-icon-hover-color);
416
+ outline: none;
417
+ }
418
+
419
+ .vditor-toolbar__item svg {
420
+ fill: currentColor;
421
+ stroke-width: 0;
422
+ stroke: currentColor;
423
+ width: 15px;
424
+ height: 15px;
425
+ display: inline-block;
426
+ }
427
+
428
+ .vditor-toolbar__item input {
429
+ width: 25px;
430
+ height: var(--toolbar-height);
431
+ cursor: pointer;
432
+ opacity: .001;
433
+ position: absolute;
434
+ top: 0;
435
+ left: 0;
436
+ overflow: hidden;
437
+ }
438
+
439
+ .vditor-toolbar__divider {
440
+ float: left;
441
+ height: calc(var(--toolbar-height) - (var(--toolbar-divider-margin-top) * 2));
442
+ border-left: 1px solid var(--second-color);
443
+ margin: var(--toolbar-divider-margin-top) 8px;
444
+ }
445
+
446
+ .vditor-toolbar__br {
447
+ width: 100%;
448
+ height: 0 !important;
449
+ padding: 0 !important;
450
+ }
451
+
452
+ .vditor-menu--current {
453
+ color: var(--toolbar-icon-hover-color) !important;
454
+ }
455
+
456
+ .vditor-menu--disabled {
457
+ color: var(--second-color) !important;
458
+ cursor: not-allowed !important;
459
+ }
460
+
461
+ .vditor-emojis {
462
+ display: inline-block;
463
+ overflow: auto;
464
+ }
465
+
466
+ .vditor-emojis::-webkit-scrollbar {
467
+ display: none;
468
+ }
469
+
470
+ .vditor-emojis__tip {
471
+ width: 200px;
472
+ min-width: 1px;
473
+ color: var(--toolbar-icon-color);
474
+ white-space: nowrap;
475
+ text-overflow: ellipsis;
476
+ flex: 1;
477
+ margin-right: 10px;
478
+ overflow: hidden;
479
+ }
480
+
481
+ .vditor-emojis__tail {
482
+ color: var(--toolbar-icon-color);
483
+ margin-top: 5px;
484
+ font-size: 12px;
485
+ display: flex;
486
+ }
487
+
488
+ .vditor-emojis__tail a {
489
+ color: var(--toolbar-icon-color);
490
+ text-decoration: none;
491
+ }
492
+
493
+ .vditor-emojis__tail a:hover {
494
+ color: var(--toolbar-icon-hover-color);
495
+ }
496
+
497
+ .vditor-emojis button {
498
+ cursor: pointer;
499
+ float: left;
500
+ text-align: center;
501
+ box-sizing: border-box;
502
+ background-color: #0000;
503
+ border: 0;
504
+ border-radius: 3px;
505
+ width: 30px;
506
+ height: 30px;
507
+ margin: 0;
508
+ padding: 3px;
509
+ font-size: 16px;
510
+ line-height: 26px;
511
+ transition: all .15s ease-in-out;
512
+ overflow: hidden;
513
+ }
514
+
515
+ .vditor-emojis button:focus {
516
+ outline: none;
517
+ }
518
+
519
+ .vditor-emojis button:hover .vditor-emojis__icon {
520
+ display: inline-block;
521
+ transform: scale(1.2);
522
+ }
523
+
524
+ .vditor-emojis img {
525
+ float: left;
526
+ width: 20px;
527
+ height: 20px;
528
+ margin: 3px 0 0 3px;
529
+ }
530
+
531
+ @media screen and (width <= 520px) {
532
+ .vditor-toolbar__item {
533
+ padding: 0 12px;
534
+ }
535
+
536
+ .vditor-panel--left.vditor-panel--arrow:before {
537
+ right: 17px;
538
+ }
539
+ }
540
+
541
+ @media (hover: hover) and (pointer: fine) {
542
+ .vditor-toolbar__item .vditor-tooltipped:hover {
543
+ color: var(--toolbar-icon-hover-color);
544
+ }
545
+ }
546
+
547
+ @keyframes slideInDown {
548
+ from {
549
+ visibility: visible;
550
+ transform: translate3d(0, -100%, 0);
551
+ }
552
+
553
+ to {
554
+ transform: translate3d(0, 0, 0);
555
+ }
556
+ }
557
+
558
+ .vditor {
559
+ border: 1px solid var(--border-color);
560
+ box-sizing: border-box;
561
+ border-radius: 3px;
562
+ flex-direction: column;
563
+ font-family: Helvetica Neue, Luxi Sans, DejaVu Sans, Hiragino Sans GB, Microsoft Yahei, sans-serif, Apple Color Emoji, Segoe UI Emoji, Noto Color Emoji, Segoe UI Symbol, Android Emoji, EmojiSymbols;
564
+ display: flex;
565
+ }
566
+
567
+ .vditor--fullscreen {
568
+ z-index: 90;
569
+ border-radius: 0;
570
+ position: fixed;
571
+ top: 0;
572
+ left: 0;
573
+ width: 100% !important;
574
+ height: 100vh !important;
575
+ }
576
+
577
+ .vditor-content {
578
+ flex: 1;
579
+ min-width: 1px;
580
+ min-height: 60px;
581
+ display: flex;
582
+ position: relative;
583
+ }
584
+
585
+ .vditor-preview {
586
+ border-left: 1px solid var(--border-color);
587
+ box-sizing: border-box;
588
+ background-color: var(--textarea-background-color);
589
+ border-radius: 0 0 3px;
590
+ flex: 1;
591
+ min-width: 1px;
592
+ margin-left: -1px;
593
+ overflow: auto;
594
+ }
595
+
596
+ .vditor-preview::-webkit-scrollbar {
597
+ display: none;
598
+ }
599
+
600
+ .vditor-preview__action {
601
+ text-align: center;
602
+ background-color: var(--toolbar-background-color);
603
+ padding: 10px;
604
+ }
605
+
606
+ .vditor-preview__action button {
607
+ background-color: var(--toolbar-background-color);
608
+ color: var(--toolbar-icon-color);
609
+ cursor: pointer;
610
+ border: 0;
611
+ margin: 0 10px;
612
+ padding: 0 7px;
613
+ font-size: 12px;
614
+ line-height: 20px;
615
+ }
616
+
617
+ .vditor-preview__action button.vditor-preview__action--current, .vditor-preview__action button:hover {
618
+ color: var(--toolbar-icon-hover-color);
619
+ background-color: var(--toolbar-background-color);
620
+ }
621
+
622
+ .vditor-preview__action button:focus {
623
+ outline: none;
624
+ }
625
+
626
+ .vditor-preview__action button svg {
627
+ fill: currentColor;
628
+ vertical-align: middle;
629
+ width: 15px;
630
+ height: 15px;
631
+ }
632
+
633
+ .vditor-preview > .vditor-reset {
634
+ margin: 0 auto;
635
+ padding: 10px;
636
+ }
637
+
638
+ .vditor-preview img:not(.emoji) {
639
+ cursor: pointer;
640
+ }
641
+
642
+ .vditor-devtools {
643
+ background-color: var(--textarea-background-color);
644
+ min-width: 1px;
645
+ box-shadow: inset 1px 0 var(--border-color);
646
+ box-sizing: border-box;
647
+ border-radius: 0 0 3px;
648
+ flex: 1;
649
+ padding: 10px;
650
+ display: none;
651
+ overflow: auto;
652
+ }
653
+
654
+ .vditor-counter {
655
+ color: var(--toolbar-icon-color);
656
+ background-color: var(--count-background-color);
657
+ -webkit-user-select: none;
658
+ -moz-user-select: none;
659
+ user-select: none;
660
+ float: right;
661
+ border-radius: 3px;
662
+ margin: 8px 3px 0 0;
663
+ padding: 3px;
664
+ font-size: 12px;
665
+ }
666
+
667
+ .vditor-counter--error {
668
+ color: #d23f31;
669
+ background-color: #d23f311a;
670
+ }
671
+
672
+ .vditor-resize {
673
+ cursor: row-resize;
674
+ -webkit-user-select: none;
675
+ -moz-user-select: none;
676
+ user-select: none;
677
+ width: 100%;
678
+ padding: 3px 0;
679
+ position: absolute;
680
+ }
681
+
682
+ .vditor-resize--top {
683
+ top: -3px;
684
+ }
685
+
686
+ .vditor-resize--bottom {
687
+ bottom: -3px;
688
+ }
689
+
690
+ .vditor-resize > div {
691
+ background-color: var(--resize-background-color);
692
+ height: 3px;
693
+ transition: all .15s ease-in-out;
694
+ }
695
+
696
+ .vditor-resize:hover > div, .vditor-resize--selected > div {
697
+ background-color: var(--resize-hover-background-color);
698
+ }
699
+
700
+ .vditor-resize:hover svg, .vditor-resize--selected svg {
701
+ color: var(--resize-hover-icon-color);
702
+ }
703
+
704
+ .vditor-resize svg {
705
+ fill: currentColor;
706
+ stroke-width: 0;
707
+ stroke: currentColor;
708
+ width: 13px;
709
+ height: 3px;
710
+ color: var(--resize-icon-color);
711
+ margin: 0 auto;
712
+ display: block;
713
+ }
714
+
715
+ .vditor-upload {
716
+ background-color: #4285f4;
717
+ height: 3px;
718
+ transition: all .15s ease-in-out;
719
+ position: absolute;
720
+ top: -2px;
721
+ left: 0;
722
+ }
723
+
724
+ .vditor-tip {
725
+ z-index: 5;
726
+ font-size: 12px;
727
+ animation-duration: .15s;
728
+ animation-fill-mode: both;
729
+ position: absolute;
730
+ top: 10px;
731
+ left: 50%;
732
+ }
733
+
734
+ .vditor-tip--show {
735
+ animation-name: slideInDown;
736
+ display: block;
737
+ }
738
+
739
+ .vditor-tip__content {
740
+ text-align: left;
741
+ background: var(--toolbar-background-color);
742
+ color: var(--toolbar-icon-color);
743
+ max-width: 100%;
744
+ box-shadow: var(--panel-shadow);
745
+ border-radius: 3px;
746
+ margin-left: -50%;
747
+ padding: 3px 10px;
748
+ line-height: 16px;
749
+ display: inline-block;
750
+ position: relative;
751
+ }
752
+
753
+ .vditor-tip__content ul {
754
+ margin: 2px 0;
755
+ padding: 0 0 0 18px;
756
+ }
757
+
758
+ .vditor-tip__content a {
759
+ color: #4285f4;
760
+ }
761
+
762
+ .vditor-tip__close {
763
+ color: var(--toolbar-icon-color);
764
+ cursor: pointer;
765
+ font-weight: bold;
766
+ position: absolute;
767
+ top: -7px;
768
+ right: -15px;
769
+ }
770
+
771
+ .vditor-tip__close:hover {
772
+ color: var(--toolbar-icon-hover-color);
773
+ }
774
+
775
+ .vditor-img {
776
+ z-index: 100;
777
+ flex-direction: column;
778
+ display: flex;
779
+ position: fixed;
780
+ inset: 0;
781
+ }
782
+
783
+ .vditor-img__bar {
784
+ border-bottom: 1px solid var(--border-color);
785
+ background-color: var(--toolbar-background-color);
786
+ text-align: center;
787
+ box-sizing: border-box;
788
+ justify-content: center;
789
+ align-items: center;
790
+ height: 36px;
791
+ display: flex;
792
+ }
793
+
794
+ .vditor-img__btn {
795
+ cursor: pointer;
796
+ -webkit-user-select: none;
797
+ -moz-user-select: none;
798
+ user-select: none;
799
+ color: var(--toolbar-icon-color);
800
+ align-items: center;
801
+ margin-left: 24px;
802
+ display: flex;
803
+ }
804
+
805
+ .vditor-img__btn:hover {
806
+ color: var(--toolbar-icon-hover-color);
807
+ }
808
+
809
+ .vditor-img__btn svg {
810
+ fill: currentColor;
811
+ width: 14px;
812
+ height: 14px;
813
+ margin-right: 8px;
814
+ }
815
+
816
+ .vditor-img__img {
817
+ background-color: var(--textarea-background-color);
818
+ cursor: zoom-out;
819
+ flex: 1;
820
+ overflow: auto;
821
+ }
822
+
823
+ .vditor-img__img img {
824
+ max-width: none;
825
+ }
826
+
827
+ .vditor-hint {
828
+ background-color: var(--panel-background-color);
829
+ box-shadow: var(--panel-shadow);
830
+ z-index: 4;
831
+ border-radius: 3px;
832
+ min-width: 80px;
833
+ max-width: 250px;
834
+ margin: 0;
835
+ padding: 5px 0;
836
+ font-size: 12px;
837
+ line-height: 20px;
838
+ list-style: none;
839
+ display: none;
840
+ position: absolute;
841
+ }
842
+
843
+ .vditor-hint .vditor-hint {
844
+ margin-top: -31px;
845
+ left: 100%;
846
+ right: auto;
847
+ }
848
+
849
+ .vditor-hint .vditor-hint.vditor-panel--left {
850
+ left: auto;
851
+ right: 100%;
852
+ }
853
+
854
+ .vditor-hint button {
855
+ color: var(--toolbar-icon-color);
856
+ box-sizing: border-box;
857
+ text-align: left;
858
+ cursor: pointer;
859
+ white-space: nowrap;
860
+ text-overflow: ellipsis;
861
+ background-color: #0000;
862
+ border: 0;
863
+ border-radius: 0;
864
+ width: 100%;
865
+ margin: 0;
866
+ padding: 3px 10px;
867
+ line-height: 20px;
868
+ display: block;
869
+ overflow: hidden;
870
+ }
871
+
872
+ .vditor-hint button:focus {
873
+ outline: none;
874
+ }
875
+
876
+ .vditor-hint--current, .vditor-hint button:not(.vditor-menu--disabled):hover {
877
+ background-color: var(--toolbar-background-color) !important;
878
+ color: var(--toolbar-icon-hover-color) !important;
879
+ }
880
+
881
+ .vditor-hint__emoji {
882
+ float: left;
883
+ margin-right: 3px;
884
+ font-size: 16px;
885
+ }
886
+
887
+ .vditor-hint img {
888
+ float: left;
889
+ width: 20px;
890
+ height: 20px;
891
+ margin-right: 3px;
892
+ }
893
+
894
+ .vditor-reset {
895
+ color: #24292e;
896
+ font-variant-ligatures: no-common-ligatures;
897
+ word-wrap: break-word;
898
+ word-break: break-word;
899
+ font-family: Helvetica Neue, Luxi Sans, DejaVu Sans, Hiragino Sans GB, Microsoft Yahei, sans-serif, Apple Color Emoji, Segoe UI Emoji, Noto Color Emoji, Segoe UI Symbol, Android Emoji, EmojiSymbols;
900
+ font-size: 16px;
901
+ line-height: 1.5;
902
+ overflow: auto;
903
+ }
904
+
905
+ .vditor-reset--anchor {
906
+ padding-left: 20px;
907
+ }
908
+
909
+ .vditor-reset--error {
910
+ color: #d23f31;
911
+ font-size: 12px;
912
+ line-height: 16px;
913
+ display: block;
914
+ }
915
+
916
+ .vditor-reset ul ul ul {
917
+ list-style-type: square;
918
+ }
919
+
920
+ .vditor-reset ul ul {
921
+ list-style-type: circle;
922
+ }
923
+
924
+ .vditor-reset ul {
925
+ list-style-type: disc;
926
+ }
927
+
928
+ .vditor-reset ul, .vditor-reset ol {
929
+ margin-top: 0;
930
+ margin-bottom: 16px;
931
+ padding-left: 2em;
932
+ }
933
+
934
+ .vditor-reset li + li {
935
+ margin-top: .25em;
936
+ }
937
+
938
+ .vditor-reset li p {
939
+ margin-top: 16px;
940
+ }
941
+
942
+ .vditor-reset audio {
943
+ max-width: 100%;
944
+ }
945
+
946
+ .vditor-reset audio:focus {
947
+ outline: none;
948
+ }
949
+
950
+ .vditor-reset video {
951
+ max-width: 100%;
952
+ max-height: 90vh;
953
+ }
954
+
955
+ .vditor-reset img {
956
+ max-width: 100%;
957
+ }
958
+
959
+ .vditor-reset img.emoji {
960
+ cursor: auto;
961
+ vertical-align: sub;
962
+ max-width: 20px;
963
+ }
964
+
965
+ .vditor-reset figure.vditor-image {
966
+ text-align: center;
967
+ margin: 0 0 16px;
968
+ }
969
+
970
+ .vditor-reset figure.vditor-image figcaption {
971
+ opacity: .65;
972
+ white-space: pre-wrap;
973
+ margin-top: 4px;
974
+ font-size: .875em;
975
+ }
976
+
977
+ .vditor-reset span.vditor-image[data-image-caption] {
978
+ text-align: center;
979
+ vertical-align: top;
980
+ max-width: 100%;
981
+ display: inline-block;
982
+ }
983
+
984
+ .vditor-reset span.vditor-image[data-image-caption]:after {
985
+ content: attr(data-image-caption);
986
+ opacity: .65;
987
+ white-space: pre-wrap;
988
+ margin-top: 4px;
989
+ font-size: .875em;
990
+ line-height: 1.5;
991
+ display: block;
992
+ }
993
+
994
+ .vditor-reset h1, .vditor-reset h2, .vditor-reset h3, .vditor-reset h4, .vditor-reset h5, .vditor-reset h6 {
995
+ margin-top: 24px;
996
+ margin-bottom: 16px;
997
+ font-weight: 600;
998
+ line-height: 1.25;
999
+ }
1000
+
1001
+ .vditor-reset h1:hover .vditor-anchor svg, .vditor-reset h2:hover .vditor-anchor svg, .vditor-reset h3:hover .vditor-anchor svg, .vditor-reset h4:hover .vditor-anchor svg, .vditor-reset h5:hover .vditor-anchor svg, .vditor-reset h6:hover .vditor-anchor svg {
1002
+ visibility: visible;
1003
+ }
1004
+
1005
+ .vditor-reset h1 {
1006
+ font-size: 1.75em;
1007
+ }
1008
+
1009
+ .vditor-reset h2 {
1010
+ font-size: 1.55em;
1011
+ }
1012
+
1013
+ .vditor-reset h3 {
1014
+ font-size: 1.38em;
1015
+ }
1016
+
1017
+ .vditor-reset h4 {
1018
+ font-size: 1.25em;
1019
+ }
1020
+
1021
+ .vditor-reset h5 {
1022
+ font-size: 1.13em;
1023
+ }
1024
+
1025
+ .vditor-reset h6 {
1026
+ font-size: 1em;
1027
+ }
1028
+
1029
+ .vditor-reset hr {
1030
+ background-color: #eaecef;
1031
+ border: 0;
1032
+ height: 2px;
1033
+ margin: 24px 0;
1034
+ padding: 0;
1035
+ }
1036
+
1037
+ .vditor-reset p {
1038
+ margin-top: 0;
1039
+ margin-bottom: 16px;
1040
+ }
1041
+
1042
+ .vditor-reset blockquote:not(.callout) {
1043
+ color: var(--blockquote-text-color, #5f6368);
1044
+ background-color: #0000;
1045
+ border: 0;
1046
+ flex-direction: column;
1047
+ margin: 0 0 16px;
1048
+ padding: 0 0 0 calc(.25em + 6px);
1049
+ display: flex;
1050
+ position: relative;
1051
+ }
1052
+
1053
+ .vditor-reset blockquote:not(.callout):before {
1054
+ content: "";
1055
+ background-color: var(--blockquote-border-color, #e0e0e0);
1056
+ border-radius: 6px;
1057
+ width: .25em;
1058
+ position: absolute;
1059
+ top: 6px;
1060
+ bottom: 6px;
1061
+ left: 2px;
1062
+ }
1063
+
1064
+ .vditor-reset blockquote:not(.callout) > :first-child {
1065
+ margin-top: 0;
1066
+ }
1067
+
1068
+ .vditor-reset blockquote:not(.callout) > :last-child {
1069
+ margin-bottom: 0;
1070
+ }
1071
+
1072
+ .vditor-reset blockquote:not(.callout) > p {
1073
+ border-radius: 6px;
1074
+ margin: 2px 0;
1075
+ padding: 4px;
1076
+ line-height: 1.625;
1077
+ }
1078
+
1079
+ .vditor-reset ins > iframe {
1080
+ border: 0;
1081
+ }
1082
+
1083
+ .vditor-reset iframe {
1084
+ box-sizing: border-box;
1085
+ border: 1px solid #d1d5da;
1086
+ max-width: 100%;
1087
+ }
1088
+
1089
+ .vditor-reset iframe.iframe__video {
1090
+ min-width: 80%;
1091
+ min-height: 36vh;
1092
+ }
1093
+
1094
+ .vditor-reset table {
1095
+ border-collapse: collapse;
1096
+ empty-cells: show;
1097
+ border-spacing: 0;
1098
+ word-break: keep-all;
1099
+ width: 100%;
1100
+ margin-bottom: 16px;
1101
+ display: block;
1102
+ overflow: auto;
1103
+ }
1104
+
1105
+ .vditor-reset table tr {
1106
+ background-color: #fafbfc;
1107
+ border-top: 1px solid #c6cbd1;
1108
+ }
1109
+
1110
+ .vditor-reset table td, .vditor-reset table th {
1111
+ word-break: normal;
1112
+ white-space: nowrap;
1113
+ border: 1px solid #dfe2e5;
1114
+ padding: 6px 13px;
1115
+ }
1116
+
1117
+ .vditor-reset table td:first-child:after, .vditor-reset table th:first-child:after {
1118
+ content: "";
1119
+ vertical-align: top;
1120
+ min-height: 24px;
1121
+ display: inline-block;
1122
+ }
1123
+
1124
+ .vditor-reset table th {
1125
+ font-weight: 600;
1126
+ }
1127
+
1128
+ .vditor-reset table tbody tr:nth-child(2n) {
1129
+ background-color: #fff;
1130
+ }
1131
+
1132
+ .vditor-reset code:not(.hljs):not(.highlight-chroma) {
1133
+ word-break: break-word;
1134
+ white-space: pre-wrap;
1135
+ background-size: 20px 20px;
1136
+ border-radius: 3px;
1137
+ margin: 0;
1138
+ padding: .2em .4em;
1139
+ font-family: mononoki, Consolas, Liberation Mono, Menlo, Courier, monospace, Apple Color Emoji, Segoe UI Emoji, Noto Color Emoji, Segoe UI Symbol, Android Emoji, EmojiSymbols;
1140
+ font-size: 85%;
1141
+ }
1142
+
1143
+ .vditor-reset pre {
1144
+ margin: 1em 0;
1145
+ }
1146
+
1147
+ .vditor-reset pre > code {
1148
+ white-space: pre;
1149
+ word-break: initial;
1150
+ word-wrap: normal;
1151
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8AgMAAABHkjHhAAAACVBMVEWAgIBaWlo+Pj7rTFvWAAAAA3RSTlMHCAw+VhR4AAAA+klEQVQoz4WSMW7EQAhFPxKWNh2FCx+HkaZI6RRb5DYbyVfIJXLKDCFoMbaTKSw/8ZnPAPjaH2xgZcUNUDADD7D9LtDBCLZ45fbkvo/30K8yeI64pPwl6znd/3n/Oe93P3ho9qeh72btTFzqkz0rsJle8Zr81OLEwZ1dv/713uWqvu2pl+k0fy7MWtj9r/tN5q/02z89qa/L4Dc2LvM93kezPfXlME/O86EbY/V9GB9ePX8G1/6W+/9h1dq/HGfTfzT3j/xNo7522Bfnqe5jO/fvhVthlfk434v3iO9zG/UOphyPeinPl1J8Gtaa7xPTa/Dk+RIs4deMvwGvcGsmsCvJ0AAAAABJRU5ErkJggg==");
1152
+ background-size: 20px 20px;
1153
+ border-radius: 5px;
1154
+ margin: 0;
1155
+ padding: .5em;
1156
+ font-family: mononoki, Consolas, Liberation Mono, Menlo, Courier, monospace, Apple Color Emoji, Segoe UI Emoji, Noto Color Emoji, Segoe UI Symbol, Android Emoji, EmojiSymbols;
1157
+ font-size: 85%;
1158
+ display: block;
1159
+ overflow: auto;
1160
+ }
1161
+
1162
+ .vditor-reset pre:hover div.vditor-copy {
1163
+ display: block;
1164
+ }
1165
+
1166
+ .vditor-reset .language-math, .vditor-reset .language-echarts, .vditor-reset .language-mindmap, .vditor-reset .language-plantuml, .vditor-reset .language-mermaid, .vditor-reset .language-smiles, .vditor-reset .language-markmap, .vditor-reset .language-abc, .vditor-reset .language-flowchart, .vditor-reset .language-graphviz, .vditor-reset .language-wavedrom {
1167
+ margin-bottom: 16px;
1168
+ }
1169
+
1170
+ .vditor-reset .language-math mjx-container:focus {
1171
+ cursor: context-menu;
1172
+ outline: none;
1173
+ }
1174
+
1175
+ .vditor-reset .language-math .katex-display > .katex > .katex-html > .tag {
1176
+ font-size: 1.21rem;
1177
+ display: inline-block;
1178
+ right: 2px;
1179
+ }
1180
+
1181
+ .vditor-reset .language-echarts, .vditor-reset .language-mindmap {
1182
+ height: 420px;
1183
+ overflow: hidden;
1184
+ }
1185
+
1186
+ .vditor-reset .language-mermaid, .vditor-reset .language-markmap, .vditor-reset .language-flowchart, .vditor-reset .language-graphviz, .vditor-reset .language-wavedrom {
1187
+ text-align: center;
1188
+ }
1189
+
1190
+ .vditor-reset .language-graphviz parsererror {
1191
+ overflow: auto;
1192
+ }
1193
+
1194
+ .vditor-reset kbd {
1195
+ color: #24292e;
1196
+ vertical-align: middle;
1197
+ background-color: #fafbfc;
1198
+ border: 1px solid #d1d5da;
1199
+ border-radius: 3px;
1200
+ padding: 3px 5px;
1201
+ font: 11px / 10px Consolas, Liberation Mono, Menlo, Courier, monospace;
1202
+ display: inline-block;
1203
+ box-shadow: inset 0 -1px #d1d5da;
1204
+ }
1205
+
1206
+ .vditor-reset summary {
1207
+ cursor: pointer;
1208
+ }
1209
+
1210
+ .vditor-reset summary:focus {
1211
+ outline: none;
1212
+ }
1213
+
1214
+ .vditor-reset svg {
1215
+ width: auto;
1216
+ height: auto;
1217
+ stroke-width: initial;
1218
+ }
1219
+
1220
+ .vditor-reset p:last-child, .vditor-reset blockquote:last-child, .vditor-reset pre:last-child, .vditor-reset ul:last-child, .vditor-reset ol:last-child, .vditor-reset hr:last-child {
1221
+ margin-bottom: 0;
1222
+ }
1223
+
1224
+ .vditor-comment {
1225
+ border-bottom: 2px solid #f8e6ab;
1226
+ }
1227
+
1228
+ .vditor-comment--focus, .vditor-comment--hover {
1229
+ background-color: #faf1d1;
1230
+ border-bottom: 2px solid #ffc60a;
1231
+ }
1232
+
1233
+ .vditor-comment--focus .vditor-comment, .vditor-comment--hover .vditor-comment {
1234
+ border-bottom: 2px solid #ffc60a;
1235
+ }
1236
+
1237
+ .vditor-task {
1238
+ word-break: break-all;
1239
+ list-style: none !important;
1240
+ }
1241
+
1242
+ .vditor-task input {
1243
+ vertical-align: middle;
1244
+ margin: 0 .2em .25em -1.6em;
1245
+ font-size: 12px;
1246
+ }
1247
+
1248
+ .vditor-copy {
1249
+ z-index: 1;
1250
+ display: none;
1251
+ position: relative;
1252
+ }
1253
+
1254
+ .vditor-copy textarea {
1255
+ height: 10px;
1256
+ position: absolute;
1257
+ left: -100000px;
1258
+ }
1259
+
1260
+ .vditor-copy span {
1261
+ cursor: pointer;
1262
+ position: absolute;
1263
+ top: .5em;
1264
+ right: 15px;
1265
+ }
1266
+
1267
+ .vditor-copy svg {
1268
+ color: #586069;
1269
+ fill: currentColor;
1270
+ height: 14px;
1271
+ display: block;
1272
+ width: 14px !important;
1273
+ }
1274
+
1275
+ .vditor-linenumber {
1276
+ position: relative;
1277
+ padding-left: 4em !important;
1278
+ }
1279
+
1280
+ .vditor-linenumber__rows {
1281
+ pointer-events: none;
1282
+ -webkit-user-select: none;
1283
+ -moz-user-select: none;
1284
+ user-select: none;
1285
+ counter-reset: linenumber;
1286
+ width: 3em;
1287
+ position: absolute;
1288
+ top: 1em;
1289
+ left: 0;
1290
+ }
1291
+
1292
+ .vditor-linenumber__rows > span {
1293
+ pointer-events: none;
1294
+ display: block;
1295
+ }
1296
+
1297
+ .vditor-linenumber__rows > span:before {
1298
+ counter-increment: linenumber;
1299
+ content: counter(linenumber);
1300
+ color: #9e969661;
1301
+ text-align: right;
1302
+ padding-right: 1em;
1303
+ display: block;
1304
+ }
1305
+
1306
+ .vditor-speech {
1307
+ cursor: pointer;
1308
+ color: #586069;
1309
+ background-color: #f6f8fa;
1310
+ border: 1px solid #d1d5da;
1311
+ border-radius: 3px;
1312
+ padding: 3px;
1313
+ display: none;
1314
+ position: absolute;
1315
+ }
1316
+
1317
+ .vditor-speech:hover, .vditor-speech--current {
1318
+ color: #4285f4;
1319
+ }
1320
+
1321
+ .vditor-speech svg {
1322
+ fill: currentColor;
1323
+ stroke-width: 0;
1324
+ stroke: currentColor;
1325
+ width: 14px;
1326
+ height: 14px;
1327
+ display: block;
1328
+ }
1329
+
1330
+ .vditor-anchor {
1331
+ margin-left: 5px;
1332
+ }
1333
+
1334
+ .vditor-anchor--left {
1335
+ float: left;
1336
+ margin-left: -20px;
1337
+ padding-right: 4px;
1338
+ }
1339
+
1340
+ .vditor-anchor svg {
1341
+ visibility: hidden;
1342
+ }
1343
+
1344
+ .vditor-anchor:hover svg {
1345
+ visibility: visible;
1346
+ }
1347
+
1348
+ .vditor-anchor:focus {
1349
+ outline: none;
1350
+ }
1351
+
1352
+ .vditor-linkcard {
1353
+ cursor: pointer;
1354
+ max-width: 768px;
1355
+ margin: 31px auto 16px;
1356
+ padding: 0 10px;
1357
+ transition: all .15s ease-in-out;
1358
+ }
1359
+
1360
+ .vditor-linkcard a {
1361
+ background-color: #f6f8fa;
1362
+ border-radius: 3px;
1363
+ flex-wrap: wrap-reverse;
1364
+ max-height: 250px;
1365
+ text-decoration: none;
1366
+ display: flex;
1367
+ overflow: hidden;
1368
+ box-shadow: 0 1px 2px #0003;
1369
+ }
1370
+
1371
+ .vditor-linkcard a:hover {
1372
+ text-decoration: none;
1373
+ box-shadow: 0 0 3px #00000021, 0 3px 6px #00000042;
1374
+ }
1375
+
1376
+ .vditor-linkcard a:visited .vditor-linkcard__abstract {
1377
+ color: #5860695c;
1378
+ }
1379
+
1380
+ .vditor-linkcard__info {
1381
+ box-sizing: border-box;
1382
+ flex: 1;
1383
+ min-width: 200px;
1384
+ padding: 10px;
1385
+ }
1386
+
1387
+ .vditor-linkcard__title {
1388
+ color: #24292e;
1389
+ align-items: center;
1390
+ font-size: 14px;
1391
+ font-weight: 400;
1392
+ display: flex;
1393
+ }
1394
+
1395
+ .vditor-linkcard__title img {
1396
+ cursor: pointer;
1397
+ border-radius: 3px;
1398
+ flex-shrink: 0;
1399
+ width: 20px;
1400
+ height: 20px;
1401
+ margin-right: 5px;
1402
+ }
1403
+
1404
+ .vditor-linkcard__abstract {
1405
+ word-wrap: break-word;
1406
+ word-break: break-all;
1407
+ -webkit-line-clamp: 2;
1408
+ text-overflow: ellipsis;
1409
+ color: #586069;
1410
+ -webkit-box-orient: vertical;
1411
+ margin: 5px 0;
1412
+ font-size: 13px;
1413
+ display: -webkit-box;
1414
+ overflow: hidden;
1415
+ }
1416
+
1417
+ .vditor-linkcard__site {
1418
+ color: #4285f4;
1419
+ font-size: 12px;
1420
+ }
1421
+
1422
+ .vditor-linkcard__image {
1423
+ cursor: pointer;
1424
+ background-color: #5860695c;
1425
+ background-position: center;
1426
+ background-repeat: no-repeat;
1427
+ background-size: cover;
1428
+ min-width: 126px;
1429
+ max-width: 250px;
1430
+ }
1431
+
1432
+ .vditor-footnotes__goto-ref {
1433
+ text-decoration: none;
1434
+ }
1435
+
1436
+ .vditor-toc {
1437
+ -webkit-user-select: text;
1438
+ -moz-user-select: text;
1439
+ user-select: text;
1440
+ color: #4285f4;
1441
+ margin-bottom: 16px;
1442
+ }
1443
+
1444
+ .vditor-toc .vditor-outline__action {
1445
+ display: none;
1446
+ }
1447
+
1448
+ .vditor-toc ul {
1449
+ padding-left: 1em;
1450
+ list-style: none !important;
1451
+ }
1452
+
1453
+ .vditor-toc > ul {
1454
+ padding-left: 0;
1455
+ }
1456
+
1457
+ .vditor-toc span {
1458
+ cursor: pointer;
1459
+ }
1460
+
1461
+ .vditor-toc li > span > svg {
1462
+ width: 0;
1463
+ height: 0;
1464
+ }
1465
+
1466
+ .vditor-outline {
1467
+ border-right: 1px solid var(--border-color);
1468
+ background-color: var(--panel-background-color);
1469
+ width: 250px;
1470
+ display: none;
1471
+ overflow: auto;
1472
+ }
1473
+
1474
+ .vditor-outline--right {
1475
+ border-right: 0;
1476
+ border-left: 1px solid var(--border-color);
1477
+ }
1478
+
1479
+ .vditor-outline::-webkit-scrollbar {
1480
+ display: none;
1481
+ }
1482
+
1483
+ .vditor-outline ul {
1484
+ margin: 0;
1485
+ padding-left: 1em;
1486
+ list-style: none !important;
1487
+ }
1488
+
1489
+ .vditor-outline__content > ul {
1490
+ padding-left: 0;
1491
+ }
1492
+
1493
+ .vditor-outline li > span {
1494
+ cursor: pointer;
1495
+ color: var(--textarea-text-color);
1496
+ align-items: center;
1497
+ padding: 5px 10px;
1498
+ display: flex;
1499
+ }
1500
+
1501
+ .vditor-outline li > span > svg {
1502
+ flex-shrink: 0;
1503
+ width: 10px;
1504
+ height: 10px;
1505
+ }
1506
+
1507
+ .vditor-outline li > span:hover {
1508
+ color: var(--toolbar-icon-hover-color);
1509
+ }
1510
+
1511
+ .vditor-outline li > span > span {
1512
+ white-space: nowrap;
1513
+ text-overflow: ellipsis;
1514
+ overflow: hidden;
1515
+ }
1516
+
1517
+ .vditor-outline__title {
1518
+ border-bottom: 1px dashed var(--border-color);
1519
+ color: var(--toolbar-icon-color);
1520
+ padding: 5px 10px;
1521
+ font-size: 12px;
1522
+ }
1523
+
1524
+ .vditor-outline__action {
1525
+ fill: currentColor;
1526
+ flex-shrink: 0;
1527
+ margin-right: 5px;
1528
+ transition: all .15s ease-in-out;
1529
+ }
1530
+
1531
+ .vditor-outline__action--close {
1532
+ transform: rotate(-90deg);
1533
+ }
1534
+
1535
+ .vditor-reset .callout, .vditor-wysiwyg blockquote.callout, .vditor-ir blockquote.callout {
1536
+ --callout-color: var(--callout-note-color, #3575f0);
1537
+ color: var(--blockquote-text-color, #5f6368);
1538
+ border: 0;
1539
+ flex-direction: column;
1540
+ margin: 0 0 16px;
1541
+ padding: 0 0 0 calc(.25em + 6px);
1542
+ display: flex;
1543
+ position: relative;
1544
+ }
1545
+
1546
+ .vditor-reset .callout:before, .vditor-wysiwyg blockquote.callout:before, .vditor-ir blockquote.callout:before {
1547
+ content: "";
1548
+ background-color: var(--callout-color);
1549
+ border-radius: 6px;
1550
+ width: .25em;
1551
+ position: absolute;
1552
+ top: 6px;
1553
+ bottom: 6px;
1554
+ left: 2px;
1555
+ }
1556
+
1557
+ .vditor-reset .callout[data-subtype="TIP"], .vditor-wysiwyg blockquote.callout[data-subtype="TIP"], .vditor-ir blockquote.callout[data-subtype="TIP"] {
1558
+ --callout-color: var(--callout-tip-color, #65b84d);
1559
+ }
1560
+
1561
+ .vditor-reset .callout[data-subtype="IMPORTANT"], .vditor-wysiwyg blockquote.callout[data-subtype="IMPORTANT"], .vditor-ir blockquote.callout[data-subtype="IMPORTANT"] {
1562
+ --callout-color: var(--callout-important-color, #8957e5);
1563
+ }
1564
+
1565
+ .vditor-reset .callout[data-subtype="WARNING"], .vditor-wysiwyg blockquote.callout[data-subtype="WARNING"], .vditor-ir blockquote.callout[data-subtype="WARNING"] {
1566
+ --callout-color: var(--callout-warning-color, #ff9632);
1567
+ }
1568
+
1569
+ .vditor-reset .callout[data-subtype="CAUTION"], .vditor-wysiwyg blockquote.callout[data-subtype="CAUTION"], .vditor-ir blockquote.callout[data-subtype="CAUTION"] {
1570
+ --callout-color: var(--callout-caution-color, #d23f31);
1571
+ }
1572
+
1573
+ .vditor-reset .callout > .callout-info, .vditor-wysiwyg blockquote.callout > .callout-info, .vditor-ir blockquote.callout > .callout-info {
1574
+ min-height: 1.5em;
1575
+ color: var(--callout-color);
1576
+ align-items: center;
1577
+ margin: 2px 0;
1578
+ padding: 4px;
1579
+ display: flex;
1580
+ }
1581
+
1582
+ .vditor-reset .callout > .callout-info .callout-icon, .vditor-wysiwyg blockquote.callout > .callout-info .callout-icon, .vditor-ir blockquote.callout > .callout-info .callout-icon {
1583
+ text-align: center;
1584
+ font-variant-emoji: emoji;
1585
+ border-radius: 6px;
1586
+ justify-content: center;
1587
+ align-items: center;
1588
+ width: 1.2em;
1589
+ height: 1.2em;
1590
+ padding: 4px;
1591
+ line-height: 1.2em;
1592
+ display: flex;
1593
+ }
1594
+
1595
+ .vditor-reset .callout > .callout-info .callout-icon:empty, .vditor-wysiwyg blockquote.callout > .callout-info .callout-icon:empty, .vditor-ir blockquote.callout > .callout-info .callout-icon:empty {
1596
+ display: none;
1597
+ }
1598
+
1599
+ .vditor-reset .callout > .callout-info .callout-title, .vditor-wysiwyg blockquote.callout > .callout-info .callout-title, .vditor-ir blockquote.callout > .callout-info .callout-title {
1600
+ opacity: .86;
1601
+ flex: 1;
1602
+ min-width: 1px;
1603
+ margin-left: 4px;
1604
+ font-size: 114%;
1605
+ font-weight: 500;
1606
+ }
1607
+
1608
+ .vditor-reset .callout > .callout-info .callout-img, .vditor-wysiwyg blockquote.callout > .callout-info .callout-img, .vditor-ir blockquote.callout > .callout-info .callout-img, .vditor-reset .callout > .callout-info > .callout-img, .vditor-wysiwyg blockquote.callout > .callout-info > .callout-img, .vditor-ir blockquote.callout > .callout-info > .callout-img {
1609
+ width: 100%;
1610
+ height: 1.2em;
1611
+ }
1612
+
1613
+ .vditor-reset .callout > p:not(.callout-info), .vditor-wysiwyg blockquote.callout > p:not(.callout-info), .vditor-ir blockquote.callout > p:not(.callout-info), .vditor-reset .callout > .callout-content > p, .vditor-wysiwyg blockquote.callout > .callout-content > p, .vditor-ir blockquote.callout > .callout-content > p {
1614
+ border-radius: 6px;
1615
+ margin: 2px 0;
1616
+ padding: 4px;
1617
+ line-height: 1.625;
1618
+ }
1619
+
1620
+ .vditor-wysiwyg blockquote.callout > .callout-info, .vditor-ir blockquote.callout > .callout-info {
1621
+ opacity: .86;
1622
+ font-size: 114%;
1623
+ font-weight: 500;
1624
+ }
1625
+
1626
+ .vditor-wysiwyg__callout-marker {
1627
+ display: none;
1628
+ }
1629
+
1630
+ .vditor-wysiwyg {
1631
+ box-sizing: border-box;
1632
+ flex: 1;
1633
+ width: 100%;
1634
+ min-width: 1px;
1635
+ position: relative;
1636
+ }
1637
+
1638
+ .vditor-wysiwyg pre.vditor-reset {
1639
+ background-color: var(--panel-background-color);
1640
+ white-space: pre-wrap;
1641
+ box-sizing: border-box;
1642
+ height: 100%;
1643
+ margin: 0;
1644
+ }
1645
+
1646
+ .vditor-wysiwyg pre.vditor-reset[contenteditable="false"] {
1647
+ opacity: .3;
1648
+ cursor: not-allowed;
1649
+ }
1650
+
1651
+ .vditor-wysiwyg pre.vditor-reset:empty:before {
1652
+ content: attr(placeholder);
1653
+ color: var(--second-color);
1654
+ }
1655
+
1656
+ .vditor-wysiwyg pre.vditor-reset:focus {
1657
+ background-color: var(--textarea-background-color);
1658
+ outline: none;
1659
+ }
1660
+
1661
+ .vditor-wysiwyg pre.vditor-reset:after {
1662
+ content: "";
1663
+ height: var(--editor-bottom);
1664
+ display: block;
1665
+ }
1666
+
1667
+ .vditor-wysiwyg blockquote:empty:before, .vditor-wysiwyg pre > code:empty:before, .vditor-wysiwyg p:empty:before, .vditor-wysiwyg h1:empty:after, .vditor-wysiwyg h2:empty:after, .vditor-wysiwyg h3:empty:after, .vditor-wysiwyg h4:empty:after, .vditor-wysiwyg h5:empty:after, .vditor-wysiwyg h6:empty:after {
1668
+ content: " ";
1669
+ }
1670
+
1671
+ .vditor-wysiwyg code[data-marker="`"] {
1672
+ padding-left: 0 !important;
1673
+ padding-right: 0 !important;
1674
+ }
1675
+
1676
+ .vditor-wysiwyg__block pre:first-child {
1677
+ margin-bottom: -1em;
1678
+ }
1679
+
1680
+ .vditor-wysiwyg__block pre:first-child code {
1681
+ color: var(--textarea-text-color);
1682
+ text-align: left;
1683
+ height: auto;
1684
+ }
1685
+
1686
+ .vditor-wysiwyg__block pre:last-child {
1687
+ margin-bottom: 1em;
1688
+ }
1689
+
1690
+ .vditor-wysiwyg__preview {
1691
+ cursor: pointer;
1692
+ white-space: initial;
1693
+ min-height: 27px;
1694
+ }
1695
+
1696
+ .vditor-wysiwyg > .vditor-reset > h1:before, .vditor-wysiwyg > .vditor-reset > h2:before, .vditor-wysiwyg > .vditor-reset > h3:before, .vditor-wysiwyg > .vditor-reset > h4:before, .vditor-wysiwyg > .vditor-reset > h5:before, .vditor-wysiwyg > .vditor-reset > h6:before, .vditor-wysiwyg div.vditor-wysiwyg__block:before, .vditor-wysiwyg div[data-type="link-ref-defs-block"]:before, .vditor-wysiwyg div[data-type="footnotes-block"]:before, .vditor-wysiwyg .vditor-toc:before {
1697
+ float: left;
1698
+ content: "H1";
1699
+ color: var(--second-color);
1700
+ margin-left: -29px;
1701
+ padding-right: 4px;
1702
+ font-size: .85rem;
1703
+ font-weight: normal;
1704
+ }
1705
+
1706
+ .vditor-wysiwyg > .vditor-reset > h2:before {
1707
+ content: "H2";
1708
+ }
1709
+
1710
+ .vditor-wysiwyg > .vditor-reset > h3:before {
1711
+ content: "H3";
1712
+ }
1713
+
1714
+ .vditor-wysiwyg > .vditor-reset > h4:before {
1715
+ content: "H4";
1716
+ }
1717
+
1718
+ .vditor-wysiwyg > .vditor-reset > h5:before {
1719
+ content: "H5";
1720
+ }
1721
+
1722
+ .vditor-wysiwyg > .vditor-reset > h6:before {
1723
+ content: "H6";
1724
+ }
1725
+
1726
+ .vditor-wysiwyg div[data-type="link-ref-defs-block"]:before {
1727
+ content: "\"A\"";
1728
+ }
1729
+
1730
+ .vditor-wysiwyg div[data-type="footnotes-block"]:before {
1731
+ content: "^F";
1732
+ }
1733
+
1734
+ .vditor-wysiwyg div.vditor-wysiwyg__block:before {
1735
+ content: "</>";
1736
+ }
1737
+
1738
+ .vditor-wysiwyg div.vditor-wysiwyg__block[data-type="yaml-front-matter"]:before {
1739
+ content: "F";
1740
+ }
1741
+
1742
+ .vditor-wysiwyg div.vditor-wysiwyg__block[data-type="math-block"]:before {
1743
+ content: "$$";
1744
+ }
1745
+
1746
+ .vditor-wysiwyg .vditor-toc:before {
1747
+ content: "ToC";
1748
+ }
1749
+
1750
+ .vditor-wysiwyg hr {
1751
+ width: 100%;
1752
+ margin: 12px 0;
1753
+ display: inline-block;
1754
+ }
1755
+
1756
+ .vditor-wysiwyg details {
1757
+ white-space: initial;
1758
+ }
1759
+
1760
+ .vditor-wysiwyg a {
1761
+ cursor: pointer;
1762
+ }
1763
+
1764
+ .vditor-wysiwyg span[data-type="backslash"] > span {
1765
+ color: var(--second-color);
1766
+ display: none;
1767
+ }
1768
+
1769
+ .vditor-wysiwyg span[data-type="link-ref"], .vditor-wysiwyg sup[data-type="footnotes-ref"] {
1770
+ color: #4285f4;
1771
+ }
1772
+
1773
+ .vditor-wysiwyg span[data-type="toc-h"] {
1774
+ color: #4285f4;
1775
+ text-decoration: underline;
1776
+ }
1777
+
1778
+ .vditor-wysiwyg div[data-type="footnotes-block"] {
1779
+ border-top: 2px solid var(--heading-border-color);
1780
+ margin-top: 24px;
1781
+ padding-top: 24px;
1782
+ }
1783
+
1784
+ .vditor-wysiwyg div[data-type="link-ref-defs-block"] {
1785
+ color: var(--blockquote-color);
1786
+ }
1787
+
1788
+ .vditor-wysiwyg__mobile-toolbar {
1789
+ display: none;
1790
+ }
1791
+
1792
+ @media screen and (width <= 520px) {
1793
+ .vditor-wysiwyg__mobile-toolbar {
1794
+ float: left;
1795
+ width: 23px;
1796
+ height: 21px;
1797
+ display: block;
1798
+ position: relative;
1799
+ }
1800
+
1801
+ .vditor-wysiwyg__mobile-actions {
1802
+ box-sizing: border-box;
1803
+ white-space: normal;
1804
+ flex-wrap: wrap;
1805
+ padding: 5px;
1806
+ top: 26px;
1807
+ left: 0;
1808
+ }
1809
+
1810
+ .vditor-wysiwyg__mobile-actions.vditor-panel--left {
1811
+ left: auto;
1812
+ right: 0;
1813
+ }
1814
+
1815
+ .vditor-wysiwyg__mobile-actions--open {
1816
+ display: flex;
1817
+ }
1818
+
1819
+ .vditor-wysiwyg h1:before, .vditor-wysiwyg h2:before, .vditor-wysiwyg h3:before, .vditor-wysiwyg h4:before, .vditor-wysiwyg h5:before, .vditor-wysiwyg h6:before, .vditor-wysiwyg div.vditor-wysiwyg__block:before, .vditor-wysiwyg div[data-type="link-ref-defs-block"]:before, .vditor-wysiwyg div[data-type="footnotes-block"]:before, .vditor-wysiwyg .vditor-toc:before {
1820
+ content: none;
1821
+ }
1822
+ }
1823
+
1824
+ .vditor-ir {
1825
+ box-sizing: border-box;
1826
+ flex: 1;
1827
+ width: 100%;
1828
+ min-width: 1px;
1829
+ position: relative;
1830
+ }
1831
+
1832
+ .vditor-ir__node[data-type="code-block"]:before, .vditor-ir__node[data-type="code-block"]:after, .vditor-ir__node[data-type="yaml-front-matter"]:before, .vditor-ir__node[data-type="yaml-front-matter"]:after, .vditor-ir__node[data-type="math-block"]:before, .vditor-ir__node[data-type="math-block"]:after {
1833
+ content: " ";
1834
+ color: var(--second-color);
1835
+ }
1836
+
1837
+ .vditor-ir__node:not(.vditor-ir__node--expand) .vditor-ir__marker {
1838
+ padding: 0 !important;
1839
+ }
1840
+
1841
+ .vditor-ir__node:not(.vditor-ir__node--expand)[data-type="a"] {
1842
+ cursor: pointer;
1843
+ }
1844
+
1845
+ .vditor-ir__node[data-type="link-ref"], .vditor-ir__node[data-type="footnotes-ref"] {
1846
+ color: #4285f4;
1847
+ }
1848
+
1849
+ .vditor-ir__node[data-type="html-block"] {
1850
+ margin-bottom: 1em;
1851
+ }
1852
+
1853
+ .vditor-ir__node .vditor-ir__marker {
1854
+ width: 0;
1855
+ height: 0;
1856
+ transition: all .15s ease-in-out;
1857
+ display: inline-block;
1858
+ overflow: hidden;
1859
+ }
1860
+
1861
+ .vditor-ir__node--hidden .vditor-ir__marker {
1862
+ visibility: hidden;
1863
+ }
1864
+
1865
+ .vditor-ir__node--expand .vditor-ir__marker {
1866
+ color: var(--second-color);
1867
+ width: auto;
1868
+ height: auto;
1869
+ display: inline;
1870
+ }
1871
+
1872
+ .vditor-ir__node--expand .vditor-ir__marker--hide {
1873
+ display: none;
1874
+ }
1875
+
1876
+ .vditor-ir__node--expand .vditor-ir__marker--heading {
1877
+ color: var(--ir-heading-color);
1878
+ }
1879
+
1880
+ .vditor-ir__node--expand .vditor-ir__marker--bi {
1881
+ color: var(--ir-bi-color);
1882
+ }
1883
+
1884
+ .vditor-ir__node--expand .vditor-ir__marker--link {
1885
+ color: var(--ir-link-color);
1886
+ }
1887
+
1888
+ .vditor-ir__node--expand .vditor-ir__marker--title {
1889
+ color: var(--ir-title-color);
1890
+ }
1891
+
1892
+ .vditor-ir__node--expand .vditor-ir__marker--bracket {
1893
+ color: var(--ir-bracket-color);
1894
+ text-decoration: underline;
1895
+ }
1896
+
1897
+ .vditor-ir__node--expand .vditor-ir__marker--paren {
1898
+ color: var(--ir-paren-color);
1899
+ }
1900
+
1901
+ .vditor-ir__node--expand .vditor-ir__marker--info {
1902
+ color: var(--ir-heading-color);
1903
+ }
1904
+
1905
+ .vditor-ir__node--expand .vditor-ir__marker--pre code {
1906
+ color: var(--textarea-text-color);
1907
+ text-align: left;
1908
+ height: auto;
1909
+ }
1910
+
1911
+ .vditor-ir__node--expand[data-type="code-block"]:before, .vditor-ir__node--expand[data-type="code-block"]:after {
1912
+ content: "```";
1913
+ }
1914
+
1915
+ .vditor-ir__node--expand[data-type="yaml-front-matter"]:before, .vditor-ir__node--expand[data-type="yaml-front-matter"]:after {
1916
+ content: "---";
1917
+ }
1918
+
1919
+ .vditor-ir__node--expand[data-type="math-block"]:before, .vditor-ir__node--expand[data-type="math-block"]:after {
1920
+ content: "$$";
1921
+ }
1922
+
1923
+ .vditor-ir__node span[data-type="code-block-open-marker"], .vditor-ir__node span[data-type="code-block-close-marker"], .vditor-ir__node span[data-type="yaml-front-matter-open-marker"], .vditor-ir__node span[data-type="yaml-front-matter-close-marker"], .vditor-ir__node span[data-type="math-block-open-marker"], .vditor-ir__node span[data-type="math-block-close-marker"] {
1924
+ display: none;
1925
+ }
1926
+
1927
+ .vditor-ir__preview {
1928
+ cursor: pointer;
1929
+ white-space: initial;
1930
+ min-height: 27px;
1931
+ }
1932
+
1933
+ .vditor-ir__link {
1934
+ color: var(--ir-bracket-color);
1935
+ text-decoration: underline;
1936
+ }
1937
+
1938
+ .vditor-ir pre.vditor-reset {
1939
+ background-color: var(--panel-background-color);
1940
+ white-space: pre-wrap;
1941
+ box-sizing: border-box;
1942
+ height: 100%;
1943
+ margin: 0;
1944
+ }
1945
+
1946
+ .vditor-ir pre.vditor-reset[contenteditable="false"] {
1947
+ opacity: .3;
1948
+ cursor: not-allowed;
1949
+ }
1950
+
1951
+ .vditor-ir pre.vditor-reset:empty:before {
1952
+ content: attr(placeholder);
1953
+ color: var(--second-color);
1954
+ }
1955
+
1956
+ .vditor-ir pre.vditor-reset:focus {
1957
+ background-color: var(--textarea-background-color);
1958
+ outline: none;
1959
+ }
1960
+
1961
+ .vditor-ir pre.vditor-reset:after {
1962
+ content: "";
1963
+ height: var(--editor-bottom);
1964
+ display: block;
1965
+ }
1966
+
1967
+ .vditor-ir pre.vditor-reset pre {
1968
+ margin: 0;
1969
+ }
1970
+
1971
+ .vditor-ir hr {
1972
+ width: 100%;
1973
+ margin: 12px 0;
1974
+ display: inline-block;
1975
+ }
1976
+
1977
+ .vditor-ir blockquote:empty:before, .vditor-ir pre > code:empty:before, .vditor-ir p:empty:before, .vditor-ir h1:empty:after, .vditor-ir h2:empty:after, .vditor-ir h3:empty:after, .vditor-ir h4:empty:after, .vditor-ir h5:empty:after, .vditor-ir h6:empty:after {
1978
+ content: " ";
1979
+ }
1980
+
1981
+ .vditor-ir .vditor-reset > h1:before, .vditor-ir .vditor-reset > h2:before, .vditor-ir .vditor-reset > h3:before, .vditor-ir .vditor-reset > h4:before, .vditor-ir .vditor-reset > h5:before, .vditor-ir .vditor-reset > h6:before, .vditor-ir div[data-type="link-ref-defs-block"]:before, .vditor-ir div[data-type="footnotes-block"]:before, .vditor-ir .vditor-toc:before {
1982
+ float: left;
1983
+ content: "H1";
1984
+ color: var(--second-color);
1985
+ margin-left: -29px;
1986
+ padding-right: 4px;
1987
+ font-size: .85rem;
1988
+ font-weight: normal;
1989
+ }
1990
+
1991
+ .vditor-ir .vditor-reset > h2:before {
1992
+ content: "H2";
1993
+ }
1994
+
1995
+ .vditor-ir .vditor-reset > h3:before {
1996
+ content: "H3";
1997
+ }
1998
+
1999
+ .vditor-ir .vditor-reset > h4:before {
2000
+ content: "H4";
2001
+ }
2002
+
2003
+ .vditor-ir .vditor-reset > h5:before {
2004
+ content: "H5";
2005
+ }
2006
+
2007
+ .vditor-ir .vditor-reset > h6:before {
2008
+ content: "H6";
2009
+ }
2010
+
2011
+ .vditor-ir div[data-type="link-ref-defs-block"] {
2012
+ color: var(--blockquote-color);
2013
+ }
2014
+
2015
+ .vditor-ir div[data-type="link-ref-defs-block"]:before {
2016
+ content: "\"A\"";
2017
+ }
2018
+
2019
+ .vditor-ir div[data-type="footnotes-block"] {
2020
+ border-top: 2px solid var(--heading-border-color);
2021
+ margin-top: 24px;
2022
+ padding-top: 24px;
2023
+ }
2024
+
2025
+ .vditor-ir div[data-type="footnotes-block"]:before {
2026
+ content: "^F";
2027
+ }
2028
+
2029
+ .vditor-ir div[data-type="footnotes-block"] > div[data-type="footnotes-def"] > ul, .vditor-ir div[data-type="footnotes-block"] > div[data-type="footnotes-def"] > ol, .vditor-ir div[data-type="footnotes-block"] > div[data-type="footnotes-def"] > p, .vditor-ir div[data-type="footnotes-block"] > div[data-type="footnotes-def"] > blockquote, .vditor-ir div[data-type="footnotes-block"] > div[data-type="footnotes-def"] > pre, .vditor-ir div[data-type="footnotes-block"] > div[data-type="footnotes-def"] > table, .vditor-ir div[data-type="footnotes-block"] > div[data-type="footnotes-def"] > hr {
2030
+ margin-left: 8px;
2031
+ }
2032
+
2033
+ .vditor-ir .vditor-toc:before {
2034
+ content: "ToC";
2035
+ }
2036
+
2037
+ .vditor-ir .vditor-toc span[data-type="toc-h"] {
2038
+ color: #4285f4;
2039
+ text-decoration: underline;
2040
+ }
2041
+
2042
+ @media screen and (width <= 520px) {
2043
+ .vditor-ir h1:before, .vditor-ir h2:before, .vditor-ir h3:before, .vditor-ir h4:before, .vditor-ir h5:before, .vditor-ir h6:before, .vditor-ir div[data-type="link-ref-defs-block"]:before, .vditor-ir div[data-type="footnotes-block"]:before, .vditor-ir .vditor-toc:before {
2044
+ content: none;
2045
+ }
2046
+ }
2047
+
2048
+ .vditor-sv {
2049
+ resize: none;
2050
+ box-sizing: border-box;
2051
+ background-color: var(--panel-background-color);
2052
+ width: 100%;
2053
+ min-width: 1px;
2054
+ color: var(--textarea-text-color);
2055
+ font-variant-ligatures: no-common-ligatures;
2056
+ white-space: pre-wrap;
2057
+ word-break: break-word;
2058
+ word-wrap: break-word;
2059
+ border: 0;
2060
+ border-radius: 0 0 3px 3px;
2061
+ outline: 0;
2062
+ flex: 1;
2063
+ margin: 0 1px 0 0;
2064
+ padding: 10px 9px 10px 10px;
2065
+ font-family: Helvetica Neue, Luxi Sans, DejaVu Sans, Hiragino Sans GB, Microsoft Yahei, sans-serif, Apple Color Emoji, Segoe UI Emoji, Noto Color Emoji, Segoe UI Symbol, Android Emoji, EmojiSymbols;
2066
+ font-size: 16px;
2067
+ line-height: 22px;
2068
+ overflow: auto;
2069
+ }
2070
+
2071
+ .vditor-sv:disabled {
2072
+ opacity: .3;
2073
+ cursor: not-allowed;
2074
+ }
2075
+
2076
+ .vditor-sv::-moz-placeholder {
2077
+ color: var(--second-color);
2078
+ }
2079
+
2080
+ .vditor-sv::placeholder {
2081
+ color: var(--second-color);
2082
+ }
2083
+
2084
+ .vditor-sv:focus {
2085
+ background-color: var(--textarea-background-color);
2086
+ }
2087
+
2088
+ .workbase-markdown-icons {
2089
+ display: none;
2090
+ }
2091
+
2092
+ .workbase-markdown-links {
2093
+ flex-direction: column;
2094
+ flex: 1;
2095
+ min-width: 0;
2096
+ min-height: 0;
2097
+ display: flex;
2098
+ }
2099
+
2100
+ .markdown-document-preview {
2101
+ border: 1px solid var(--color-border);
2102
+ background: var(--color-surface);
2103
+ min-width: 0;
2104
+ color: var(--color-foreground);
2105
+ border-radius: 8px;
2106
+ margin-bottom: 20px;
2107
+ padding: 20px;
2108
+ }
2109
+
2110
+ .markdown-document-heading {
2111
+ justify-content: space-between;
2112
+ align-items: start;
2113
+ gap: 16px;
2114
+ margin-bottom: 20px;
2115
+ display: flex;
2116
+ }
2117
+
2118
+ .markdown-document-heading h2 {
2119
+ margin: 0;
2120
+ font-size: 18px;
2121
+ line-height: 1.5;
2122
+ }
2123
+
2124
+ .markdown-document-heading p {
2125
+ color: var(--color-muted);
2126
+ overflow-wrap: anywhere;
2127
+ margin: 8px 0 0;
2128
+ }
2129
+
2130
+ .markdown-document-heading button, .markdown-link-error button {
2131
+ border: 1px solid var(--color-border-strong);
2132
+ background: var(--color-surface);
2133
+ color: var(--color-foreground);
2134
+ font: inherit;
2135
+ cursor: pointer;
2136
+ border-radius: 6px;
2137
+ flex-shrink: 0;
2138
+ padding: 6px 10px;
2139
+ }
2140
+
2141
+ .markdown-document-heading button:hover, .markdown-link-error button:hover {
2142
+ background: var(--color-surface-muted);
2143
+ }
2144
+
2145
+ .markdown-document-preview:focus-visible, .workbase-markdown-links button:focus-visible {
2146
+ outline: 2px solid var(--color-brand);
2147
+ outline-offset: 2px;
2148
+ }
2149
+
2150
+ .markdown-link-error {
2151
+ color: var(--color-danger);
2152
+ overflow-wrap: anywhere;
2153
+ line-height: 1.6;
2154
+ }
2155
+
2156
+ .markdown-link-error button {
2157
+ margin-inline-start: 8px;
2158
+ }
2159
+
2160
+ .workbase-markdown-links .markdown-document-body {
2161
+ max-width: 75ch;
2162
+ max-height: 65vh;
2163
+ color: var(--color-foreground);
2164
+ overflow-wrap: anywhere;
2165
+ font-family: inherit;
2166
+ font-size: 14px;
2167
+ line-height: 1.85;
2168
+ overflow: auto;
2169
+ }
2170
+
2171
+ .markdown-document-body :is(h1, h2, h3, h4, h5, h6) {
2172
+ color: var(--color-foreground);
2173
+ }
2174
+
2175
+ .markdown-document-body a {
2176
+ color: var(--color-accent);
2177
+ text-underline-offset: 3px;
2178
+ }
2179
+
2180
+ .markdown-document-body pre {
2181
+ background: var(--color-surface-muted);
2182
+ overflow: auto;
2183
+ }
2184
+
2185
+ .markdown-document-body table {
2186
+ max-width: 100%;
2187
+ display: block;
2188
+ overflow: auto;
2189
+ }
2190
+
2191
+ .markdown-document-body ::selection {
2192
+ background: var(--color-brand-weak);
2193
+ color: var(--color-foreground);
2194
+ }
2195
+
2196
+ .workbase-markdown-editor, .workbase-markdown-editor .vditor {
2197
+ --panel-background-color: var(--color-surface);
2198
+ --border-color: var(--color-border);
2199
+ --toolbar-background-color: var(--color-background);
2200
+ --toolbar-icon-color: var(--color-muted);
2201
+ --toolbar-icon-hover-color: var(--color-brand);
2202
+ --toolbar-height: 36px;
2203
+ --textarea-background-color: var(--color-surface);
2204
+ --textarea-text-color: var(--color-foreground);
2205
+ --resize-icon-color: var(--color-muted);
2206
+ --resize-background-color: var(--color-background);
2207
+ --resize-hover-icon-color: var(--color-brand);
2208
+ --resize-hover-background-color: var(--color-brand-weak);
2209
+ min-width: 0;
2210
+ color: var(--color-foreground);
2211
+ font-size: 14px;
2212
+ position: relative;
2213
+ }
2214
+
2215
+ .markdown-field-label {
2216
+ margin-bottom: 8px;
2217
+ font-size: 12px;
2218
+ font-weight: 500;
2219
+ display: block;
2220
+ }
2221
+
2222
+ .workbase-markdown-editor .vditor {
2223
+ border-radius: 6px;
2224
+ }
2225
+
2226
+ .workbase-markdown-editor .vditor-toolbar {
2227
+ flex-wrap: wrap;
2228
+ padding-left: 6px !important;
2229
+ padding-right: 6px !important;
2230
+ }
2231
+
2232
+ .workbase-markdown-editor .vditor-toolbar__item {
2233
+ flex-shrink: 0;
2234
+ }
2235
+
2236
+ .workbase-markdown-editor .vditor-reset {
2237
+ color: var(--color-foreground);
2238
+ font-family: inherit;
2239
+ font-size: 14px;
2240
+ line-height: 1.85;
2241
+ }
2242
+
2243
+ .workbase-markdown-editor .vditor-reset h1 {
2244
+ border: 0;
2245
+ font-size: 24px;
2246
+ }
2247
+
2248
+ .workbase-markdown-editor .vditor-reset h2 {
2249
+ border: 0;
2250
+ font-size: 20px;
2251
+ }
2252
+
2253
+ .workbase-markdown-editor .vditor-reset h3 {
2254
+ font-size: 16px;
2255
+ }
2256
+
2257
+ .workbase-markdown-editor .vditor-reset > :is(h1, h2, h3, h4, h5, h6):before {
2258
+ content: none;
2259
+ }
2260
+
2261
+ .workbase-markdown-editor .vditor-ir pre.vditor-reset, .workbase-markdown-editor .vditor-wysiwyg pre.vditor-reset {
2262
+ min-height: 320px;
2263
+ padding: 24px !important;
2264
+ }
2265
+
2266
+ .workbase-markdown-editor .vditor-sv {
2267
+ min-width: 0;
2268
+ font-size: 14px;
2269
+ line-height: 1.8;
2270
+ padding: 20px !important;
2271
+ }
2272
+
2273
+ .workbase-markdown-editor .vditor-preview {
2274
+ min-width: 0;
2275
+ }
2276
+
2277
+ .workbase-markdown-editor .vditor-preview > .vditor-reset {
2278
+ padding: 24px;
2279
+ }
2280
+
2281
+ .workbase-markdown-editor .vditor-hint {
2282
+ max-width: min(440px, 100%);
2283
+ }
2284
+
2285
+ .workbase-markdown-editor .vditor-hint button {
2286
+ white-space: normal;
2287
+ text-align: left;
2288
+ }
2289
+
2290
+ .workbase-markdown-editor [contenteditable] {
2291
+ caret-color: var(--color-brand);
2292
+ outline: none;
2293
+ }
2294
+
2295
+ .workbase-markdown-editor [contenteditable]:focus-visible {
2296
+ box-shadow: inset 0 0 0 2px var(--color-primary);
2297
+ }
2298
+
2299
+ .workbase-markdown-editor button:focus-visible {
2300
+ outline: 2px solid var(--color-brand);
2301
+ outline-offset: 2px;
2302
+ }
2303
+
2304
+ .workbase-markdown-editor ::selection {
2305
+ background: var(--color-brand-weak);
2306
+ color: var(--color-foreground);
2307
+ }
2308
+
2309
+ .workbase-markdown-editor[data-disabled="true"] {
2310
+ opacity: .7;
2311
+ }
2312
+
2313
+ .workbase-markdown-editor[data-readonly="true"] :is(.vditor-reset, .vditor-sv)[contenteditable="false"] {
2314
+ opacity: 1;
2315
+ cursor: text;
2316
+ }
2317
+
2318
+ .markdown-editor-loading {
2319
+ color: var(--color-muted);
2320
+ border: 1px solid var(--color-border);
2321
+ border-radius: 6px;
2322
+ padding: 24px;
2323
+ }
2324
+
2325
+ .markdown-editor-error {
2326
+ color: var(--color-danger);
2327
+ line-height: 1.6;
2328
+ }
2329
+
2330
+ .markdown-editor-error button {
2331
+ color: var(--color-brand);
2332
+ cursor: pointer;
2333
+ font: inherit;
2334
+ background: none;
2335
+ border: 0;
2336
+ margin-left: 8px;
2337
+ text-decoration: underline;
2338
+ }
2339
+
2340
+ .markdown-editor-fallback {
2341
+ border: 1px solid var(--color-border);
2342
+ background: var(--color-surface);
2343
+ width: 100%;
2344
+ min-height: 360px;
2345
+ color: var(--color-foreground);
2346
+ resize: vertical;
2347
+ padding: 16px;
2348
+ font: 14px / 1.8 ui-monospace, monospace;
2349
+ }
2350
+
2351
+ .markdown-editor-form-value {
2352
+ clip-path: inset(50%);
2353
+ border: 0;
2354
+ width: 1px;
2355
+ height: 1px;
2356
+ margin: -1px;
2357
+ padding: 0;
2358
+ position: absolute;
2359
+ overflow: hidden;
2360
+ }
2361
+
2362
+ @media (width <= 760px) {
2363
+ .workbase-markdown-editor .vditor-content {
2364
+ flex-wrap: wrap;
2365
+ }
2366
+
2367
+ .workbase-markdown-editor .vditor-content > .vditor-sv, .workbase-markdown-editor .vditor-content > .vditor-preview {
2368
+ flex-basis: 100%;
2369
+ width: 100%;
2370
+ }
2371
+
2372
+ .workbase-markdown-editor .vditor-content > .vditor-preview {
2373
+ border-top: 1px solid var(--color-border);
2374
+ border-left: 0;
2375
+ }
2376
+ }