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