1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 | .vditor {
|
28 | --border-color: #d1d5da;
|
29 | --second-color: rgba(88, 96, 105, 0.36);
|
30 | --panel-background-color: #fff;
|
31 | --panel-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
|
32 | --toolbar-background-color: #f6f8fa;
|
33 | --toolbar-icon-color: #586069;
|
34 | --toolbar-icon-hover-color: #4285f4;
|
35 | --toolbar-height: 35px;
|
36 | --toolbar-divider-margin-top: 8px;
|
37 | --textarea-background-color: #fafbfc;
|
38 | --textarea-text-color: #24292e;
|
39 | --resize-icon-color: var(--toolbar-icon-color);
|
40 | --resize-background-color: var(--toolbar-background-color);
|
41 | --resize-hover-icon-color: var(--panel-background-color);
|
42 | --resize-hover-background-color: var(--toolbar-icon-hover-color);
|
43 | --count-background-color: rgba(27, 31, 35, 0.05);
|
44 | --heading-border-color: #eaecef;
|
45 | --blockquote-color: #6a737d;
|
46 | --ir-heading-color: #660e7a;
|
47 | --ir-title-color: #808080;
|
48 | --ir-bi-color: #0033b3;
|
49 | --ir-link-color: #008000;
|
50 | --ir-bracket-color: #0000ff;
|
51 | --ir-paren-color: #008000;
|
52 | }
|
53 | .vditor--dark {
|
54 | --border-color: #141414;
|
55 | --second-color: rgba(185, 185, 185, 0.36);
|
56 | --panel-background-color: #24292e;
|
57 | --panel-shadow: 0 1px 2px rgba(255, 255, 255, 0.2);
|
58 | --toolbar-background-color: #1d2125;
|
59 | --toolbar-icon-color: #b9b9b9;
|
60 | --toolbar-icon-hover-color: #fff;
|
61 | --textarea-background-color: #2f363d;
|
62 | --textarea-text-color: #d1d5da;
|
63 | --resize-icon-color: var(--border-color);
|
64 | --resize-background-color: var(--second-color);
|
65 | --resize-hover-icon-color: var(--toolbar-icon-hover-color);
|
66 | --resize-hover-background-color: rgba(185, 185, 185, 0.86);
|
67 | --count-background-color: rgba(66, 133, 244, 0.36);
|
68 | --heading-border-color: var(--textarea-text-color);
|
69 | --blockquote-color: var(--toolbar-icon-color);
|
70 | --ir-heading-color: #9876aa;
|
71 | --ir-title-color: #808080;
|
72 | --ir-bi-color: #cc7832;
|
73 | --ir-link-color: #ffc66d;
|
74 | --ir-bracket-color: #287bde;
|
75 | --ir-paren-color: #6a8759;
|
76 | }
|
77 |
|
78 |
|
79 |
|
80 |
|
81 |
|
82 |
|
83 | @-webkit-keyframes tooltip-appear {
|
84 | from {
|
85 | opacity: 0;
|
86 | }
|
87 | to {
|
88 | opacity: 1;
|
89 | }
|
90 | }
|
91 | @keyframes tooltip-appear {
|
92 | from {
|
93 | opacity: 0;
|
94 | }
|
95 | to {
|
96 | opacity: 1;
|
97 | }
|
98 | }
|
99 | .vditor-tooltipped {
|
100 | position: relative;
|
101 | cursor: pointer;
|
102 | }
|
103 | .vditor-tooltipped::after {
|
104 | position: absolute;
|
105 | z-index: 1000000;
|
106 | display: none;
|
107 | padding: 5px 8px;
|
108 | font-size: 11px;
|
109 | font-weight: normal;
|
110 | -webkit-font-smoothing: subpixel-antialiased;
|
111 | color: #fff;
|
112 | text-align: center;
|
113 | text-decoration: none;
|
114 | text-shadow: none;
|
115 | text-transform: none;
|
116 | letter-spacing: normal;
|
117 | word-wrap: break-word;
|
118 | white-space: pre;
|
119 | pointer-events: none;
|
120 | content: attr(aria-label);
|
121 | background: #3b3e43;
|
122 | border-radius: 3px;
|
123 | line-height: 16px;
|
124 | opacity: 0;
|
125 | }
|
126 | .vditor-tooltipped::before {
|
127 | position: absolute;
|
128 | z-index: 1000001;
|
129 | display: none;
|
130 | width: 0;
|
131 | height: 0;
|
132 | color: #3b3e43;
|
133 | pointer-events: none;
|
134 | content: "";
|
135 | border: 5px solid transparent;
|
136 | opacity: 0;
|
137 | }
|
138 | .vditor-tooltipped--hover::before,
|
139 | .vditor-tooltipped--hover::after,
|
140 | .vditor-tooltipped:hover::before,
|
141 | .vditor-tooltipped:hover::after,
|
142 | .vditor-tooltipped:active::before,
|
143 | .vditor-tooltipped:active::after,
|
144 | .vditor-tooltipped:focus::before,
|
145 | .vditor-tooltipped:focus::after {
|
146 | display: inline-block;
|
147 | text-decoration: none;
|
148 | -webkit-animation-name: tooltip-appear;
|
149 | animation-name: tooltip-appear;
|
150 | -webkit-animation-duration: 0.15s;
|
151 | animation-duration: 0.15s;
|
152 | -webkit-animation-fill-mode: forwards;
|
153 | animation-fill-mode: forwards;
|
154 | -webkit-animation-timing-function: ease-in;
|
155 | animation-timing-function: ease-in;
|
156 | }
|
157 | .vditor-tooltipped__s::after,
|
158 | .vditor-tooltipped__se::after,
|
159 | .vditor-tooltipped__sw::after {
|
160 | top: 100%;
|
161 | right: 50%;
|
162 | margin-top: 5px;
|
163 | }
|
164 | .vditor-tooltipped__s::before,
|
165 | .vditor-tooltipped__se::before,
|
166 | .vditor-tooltipped__sw::before {
|
167 | top: auto;
|
168 | right: 50%;
|
169 | bottom: -5px;
|
170 | margin-right: -5px;
|
171 | border-bottom-color: #3b3e43;
|
172 | }
|
173 | .vditor-tooltipped__se::after {
|
174 | right: auto;
|
175 | left: 50%;
|
176 | margin-left: -15px;
|
177 | }
|
178 | .vditor-tooltipped__sw::after {
|
179 | margin-right: -15px;
|
180 | }
|
181 | .vditor-tooltipped__n::after,
|
182 | .vditor-tooltipped__ne::after,
|
183 | .vditor-tooltipped__nw::after {
|
184 | right: 50%;
|
185 | bottom: 100%;
|
186 | margin-bottom: 5px;
|
187 | }
|
188 | .vditor-tooltipped__n::before,
|
189 | .vditor-tooltipped__ne::before,
|
190 | .vditor-tooltipped__nw::before {
|
191 | top: -5px;
|
192 | right: 50%;
|
193 | bottom: auto;
|
194 | margin-right: -5px;
|
195 | border-top-color: #3b3e43;
|
196 | }
|
197 | .vditor-tooltipped__ne::after {
|
198 | right: auto;
|
199 | left: 50%;
|
200 | margin-left: -15px;
|
201 | }
|
202 | .vditor-tooltipped__nw::after {
|
203 | margin-right: -15px;
|
204 | }
|
205 | .vditor-tooltipped__s::after,
|
206 | .vditor-tooltipped__n::after {
|
207 | transform: translateX(50%);
|
208 | }
|
209 | .vditor-tooltipped__w::after {
|
210 | right: 100%;
|
211 | bottom: 50%;
|
212 | margin-right: 5px;
|
213 | transform: translateY(50%);
|
214 | }
|
215 | .vditor-tooltipped__w::before {
|
216 | top: 50%;
|
217 | bottom: 50%;
|
218 | left: -5px;
|
219 | margin-top: -5px;
|
220 | border-left-color: #3b3e43;
|
221 | }
|
222 | .vditor-tooltipped__e::after {
|
223 | bottom: 50%;
|
224 | left: 100%;
|
225 | margin-left: 5px;
|
226 | transform: translateY(50%);
|
227 | }
|
228 | .vditor-tooltipped__e::before {
|
229 | top: 50%;
|
230 | right: -5px;
|
231 | bottom: 50%;
|
232 | margin-top: -5px;
|
233 | border-right-color: #3b3e43;
|
234 | }
|
235 | @media screen and (max-width: 520px) {
|
236 | .vditor-tooltipped:before,
|
237 | .vditor-tooltipped:after {
|
238 | content: none;
|
239 | }
|
240 | }
|
241 |
|
242 |
|
243 |
|
244 |
|
245 |
|
246 |
|
247 | @-webkit-keyframes scale-in {
|
248 | 0% {
|
249 | opacity: 0;
|
250 | transform: scale(0.5);
|
251 | }
|
252 | 100% {
|
253 | opacity: 1;
|
254 | transform: scale(1);
|
255 | }
|
256 | }
|
257 | @keyframes scale-in {
|
258 | 0% {
|
259 | opacity: 0;
|
260 | transform: scale(0.5);
|
261 | }
|
262 | 100% {
|
263 | opacity: 1;
|
264 | transform: scale(1);
|
265 | }
|
266 | }
|
267 | .vditor-panel {
|
268 | background-color: var(--panel-background-color);
|
269 | position: absolute;
|
270 | box-shadow: var(--panel-shadow);
|
271 | border-radius: 3px;
|
272 | padding: 5px;
|
273 | z-index: 3;
|
274 | font-size: 14px;
|
275 | display: none;
|
276 | -webkit-user-select: none;
|
277 | -moz-user-select: none;
|
278 | -ms-user-select: none;
|
279 | user-select: none;
|
280 | max-width: 320px;
|
281 | min-width: 80px;
|
282 | -webkit-animation-duration: 0.15s;
|
283 | animation-duration: 0.15s;
|
284 | -webkit-animation-name: scale-in;
|
285 | animation-name: scale-in;
|
286 | -webkit-animation-timing-function: cubic-bezier(0.2, 0, 0.13, 1.5);
|
287 | animation-timing-function: cubic-bezier(0.2, 0, 0.13, 1.5);
|
288 | color: var(--toolbar-icon-color);
|
289 | }
|
290 | .vditor-panel--none {
|
291 | padding: 0;
|
292 | -webkit-animation: none;
|
293 | animation: none;
|
294 | min-width: auto;
|
295 | max-width: none;
|
296 | white-space: nowrap;
|
297 | opacity: 0.86;
|
298 | }
|
299 | .vditor-panel--arrow:before {
|
300 | position: absolute;
|
301 | width: 0;
|
302 | height: 0;
|
303 | pointer-events: none;
|
304 | content: " ";
|
305 | border: 7px solid transparent;
|
306 | top: -14px;
|
307 | left: 5px;
|
308 | border-bottom-color: var(--panel-background-color);
|
309 | }
|
310 | .vditor-panel--left {
|
311 | right: 0;
|
312 | }
|
313 | .vditor-panel--left.vditor-panel--arrow:before {
|
314 | right: 5px;
|
315 | left: auto;
|
316 | }
|
317 | .vditor-input {
|
318 | border: 0;
|
319 | padding: 3px 5px;
|
320 | background-color: var(--panel-background-color);
|
321 | font-size: 12px;
|
322 | color: var(--textarea-text-color);
|
323 | }
|
324 | .vditor-input:focus {
|
325 | background-color: var(--toolbar-background-color);
|
326 | outline: none;
|
327 | }
|
328 | .vditor-icon {
|
329 | color: var(--toolbar-icon-color);
|
330 | cursor: pointer;
|
331 | float: left;
|
332 | padding: 4px 5px;
|
333 | height: 21px;
|
334 | width: 23px;
|
335 | background-color: transparent;
|
336 | border: 0;
|
337 | box-sizing: border-box;
|
338 | }
|
339 | .vditor-icon:hover,
|
340 | .vditor-icon--current {
|
341 | color: var(--toolbar-icon-hover-color);
|
342 | background-color: transparent;
|
343 | }
|
344 | .vditor-icon:focus {
|
345 | outline: none;
|
346 | }
|
347 | .vditor-icon svg {
|
348 | height: 13px !important;
|
349 | width: 13px !important;
|
350 | float: left;
|
351 | fill: currentColor;
|
352 | pointer-events: none;
|
353 | }
|
354 | .vditor-toolbar {
|
355 | background-color: var(--toolbar-background-color);
|
356 | border-bottom: 1px solid var(--border-color);
|
357 | padding: 0 5px;
|
358 | line-height: 1;
|
359 | }
|
360 | .vditor-toolbar--pin {
|
361 | position: -webkit-sticky;
|
362 | position: sticky;
|
363 | top: 0;
|
364 | z-index: 1;
|
365 | }
|
366 | .vditor-toolbar--hide {
|
367 | transition: all 0.15s ease-in-out;
|
368 | height: 5px;
|
369 | overflow: hidden;
|
370 | }
|
371 | .vditor-toolbar--hide:hover {
|
372 | background-color: var(--toolbar-background-color);
|
373 | height: auto;
|
374 | overflow: visible;
|
375 | }
|
376 | .vditor-toolbar__item {
|
377 | float: left;
|
378 | position: relative;
|
379 | }
|
380 | .vditor-toolbar__item .vditor-tooltipped {
|
381 | color: var(--toolbar-icon-color);
|
382 | border: 0;
|
383 | padding: 10px 5px;
|
384 | background-color: transparent;
|
385 | height: var(--toolbar-height);
|
386 | width: 25px;
|
387 | box-sizing: border-box;
|
388 | font-size: 0;
|
389 | }
|
390 | .vditor-toolbar__item .vditor-tooltipped:focus {
|
391 | outline: none;
|
392 | }
|
393 | .vditor-toolbar__item .vditor-tooltipped:focus {
|
394 | cursor: pointer;
|
395 | color: var(--toolbar-icon-hover-color);
|
396 | }
|
397 | .vditor-toolbar__item svg {
|
398 | fill: currentColor;
|
399 | display: inline-block;
|
400 | stroke-width: 0;
|
401 | stroke: currentColor;
|
402 | width: 15px;
|
403 | height: 15px;
|
404 | }
|
405 | .vditor-toolbar__item input {
|
406 | position: absolute;
|
407 | width: 25px;
|
408 | height: var(--toolbar-height);
|
409 | top: 0;
|
410 | left: 0;
|
411 | cursor: pointer;
|
412 | opacity: 0.001;
|
413 | overflow: hidden;
|
414 | }
|
415 | .vditor-toolbar__divider {
|
416 | float: left;
|
417 | height: calc(var(--toolbar-height) - (var(--toolbar-divider-margin-top) * 2));
|
418 | border-left: 1px solid var(--second-color);
|
419 | margin: var(--toolbar-divider-margin-top) 8px;
|
420 | }
|
421 | .vditor-toolbar__br {
|
422 | width: 100%;
|
423 | padding: 0 !important;
|
424 | height: 0 !important;
|
425 | }
|
426 | .vditor-menu--current {
|
427 | color: var(--toolbar-icon-hover-color) !important;
|
428 | }
|
429 | .vditor-menu--disabled {
|
430 | color: var(--second-color) !important;
|
431 | cursor: not-allowed !important;
|
432 | }
|
433 | .vditor-emojis {
|
434 | display: inline-block;
|
435 | overflow: auto;
|
436 | }
|
437 | .vditor-emojis::-webkit-scrollbar {
|
438 | display: none;
|
439 | }
|
440 | .vditor-emojis__tip {
|
441 | flex: 1;
|
442 | min-width: 1px;
|
443 | width: 200px;
|
444 | margin-right: 10px;
|
445 | color: var(--toolbar-icon-color);
|
446 | white-space: nowrap;
|
447 | text-overflow: ellipsis;
|
448 | overflow: hidden;
|
449 | }
|
450 | .vditor-emojis__tail {
|
451 | margin-top: 5px;
|
452 | font-size: 12px;
|
453 | color: var(--toolbar-icon-color);
|
454 | display: flex;
|
455 | }
|
456 | .vditor-emojis__tail a {
|
457 | text-decoration: none;
|
458 | color: var(--toolbar-icon-color);
|
459 | }
|
460 | .vditor-emojis__tail a:hover {
|
461 | color: var(--toolbar-icon-hover-color);
|
462 | }
|
463 | .vditor-emojis button {
|
464 | cursor: pointer;
|
465 | border-radius: 3px;
|
466 | float: left;
|
467 | height: 30px;
|
468 | width: 30px;
|
469 | text-align: center;
|
470 | line-height: 26px;
|
471 | padding: 3px;
|
472 | box-sizing: border-box;
|
473 | font-size: 16px;
|
474 | transition: all 0.15s ease-in-out;
|
475 | border: 0;
|
476 | margin: 0;
|
477 | background-color: transparent;
|
478 | overflow: hidden;
|
479 | }
|
480 | .vditor-emojis button:focus {
|
481 | outline: none;
|
482 | }
|
483 | .vditor-emojis button:hover .vditor-emojis__icon {
|
484 | display: inline-block;
|
485 | transform: scale(1.2);
|
486 | }
|
487 | .vditor-emojis img {
|
488 | height: 20px;
|
489 | width: 20px;
|
490 | float: left;
|
491 | margin: 3px 0 0 3px;
|
492 | }
|
493 | @media screen and (max-width: 520px) {
|
494 | .vditor-toolbar__item {
|
495 | padding: 0 12px;
|
496 | }
|
497 | .vditor-panel--left.vditor-panel--arrow:before {
|
498 | right: 17px;
|
499 | }
|
500 | }
|
501 | @media (hover: hover) and (pointer: fine) {
|
502 | .vditor-toolbar__item .vditor-tooltipped:hover {
|
503 | color: var(--toolbar-icon-hover-color);
|
504 | }
|
505 | }
|
506 | @-webkit-keyframes slideInDown {
|
507 | from {
|
508 | transform: translate3d(0, -100%, 0);
|
509 | visibility: visible;
|
510 | }
|
511 | to {
|
512 | transform: translate3d(0, 0, 0);
|
513 | }
|
514 | }
|
515 | @keyframes slideInDown {
|
516 | from {
|
517 | transform: translate3d(0, -100%, 0);
|
518 | visibility: visible;
|
519 | }
|
520 | to {
|
521 | transform: translate3d(0, 0, 0);
|
522 | }
|
523 | }
|
524 | .vditor {
|
525 | display: flex;
|
526 | flex-direction: column;
|
527 | border: 1px solid var(--border-color);
|
528 | border-radius: 3px;
|
529 | box-sizing: border-box;
|
530 | 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";
|
531 | }
|
532 | .vditor .vditor-copy {
|
533 | z-index: auto;
|
534 | }
|
535 | .vditor--fullscreen {
|
536 | position: fixed;
|
537 | top: 0;
|
538 | width: 100% !important;
|
539 | left: 0;
|
540 | height: 100vh !important;
|
541 | z-index: 90;
|
542 | border-radius: 0;
|
543 | }
|
544 | .vditor-content {
|
545 | display: flex;
|
546 | min-height: 60px;
|
547 | flex: 1;
|
548 | min-width: 1px;
|
549 | position: relative;
|
550 | }
|
551 | .vditor-preview {
|
552 | flex: 1;
|
553 | min-width: 1px;
|
554 | overflow: auto;
|
555 | margin-left: -1px;
|
556 | border-left: 1px solid var(--border-color);
|
557 | box-sizing: border-box;
|
558 | border-radius: 0 0 3px 0;
|
559 | background-color: var(--textarea-background-color);
|
560 | }
|
561 | .vditor-preview::-webkit-scrollbar {
|
562 | display: none;
|
563 | }
|
564 | .vditor-preview__action {
|
565 | text-align: center;
|
566 | padding: 10px;
|
567 | background-color: var(--toolbar-background-color);
|
568 | }
|
569 | .vditor-preview__action button {
|
570 | background-color: var(--toolbar-background-color);
|
571 | color: var(--toolbar-icon-color);
|
572 | line-height: 20px;
|
573 | border: 0;
|
574 | margin: 0 10px;
|
575 | cursor: pointer;
|
576 | padding: 0 7px;
|
577 | font-size: 12px;
|
578 | }
|
579 | .vditor-preview__action button.vditor-preview__action--current,
|
580 | .vditor-preview__action button:hover {
|
581 | color: var(--toolbar-icon-hover-color);
|
582 | background-color: var(--toolbar-background-color);
|
583 | }
|
584 | .vditor-preview__action button:focus {
|
585 | outline: none;
|
586 | }
|
587 | .vditor-preview__action button svg {
|
588 | fill: currentColor;
|
589 | height: 15px;
|
590 | width: 15px;
|
591 | vertical-align: middle;
|
592 | }
|
593 | .vditor-preview > .vditor-reset {
|
594 | padding: 10px;
|
595 | margin: 0 auto;
|
596 | }
|
597 | .vditor-preview img:not(.emoji) {
|
598 | cursor: pointer;
|
599 | }
|
600 | .vditor-devtools {
|
601 | display: none;
|
602 | background-color: var(--textarea-background-color);
|
603 | overflow: auto;
|
604 | flex: 1;
|
605 | min-width: 1px;
|
606 | box-shadow: inset 1px 0 var(--border-color);
|
607 | box-sizing: border-box;
|
608 | border-radius: 0 0 3px 0;
|
609 | padding: 10px;
|
610 | }
|
611 | .vditor-counter {
|
612 | padding: 3px;
|
613 | color: var(--toolbar-icon-color);
|
614 | background-color: var(--count-background-color);
|
615 | border-radius: 3px;
|
616 | font-size: 12px;
|
617 | -webkit-user-select: none;
|
618 | -moz-user-select: none;
|
619 | -ms-user-select: none;
|
620 | user-select: none;
|
621 | float: right;
|
622 | margin: 8px 3px 0 0;
|
623 | }
|
624 | .vditor-counter--error {
|
625 | color: #d23f31;
|
626 | background-color: rgba(210, 63, 49, 0.1);
|
627 | }
|
628 | .vditor-resize {
|
629 | padding: 3px 0;
|
630 | cursor: row-resize;
|
631 | -webkit-user-select: none;
|
632 | -moz-user-select: none;
|
633 | -ms-user-select: none;
|
634 | user-select: none;
|
635 | position: absolute;
|
636 | width: 100%;
|
637 | }
|
638 | .vditor-resize--top {
|
639 | top: -3px;
|
640 | }
|
641 | .vditor-resize--bottom {
|
642 | bottom: -3px;
|
643 | }
|
644 | .vditor-resize > div {
|
645 | height: 3px;
|
646 | background-color: var(--resize-background-color);
|
647 | transition: all 0.15s ease-in-out;
|
648 | }
|
649 | .vditor-resize:hover > div,
|
650 | .vditor-resize--selected > div {
|
651 | background-color: var(--resize-hover-background-color);
|
652 | }
|
653 | .vditor-resize:hover svg,
|
654 | .vditor-resize--selected svg {
|
655 | color: var(--resize-hover-icon-color);
|
656 | }
|
657 | .vditor-resize svg {
|
658 | fill: currentColor;
|
659 | stroke-width: 0;
|
660 | stroke: currentColor;
|
661 | width: 13px;
|
662 | height: 3px;
|
663 | display: block;
|
664 | margin: 0 auto;
|
665 | color: var(--resize-icon-color);
|
666 | }
|
667 | .vditor-upload {
|
668 | position: absolute;
|
669 | height: 3px;
|
670 | left: 0;
|
671 | top: -2px;
|
672 | transition: all 0.15s ease-in-out;
|
673 | background-color: #4285f4;
|
674 | }
|
675 | .vditor-tip {
|
676 | position: absolute;
|
677 | font-size: 12px;
|
678 | top: 10px;
|
679 | -webkit-animation-duration: 0.15s;
|
680 | animation-duration: 0.15s;
|
681 | -webkit-animation-fill-mode: both;
|
682 | animation-fill-mode: both;
|
683 | left: 50%;
|
684 | z-index: 5;
|
685 | }
|
686 | .vditor-tip--show {
|
687 | display: block;
|
688 | -webkit-animation-name: slideInDown;
|
689 | animation-name: slideInDown;
|
690 | }
|
691 | .vditor-tip__content {
|
692 | text-align: left;
|
693 | display: inline-block;
|
694 | line-height: 16px;
|
695 | padding: 3px 10px;
|
696 | border-radius: 3px;
|
697 | background: var(--toolbar-background-color);
|
698 | position: relative;
|
699 | margin-left: -50%;
|
700 | color: var(--toolbar-icon-color);
|
701 | max-width: 100%;
|
702 | box-shadow: var(--panel-shadow);
|
703 | }
|
704 | .vditor-tip__content ul {
|
705 | margin: 2px 0;
|
706 | padding: 0 0 0 18px;
|
707 | }
|
708 | .vditor-tip__content a {
|
709 | color: #4285f4;
|
710 | }
|
711 | .vditor-tip__close {
|
712 | position: absolute;
|
713 | color: var(--toolbar-icon-color);
|
714 | top: -7px;
|
715 | right: -15px;
|
716 | font-weight: bold;
|
717 | cursor: pointer;
|
718 | }
|
719 | .vditor-tip__close:hover {
|
720 | color: var(--toolbar-icon-hover-color);
|
721 | }
|
722 | .vditor-img {
|
723 | position: fixed;
|
724 | top: 0;
|
725 | left: 0;
|
726 | right: 0;
|
727 | bottom: 0;
|
728 | display: flex;
|
729 | flex-direction: column;
|
730 | z-index: 3;
|
731 | }
|
732 | .vditor-img__bar {
|
733 | border-bottom: 1px solid var(--border-color);
|
734 | background-color: var(--toolbar-background-color);
|
735 | text-align: center;
|
736 | height: 36px;
|
737 | box-sizing: border-box;
|
738 | display: flex;
|
739 | align-items: center;
|
740 | justify-content: center;
|
741 | }
|
742 | .vditor-img__btn {
|
743 | display: flex;
|
744 | align-items: center;
|
745 | cursor: pointer;
|
746 | margin-left: 24px;
|
747 | -webkit-user-select: none;
|
748 | -moz-user-select: none;
|
749 | -ms-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 audio {
|
869 | max-width: 100%;
|
870 | }
|
871 | .vditor-reset audio:focus {
|
872 | outline: none;
|
873 | }
|
874 | .vditor-reset video {
|
875 | max-height: 90vh;
|
876 | max-width: 100%;
|
877 | }
|
878 | .vditor-reset img {
|
879 | max-width: 100%;
|
880 | }
|
881 | .vditor-reset img.emoji {
|
882 | cursor: auto;
|
883 | max-width: 20px;
|
884 | vertical-align: sub;
|
885 | }
|
886 | .vditor-reset h1,
|
887 | .vditor-reset h2,
|
888 | .vditor-reset h3,
|
889 | .vditor-reset h4,
|
890 | .vditor-reset h5,
|
891 | .vditor-reset h6 {
|
892 | margin-top: 24px;
|
893 | margin-bottom: 16px;
|
894 | font-weight: 600;
|
895 | line-height: 1.25;
|
896 | }
|
897 | .vditor-reset h1:hover .vditor-anchor svg,
|
898 | .vditor-reset h2:hover .vditor-anchor svg,
|
899 | .vditor-reset h3:hover .vditor-anchor svg,
|
900 | .vditor-reset h4:hover .vditor-anchor svg,
|
901 | .vditor-reset h5:hover .vditor-anchor svg,
|
902 | .vditor-reset h6:hover .vditor-anchor svg {
|
903 | visibility: visible;
|
904 | }
|
905 | .vditor-reset h1 {
|
906 | font-size: 1.75em;
|
907 | }
|
908 | .vditor-reset h2 {
|
909 | font-size: 1.55em;
|
910 | }
|
911 | .vditor-reset h3 {
|
912 | font-size: 1.38em;
|
913 | }
|
914 | .vditor-reset h4 {
|
915 | font-size: 1.25em;
|
916 | }
|
917 | .vditor-reset h5 {
|
918 | font-size: 1.13em;
|
919 | }
|
920 | .vditor-reset h6 {
|
921 | font-size: 1em;
|
922 | }
|
923 | .vditor-reset hr {
|
924 | height: 2px;
|
925 | padding: 0;
|
926 | margin: 24px 0;
|
927 | background-color: #eaecef;
|
928 | border: 0;
|
929 | }
|
930 | .vditor-reset p {
|
931 | margin-top: 0;
|
932 | margin-bottom: 16px;
|
933 | }
|
934 | .vditor-reset blockquote {
|
935 | padding: 0 1em;
|
936 | color: #6a737d;
|
937 | border-left: 0.25em solid #eaecef;
|
938 | margin: 0 0 16px 0;
|
939 | }
|
940 | .vditor-reset blockquote > :first-child {
|
941 | margin-top: 0;
|
942 | }
|
943 | .vditor-reset blockquote > :last-child {
|
944 | margin-bottom: 0;
|
945 | }
|
946 | .vditor-reset ins > iframe {
|
947 | border: 0;
|
948 | }
|
949 | .vditor-reset iframe {
|
950 | border: 1px solid #d1d5da;
|
951 | max-width: 100%;
|
952 | box-sizing: border-box;
|
953 | }
|
954 | .vditor-reset iframe.iframe__video {
|
955 | min-width: 80%;
|
956 | min-height: 36vh;
|
957 | }
|
958 | .vditor-reset table {
|
959 | border-collapse: collapse;
|
960 | empty-cells: show;
|
961 | margin-bottom: 16px;
|
962 | overflow: auto;
|
963 | border-spacing: 0;
|
964 | display: block;
|
965 | word-break: keep-all;
|
966 | width: 100%;
|
967 | }
|
968 | .vditor-reset table tr {
|
969 | background-color: #fafbfc;
|
970 | border-top: 1px solid #c6cbd1;
|
971 | }
|
972 | .vditor-reset table td,
|
973 | .vditor-reset table th {
|
974 | padding: 6px 13px;
|
975 | border: 1px solid #dfe2e5;
|
976 | word-break: normal;
|
977 | white-space: nowrap;
|
978 | }
|
979 | .vditor-reset table td:first-child::after,
|
980 | .vditor-reset table th:first-child::after {
|
981 | content: "";
|
982 | display: inline-block;
|
983 | vertical-align: top;
|
984 | min-height: 24px;
|
985 | }
|
986 | .vditor-reset table th {
|
987 | font-weight: 600;
|
988 | }
|
989 | .vditor-reset table tbody tr:nth-child(2n) {
|
990 | background-color: #fff;
|
991 | }
|
992 | .vditor-reset code:not(.hljs):not(.highlight-chroma) {
|
993 | padding: 0.2em 0.4em;
|
994 | margin: 0;
|
995 | font-size: 85%;
|
996 | border-radius: 3px;
|
997 | font-family: mononoki, Consolas, "Liberation Mono", Menlo, Courier, monospace, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols";
|
998 | word-break: break-word;
|
999 | background-size: 20px 20px;
|
1000 | white-space: pre-wrap;
|
1001 | }
|
1002 | .vditor-reset pre {
|
1003 | margin: 1em 0;
|
1004 | }
|
1005 | .vditor-reset pre > code {
|
1006 | margin: 0;
|
1007 | font-size: 85%;
|
1008 | padding: 0.5em;
|
1009 | border-radius: 5px;
|
1010 | display: block;
|
1011 | overflow: auto;
|
1012 | white-space: pre;
|
1013 | font-family: mononoki, Consolas, "Liberation Mono", Menlo, Courier, monospace, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols";
|
1014 | background-size: 20px 20px;
|
1015 | 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==);
|
1016 | word-break: initial;
|
1017 | word-wrap: normal;
|
1018 | }
|
1019 | .vditor-reset pre:hover div.vditor-copy {
|
1020 | display: block;
|
1021 | }
|
1022 | .vditor-reset .language-math,
|
1023 | .vditor-reset .language-echarts,
|
1024 | .vditor-reset .language-mindmap,
|
1025 | .vditor-reset .language-plantuml,
|
1026 | .vditor-reset .language-mermaid,
|
1027 | .vditor-reset .language-markmap,
|
1028 | .vditor-reset .language-abc,
|
1029 | .vditor-reset .language-flowchart,
|
1030 | .vditor-reset .language-graphviz {
|
1031 | margin-bottom: 16px;
|
1032 | }
|
1033 | .vditor-reset .language-math mjx-container:focus {
|
1034 | outline: none;
|
1035 | cursor: context-menu;
|
1036 | }
|
1037 | .vditor-reset .language-echarts,
|
1038 | .vditor-reset .language-mindmap {
|
1039 | overflow: hidden;
|
1040 | height: 420px;
|
1041 | }
|
1042 | .vditor-reset .language-mermaid,
|
1043 | .vditor-reset .language-markmap,
|
1044 | .vditor-reset .language-flowchart,
|
1045 | .vditor-reset .language-graphviz {
|
1046 | text-align: center;
|
1047 | }
|
1048 | .vditor-reset .language-graphviz parsererror {
|
1049 | overflow: auto;
|
1050 | }
|
1051 | .vditor-reset kbd {
|
1052 | display: inline-block;
|
1053 | padding: 3px 5px;
|
1054 | font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
1055 | line-height: 10px;
|
1056 | color: #24292e;
|
1057 | vertical-align: middle;
|
1058 | background-color: #fafbfc;
|
1059 | border: solid 1px #d1d5da;
|
1060 | border-radius: 3px;
|
1061 | box-shadow: inset 0 -1px 0 #d1d5da;
|
1062 | }
|
1063 | .vditor-reset summary {
|
1064 | cursor: pointer;
|
1065 | }
|
1066 | .vditor-reset summary:focus {
|
1067 | outline: none;
|
1068 | }
|
1069 | .vditor-reset svg {
|
1070 | height: auto;
|
1071 | width: auto;
|
1072 | stroke-width: initial;
|
1073 | }
|
1074 | .vditor-reset p:last-child,
|
1075 | .vditor-reset blockquote:last-child,
|
1076 | .vditor-reset pre:last-child,
|
1077 | .vditor-reset ul:last-child,
|
1078 | .vditor-reset ol:last-child,
|
1079 | .vditor-reset hr:last-child {
|
1080 | margin-bottom: 0;
|
1081 | }
|
1082 | .vditor-comment {
|
1083 | border-bottom: 2px solid #f8e6ab;
|
1084 | }
|
1085 | .vditor-comment--focus,
|
1086 | .vditor-comment--hover {
|
1087 | background-color: #faf1d1;
|
1088 | border-bottom: 2px solid #ffc60a;
|
1089 | }
|
1090 | .vditor-comment--focus .vditor-comment,
|
1091 | .vditor-comment--hover .vditor-comment {
|
1092 | border-bottom: 2px solid #ffc60a;
|
1093 | }
|
1094 | .vditor-task {
|
1095 | list-style: none !important;
|
1096 | word-break: break-all;
|
1097 | }
|
1098 | .vditor-task input {
|
1099 | margin: 0 0.2em 0.25em -1.6em;
|
1100 | font-size: 12px;
|
1101 | vertical-align: middle;
|
1102 | }
|
1103 | .vditor-copy {
|
1104 | position: relative;
|
1105 | display: none;
|
1106 | z-index: 1;
|
1107 | }
|
1108 | .vditor-copy textarea {
|
1109 | position: absolute;
|
1110 | left: -100000px;
|
1111 | height: 10px;
|
1112 | }
|
1113 | .vditor-copy span {
|
1114 | cursor: pointer;
|
1115 | position: absolute;
|
1116 | right: 15px;
|
1117 | top: 0.5em;
|
1118 | }
|
1119 | .vditor-copy svg {
|
1120 | color: #586069;
|
1121 | height: 14px;
|
1122 | width: 14px !important;
|
1123 | display: block;
|
1124 | fill: currentColor;
|
1125 | }
|
1126 | .vditor-linenumber {
|
1127 | padding-left: 4em !important;
|
1128 | position: relative;
|
1129 | }
|
1130 | .vditor-linenumber__rows {
|
1131 | position: absolute;
|
1132 | pointer-events: none;
|
1133 | top: 0.5em;
|
1134 | left: 0;
|
1135 | width: 3em;
|
1136 |
|
1137 | -webkit-user-select: none;
|
1138 | -moz-user-select: none;
|
1139 | -ms-user-select: none;
|
1140 | user-select: none;
|
1141 | counter-reset: linenumber;
|
1142 | }
|
1143 | .vditor-linenumber__rows > span {
|
1144 | pointer-events: none;
|
1145 | display: block;
|
1146 | }
|
1147 | .vditor-linenumber__rows > span::before {
|
1148 | counter-increment: linenumber;
|
1149 | content: counter(linenumber);
|
1150 | color: rgba(158, 150, 150, 0.38);
|
1151 | display: block;
|
1152 | padding-right: 1em;
|
1153 | text-align: right;
|
1154 | }
|
1155 | .vditor-speech {
|
1156 | position: absolute;
|
1157 | display: none;
|
1158 | background-color: #f6f8fa;
|
1159 | border: 1px solid #d1d5da;
|
1160 | border-radius: 3px;
|
1161 | padding: 3px;
|
1162 | cursor: pointer;
|
1163 | color: #586069;
|
1164 | }
|
1165 | .vditor-speech:hover,
|
1166 | .vditor-speech--current {
|
1167 | color: #4285f4;
|
1168 | }
|
1169 | .vditor-speech svg {
|
1170 | height: 14px;
|
1171 | width: 14px;
|
1172 | fill: currentColor;
|
1173 | display: block;
|
1174 | stroke-width: 0;
|
1175 | stroke: currentColor;
|
1176 | }
|
1177 | .vditor-anchor {
|
1178 | margin-left: 5px;
|
1179 | }
|
1180 | .vditor-anchor--left {
|
1181 | float: left;
|
1182 | padding-right: 4px;
|
1183 | margin-left: -20px;
|
1184 | }
|
1185 | .vditor-anchor svg {
|
1186 | visibility: hidden;
|
1187 | }
|
1188 | .vditor-anchor:hover svg {
|
1189 | visibility: visible;
|
1190 | }
|
1191 | .vditor-anchor:focus {
|
1192 | outline: none;
|
1193 | }
|
1194 | .vditor-linkcard {
|
1195 | margin: 31px auto 16px;
|
1196 | transition: all 0.15s ease-in-out;
|
1197 | cursor: pointer;
|
1198 | max-width: 768px;
|
1199 | padding: 0 10px;
|
1200 | }
|
1201 | .vditor-linkcard a {
|
1202 | border-radius: 3px;
|
1203 | background-color: #f6f8fa;
|
1204 | overflow: hidden;
|
1205 | max-height: 250px;
|
1206 | display: flex;
|
1207 | text-decoration: none;
|
1208 | flex-wrap: wrap-reverse;
|
1209 | box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
|
1210 | }
|
1211 | .vditor-linkcard a:hover {
|
1212 | box-shadow: 0 0 3px rgba(0, 0, 0, 0.13), 0 3px 6px rgba(0, 0, 0, 0.26);
|
1213 | text-decoration: none;
|
1214 | }
|
1215 | .vditor-linkcard a:visited .vditor-linkcard__abstract {
|
1216 | color: rgba(88, 96, 105, 0.36);
|
1217 | }
|
1218 | .vditor-linkcard__info {
|
1219 | padding: 10px;
|
1220 | min-width: 200px;
|
1221 | box-sizing: border-box;
|
1222 | flex: 1;
|
1223 | }
|
1224 | .vditor-linkcard__title {
|
1225 | font-size: 14px;
|
1226 | font-weight: 400;
|
1227 | color: #24292e;
|
1228 | display: flex;
|
1229 | align-items: center;
|
1230 | }
|
1231 | .vditor-linkcard__title img {
|
1232 | cursor: pointer;
|
1233 | height: 20px;
|
1234 | width: 20px;
|
1235 | border-radius: 3px;
|
1236 | flex-shrink: 0;
|
1237 | margin-right: 5px;
|
1238 | }
|
1239 | .vditor-linkcard__abstract {
|
1240 | word-wrap: break-word;
|
1241 | word-break: break-all;
|
1242 | -webkit-line-clamp: 2;
|
1243 | overflow: hidden;
|
1244 | text-overflow: ellipsis;
|
1245 | -webkit-box-orient: vertical;
|
1246 | display: -webkit-box;
|
1247 | font-size: 13px;
|
1248 | color: #586069;
|
1249 | margin: 5px 0;
|
1250 | }
|
1251 | .vditor-linkcard__site {
|
1252 | font-size: 12px;
|
1253 | color: #4285f4;
|
1254 | }
|
1255 | .vditor-linkcard__image {
|
1256 | background-size: cover;
|
1257 | background-repeat: no-repeat;
|
1258 | background-position: center center;
|
1259 | max-width: 250px;
|
1260 | min-width: 126px;
|
1261 | cursor: pointer;
|
1262 | background-color: rgba(88, 96, 105, 0.36);
|
1263 | }
|
1264 | .vditor-footnotes__goto-ref {
|
1265 | text-decoration: none;
|
1266 | }
|
1267 | .vditor-toc {
|
1268 | margin-bottom: 16px;
|
1269 | -webkit-user-select: text;
|
1270 | -moz-user-select: text;
|
1271 | -ms-user-select: text;
|
1272 | user-select: text;
|
1273 | color: #4285f4;
|
1274 | }
|
1275 | .vditor-toc .vditor-outline__action {
|
1276 | display: none;
|
1277 | }
|
1278 | .vditor-toc ul {
|
1279 | list-style: none !important;
|
1280 | padding-left: 1em;
|
1281 | }
|
1282 | .vditor-toc > ul {
|
1283 | padding-left: 0;
|
1284 | }
|
1285 | .vditor-toc span {
|
1286 | cursor: pointer;
|
1287 | }
|
1288 | .vditor-toc li > span > svg {
|
1289 | width: 0;
|
1290 | height: 0;
|
1291 | }
|
1292 | .vditor-outline {
|
1293 | width: 250px;
|
1294 | border-right: 1px solid var(--border-color);
|
1295 | background-color: var(--panel-background-color);
|
1296 | display: none;
|
1297 | overflow: auto;
|
1298 | }
|
1299 | .vditor-outline--right {
|
1300 | border-right: 0;
|
1301 | border-left: 1px solid var(--border-color);
|
1302 | }
|
1303 | .vditor-outline::-webkit-scrollbar {
|
1304 | display: none;
|
1305 | }
|
1306 | .vditor-outline ul {
|
1307 | list-style: none !important;
|
1308 | padding-left: 1em;
|
1309 | margin: 0;
|
1310 | }
|
1311 | .vditor-outline__content > ul {
|
1312 | padding-left: 0;
|
1313 | }
|
1314 | .vditor-outline li > span {
|
1315 | display: flex;
|
1316 | align-items: center;
|
1317 | padding: 5px 10px;
|
1318 | cursor: pointer;
|
1319 | color: var(--textarea-text-color);
|
1320 | }
|
1321 | .vditor-outline li > span > svg {
|
1322 | height: 10px;
|
1323 | width: 10px;
|
1324 | }
|
1325 | .vditor-outline li > span:hover {
|
1326 | color: var(--toolbar-icon-hover-color);
|
1327 | }
|
1328 | .vditor-outline li > span > span {
|
1329 | white-space: nowrap;
|
1330 | overflow: hidden;
|
1331 | text-overflow: ellipsis;
|
1332 | }
|
1333 | .vditor-outline__title {
|
1334 | border-bottom: 1px dashed var(--border-color);
|
1335 | padding: 5px 10px;
|
1336 | color: var(--toolbar-icon-color);
|
1337 | font-size: 12px;
|
1338 | }
|
1339 | .vditor-outline__action {
|
1340 | transition: all 0.15s ease-in-out;
|
1341 | fill: currentColor;
|
1342 | margin-right: 5px;
|
1343 | flex-shrink: 0;
|
1344 | }
|
1345 | .vditor-outline__action--close {
|
1346 | transform: rotate(-90deg);
|
1347 | }
|
1348 | .vditor-wysiwyg {
|
1349 | box-sizing: border-box;
|
1350 | flex: 1;
|
1351 | position: relative;
|
1352 | width: 100%;
|
1353 | min-width: 1px;
|
1354 | }
|
1355 | .vditor-wysiwyg pre.vditor-reset {
|
1356 | background-color: var(--panel-background-color);
|
1357 | margin: 0;
|
1358 | white-space: pre-wrap;
|
1359 | height: 100%;
|
1360 | box-sizing: border-box;
|
1361 | }
|
1362 | .vditor-wysiwyg pre.vditor-reset[contenteditable="false"] {
|
1363 | opacity: 0.3;
|
1364 | cursor: not-allowed;
|
1365 | }
|
1366 | .vditor-wysiwyg pre.vditor-reset:empty::before {
|
1367 | content: attr(placeholder);
|
1368 | color: var(--second-color);
|
1369 | }
|
1370 | .vditor-wysiwyg pre.vditor-reset:focus {
|
1371 | outline: none;
|
1372 | background-color: var(--textarea-background-color);
|
1373 | }
|
1374 | .vditor-wysiwyg pre.vditor-reset:after {
|
1375 | content: "";
|
1376 | height: var(--editor-bottom);
|
1377 | display: block;
|
1378 | }
|
1379 | .vditor-wysiwyg blockquote:empty::before,
|
1380 | .vditor-wysiwyg pre > code:empty::before,
|
1381 | .vditor-wysiwyg p:empty::before,
|
1382 | .vditor-wysiwyg h1:empty::after,
|
1383 | .vditor-wysiwyg h2:empty::after,
|
1384 | .vditor-wysiwyg h3:empty::after,
|
1385 | .vditor-wysiwyg h4:empty::after,
|
1386 | .vditor-wysiwyg h5:empty::after,
|
1387 | .vditor-wysiwyg h6:empty::after {
|
1388 | content: ' ';
|
1389 | }
|
1390 | .vditor-wysiwyg code[data-marker="`"] {
|
1391 | padding-left: 0 !important;
|
1392 | padding-right: 0 !important;
|
1393 | }
|
1394 | .vditor-wysiwyg__block pre:first-child {
|
1395 | margin-bottom: -1em;
|
1396 | }
|
1397 | .vditor-wysiwyg__block pre:first-child code {
|
1398 | color: var(--textarea-text-color);
|
1399 | height: auto;
|
1400 | text-align: left;
|
1401 | }
|
1402 | .vditor-wysiwyg__block pre:last-child {
|
1403 | margin-bottom: 1em;
|
1404 | }
|
1405 | .vditor-wysiwyg__preview {
|
1406 | cursor: pointer;
|
1407 | white-space: initial;
|
1408 | min-height: 27px;
|
1409 | }
|
1410 | .vditor-wysiwyg > .vditor-reset > h1:before,
|
1411 | .vditor-wysiwyg > .vditor-reset > h2:before,
|
1412 | .vditor-wysiwyg > .vditor-reset > h3:before,
|
1413 | .vditor-wysiwyg > .vditor-reset > h4:before,
|
1414 | .vditor-wysiwyg > .vditor-reset > h5:before,
|
1415 | .vditor-wysiwyg > .vditor-reset > h6:before,
|
1416 | .vditor-wysiwyg div.vditor-wysiwyg__block:before,
|
1417 | .vditor-wysiwyg div[data-type="link-ref-defs-block"]:before,
|
1418 | .vditor-wysiwyg div[data-type="footnotes-block"]:before,
|
1419 | .vditor-wysiwyg .vditor-toc:before {
|
1420 | float: left;
|
1421 | padding-right: 4px;
|
1422 | margin-left: -29px;
|
1423 | content: 'H1';
|
1424 | font-size: 0.85rem;
|
1425 | font-weight: normal;
|
1426 | color: var(--second-color);
|
1427 | }
|
1428 | .vditor-wysiwyg > .vditor-reset > h2:before {
|
1429 | content: 'H2';
|
1430 | }
|
1431 | .vditor-wysiwyg > .vditor-reset > h3:before {
|
1432 | content: 'H3';
|
1433 | }
|
1434 | .vditor-wysiwyg > .vditor-reset > h4:before {
|
1435 | content: 'H4';
|
1436 | }
|
1437 | .vditor-wysiwyg > .vditor-reset > h5:before {
|
1438 | content: 'H5';
|
1439 | }
|
1440 | .vditor-wysiwyg > .vditor-reset > h6:before {
|
1441 | content: 'H6';
|
1442 | }
|
1443 | .vditor-wysiwyg div[data-type="link-ref-defs-block"]:before {
|
1444 | content: '"A"';
|
1445 | }
|
1446 | .vditor-wysiwyg div[data-type="footnotes-block"]:before {
|
1447 | content: '^F';
|
1448 | }
|
1449 | .vditor-wysiwyg div.vditor-wysiwyg__block:before {
|
1450 | content: "</>";
|
1451 | }
|
1452 | .vditor-wysiwyg div.vditor-wysiwyg__block[data-type="yaml-front-matter"]:before {
|
1453 | content: "F";
|
1454 | }
|
1455 | .vditor-wysiwyg div.vditor-wysiwyg__block[data-type="math-block"]:before {
|
1456 | content: "$$";
|
1457 | }
|
1458 | .vditor-wysiwyg .vditor-toc:before {
|
1459 | content: "ToC";
|
1460 | }
|
1461 | .vditor-wysiwyg hr {
|
1462 | display: inline-block;
|
1463 | margin: 12px 0;
|
1464 | width: 100%;
|
1465 | }
|
1466 | .vditor-wysiwyg details {
|
1467 | white-space: initial;
|
1468 | }
|
1469 | .vditor-wysiwyg a {
|
1470 | cursor: pointer;
|
1471 | }
|
1472 | .vditor-wysiwyg span[data-type="backslash"] > span {
|
1473 | display: none;
|
1474 | color: var(--second-color);
|
1475 | }
|
1476 | .vditor-wysiwyg span[data-type="link-ref"],
|
1477 | .vditor-wysiwyg sup[data-type="footnotes-ref"] {
|
1478 | color: #4285f4;
|
1479 | }
|
1480 | .vditor-wysiwyg span[data-type="toc-h"] {
|
1481 | color: #4285f4;
|
1482 | text-decoration: underline;
|
1483 | }
|
1484 | .vditor-wysiwyg div[data-type="footnotes-block"] {
|
1485 | border-top: 2px solid var(--heading-border-color);
|
1486 | padding-top: 24px;
|
1487 | margin-top: 24px;
|
1488 | }
|
1489 | .vditor-wysiwyg div[data-type="link-ref-defs-block"] {
|
1490 | color: var(--blockquote-color);
|
1491 | }
|
1492 | @media screen and (max-width: 520px) {
|
1493 | .vditor-wysiwyg h1:before,
|
1494 | .vditor-wysiwyg h2:before,
|
1495 | .vditor-wysiwyg h3:before,
|
1496 | .vditor-wysiwyg h4:before,
|
1497 | .vditor-wysiwyg h5:before,
|
1498 | .vditor-wysiwyg h6:before,
|
1499 | .vditor-wysiwyg div.vditor-wysiwyg__block:before,
|
1500 | .vditor-wysiwyg div[data-type="link-ref-defs-block"]:before,
|
1501 | .vditor-wysiwyg div[data-type="footnotes-block"]:before,
|
1502 | .vditor-wysiwyg .vditor-toc:before {
|
1503 | content: none;
|
1504 | }
|
1505 | }
|
1506 | .vditor-ir {
|
1507 | box-sizing: border-box;
|
1508 | flex: 1;
|
1509 | min-width: 1px;
|
1510 | position: relative;
|
1511 | width: 100%;
|
1512 | }
|
1513 | .vditor-ir__node[data-type="code-block"]:before,
|
1514 | .vditor-ir__node[data-type="code-block"]:after,
|
1515 | .vditor-ir__node[data-type="yaml-front-matter"]:before,
|
1516 | .vditor-ir__node[data-type="yaml-front-matter"]:after,
|
1517 | .vditor-ir__node[data-type="math-block"]:before,
|
1518 | .vditor-ir__node[data-type="math-block"]:after {
|
1519 | content: ' ';
|
1520 | color: var(--second-color);
|
1521 | }
|
1522 | .vditor-ir__node:not(.vditor-ir__node--expand) .vditor-ir__marker {
|
1523 | padding: 0 !important;
|
1524 | }
|
1525 | .vditor-ir__node:not(.vditor-ir__node--expand)[data-type="a"] {
|
1526 | cursor: pointer;
|
1527 | }
|
1528 | .vditor-ir__node[data-type="link-ref"],
|
1529 | .vditor-ir__node[data-type="footnotes-ref"] {
|
1530 | color: #4285f4;
|
1531 | }
|
1532 | .vditor-ir__node[data-type="html-block"] {
|
1533 | margin-bottom: 1em;
|
1534 | }
|
1535 | .vditor-ir__node .vditor-ir__marker {
|
1536 | width: 0;
|
1537 | overflow: hidden;
|
1538 | display: inline-block;
|
1539 | height: 0;
|
1540 | transition: all 0.15s ease-in-out;
|
1541 | }
|
1542 | .vditor-ir__node--hidden .vditor-ir__marker {
|
1543 | visibility: hidden;
|
1544 | }
|
1545 | .vditor-ir__node--expand .vditor-ir__marker {
|
1546 | color: var(--second-color);
|
1547 | display: inline;
|
1548 | height: auto;
|
1549 | width: auto;
|
1550 | }
|
1551 | .vditor-ir__node--expand .vditor-ir__marker--hide {
|
1552 | display: none;
|
1553 | }
|
1554 | .vditor-ir__node--expand .vditor-ir__marker--heading {
|
1555 | color: var(--ir-heading-color);
|
1556 | }
|
1557 | .vditor-ir__node--expand .vditor-ir__marker--bi {
|
1558 | color: var(--ir-bi-color);
|
1559 | }
|
1560 | .vditor-ir__node--expand .vditor-ir__marker--link {
|
1561 | color: var(--ir-link-color);
|
1562 | }
|
1563 | .vditor-ir__node--expand .vditor-ir__marker--title {
|
1564 | color: var(--ir-title-color);
|
1565 | }
|
1566 | .vditor-ir__node--expand .vditor-ir__marker--bracket {
|
1567 | color: var(--ir-bracket-color);
|
1568 | text-decoration: underline;
|
1569 | }
|
1570 | .vditor-ir__node--expand .vditor-ir__marker--paren {
|
1571 | color: var(--ir-paren-color);
|
1572 | }
|
1573 | .vditor-ir__node--expand .vditor-ir__marker--info {
|
1574 | color: var(--ir-heading-color);
|
1575 | }
|
1576 | .vditor-ir__node--expand .vditor-ir__marker--pre code {
|
1577 | color: var(--textarea-text-color);
|
1578 | height: auto;
|
1579 | text-align: left;
|
1580 | }
|
1581 | .vditor-ir__node--expand[data-type="code-block"]:before,
|
1582 | .vditor-ir__node--expand[data-type="code-block"]:after {
|
1583 | content: '```';
|
1584 | }
|
1585 | .vditor-ir__node--expand[data-type="yaml-front-matter"]:before,
|
1586 | .vditor-ir__node--expand[data-type="yaml-front-matter"]:after {
|
1587 | content: '---';
|
1588 | }
|
1589 | .vditor-ir__node--expand[data-type="math-block"]:before,
|
1590 | .vditor-ir__node--expand[data-type="math-block"]:after {
|
1591 | content: '$$';
|
1592 | }
|
1593 | .vditor-ir__node span[data-type="code-block-open-marker"],
|
1594 | .vditor-ir__node span[data-type="code-block-close-marker"],
|
1595 | .vditor-ir__node span[data-type="yaml-front-matter-open-marker"],
|
1596 | .vditor-ir__node span[data-type="yaml-front-matter-close-marker"],
|
1597 | .vditor-ir__node span[data-type="math-block-open-marker"],
|
1598 | .vditor-ir__node span[data-type="math-block-close-marker"] {
|
1599 | display: none;
|
1600 | }
|
1601 | .vditor-ir__preview {
|
1602 | cursor: pointer;
|
1603 | white-space: initial;
|
1604 | min-height: 27px;
|
1605 | }
|
1606 | .vditor-ir__link {
|
1607 | color: var(--ir-bracket-color);
|
1608 | text-decoration: underline;
|
1609 | }
|
1610 | .vditor-ir pre.vditor-reset {
|
1611 | background-color: var(--panel-background-color);
|
1612 | margin: 0;
|
1613 | white-space: pre-wrap;
|
1614 | height: 100%;
|
1615 | box-sizing: border-box;
|
1616 | }
|
1617 | .vditor-ir pre.vditor-reset[contenteditable="false"] {
|
1618 | opacity: 0.3;
|
1619 | cursor: not-allowed;
|
1620 | }
|
1621 | .vditor-ir pre.vditor-reset:empty::before {
|
1622 | content: attr(placeholder);
|
1623 | color: var(--second-color);
|
1624 | }
|
1625 | .vditor-ir pre.vditor-reset:focus {
|
1626 | outline: none;
|
1627 | background-color: var(--textarea-background-color);
|
1628 | }
|
1629 | .vditor-ir pre.vditor-reset:after {
|
1630 | content: "";
|
1631 | height: var(--editor-bottom);
|
1632 | display: block;
|
1633 | }
|
1634 | .vditor-ir pre.vditor-reset pre {
|
1635 | margin: 0;
|
1636 | }
|
1637 | .vditor-ir hr {
|
1638 | display: inline-block;
|
1639 | margin: 12px 0;
|
1640 | width: 100%;
|
1641 | }
|
1642 | .vditor-ir blockquote:empty::before,
|
1643 | .vditor-ir pre > code:empty::before,
|
1644 | .vditor-ir p:empty::before,
|
1645 | .vditor-ir h1:empty::after,
|
1646 | .vditor-ir h2:empty::after,
|
1647 | .vditor-ir h3:empty::after,
|
1648 | .vditor-ir h4:empty::after,
|
1649 | .vditor-ir h5:empty::after,
|
1650 | .vditor-ir h6:empty::after {
|
1651 | content: ' ';
|
1652 | }
|
1653 | .vditor-ir .vditor-reset > h1:before,
|
1654 | .vditor-ir .vditor-reset > h2:before,
|
1655 | .vditor-ir .vditor-reset > h3:before,
|
1656 | .vditor-ir .vditor-reset > h4:before,
|
1657 | .vditor-ir .vditor-reset > h5:before,
|
1658 | .vditor-ir .vditor-reset > h6:before,
|
1659 | .vditor-ir div[data-type="link-ref-defs-block"]:before,
|
1660 | .vditor-ir div[data-type="footnotes-block"]:before,
|
1661 | .vditor-ir .vditor-toc:before {
|
1662 | float: left;
|
1663 | padding-right: 4px;
|
1664 | margin-left: -29px;
|
1665 | content: 'H1';
|
1666 | font-size: 0.85rem;
|
1667 | font-weight: normal;
|
1668 | color: var(--second-color);
|
1669 | }
|
1670 | .vditor-ir .vditor-reset > h2:before {
|
1671 | content: 'H2';
|
1672 | }
|
1673 | .vditor-ir .vditor-reset > h3:before {
|
1674 | content: 'H3';
|
1675 | }
|
1676 | .vditor-ir .vditor-reset > h4:before {
|
1677 | content: 'H4';
|
1678 | }
|
1679 | .vditor-ir .vditor-reset > h5:before {
|
1680 | content: 'H5';
|
1681 | }
|
1682 | .vditor-ir .vditor-reset > h6:before {
|
1683 | content: 'H6';
|
1684 | }
|
1685 | .vditor-ir div[data-type="link-ref-defs-block"] {
|
1686 | color: var(--blockquote-color);
|
1687 | }
|
1688 | .vditor-ir div[data-type="link-ref-defs-block"]:before {
|
1689 | content: '"A"';
|
1690 | }
|
1691 | .vditor-ir div[data-type="footnotes-block"] {
|
1692 | border-top: 2px solid var(--heading-border-color);
|
1693 | padding-top: 24px;
|
1694 | margin-top: 24px;
|
1695 | }
|
1696 | .vditor-ir div[data-type="footnotes-block"]:before {
|
1697 | content: '^F';
|
1698 | }
|
1699 | .vditor-ir div[data-type="footnotes-block"] > div[data-type="footnotes-def"] > ul,
|
1700 | .vditor-ir div[data-type="footnotes-block"] > div[data-type="footnotes-def"] > ol,
|
1701 | .vditor-ir div[data-type="footnotes-block"] > div[data-type="footnotes-def"] > p,
|
1702 | .vditor-ir div[data-type="footnotes-block"] > div[data-type="footnotes-def"] > blockquote,
|
1703 | .vditor-ir div[data-type="footnotes-block"] > div[data-type="footnotes-def"] > pre,
|
1704 | .vditor-ir div[data-type="footnotes-block"] > div[data-type="footnotes-def"] > table,
|
1705 | .vditor-ir div[data-type="footnotes-block"] > div[data-type="footnotes-def"] > hr {
|
1706 | margin-left: 8px;
|
1707 | }
|
1708 | .vditor-ir .vditor-toc:before {
|
1709 | content: "ToC";
|
1710 | }
|
1711 | .vditor-ir .vditor-toc span[data-type="toc-h"] {
|
1712 | color: #4285f4;
|
1713 | text-decoration: underline;
|
1714 | }
|
1715 | @media screen and (max-width: 520px) {
|
1716 | .vditor-ir h1:before,
|
1717 | .vditor-ir h2:before,
|
1718 | .vditor-ir h3:before,
|
1719 | .vditor-ir h4:before,
|
1720 | .vditor-ir h5:before,
|
1721 | .vditor-ir h6:before,
|
1722 | .vditor-ir div[data-type="link-ref-defs-block"]:before,
|
1723 | .vditor-ir div[data-type="footnotes-block"]:before,
|
1724 | .vditor-ir .vditor-toc:before {
|
1725 | content: none;
|
1726 | }
|
1727 | }
|
1728 | .vditor-sv {
|
1729 | 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";
|
1730 | margin: 0 1px 0 0;
|
1731 | overflow: auto;
|
1732 | width: 100%;
|
1733 | flex: 1;
|
1734 | min-width: 1px;
|
1735 | border: 0;
|
1736 | resize: none;
|
1737 | padding: 10px 9px 10px 10px;
|
1738 | box-sizing: border-box;
|
1739 | background-color: var(--panel-background-color);
|
1740 | outline: 0 none;
|
1741 | font-size: 16px;
|
1742 | line-height: 22px;
|
1743 | color: var(--textarea-text-color);
|
1744 | border-radius: 0 0 3px 3px;
|
1745 | font-variant-ligatures: no-common-ligatures;
|
1746 | white-space: pre-wrap;
|
1747 | word-break: break-word;
|
1748 | word-wrap: break-word;
|
1749 | }
|
1750 | .vditor-sv[contenteditable="false"] {
|
1751 | opacity: 0.3;
|
1752 | cursor: not-allowed;
|
1753 | }
|
1754 | .vditor-sv:empty::before {
|
1755 | content: attr(placeholder);
|
1756 | color: var(--second-color);
|
1757 | }
|
1758 | .vditor-sv:focus {
|
1759 | background-color: var(--textarea-background-color);
|
1760 | }
|
1761 | .vditor-sv:after {
|
1762 | content: "";
|
1763 | height: var(--editor-bottom);
|
1764 | display: block;
|
1765 | }
|
1766 | .vditor-sv span[data-type="newline"] + span[data-type="text"]:empty {
|
1767 | display: inherit;
|
1768 | }
|
1769 | .vditor-sv .sup {
|
1770 | vertical-align: super;
|
1771 | font-size: smaller;
|
1772 | }
|
1773 | .vditor-sv .strong {
|
1774 | font-weight: bold;
|
1775 | }
|
1776 | .vditor-sv .em {
|
1777 | font-style: italic;
|
1778 | }
|
1779 | .vditor-sv .s {
|
1780 | text-decoration: line-through;
|
1781 | }
|
1782 | .vditor-sv .mark:not(.vditor-sv__marker) {
|
1783 | background-color: yellow;
|
1784 | color: black;
|
1785 | }
|
1786 | .vditor-sv .h1 {
|
1787 | font-size: 1.75em;
|
1788 | line-height: 44px;
|
1789 | }
|
1790 | .vditor-sv .h2 {
|
1791 | font-size: 1.55em;
|
1792 | line-height: 38px;
|
1793 | }
|
1794 | .vditor-sv .h3 {
|
1795 | font-size: 1.38em;
|
1796 | line-height: 27px;
|
1797 | }
|
1798 | .vditor-sv .h4 {
|
1799 | font-size: 1.25em;
|
1800 | line-height: 25px;
|
1801 | }
|
1802 | .vditor-sv .h5 {
|
1803 | font-size: 1.13em;
|
1804 | }
|
1805 | .vditor-sv .h6 {
|
1806 | font-size: 1em;
|
1807 | }
|
1808 | .vditor-sv__marker {
|
1809 | color: var(--second-color);
|
1810 | }
|
1811 | .vditor-sv__marker--heading {
|
1812 | color: var(--ir-heading-color);
|
1813 | }
|
1814 | .vditor-sv__marker--bi {
|
1815 | color: var(--ir-bi-color);
|
1816 | }
|
1817 | .vditor-sv__marker--link {
|
1818 | color: var(--ir-link-color);
|
1819 | }
|
1820 | .vditor-sv__marker--title {
|
1821 | color: var(--ir-title-color);
|
1822 | }
|
1823 | .vditor-sv__marker--bracket {
|
1824 | color: var(--ir-bracket-color);
|
1825 | }
|
1826 | .vditor-sv__marker--paren {
|
1827 | color: var(--ir-paren-color);
|
1828 | }
|
1829 | .vditor-sv__marker--info {
|
1830 | color: var(--ir-heading-color);
|
1831 | }
|
1832 | .vditor-sv__marker--strong {
|
1833 | font-weight: bold;
|
1834 | }
|
1835 |
|