@eworkbase/plugin-ai-rules 0.3.4 → 0.3.6
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/plugin.mjs +16 -4
- package/dist/ui/dist-BGSb8hFh.js +262 -0
- package/dist/ui/index.html +1 -1
- package/dist/ui/main.js +24 -24
- package/dist/ui/markdown-editor-assets/LICENSE +21 -0
- package/dist/ui/markdown-editor-assets/ant.js +174 -0
- package/dist/ui/markdown-editor-assets/dist/js/highlight.js/styles/github.min.css +10 -0
- package/dist/ui/markdown-editor-assets/lute.min.js +87 -0
- package/dist/ui/markdown-editor-assets/zh_CN.js +86 -0
- package/dist/ui/style.css +2279 -0
- package/package.json +11 -11
package/dist/ui/style.css
CHANGED
|
@@ -1,3 +1,55 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Vditor v4.0.1 - A markdown editor written in TypeScript.
|
|
3
|
+
*
|
|
4
|
+
* MIT License
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) 2018-present B3log 开源, b3log.org
|
|
7
|
+
*
|
|
8
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
9
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
10
|
+
* in the Software without restriction, including without limitation the rights
|
|
11
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
13
|
+
* furnished to do so, subject to the following conditions:
|
|
14
|
+
*
|
|
15
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
16
|
+
* copies or substantial portions of the Software.
|
|
17
|
+
*
|
|
18
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
19
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
20
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
21
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
22
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
23
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
24
|
+
* SOFTWARE.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
/*!
|
|
28
|
+
* Vditor v4.0.1 - A markdown editor written in TypeScript.
|
|
29
|
+
*
|
|
30
|
+
* MIT License
|
|
31
|
+
*
|
|
32
|
+
* Copyright (c) 2018-present B3log 开源, b3log.org
|
|
33
|
+
*
|
|
34
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
35
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
36
|
+
* in the Software without restriction, including without limitation the rights
|
|
37
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
38
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
39
|
+
* furnished to do so, subject to the following conditions:
|
|
40
|
+
*
|
|
41
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
42
|
+
* copies or substantial portions of the Software.
|
|
43
|
+
*
|
|
44
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
45
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
46
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
47
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
48
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
49
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
50
|
+
* SOFTWARE.
|
|
51
|
+
*
|
|
52
|
+
*/
|
|
1
53
|
@layer base {
|
|
2
54
|
:root {
|
|
3
55
|
--color-foreground: #342f28;
|
|
@@ -3286,6 +3338,2233 @@
|
|
|
3286
3338
|
}
|
|
3287
3339
|
}
|
|
3288
3340
|
|
|
3341
|
+
.vditor {
|
|
3342
|
+
--border-color: #d1d5da;
|
|
3343
|
+
--second-color: #5860695c;
|
|
3344
|
+
--panel-background-color: #fff;
|
|
3345
|
+
--panel-shadow: 0 1px 2px #0003;
|
|
3346
|
+
--toolbar-background-color: #f6f8fa;
|
|
3347
|
+
--toolbar-icon-color: #586069;
|
|
3348
|
+
--toolbar-icon-hover-color: #4285f4;
|
|
3349
|
+
--toolbar-height: 35px;
|
|
3350
|
+
--toolbar-divider-margin-top: 8px;
|
|
3351
|
+
--textarea-background-color: #fafbfc;
|
|
3352
|
+
--textarea-text-color: #24292e;
|
|
3353
|
+
--resize-icon-color: var(--toolbar-icon-color);
|
|
3354
|
+
--resize-background-color: var(--toolbar-background-color);
|
|
3355
|
+
--resize-hover-icon-color: var(--panel-background-color);
|
|
3356
|
+
--resize-hover-background-color: var(--toolbar-icon-hover-color);
|
|
3357
|
+
--count-background-color: #1b1f230d;
|
|
3358
|
+
--heading-border-color: #eaecef;
|
|
3359
|
+
--blockquote-color: #6a737d;
|
|
3360
|
+
--blockquote-border-color: #e0e0e0;
|
|
3361
|
+
--blockquote-text-color: #5f6368;
|
|
3362
|
+
--callout-note-color: #3575f0;
|
|
3363
|
+
--callout-tip-color: #65b84d;
|
|
3364
|
+
--callout-important-color: #8957e5;
|
|
3365
|
+
--callout-warning-color: #ff9632;
|
|
3366
|
+
--callout-caution-color: #d23f31;
|
|
3367
|
+
--ir-heading-color: #660e7a;
|
|
3368
|
+
--ir-title-color: gray;
|
|
3369
|
+
--ir-bi-color: #0033b3;
|
|
3370
|
+
--ir-link-color: green;
|
|
3371
|
+
--ir-bracket-color: #00f;
|
|
3372
|
+
--ir-paren-color: green;
|
|
3373
|
+
}
|
|
3374
|
+
|
|
3375
|
+
.vditor--dark {
|
|
3376
|
+
--border-color: #141414;
|
|
3377
|
+
--second-color: #b9b9b95c;
|
|
3378
|
+
--panel-background-color: #24292e;
|
|
3379
|
+
--panel-shadow: 0 1px 2px #fff3;
|
|
3380
|
+
--toolbar-background-color: #1d2125;
|
|
3381
|
+
--toolbar-icon-color: #b9b9b9;
|
|
3382
|
+
--toolbar-icon-hover-color: #fff;
|
|
3383
|
+
--textarea-background-color: #2f363d;
|
|
3384
|
+
--textarea-text-color: #d1d5da;
|
|
3385
|
+
--resize-icon-color: var(--border-color);
|
|
3386
|
+
--resize-background-color: var(--second-color);
|
|
3387
|
+
--resize-hover-icon-color: var(--toolbar-icon-hover-color);
|
|
3388
|
+
--resize-hover-background-color: #b9b9b9db;
|
|
3389
|
+
--count-background-color: #4285f45c;
|
|
3390
|
+
--heading-border-color: var(--textarea-text-color);
|
|
3391
|
+
--blockquote-color: var(--toolbar-icon-color);
|
|
3392
|
+
--blockquote-border-color: #e6e6e61a;
|
|
3393
|
+
--blockquote-text-color: #9aa0a6;
|
|
3394
|
+
--callout-note-color: #3575f0;
|
|
3395
|
+
--callout-tip-color: #65b84d;
|
|
3396
|
+
--callout-important-color: #b388ff;
|
|
3397
|
+
--callout-warning-color: #ff9632;
|
|
3398
|
+
--callout-caution-color: #d23f31;
|
|
3399
|
+
--ir-heading-color: #9876aa;
|
|
3400
|
+
--ir-title-color: gray;
|
|
3401
|
+
--ir-bi-color: #cc7832;
|
|
3402
|
+
--ir-link-color: #ffc66d;
|
|
3403
|
+
--ir-bracket-color: #287bde;
|
|
3404
|
+
--ir-paren-color: #6a8759;
|
|
3405
|
+
}
|
|
3406
|
+
|
|
3407
|
+
@keyframes tooltip-appear {
|
|
3408
|
+
from {
|
|
3409
|
+
opacity: 0;
|
|
3410
|
+
}
|
|
3411
|
+
|
|
3412
|
+
to {
|
|
3413
|
+
opacity: 1;
|
|
3414
|
+
}
|
|
3415
|
+
}
|
|
3416
|
+
|
|
3417
|
+
.vditor-tooltipped {
|
|
3418
|
+
cursor: pointer;
|
|
3419
|
+
position: relative;
|
|
3420
|
+
}
|
|
3421
|
+
|
|
3422
|
+
.vditor-tooltipped:after {
|
|
3423
|
+
z-index: 1000000;
|
|
3424
|
+
-webkit-font-smoothing: subpixel-antialiased;
|
|
3425
|
+
color: #fff;
|
|
3426
|
+
text-align: center;
|
|
3427
|
+
text-shadow: none;
|
|
3428
|
+
text-transform: none;
|
|
3429
|
+
letter-spacing: normal;
|
|
3430
|
+
word-wrap: break-word;
|
|
3431
|
+
white-space: pre;
|
|
3432
|
+
pointer-events: none;
|
|
3433
|
+
content: attr(aria-label);
|
|
3434
|
+
opacity: 0;
|
|
3435
|
+
background: #3b3e43;
|
|
3436
|
+
border-radius: 3px;
|
|
3437
|
+
padding: 5px 8px;
|
|
3438
|
+
font-size: 11px;
|
|
3439
|
+
font-weight: normal;
|
|
3440
|
+
line-height: 16px;
|
|
3441
|
+
text-decoration: none;
|
|
3442
|
+
display: none;
|
|
3443
|
+
position: absolute;
|
|
3444
|
+
}
|
|
3445
|
+
|
|
3446
|
+
.vditor-tooltipped:before {
|
|
3447
|
+
z-index: 1000001;
|
|
3448
|
+
color: #3b3e43;
|
|
3449
|
+
pointer-events: none;
|
|
3450
|
+
content: "";
|
|
3451
|
+
opacity: 0;
|
|
3452
|
+
border: 5px solid #0000;
|
|
3453
|
+
width: 0;
|
|
3454
|
+
height: 0;
|
|
3455
|
+
display: none;
|
|
3456
|
+
position: absolute;
|
|
3457
|
+
}
|
|
3458
|
+
|
|
3459
|
+
.vditor-tooltipped--hover:before, .vditor-tooltipped--hover:after, .vditor-tooltipped:hover:before, .vditor-tooltipped:hover:after, .vditor-tooltipped:active:before, .vditor-tooltipped:active:after, .vditor-tooltipped:focus:before, .vditor-tooltipped:focus:after {
|
|
3460
|
+
text-decoration: none;
|
|
3461
|
+
animation-name: tooltip-appear;
|
|
3462
|
+
animation-duration: .15s;
|
|
3463
|
+
animation-timing-function: ease-in;
|
|
3464
|
+
animation-fill-mode: forwards;
|
|
3465
|
+
display: inline-block;
|
|
3466
|
+
}
|
|
3467
|
+
|
|
3468
|
+
.vditor-tooltipped__s:after, .vditor-tooltipped__se:after, .vditor-tooltipped__sw:after {
|
|
3469
|
+
margin-top: 5px;
|
|
3470
|
+
top: 100%;
|
|
3471
|
+
right: 50%;
|
|
3472
|
+
}
|
|
3473
|
+
|
|
3474
|
+
.vditor-tooltipped__s:before, .vditor-tooltipped__se:before, .vditor-tooltipped__sw:before {
|
|
3475
|
+
border-bottom-color: #3b3e43;
|
|
3476
|
+
margin-right: -5px;
|
|
3477
|
+
top: auto;
|
|
3478
|
+
bottom: -5px;
|
|
3479
|
+
right: 50%;
|
|
3480
|
+
}
|
|
3481
|
+
|
|
3482
|
+
.vditor-tooltipped__se:after {
|
|
3483
|
+
margin-left: -15px;
|
|
3484
|
+
left: 50%;
|
|
3485
|
+
right: auto;
|
|
3486
|
+
}
|
|
3487
|
+
|
|
3488
|
+
.vditor-tooltipped__sw:after {
|
|
3489
|
+
margin-right: -15px;
|
|
3490
|
+
}
|
|
3491
|
+
|
|
3492
|
+
.vditor-tooltipped__n:after, .vditor-tooltipped__ne:after, .vditor-tooltipped__nw:after {
|
|
3493
|
+
margin-bottom: 5px;
|
|
3494
|
+
bottom: 100%;
|
|
3495
|
+
right: 50%;
|
|
3496
|
+
}
|
|
3497
|
+
|
|
3498
|
+
.vditor-tooltipped__n:before, .vditor-tooltipped__ne:before, .vditor-tooltipped__nw:before {
|
|
3499
|
+
border-top-color: #3b3e43;
|
|
3500
|
+
margin-right: -5px;
|
|
3501
|
+
top: -5px;
|
|
3502
|
+
bottom: auto;
|
|
3503
|
+
right: 50%;
|
|
3504
|
+
}
|
|
3505
|
+
|
|
3506
|
+
.vditor-tooltipped__ne:after {
|
|
3507
|
+
margin-left: -15px;
|
|
3508
|
+
left: 50%;
|
|
3509
|
+
right: auto;
|
|
3510
|
+
}
|
|
3511
|
+
|
|
3512
|
+
.vditor-tooltipped__nw:after {
|
|
3513
|
+
margin-right: -15px;
|
|
3514
|
+
}
|
|
3515
|
+
|
|
3516
|
+
.vditor-tooltipped__s:after, .vditor-tooltipped__n:after {
|
|
3517
|
+
transform: translateX(50%);
|
|
3518
|
+
}
|
|
3519
|
+
|
|
3520
|
+
.vditor-tooltipped__w:after {
|
|
3521
|
+
margin-right: 5px;
|
|
3522
|
+
bottom: 50%;
|
|
3523
|
+
right: 100%;
|
|
3524
|
+
transform: translateY(50%);
|
|
3525
|
+
}
|
|
3526
|
+
|
|
3527
|
+
.vditor-tooltipped__w:before {
|
|
3528
|
+
border-left-color: #3b3e43;
|
|
3529
|
+
margin-top: -5px;
|
|
3530
|
+
top: 50%;
|
|
3531
|
+
bottom: 50%;
|
|
3532
|
+
left: -5px;
|
|
3533
|
+
}
|
|
3534
|
+
|
|
3535
|
+
.vditor-tooltipped__e:after {
|
|
3536
|
+
margin-left: 5px;
|
|
3537
|
+
bottom: 50%;
|
|
3538
|
+
left: 100%;
|
|
3539
|
+
transform: translateY(50%);
|
|
3540
|
+
}
|
|
3541
|
+
|
|
3542
|
+
.vditor-tooltipped__e:before {
|
|
3543
|
+
border-right-color: #3b3e43;
|
|
3544
|
+
margin-top: -5px;
|
|
3545
|
+
top: 50%;
|
|
3546
|
+
bottom: 50%;
|
|
3547
|
+
right: -5px;
|
|
3548
|
+
}
|
|
3549
|
+
|
|
3550
|
+
@media screen and (width <= 520px) {
|
|
3551
|
+
.vditor-tooltipped:before, .vditor-tooltipped:after {
|
|
3552
|
+
content: none;
|
|
3553
|
+
}
|
|
3554
|
+
}
|
|
3555
|
+
|
|
3556
|
+
@keyframes scale-in {
|
|
3557
|
+
0% {
|
|
3558
|
+
opacity: 0;
|
|
3559
|
+
transform: scale(.5);
|
|
3560
|
+
}
|
|
3561
|
+
|
|
3562
|
+
100% {
|
|
3563
|
+
opacity: 1;
|
|
3564
|
+
transform: scale(1);
|
|
3565
|
+
}
|
|
3566
|
+
}
|
|
3567
|
+
|
|
3568
|
+
.vditor-panel {
|
|
3569
|
+
background-color: var(--panel-background-color);
|
|
3570
|
+
box-shadow: var(--panel-shadow);
|
|
3571
|
+
z-index: 3;
|
|
3572
|
+
-webkit-user-select: none;
|
|
3573
|
+
-moz-user-select: none;
|
|
3574
|
+
user-select: none;
|
|
3575
|
+
min-width: 80px;
|
|
3576
|
+
max-width: 320px;
|
|
3577
|
+
color: var(--toolbar-icon-color);
|
|
3578
|
+
border-radius: 3px;
|
|
3579
|
+
padding: 5px;
|
|
3580
|
+
font-size: 14px;
|
|
3581
|
+
animation-name: scale-in;
|
|
3582
|
+
animation-duration: .15s;
|
|
3583
|
+
animation-timing-function: cubic-bezier(.2, 0, .13, 1.5);
|
|
3584
|
+
display: none;
|
|
3585
|
+
position: absolute;
|
|
3586
|
+
}
|
|
3587
|
+
|
|
3588
|
+
.vditor-panel--none {
|
|
3589
|
+
white-space: nowrap;
|
|
3590
|
+
opacity: .86;
|
|
3591
|
+
min-width: auto;
|
|
3592
|
+
max-width: none;
|
|
3593
|
+
padding: 0;
|
|
3594
|
+
animation: none;
|
|
3595
|
+
}
|
|
3596
|
+
|
|
3597
|
+
.vditor-panel--arrow:before {
|
|
3598
|
+
pointer-events: none;
|
|
3599
|
+
content: " ";
|
|
3600
|
+
border: 7px solid #0000;
|
|
3601
|
+
border-bottom-color: var(--panel-background-color);
|
|
3602
|
+
width: 0;
|
|
3603
|
+
height: 0;
|
|
3604
|
+
position: absolute;
|
|
3605
|
+
top: -14px;
|
|
3606
|
+
left: 5px;
|
|
3607
|
+
}
|
|
3608
|
+
|
|
3609
|
+
.vditor-panel--left {
|
|
3610
|
+
right: 0;
|
|
3611
|
+
}
|
|
3612
|
+
|
|
3613
|
+
.vditor-panel--left.vditor-panel--arrow:before {
|
|
3614
|
+
left: auto;
|
|
3615
|
+
right: 5px;
|
|
3616
|
+
}
|
|
3617
|
+
|
|
3618
|
+
.vditor-input {
|
|
3619
|
+
background-color: var(--panel-background-color);
|
|
3620
|
+
color: var(--textarea-text-color);
|
|
3621
|
+
border: 0;
|
|
3622
|
+
padding: 3px 5px;
|
|
3623
|
+
font-size: 12px;
|
|
3624
|
+
}
|
|
3625
|
+
|
|
3626
|
+
.vditor-input:focus {
|
|
3627
|
+
background-color: var(--toolbar-background-color);
|
|
3628
|
+
outline: none;
|
|
3629
|
+
}
|
|
3630
|
+
|
|
3631
|
+
.vditor-icon {
|
|
3632
|
+
color: var(--toolbar-icon-color);
|
|
3633
|
+
cursor: pointer;
|
|
3634
|
+
float: left;
|
|
3635
|
+
box-sizing: border-box;
|
|
3636
|
+
background-color: #0000;
|
|
3637
|
+
border: 0;
|
|
3638
|
+
width: 23px;
|
|
3639
|
+
height: 21px;
|
|
3640
|
+
padding: 4px 5px;
|
|
3641
|
+
}
|
|
3642
|
+
|
|
3643
|
+
.vditor-icon:hover, .vditor-icon--current {
|
|
3644
|
+
color: var(--toolbar-icon-hover-color);
|
|
3645
|
+
background-color: #0000;
|
|
3646
|
+
}
|
|
3647
|
+
|
|
3648
|
+
.vditor-icon:focus {
|
|
3649
|
+
outline: none;
|
|
3650
|
+
}
|
|
3651
|
+
|
|
3652
|
+
.vditor-icon svg {
|
|
3653
|
+
float: left;
|
|
3654
|
+
fill: currentColor;
|
|
3655
|
+
pointer-events: none;
|
|
3656
|
+
width: 13px !important;
|
|
3657
|
+
height: 13px !important;
|
|
3658
|
+
}
|
|
3659
|
+
|
|
3660
|
+
.vditor-toolbar {
|
|
3661
|
+
background-color: var(--toolbar-background-color);
|
|
3662
|
+
border-bottom: 1px solid var(--border-color);
|
|
3663
|
+
padding: 0 5px;
|
|
3664
|
+
line-height: 1;
|
|
3665
|
+
}
|
|
3666
|
+
|
|
3667
|
+
.vditor-toolbar--pin {
|
|
3668
|
+
z-index: 1;
|
|
3669
|
+
position: sticky;
|
|
3670
|
+
top: 0;
|
|
3671
|
+
}
|
|
3672
|
+
|
|
3673
|
+
.vditor-toolbar--hide {
|
|
3674
|
+
height: 5px;
|
|
3675
|
+
transition: all .15s ease-in-out;
|
|
3676
|
+
overflow: hidden;
|
|
3677
|
+
}
|
|
3678
|
+
|
|
3679
|
+
.vditor-toolbar--hide:hover {
|
|
3680
|
+
background-color: var(--toolbar-background-color);
|
|
3681
|
+
height: auto;
|
|
3682
|
+
overflow: visible;
|
|
3683
|
+
}
|
|
3684
|
+
|
|
3685
|
+
.vditor-toolbar__item {
|
|
3686
|
+
float: left;
|
|
3687
|
+
position: relative;
|
|
3688
|
+
}
|
|
3689
|
+
|
|
3690
|
+
.vditor-toolbar__item .vditor-tooltipped {
|
|
3691
|
+
color: var(--toolbar-icon-color);
|
|
3692
|
+
height: var(--toolbar-height);
|
|
3693
|
+
box-sizing: border-box;
|
|
3694
|
+
background-color: #0000;
|
|
3695
|
+
border: 0;
|
|
3696
|
+
width: 25px;
|
|
3697
|
+
padding: 10px 5px;
|
|
3698
|
+
font-size: 0;
|
|
3699
|
+
}
|
|
3700
|
+
|
|
3701
|
+
.vditor-toolbar__item .vditor-tooltipped:focus {
|
|
3702
|
+
cursor: pointer;
|
|
3703
|
+
color: var(--toolbar-icon-hover-color);
|
|
3704
|
+
outline: none;
|
|
3705
|
+
}
|
|
3706
|
+
|
|
3707
|
+
.vditor-toolbar__item svg {
|
|
3708
|
+
fill: currentColor;
|
|
3709
|
+
stroke-width: 0;
|
|
3710
|
+
stroke: currentColor;
|
|
3711
|
+
width: 15px;
|
|
3712
|
+
height: 15px;
|
|
3713
|
+
display: inline-block;
|
|
3714
|
+
}
|
|
3715
|
+
|
|
3716
|
+
.vditor-toolbar__item input {
|
|
3717
|
+
width: 25px;
|
|
3718
|
+
height: var(--toolbar-height);
|
|
3719
|
+
cursor: pointer;
|
|
3720
|
+
opacity: .001;
|
|
3721
|
+
position: absolute;
|
|
3722
|
+
top: 0;
|
|
3723
|
+
left: 0;
|
|
3724
|
+
overflow: hidden;
|
|
3725
|
+
}
|
|
3726
|
+
|
|
3727
|
+
.vditor-toolbar__divider {
|
|
3728
|
+
float: left;
|
|
3729
|
+
height: calc(var(--toolbar-height) - (var(--toolbar-divider-margin-top) * 2));
|
|
3730
|
+
border-left: 1px solid var(--second-color);
|
|
3731
|
+
margin: var(--toolbar-divider-margin-top) 8px;
|
|
3732
|
+
}
|
|
3733
|
+
|
|
3734
|
+
.vditor-toolbar__br {
|
|
3735
|
+
width: 100%;
|
|
3736
|
+
height: 0 !important;
|
|
3737
|
+
padding: 0 !important;
|
|
3738
|
+
}
|
|
3739
|
+
|
|
3740
|
+
.vditor-menu--current {
|
|
3741
|
+
color: var(--toolbar-icon-hover-color) !important;
|
|
3742
|
+
}
|
|
3743
|
+
|
|
3744
|
+
.vditor-menu--disabled {
|
|
3745
|
+
color: var(--second-color) !important;
|
|
3746
|
+
cursor: not-allowed !important;
|
|
3747
|
+
}
|
|
3748
|
+
|
|
3749
|
+
.vditor-emojis {
|
|
3750
|
+
display: inline-block;
|
|
3751
|
+
overflow: auto;
|
|
3752
|
+
}
|
|
3753
|
+
|
|
3754
|
+
.vditor-emojis::-webkit-scrollbar {
|
|
3755
|
+
display: none;
|
|
3756
|
+
}
|
|
3757
|
+
|
|
3758
|
+
.vditor-emojis__tip {
|
|
3759
|
+
width: 200px;
|
|
3760
|
+
min-width: 1px;
|
|
3761
|
+
color: var(--toolbar-icon-color);
|
|
3762
|
+
white-space: nowrap;
|
|
3763
|
+
text-overflow: ellipsis;
|
|
3764
|
+
flex: 1;
|
|
3765
|
+
margin-right: 10px;
|
|
3766
|
+
overflow: hidden;
|
|
3767
|
+
}
|
|
3768
|
+
|
|
3769
|
+
.vditor-emojis__tail {
|
|
3770
|
+
color: var(--toolbar-icon-color);
|
|
3771
|
+
margin-top: 5px;
|
|
3772
|
+
font-size: 12px;
|
|
3773
|
+
display: flex;
|
|
3774
|
+
}
|
|
3775
|
+
|
|
3776
|
+
.vditor-emojis__tail a {
|
|
3777
|
+
color: var(--toolbar-icon-color);
|
|
3778
|
+
text-decoration: none;
|
|
3779
|
+
}
|
|
3780
|
+
|
|
3781
|
+
.vditor-emojis__tail a:hover {
|
|
3782
|
+
color: var(--toolbar-icon-hover-color);
|
|
3783
|
+
}
|
|
3784
|
+
|
|
3785
|
+
.vditor-emojis button {
|
|
3786
|
+
cursor: pointer;
|
|
3787
|
+
float: left;
|
|
3788
|
+
text-align: center;
|
|
3789
|
+
box-sizing: border-box;
|
|
3790
|
+
background-color: #0000;
|
|
3791
|
+
border: 0;
|
|
3792
|
+
border-radius: 3px;
|
|
3793
|
+
width: 30px;
|
|
3794
|
+
height: 30px;
|
|
3795
|
+
margin: 0;
|
|
3796
|
+
padding: 3px;
|
|
3797
|
+
font-size: 16px;
|
|
3798
|
+
line-height: 26px;
|
|
3799
|
+
transition: all .15s ease-in-out;
|
|
3800
|
+
overflow: hidden;
|
|
3801
|
+
}
|
|
3802
|
+
|
|
3803
|
+
.vditor-emojis button:focus {
|
|
3804
|
+
outline: none;
|
|
3805
|
+
}
|
|
3806
|
+
|
|
3807
|
+
.vditor-emojis button:hover .vditor-emojis__icon {
|
|
3808
|
+
display: inline-block;
|
|
3809
|
+
transform: scale(1.2);
|
|
3810
|
+
}
|
|
3811
|
+
|
|
3812
|
+
.vditor-emojis img {
|
|
3813
|
+
float: left;
|
|
3814
|
+
width: 20px;
|
|
3815
|
+
height: 20px;
|
|
3816
|
+
margin: 3px 0 0 3px;
|
|
3817
|
+
}
|
|
3818
|
+
|
|
3819
|
+
@media screen and (width <= 520px) {
|
|
3820
|
+
.vditor-toolbar__item {
|
|
3821
|
+
padding: 0 12px;
|
|
3822
|
+
}
|
|
3823
|
+
|
|
3824
|
+
.vditor-panel--left.vditor-panel--arrow:before {
|
|
3825
|
+
right: 17px;
|
|
3826
|
+
}
|
|
3827
|
+
}
|
|
3828
|
+
|
|
3829
|
+
@media (hover: hover) and (pointer: fine) {
|
|
3830
|
+
.vditor-toolbar__item .vditor-tooltipped:hover {
|
|
3831
|
+
color: var(--toolbar-icon-hover-color);
|
|
3832
|
+
}
|
|
3833
|
+
}
|
|
3834
|
+
|
|
3835
|
+
@keyframes slideInDown {
|
|
3836
|
+
from {
|
|
3837
|
+
visibility: visible;
|
|
3838
|
+
transform: translate3d(0, -100%, 0);
|
|
3839
|
+
}
|
|
3840
|
+
|
|
3841
|
+
to {
|
|
3842
|
+
transform: translate3d(0, 0, 0);
|
|
3843
|
+
}
|
|
3844
|
+
}
|
|
3845
|
+
|
|
3846
|
+
.vditor {
|
|
3847
|
+
border: 1px solid var(--border-color);
|
|
3848
|
+
box-sizing: border-box;
|
|
3849
|
+
border-radius: 3px;
|
|
3850
|
+
flex-direction: column;
|
|
3851
|
+
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;
|
|
3852
|
+
display: flex;
|
|
3853
|
+
}
|
|
3854
|
+
|
|
3855
|
+
.vditor--fullscreen {
|
|
3856
|
+
z-index: 90;
|
|
3857
|
+
border-radius: 0;
|
|
3858
|
+
position: fixed;
|
|
3859
|
+
top: 0;
|
|
3860
|
+
left: 0;
|
|
3861
|
+
width: 100% !important;
|
|
3862
|
+
height: 100vh !important;
|
|
3863
|
+
}
|
|
3864
|
+
|
|
3865
|
+
.vditor-content {
|
|
3866
|
+
flex: 1;
|
|
3867
|
+
min-width: 1px;
|
|
3868
|
+
min-height: 60px;
|
|
3869
|
+
display: flex;
|
|
3870
|
+
position: relative;
|
|
3871
|
+
}
|
|
3872
|
+
|
|
3873
|
+
.vditor-preview {
|
|
3874
|
+
border-left: 1px solid var(--border-color);
|
|
3875
|
+
box-sizing: border-box;
|
|
3876
|
+
background-color: var(--textarea-background-color);
|
|
3877
|
+
border-radius: 0 0 3px;
|
|
3878
|
+
flex: 1;
|
|
3879
|
+
min-width: 1px;
|
|
3880
|
+
margin-left: -1px;
|
|
3881
|
+
overflow: auto;
|
|
3882
|
+
}
|
|
3883
|
+
|
|
3884
|
+
.vditor-preview::-webkit-scrollbar {
|
|
3885
|
+
display: none;
|
|
3886
|
+
}
|
|
3887
|
+
|
|
3888
|
+
.vditor-preview__action {
|
|
3889
|
+
text-align: center;
|
|
3890
|
+
background-color: var(--toolbar-background-color);
|
|
3891
|
+
padding: 10px;
|
|
3892
|
+
}
|
|
3893
|
+
|
|
3894
|
+
.vditor-preview__action button {
|
|
3895
|
+
background-color: var(--toolbar-background-color);
|
|
3896
|
+
color: var(--toolbar-icon-color);
|
|
3897
|
+
cursor: pointer;
|
|
3898
|
+
border: 0;
|
|
3899
|
+
margin: 0 10px;
|
|
3900
|
+
padding: 0 7px;
|
|
3901
|
+
font-size: 12px;
|
|
3902
|
+
line-height: 20px;
|
|
3903
|
+
}
|
|
3904
|
+
|
|
3905
|
+
.vditor-preview__action button.vditor-preview__action--current, .vditor-preview__action button:hover {
|
|
3906
|
+
color: var(--toolbar-icon-hover-color);
|
|
3907
|
+
background-color: var(--toolbar-background-color);
|
|
3908
|
+
}
|
|
3909
|
+
|
|
3910
|
+
.vditor-preview__action button:focus {
|
|
3911
|
+
outline: none;
|
|
3912
|
+
}
|
|
3913
|
+
|
|
3914
|
+
.vditor-preview__action button svg {
|
|
3915
|
+
fill: currentColor;
|
|
3916
|
+
vertical-align: middle;
|
|
3917
|
+
width: 15px;
|
|
3918
|
+
height: 15px;
|
|
3919
|
+
}
|
|
3920
|
+
|
|
3921
|
+
.vditor-preview > .vditor-reset {
|
|
3922
|
+
margin: 0 auto;
|
|
3923
|
+
padding: 10px;
|
|
3924
|
+
}
|
|
3925
|
+
|
|
3926
|
+
.vditor-preview img:not(.emoji) {
|
|
3927
|
+
cursor: pointer;
|
|
3928
|
+
}
|
|
3929
|
+
|
|
3930
|
+
.vditor-devtools {
|
|
3931
|
+
background-color: var(--textarea-background-color);
|
|
3932
|
+
min-width: 1px;
|
|
3933
|
+
box-shadow: inset 1px 0 var(--border-color);
|
|
3934
|
+
box-sizing: border-box;
|
|
3935
|
+
border-radius: 0 0 3px;
|
|
3936
|
+
flex: 1;
|
|
3937
|
+
padding: 10px;
|
|
3938
|
+
display: none;
|
|
3939
|
+
overflow: auto;
|
|
3940
|
+
}
|
|
3941
|
+
|
|
3942
|
+
.vditor-counter {
|
|
3943
|
+
color: var(--toolbar-icon-color);
|
|
3944
|
+
background-color: var(--count-background-color);
|
|
3945
|
+
-webkit-user-select: none;
|
|
3946
|
+
-moz-user-select: none;
|
|
3947
|
+
user-select: none;
|
|
3948
|
+
float: right;
|
|
3949
|
+
border-radius: 3px;
|
|
3950
|
+
margin: 8px 3px 0 0;
|
|
3951
|
+
padding: 3px;
|
|
3952
|
+
font-size: 12px;
|
|
3953
|
+
}
|
|
3954
|
+
|
|
3955
|
+
.vditor-counter--error {
|
|
3956
|
+
color: #d23f31;
|
|
3957
|
+
background-color: #d23f311a;
|
|
3958
|
+
}
|
|
3959
|
+
|
|
3960
|
+
.vditor-resize {
|
|
3961
|
+
cursor: row-resize;
|
|
3962
|
+
-webkit-user-select: none;
|
|
3963
|
+
-moz-user-select: none;
|
|
3964
|
+
user-select: none;
|
|
3965
|
+
width: 100%;
|
|
3966
|
+
padding: 3px 0;
|
|
3967
|
+
position: absolute;
|
|
3968
|
+
}
|
|
3969
|
+
|
|
3970
|
+
.vditor-resize--top {
|
|
3971
|
+
top: -3px;
|
|
3972
|
+
}
|
|
3973
|
+
|
|
3974
|
+
.vditor-resize--bottom {
|
|
3975
|
+
bottom: -3px;
|
|
3976
|
+
}
|
|
3977
|
+
|
|
3978
|
+
.vditor-resize > div {
|
|
3979
|
+
background-color: var(--resize-background-color);
|
|
3980
|
+
height: 3px;
|
|
3981
|
+
transition: all .15s ease-in-out;
|
|
3982
|
+
}
|
|
3983
|
+
|
|
3984
|
+
.vditor-resize:hover > div, .vditor-resize--selected > div {
|
|
3985
|
+
background-color: var(--resize-hover-background-color);
|
|
3986
|
+
}
|
|
3987
|
+
|
|
3988
|
+
.vditor-resize:hover svg, .vditor-resize--selected svg {
|
|
3989
|
+
color: var(--resize-hover-icon-color);
|
|
3990
|
+
}
|
|
3991
|
+
|
|
3992
|
+
.vditor-resize svg {
|
|
3993
|
+
fill: currentColor;
|
|
3994
|
+
stroke-width: 0;
|
|
3995
|
+
stroke: currentColor;
|
|
3996
|
+
width: 13px;
|
|
3997
|
+
height: 3px;
|
|
3998
|
+
color: var(--resize-icon-color);
|
|
3999
|
+
margin: 0 auto;
|
|
4000
|
+
display: block;
|
|
4001
|
+
}
|
|
4002
|
+
|
|
4003
|
+
.vditor-upload {
|
|
4004
|
+
background-color: #4285f4;
|
|
4005
|
+
height: 3px;
|
|
4006
|
+
transition: all .15s ease-in-out;
|
|
4007
|
+
position: absolute;
|
|
4008
|
+
top: -2px;
|
|
4009
|
+
left: 0;
|
|
4010
|
+
}
|
|
4011
|
+
|
|
4012
|
+
.vditor-tip {
|
|
4013
|
+
z-index: 5;
|
|
4014
|
+
font-size: 12px;
|
|
4015
|
+
animation-duration: .15s;
|
|
4016
|
+
animation-fill-mode: both;
|
|
4017
|
+
position: absolute;
|
|
4018
|
+
top: 10px;
|
|
4019
|
+
left: 50%;
|
|
4020
|
+
}
|
|
4021
|
+
|
|
4022
|
+
.vditor-tip--show {
|
|
4023
|
+
animation-name: slideInDown;
|
|
4024
|
+
display: block;
|
|
4025
|
+
}
|
|
4026
|
+
|
|
4027
|
+
.vditor-tip__content {
|
|
4028
|
+
text-align: left;
|
|
4029
|
+
background: var(--toolbar-background-color);
|
|
4030
|
+
color: var(--toolbar-icon-color);
|
|
4031
|
+
max-width: 100%;
|
|
4032
|
+
box-shadow: var(--panel-shadow);
|
|
4033
|
+
border-radius: 3px;
|
|
4034
|
+
margin-left: -50%;
|
|
4035
|
+
padding: 3px 10px;
|
|
4036
|
+
line-height: 16px;
|
|
4037
|
+
display: inline-block;
|
|
4038
|
+
position: relative;
|
|
4039
|
+
}
|
|
4040
|
+
|
|
4041
|
+
.vditor-tip__content ul {
|
|
4042
|
+
margin: 2px 0;
|
|
4043
|
+
padding: 0 0 0 18px;
|
|
4044
|
+
}
|
|
4045
|
+
|
|
4046
|
+
.vditor-tip__content a {
|
|
4047
|
+
color: #4285f4;
|
|
4048
|
+
}
|
|
4049
|
+
|
|
4050
|
+
.vditor-tip__close {
|
|
4051
|
+
color: var(--toolbar-icon-color);
|
|
4052
|
+
cursor: pointer;
|
|
4053
|
+
font-weight: bold;
|
|
4054
|
+
position: absolute;
|
|
4055
|
+
top: -7px;
|
|
4056
|
+
right: -15px;
|
|
4057
|
+
}
|
|
4058
|
+
|
|
4059
|
+
.vditor-tip__close:hover {
|
|
4060
|
+
color: var(--toolbar-icon-hover-color);
|
|
4061
|
+
}
|
|
4062
|
+
|
|
4063
|
+
.vditor-img {
|
|
4064
|
+
z-index: 100;
|
|
4065
|
+
flex-direction: column;
|
|
4066
|
+
display: flex;
|
|
4067
|
+
position: fixed;
|
|
4068
|
+
inset: 0;
|
|
4069
|
+
}
|
|
4070
|
+
|
|
4071
|
+
.vditor-img__bar {
|
|
4072
|
+
border-bottom: 1px solid var(--border-color);
|
|
4073
|
+
background-color: var(--toolbar-background-color);
|
|
4074
|
+
text-align: center;
|
|
4075
|
+
box-sizing: border-box;
|
|
4076
|
+
justify-content: center;
|
|
4077
|
+
align-items: center;
|
|
4078
|
+
height: 36px;
|
|
4079
|
+
display: flex;
|
|
4080
|
+
}
|
|
4081
|
+
|
|
4082
|
+
.vditor-img__btn {
|
|
4083
|
+
cursor: pointer;
|
|
4084
|
+
-webkit-user-select: none;
|
|
4085
|
+
-moz-user-select: none;
|
|
4086
|
+
user-select: none;
|
|
4087
|
+
color: var(--toolbar-icon-color);
|
|
4088
|
+
align-items: center;
|
|
4089
|
+
margin-left: 24px;
|
|
4090
|
+
display: flex;
|
|
4091
|
+
}
|
|
4092
|
+
|
|
4093
|
+
.vditor-img__btn:hover {
|
|
4094
|
+
color: var(--toolbar-icon-hover-color);
|
|
4095
|
+
}
|
|
4096
|
+
|
|
4097
|
+
.vditor-img__btn svg {
|
|
4098
|
+
fill: currentColor;
|
|
4099
|
+
width: 14px;
|
|
4100
|
+
height: 14px;
|
|
4101
|
+
margin-right: 8px;
|
|
4102
|
+
}
|
|
4103
|
+
|
|
4104
|
+
.vditor-img__img {
|
|
4105
|
+
background-color: var(--textarea-background-color);
|
|
4106
|
+
cursor: zoom-out;
|
|
4107
|
+
flex: 1;
|
|
4108
|
+
overflow: auto;
|
|
4109
|
+
}
|
|
4110
|
+
|
|
4111
|
+
.vditor-img__img img {
|
|
4112
|
+
max-width: none;
|
|
4113
|
+
}
|
|
4114
|
+
|
|
4115
|
+
.vditor-hint {
|
|
4116
|
+
background-color: var(--panel-background-color);
|
|
4117
|
+
box-shadow: var(--panel-shadow);
|
|
4118
|
+
z-index: 4;
|
|
4119
|
+
border-radius: 3px;
|
|
4120
|
+
min-width: 80px;
|
|
4121
|
+
max-width: 250px;
|
|
4122
|
+
margin: 0;
|
|
4123
|
+
padding: 5px 0;
|
|
4124
|
+
font-size: 12px;
|
|
4125
|
+
line-height: 20px;
|
|
4126
|
+
list-style: none;
|
|
4127
|
+
display: none;
|
|
4128
|
+
position: absolute;
|
|
4129
|
+
}
|
|
4130
|
+
|
|
4131
|
+
.vditor-hint .vditor-hint {
|
|
4132
|
+
margin-top: -31px;
|
|
4133
|
+
left: 100%;
|
|
4134
|
+
right: auto;
|
|
4135
|
+
}
|
|
4136
|
+
|
|
4137
|
+
.vditor-hint .vditor-hint.vditor-panel--left {
|
|
4138
|
+
left: auto;
|
|
4139
|
+
right: 100%;
|
|
4140
|
+
}
|
|
4141
|
+
|
|
4142
|
+
.vditor-hint button {
|
|
4143
|
+
color: var(--toolbar-icon-color);
|
|
4144
|
+
box-sizing: border-box;
|
|
4145
|
+
text-align: left;
|
|
4146
|
+
cursor: pointer;
|
|
4147
|
+
white-space: nowrap;
|
|
4148
|
+
text-overflow: ellipsis;
|
|
4149
|
+
background-color: #0000;
|
|
4150
|
+
border: 0;
|
|
4151
|
+
border-radius: 0;
|
|
4152
|
+
width: 100%;
|
|
4153
|
+
margin: 0;
|
|
4154
|
+
padding: 3px 10px;
|
|
4155
|
+
line-height: 20px;
|
|
4156
|
+
display: block;
|
|
4157
|
+
overflow: hidden;
|
|
4158
|
+
}
|
|
4159
|
+
|
|
4160
|
+
.vditor-hint button:focus {
|
|
4161
|
+
outline: none;
|
|
4162
|
+
}
|
|
4163
|
+
|
|
4164
|
+
.vditor-hint--current, .vditor-hint button:not(.vditor-menu--disabled):hover {
|
|
4165
|
+
background-color: var(--toolbar-background-color) !important;
|
|
4166
|
+
color: var(--toolbar-icon-hover-color) !important;
|
|
4167
|
+
}
|
|
4168
|
+
|
|
4169
|
+
.vditor-hint__emoji {
|
|
4170
|
+
float: left;
|
|
4171
|
+
margin-right: 3px;
|
|
4172
|
+
font-size: 16px;
|
|
4173
|
+
}
|
|
4174
|
+
|
|
4175
|
+
.vditor-hint img {
|
|
4176
|
+
float: left;
|
|
4177
|
+
width: 20px;
|
|
4178
|
+
height: 20px;
|
|
4179
|
+
margin-right: 3px;
|
|
4180
|
+
}
|
|
4181
|
+
|
|
4182
|
+
.vditor-reset {
|
|
4183
|
+
color: #24292e;
|
|
4184
|
+
font-variant-ligatures: no-common-ligatures;
|
|
4185
|
+
word-wrap: break-word;
|
|
4186
|
+
word-break: break-word;
|
|
4187
|
+
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;
|
|
4188
|
+
font-size: 16px;
|
|
4189
|
+
line-height: 1.5;
|
|
4190
|
+
overflow: auto;
|
|
4191
|
+
}
|
|
4192
|
+
|
|
4193
|
+
.vditor-reset--anchor {
|
|
4194
|
+
padding-left: 20px;
|
|
4195
|
+
}
|
|
4196
|
+
|
|
4197
|
+
.vditor-reset--error {
|
|
4198
|
+
color: #d23f31;
|
|
4199
|
+
font-size: 12px;
|
|
4200
|
+
line-height: 16px;
|
|
4201
|
+
display: block;
|
|
4202
|
+
}
|
|
4203
|
+
|
|
4204
|
+
.vditor-reset ul ul ul {
|
|
4205
|
+
list-style-type: square;
|
|
4206
|
+
}
|
|
4207
|
+
|
|
4208
|
+
.vditor-reset ul ul {
|
|
4209
|
+
list-style-type: circle;
|
|
4210
|
+
}
|
|
4211
|
+
|
|
4212
|
+
.vditor-reset ul {
|
|
4213
|
+
list-style-type: disc;
|
|
4214
|
+
}
|
|
4215
|
+
|
|
4216
|
+
.vditor-reset ul, .vditor-reset ol {
|
|
4217
|
+
margin-top: 0;
|
|
4218
|
+
margin-bottom: 16px;
|
|
4219
|
+
padding-left: 2em;
|
|
4220
|
+
}
|
|
4221
|
+
|
|
4222
|
+
.vditor-reset li + li {
|
|
4223
|
+
margin-top: .25em;
|
|
4224
|
+
}
|
|
4225
|
+
|
|
4226
|
+
.vditor-reset li p {
|
|
4227
|
+
margin-top: 16px;
|
|
4228
|
+
}
|
|
4229
|
+
|
|
4230
|
+
.vditor-reset audio {
|
|
4231
|
+
max-width: 100%;
|
|
4232
|
+
}
|
|
4233
|
+
|
|
4234
|
+
.vditor-reset audio:focus {
|
|
4235
|
+
outline: none;
|
|
4236
|
+
}
|
|
4237
|
+
|
|
4238
|
+
.vditor-reset video {
|
|
4239
|
+
max-width: 100%;
|
|
4240
|
+
max-height: 90vh;
|
|
4241
|
+
}
|
|
4242
|
+
|
|
4243
|
+
.vditor-reset img {
|
|
4244
|
+
max-width: 100%;
|
|
4245
|
+
}
|
|
4246
|
+
|
|
4247
|
+
.vditor-reset img.emoji {
|
|
4248
|
+
cursor: auto;
|
|
4249
|
+
vertical-align: sub;
|
|
4250
|
+
max-width: 20px;
|
|
4251
|
+
}
|
|
4252
|
+
|
|
4253
|
+
.vditor-reset figure.vditor-image {
|
|
4254
|
+
text-align: center;
|
|
4255
|
+
margin: 0 0 16px;
|
|
4256
|
+
}
|
|
4257
|
+
|
|
4258
|
+
.vditor-reset figure.vditor-image figcaption {
|
|
4259
|
+
opacity: .65;
|
|
4260
|
+
white-space: pre-wrap;
|
|
4261
|
+
margin-top: 4px;
|
|
4262
|
+
font-size: .875em;
|
|
4263
|
+
}
|
|
4264
|
+
|
|
4265
|
+
.vditor-reset span.vditor-image[data-image-caption] {
|
|
4266
|
+
text-align: center;
|
|
4267
|
+
vertical-align: top;
|
|
4268
|
+
max-width: 100%;
|
|
4269
|
+
display: inline-block;
|
|
4270
|
+
}
|
|
4271
|
+
|
|
4272
|
+
.vditor-reset span.vditor-image[data-image-caption]:after {
|
|
4273
|
+
content: attr(data-image-caption);
|
|
4274
|
+
opacity: .65;
|
|
4275
|
+
white-space: pre-wrap;
|
|
4276
|
+
margin-top: 4px;
|
|
4277
|
+
font-size: .875em;
|
|
4278
|
+
line-height: 1.5;
|
|
4279
|
+
display: block;
|
|
4280
|
+
}
|
|
4281
|
+
|
|
4282
|
+
.vditor-reset h1, .vditor-reset h2, .vditor-reset h3, .vditor-reset h4, .vditor-reset h5, .vditor-reset h6 {
|
|
4283
|
+
margin-top: 24px;
|
|
4284
|
+
margin-bottom: 16px;
|
|
4285
|
+
font-weight: 600;
|
|
4286
|
+
line-height: 1.25;
|
|
4287
|
+
}
|
|
4288
|
+
|
|
4289
|
+
.vditor-reset h1:hover .vditor-anchor svg, .vditor-reset h2:hover .vditor-anchor svg, .vditor-reset h3:hover .vditor-anchor svg, .vditor-reset h4:hover .vditor-anchor svg, .vditor-reset h5:hover .vditor-anchor svg, .vditor-reset h6:hover .vditor-anchor svg {
|
|
4290
|
+
visibility: visible;
|
|
4291
|
+
}
|
|
4292
|
+
|
|
4293
|
+
.vditor-reset h1 {
|
|
4294
|
+
font-size: 1.75em;
|
|
4295
|
+
}
|
|
4296
|
+
|
|
4297
|
+
.vditor-reset h2 {
|
|
4298
|
+
font-size: 1.55em;
|
|
4299
|
+
}
|
|
4300
|
+
|
|
4301
|
+
.vditor-reset h3 {
|
|
4302
|
+
font-size: 1.38em;
|
|
4303
|
+
}
|
|
4304
|
+
|
|
4305
|
+
.vditor-reset h4 {
|
|
4306
|
+
font-size: 1.25em;
|
|
4307
|
+
}
|
|
4308
|
+
|
|
4309
|
+
.vditor-reset h5 {
|
|
4310
|
+
font-size: 1.13em;
|
|
4311
|
+
}
|
|
4312
|
+
|
|
4313
|
+
.vditor-reset h6 {
|
|
4314
|
+
font-size: 1em;
|
|
4315
|
+
}
|
|
4316
|
+
|
|
4317
|
+
.vditor-reset hr {
|
|
4318
|
+
background-color: #eaecef;
|
|
4319
|
+
border: 0;
|
|
4320
|
+
height: 2px;
|
|
4321
|
+
margin: 24px 0;
|
|
4322
|
+
padding: 0;
|
|
4323
|
+
}
|
|
4324
|
+
|
|
4325
|
+
.vditor-reset p {
|
|
4326
|
+
margin-top: 0;
|
|
4327
|
+
margin-bottom: 16px;
|
|
4328
|
+
}
|
|
4329
|
+
|
|
4330
|
+
.vditor-reset blockquote:not(.callout) {
|
|
4331
|
+
color: var(--blockquote-text-color, #5f6368);
|
|
4332
|
+
background-color: #0000;
|
|
4333
|
+
border: 0;
|
|
4334
|
+
flex-direction: column;
|
|
4335
|
+
margin: 0 0 16px;
|
|
4336
|
+
padding: 0 0 0 calc(.25em + 6px);
|
|
4337
|
+
display: flex;
|
|
4338
|
+
position: relative;
|
|
4339
|
+
}
|
|
4340
|
+
|
|
4341
|
+
.vditor-reset blockquote:not(.callout):before {
|
|
4342
|
+
content: "";
|
|
4343
|
+
background-color: var(--blockquote-border-color, #e0e0e0);
|
|
4344
|
+
border-radius: 6px;
|
|
4345
|
+
width: .25em;
|
|
4346
|
+
position: absolute;
|
|
4347
|
+
top: 6px;
|
|
4348
|
+
bottom: 6px;
|
|
4349
|
+
left: 2px;
|
|
4350
|
+
}
|
|
4351
|
+
|
|
4352
|
+
.vditor-reset blockquote:not(.callout) > :first-child {
|
|
4353
|
+
margin-top: 0;
|
|
4354
|
+
}
|
|
4355
|
+
|
|
4356
|
+
.vditor-reset blockquote:not(.callout) > :last-child {
|
|
4357
|
+
margin-bottom: 0;
|
|
4358
|
+
}
|
|
4359
|
+
|
|
4360
|
+
.vditor-reset blockquote:not(.callout) > p {
|
|
4361
|
+
border-radius: 6px;
|
|
4362
|
+
margin: 2px 0;
|
|
4363
|
+
padding: 4px;
|
|
4364
|
+
line-height: 1.625;
|
|
4365
|
+
}
|
|
4366
|
+
|
|
4367
|
+
.vditor-reset ins > iframe {
|
|
4368
|
+
border: 0;
|
|
4369
|
+
}
|
|
4370
|
+
|
|
4371
|
+
.vditor-reset iframe {
|
|
4372
|
+
box-sizing: border-box;
|
|
4373
|
+
border: 1px solid #d1d5da;
|
|
4374
|
+
max-width: 100%;
|
|
4375
|
+
}
|
|
4376
|
+
|
|
4377
|
+
.vditor-reset iframe.iframe__video {
|
|
4378
|
+
min-width: 80%;
|
|
4379
|
+
min-height: 36vh;
|
|
4380
|
+
}
|
|
4381
|
+
|
|
4382
|
+
.vditor-reset table {
|
|
4383
|
+
border-collapse: collapse;
|
|
4384
|
+
empty-cells: show;
|
|
4385
|
+
border-spacing: 0;
|
|
4386
|
+
word-break: keep-all;
|
|
4387
|
+
width: 100%;
|
|
4388
|
+
margin-bottom: 16px;
|
|
4389
|
+
display: block;
|
|
4390
|
+
overflow: auto;
|
|
4391
|
+
}
|
|
4392
|
+
|
|
4393
|
+
.vditor-reset table tr {
|
|
4394
|
+
background-color: #fafbfc;
|
|
4395
|
+
border-top: 1px solid #c6cbd1;
|
|
4396
|
+
}
|
|
4397
|
+
|
|
4398
|
+
.vditor-reset table td, .vditor-reset table th {
|
|
4399
|
+
word-break: normal;
|
|
4400
|
+
white-space: nowrap;
|
|
4401
|
+
border: 1px solid #dfe2e5;
|
|
4402
|
+
padding: 6px 13px;
|
|
4403
|
+
}
|
|
4404
|
+
|
|
4405
|
+
.vditor-reset table td:first-child:after, .vditor-reset table th:first-child:after {
|
|
4406
|
+
content: "";
|
|
4407
|
+
vertical-align: top;
|
|
4408
|
+
min-height: 24px;
|
|
4409
|
+
display: inline-block;
|
|
4410
|
+
}
|
|
4411
|
+
|
|
4412
|
+
.vditor-reset table th {
|
|
4413
|
+
font-weight: 600;
|
|
4414
|
+
}
|
|
4415
|
+
|
|
4416
|
+
.vditor-reset table tbody tr:nth-child(2n) {
|
|
4417
|
+
background-color: #fff;
|
|
4418
|
+
}
|
|
4419
|
+
|
|
4420
|
+
.vditor-reset code:not(.hljs):not(.highlight-chroma) {
|
|
4421
|
+
word-break: break-word;
|
|
4422
|
+
white-space: pre-wrap;
|
|
4423
|
+
background-size: 20px 20px;
|
|
4424
|
+
border-radius: 3px;
|
|
4425
|
+
margin: 0;
|
|
4426
|
+
padding: .2em .4em;
|
|
4427
|
+
font-family: mononoki, Consolas, Liberation Mono, Menlo, Courier, monospace, Apple Color Emoji, Segoe UI Emoji, Noto Color Emoji, Segoe UI Symbol, Android Emoji, EmojiSymbols;
|
|
4428
|
+
font-size: 85%;
|
|
4429
|
+
}
|
|
4430
|
+
|
|
4431
|
+
.vditor-reset pre {
|
|
4432
|
+
margin: 1em 0;
|
|
4433
|
+
}
|
|
4434
|
+
|
|
4435
|
+
.vditor-reset pre > code {
|
|
4436
|
+
white-space: pre;
|
|
4437
|
+
word-break: initial;
|
|
4438
|
+
word-wrap: normal;
|
|
4439
|
+
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==");
|
|
4440
|
+
background-size: 20px 20px;
|
|
4441
|
+
border-radius: 5px;
|
|
4442
|
+
margin: 0;
|
|
4443
|
+
padding: .5em;
|
|
4444
|
+
font-family: mononoki, Consolas, Liberation Mono, Menlo, Courier, monospace, Apple Color Emoji, Segoe UI Emoji, Noto Color Emoji, Segoe UI Symbol, Android Emoji, EmojiSymbols;
|
|
4445
|
+
font-size: 85%;
|
|
4446
|
+
display: block;
|
|
4447
|
+
overflow: auto;
|
|
4448
|
+
}
|
|
4449
|
+
|
|
4450
|
+
.vditor-reset pre:hover div.vditor-copy {
|
|
4451
|
+
display: block;
|
|
4452
|
+
}
|
|
4453
|
+
|
|
4454
|
+
.vditor-reset .language-math, .vditor-reset .language-echarts, .vditor-reset .language-mindmap, .vditor-reset .language-plantuml, .vditor-reset .language-mermaid, .vditor-reset .language-smiles, .vditor-reset .language-markmap, .vditor-reset .language-abc, .vditor-reset .language-flowchart, .vditor-reset .language-graphviz, .vditor-reset .language-wavedrom {
|
|
4455
|
+
margin-bottom: 16px;
|
|
4456
|
+
}
|
|
4457
|
+
|
|
4458
|
+
.vditor-reset .language-math mjx-container:focus {
|
|
4459
|
+
cursor: context-menu;
|
|
4460
|
+
outline: none;
|
|
4461
|
+
}
|
|
4462
|
+
|
|
4463
|
+
.vditor-reset .language-math .katex-display > .katex > .katex-html > .tag {
|
|
4464
|
+
font-size: 1.21rem;
|
|
4465
|
+
display: inline-block;
|
|
4466
|
+
right: 2px;
|
|
4467
|
+
}
|
|
4468
|
+
|
|
4469
|
+
.vditor-reset .language-echarts, .vditor-reset .language-mindmap {
|
|
4470
|
+
height: 420px;
|
|
4471
|
+
overflow: hidden;
|
|
4472
|
+
}
|
|
4473
|
+
|
|
4474
|
+
.vditor-reset .language-mermaid, .vditor-reset .language-markmap, .vditor-reset .language-flowchart, .vditor-reset .language-graphviz, .vditor-reset .language-wavedrom {
|
|
4475
|
+
text-align: center;
|
|
4476
|
+
}
|
|
4477
|
+
|
|
4478
|
+
.vditor-reset .language-graphviz parsererror {
|
|
4479
|
+
overflow: auto;
|
|
4480
|
+
}
|
|
4481
|
+
|
|
4482
|
+
.vditor-reset kbd {
|
|
4483
|
+
color: #24292e;
|
|
4484
|
+
vertical-align: middle;
|
|
4485
|
+
background-color: #fafbfc;
|
|
4486
|
+
border: 1px solid #d1d5da;
|
|
4487
|
+
border-radius: 3px;
|
|
4488
|
+
padding: 3px 5px;
|
|
4489
|
+
font: 11px / 10px Consolas, Liberation Mono, Menlo, Courier, monospace;
|
|
4490
|
+
display: inline-block;
|
|
4491
|
+
box-shadow: inset 0 -1px #d1d5da;
|
|
4492
|
+
}
|
|
4493
|
+
|
|
4494
|
+
.vditor-reset summary {
|
|
4495
|
+
cursor: pointer;
|
|
4496
|
+
}
|
|
4497
|
+
|
|
4498
|
+
.vditor-reset summary:focus {
|
|
4499
|
+
outline: none;
|
|
4500
|
+
}
|
|
4501
|
+
|
|
4502
|
+
.vditor-reset svg {
|
|
4503
|
+
width: auto;
|
|
4504
|
+
height: auto;
|
|
4505
|
+
stroke-width: initial;
|
|
4506
|
+
}
|
|
4507
|
+
|
|
4508
|
+
.vditor-reset p:last-child, .vditor-reset blockquote:last-child, .vditor-reset pre:last-child, .vditor-reset ul:last-child, .vditor-reset ol:last-child, .vditor-reset hr:last-child {
|
|
4509
|
+
margin-bottom: 0;
|
|
4510
|
+
}
|
|
4511
|
+
|
|
4512
|
+
.vditor-comment {
|
|
4513
|
+
border-bottom: 2px solid #f8e6ab;
|
|
4514
|
+
}
|
|
4515
|
+
|
|
4516
|
+
.vditor-comment--focus, .vditor-comment--hover {
|
|
4517
|
+
background-color: #faf1d1;
|
|
4518
|
+
border-bottom: 2px solid #ffc60a;
|
|
4519
|
+
}
|
|
4520
|
+
|
|
4521
|
+
.vditor-comment--focus .vditor-comment, .vditor-comment--hover .vditor-comment {
|
|
4522
|
+
border-bottom: 2px solid #ffc60a;
|
|
4523
|
+
}
|
|
4524
|
+
|
|
4525
|
+
.vditor-task {
|
|
4526
|
+
word-break: break-all;
|
|
4527
|
+
list-style: none !important;
|
|
4528
|
+
}
|
|
4529
|
+
|
|
4530
|
+
.vditor-task input {
|
|
4531
|
+
vertical-align: middle;
|
|
4532
|
+
margin: 0 .2em .25em -1.6em;
|
|
4533
|
+
font-size: 12px;
|
|
4534
|
+
}
|
|
4535
|
+
|
|
4536
|
+
.vditor-copy {
|
|
4537
|
+
z-index: 1;
|
|
4538
|
+
display: none;
|
|
4539
|
+
position: relative;
|
|
4540
|
+
}
|
|
4541
|
+
|
|
4542
|
+
.vditor-copy textarea {
|
|
4543
|
+
height: 10px;
|
|
4544
|
+
position: absolute;
|
|
4545
|
+
left: -100000px;
|
|
4546
|
+
}
|
|
4547
|
+
|
|
4548
|
+
.vditor-copy span {
|
|
4549
|
+
cursor: pointer;
|
|
4550
|
+
position: absolute;
|
|
4551
|
+
top: .5em;
|
|
4552
|
+
right: 15px;
|
|
4553
|
+
}
|
|
4554
|
+
|
|
4555
|
+
.vditor-copy svg {
|
|
4556
|
+
color: #586069;
|
|
4557
|
+
fill: currentColor;
|
|
4558
|
+
height: 14px;
|
|
4559
|
+
display: block;
|
|
4560
|
+
width: 14px !important;
|
|
4561
|
+
}
|
|
4562
|
+
|
|
4563
|
+
.vditor-linenumber {
|
|
4564
|
+
position: relative;
|
|
4565
|
+
padding-left: 4em !important;
|
|
4566
|
+
}
|
|
4567
|
+
|
|
4568
|
+
.vditor-linenumber__rows {
|
|
4569
|
+
pointer-events: none;
|
|
4570
|
+
-webkit-user-select: none;
|
|
4571
|
+
-moz-user-select: none;
|
|
4572
|
+
user-select: none;
|
|
4573
|
+
counter-reset: linenumber;
|
|
4574
|
+
width: 3em;
|
|
4575
|
+
position: absolute;
|
|
4576
|
+
top: 1em;
|
|
4577
|
+
left: 0;
|
|
4578
|
+
}
|
|
4579
|
+
|
|
4580
|
+
.vditor-linenumber__rows > span {
|
|
4581
|
+
pointer-events: none;
|
|
4582
|
+
display: block;
|
|
4583
|
+
}
|
|
4584
|
+
|
|
4585
|
+
.vditor-linenumber__rows > span:before {
|
|
4586
|
+
counter-increment: linenumber;
|
|
4587
|
+
content: counter(linenumber);
|
|
4588
|
+
color: #9e969661;
|
|
4589
|
+
text-align: right;
|
|
4590
|
+
padding-right: 1em;
|
|
4591
|
+
display: block;
|
|
4592
|
+
}
|
|
4593
|
+
|
|
4594
|
+
.vditor-speech {
|
|
4595
|
+
cursor: pointer;
|
|
4596
|
+
color: #586069;
|
|
4597
|
+
background-color: #f6f8fa;
|
|
4598
|
+
border: 1px solid #d1d5da;
|
|
4599
|
+
border-radius: 3px;
|
|
4600
|
+
padding: 3px;
|
|
4601
|
+
display: none;
|
|
4602
|
+
position: absolute;
|
|
4603
|
+
}
|
|
4604
|
+
|
|
4605
|
+
.vditor-speech:hover, .vditor-speech--current {
|
|
4606
|
+
color: #4285f4;
|
|
4607
|
+
}
|
|
4608
|
+
|
|
4609
|
+
.vditor-speech svg {
|
|
4610
|
+
fill: currentColor;
|
|
4611
|
+
stroke-width: 0;
|
|
4612
|
+
stroke: currentColor;
|
|
4613
|
+
width: 14px;
|
|
4614
|
+
height: 14px;
|
|
4615
|
+
display: block;
|
|
4616
|
+
}
|
|
4617
|
+
|
|
4618
|
+
.vditor-anchor {
|
|
4619
|
+
margin-left: 5px;
|
|
4620
|
+
}
|
|
4621
|
+
|
|
4622
|
+
.vditor-anchor--left {
|
|
4623
|
+
float: left;
|
|
4624
|
+
margin-left: -20px;
|
|
4625
|
+
padding-right: 4px;
|
|
4626
|
+
}
|
|
4627
|
+
|
|
4628
|
+
.vditor-anchor svg {
|
|
4629
|
+
visibility: hidden;
|
|
4630
|
+
}
|
|
4631
|
+
|
|
4632
|
+
.vditor-anchor:hover svg {
|
|
4633
|
+
visibility: visible;
|
|
4634
|
+
}
|
|
4635
|
+
|
|
4636
|
+
.vditor-anchor:focus {
|
|
4637
|
+
outline: none;
|
|
4638
|
+
}
|
|
4639
|
+
|
|
4640
|
+
.vditor-linkcard {
|
|
4641
|
+
cursor: pointer;
|
|
4642
|
+
max-width: 768px;
|
|
4643
|
+
margin: 31px auto 16px;
|
|
4644
|
+
padding: 0 10px;
|
|
4645
|
+
transition: all .15s ease-in-out;
|
|
4646
|
+
}
|
|
4647
|
+
|
|
4648
|
+
.vditor-linkcard a {
|
|
4649
|
+
background-color: #f6f8fa;
|
|
4650
|
+
border-radius: 3px;
|
|
4651
|
+
flex-wrap: wrap-reverse;
|
|
4652
|
+
max-height: 250px;
|
|
4653
|
+
text-decoration: none;
|
|
4654
|
+
display: flex;
|
|
4655
|
+
overflow: hidden;
|
|
4656
|
+
box-shadow: 0 1px 2px #0003;
|
|
4657
|
+
}
|
|
4658
|
+
|
|
4659
|
+
.vditor-linkcard a:hover {
|
|
4660
|
+
text-decoration: none;
|
|
4661
|
+
box-shadow: 0 0 3px #00000021, 0 3px 6px #00000042;
|
|
4662
|
+
}
|
|
4663
|
+
|
|
4664
|
+
.vditor-linkcard a:visited .vditor-linkcard__abstract {
|
|
4665
|
+
color: #5860695c;
|
|
4666
|
+
}
|
|
4667
|
+
|
|
4668
|
+
.vditor-linkcard__info {
|
|
4669
|
+
box-sizing: border-box;
|
|
4670
|
+
flex: 1;
|
|
4671
|
+
min-width: 200px;
|
|
4672
|
+
padding: 10px;
|
|
4673
|
+
}
|
|
4674
|
+
|
|
4675
|
+
.vditor-linkcard__title {
|
|
4676
|
+
color: #24292e;
|
|
4677
|
+
align-items: center;
|
|
4678
|
+
font-size: 14px;
|
|
4679
|
+
font-weight: 400;
|
|
4680
|
+
display: flex;
|
|
4681
|
+
}
|
|
4682
|
+
|
|
4683
|
+
.vditor-linkcard__title img {
|
|
4684
|
+
cursor: pointer;
|
|
4685
|
+
border-radius: 3px;
|
|
4686
|
+
flex-shrink: 0;
|
|
4687
|
+
width: 20px;
|
|
4688
|
+
height: 20px;
|
|
4689
|
+
margin-right: 5px;
|
|
4690
|
+
}
|
|
4691
|
+
|
|
4692
|
+
.vditor-linkcard__abstract {
|
|
4693
|
+
word-wrap: break-word;
|
|
4694
|
+
word-break: break-all;
|
|
4695
|
+
-webkit-line-clamp: 2;
|
|
4696
|
+
text-overflow: ellipsis;
|
|
4697
|
+
color: #586069;
|
|
4698
|
+
-webkit-box-orient: vertical;
|
|
4699
|
+
margin: 5px 0;
|
|
4700
|
+
font-size: 13px;
|
|
4701
|
+
display: -webkit-box;
|
|
4702
|
+
overflow: hidden;
|
|
4703
|
+
}
|
|
4704
|
+
|
|
4705
|
+
.vditor-linkcard__site {
|
|
4706
|
+
color: #4285f4;
|
|
4707
|
+
font-size: 12px;
|
|
4708
|
+
}
|
|
4709
|
+
|
|
4710
|
+
.vditor-linkcard__image {
|
|
4711
|
+
cursor: pointer;
|
|
4712
|
+
background-color: #5860695c;
|
|
4713
|
+
background-position: center;
|
|
4714
|
+
background-repeat: no-repeat;
|
|
4715
|
+
background-size: cover;
|
|
4716
|
+
min-width: 126px;
|
|
4717
|
+
max-width: 250px;
|
|
4718
|
+
}
|
|
4719
|
+
|
|
4720
|
+
.vditor-footnotes__goto-ref {
|
|
4721
|
+
text-decoration: none;
|
|
4722
|
+
}
|
|
4723
|
+
|
|
4724
|
+
.vditor-toc {
|
|
4725
|
+
-webkit-user-select: text;
|
|
4726
|
+
-moz-user-select: text;
|
|
4727
|
+
user-select: text;
|
|
4728
|
+
color: #4285f4;
|
|
4729
|
+
margin-bottom: 16px;
|
|
4730
|
+
}
|
|
4731
|
+
|
|
4732
|
+
.vditor-toc .vditor-outline__action {
|
|
4733
|
+
display: none;
|
|
4734
|
+
}
|
|
4735
|
+
|
|
4736
|
+
.vditor-toc ul {
|
|
4737
|
+
padding-left: 1em;
|
|
4738
|
+
list-style: none !important;
|
|
4739
|
+
}
|
|
4740
|
+
|
|
4741
|
+
.vditor-toc > ul {
|
|
4742
|
+
padding-left: 0;
|
|
4743
|
+
}
|
|
4744
|
+
|
|
4745
|
+
.vditor-toc span {
|
|
4746
|
+
cursor: pointer;
|
|
4747
|
+
}
|
|
4748
|
+
|
|
4749
|
+
.vditor-toc li > span > svg {
|
|
4750
|
+
width: 0;
|
|
4751
|
+
height: 0;
|
|
4752
|
+
}
|
|
4753
|
+
|
|
4754
|
+
.vditor-outline {
|
|
4755
|
+
border-right: 1px solid var(--border-color);
|
|
4756
|
+
background-color: var(--panel-background-color);
|
|
4757
|
+
width: 250px;
|
|
4758
|
+
display: none;
|
|
4759
|
+
overflow: auto;
|
|
4760
|
+
}
|
|
4761
|
+
|
|
4762
|
+
.vditor-outline--right {
|
|
4763
|
+
border-right: 0;
|
|
4764
|
+
border-left: 1px solid var(--border-color);
|
|
4765
|
+
}
|
|
4766
|
+
|
|
4767
|
+
.vditor-outline::-webkit-scrollbar {
|
|
4768
|
+
display: none;
|
|
4769
|
+
}
|
|
4770
|
+
|
|
4771
|
+
.vditor-outline ul {
|
|
4772
|
+
margin: 0;
|
|
4773
|
+
padding-left: 1em;
|
|
4774
|
+
list-style: none !important;
|
|
4775
|
+
}
|
|
4776
|
+
|
|
4777
|
+
.vditor-outline__content > ul {
|
|
4778
|
+
padding-left: 0;
|
|
4779
|
+
}
|
|
4780
|
+
|
|
4781
|
+
.vditor-outline li > span {
|
|
4782
|
+
cursor: pointer;
|
|
4783
|
+
color: var(--textarea-text-color);
|
|
4784
|
+
align-items: center;
|
|
4785
|
+
padding: 5px 10px;
|
|
4786
|
+
display: flex;
|
|
4787
|
+
}
|
|
4788
|
+
|
|
4789
|
+
.vditor-outline li > span > svg {
|
|
4790
|
+
flex-shrink: 0;
|
|
4791
|
+
width: 10px;
|
|
4792
|
+
height: 10px;
|
|
4793
|
+
}
|
|
4794
|
+
|
|
4795
|
+
.vditor-outline li > span:hover {
|
|
4796
|
+
color: var(--toolbar-icon-hover-color);
|
|
4797
|
+
}
|
|
4798
|
+
|
|
4799
|
+
.vditor-outline li > span > span {
|
|
4800
|
+
white-space: nowrap;
|
|
4801
|
+
text-overflow: ellipsis;
|
|
4802
|
+
overflow: hidden;
|
|
4803
|
+
}
|
|
4804
|
+
|
|
4805
|
+
.vditor-outline__title {
|
|
4806
|
+
border-bottom: 1px dashed var(--border-color);
|
|
4807
|
+
color: var(--toolbar-icon-color);
|
|
4808
|
+
padding: 5px 10px;
|
|
4809
|
+
font-size: 12px;
|
|
4810
|
+
}
|
|
4811
|
+
|
|
4812
|
+
.vditor-outline__action {
|
|
4813
|
+
fill: currentColor;
|
|
4814
|
+
flex-shrink: 0;
|
|
4815
|
+
margin-right: 5px;
|
|
4816
|
+
transition: all .15s ease-in-out;
|
|
4817
|
+
}
|
|
4818
|
+
|
|
4819
|
+
.vditor-outline__action--close {
|
|
4820
|
+
transform: rotate(-90deg);
|
|
4821
|
+
}
|
|
4822
|
+
|
|
4823
|
+
.vditor-reset .callout, .vditor-wysiwyg blockquote.callout, .vditor-ir blockquote.callout {
|
|
4824
|
+
--callout-color: var(--callout-note-color, #3575f0);
|
|
4825
|
+
color: var(--blockquote-text-color, #5f6368);
|
|
4826
|
+
border: 0;
|
|
4827
|
+
flex-direction: column;
|
|
4828
|
+
margin: 0 0 16px;
|
|
4829
|
+
padding: 0 0 0 calc(.25em + 6px);
|
|
4830
|
+
display: flex;
|
|
4831
|
+
position: relative;
|
|
4832
|
+
}
|
|
4833
|
+
|
|
4834
|
+
.vditor-reset .callout:before, .vditor-wysiwyg blockquote.callout:before, .vditor-ir blockquote.callout:before {
|
|
4835
|
+
content: "";
|
|
4836
|
+
background-color: var(--callout-color);
|
|
4837
|
+
border-radius: 6px;
|
|
4838
|
+
width: .25em;
|
|
4839
|
+
position: absolute;
|
|
4840
|
+
top: 6px;
|
|
4841
|
+
bottom: 6px;
|
|
4842
|
+
left: 2px;
|
|
4843
|
+
}
|
|
4844
|
+
|
|
4845
|
+
.vditor-reset .callout[data-subtype="TIP"], .vditor-wysiwyg blockquote.callout[data-subtype="TIP"], .vditor-ir blockquote.callout[data-subtype="TIP"] {
|
|
4846
|
+
--callout-color: var(--callout-tip-color, #65b84d);
|
|
4847
|
+
}
|
|
4848
|
+
|
|
4849
|
+
.vditor-reset .callout[data-subtype="IMPORTANT"], .vditor-wysiwyg blockquote.callout[data-subtype="IMPORTANT"], .vditor-ir blockquote.callout[data-subtype="IMPORTANT"] {
|
|
4850
|
+
--callout-color: var(--callout-important-color, #8957e5);
|
|
4851
|
+
}
|
|
4852
|
+
|
|
4853
|
+
.vditor-reset .callout[data-subtype="WARNING"], .vditor-wysiwyg blockquote.callout[data-subtype="WARNING"], .vditor-ir blockquote.callout[data-subtype="WARNING"] {
|
|
4854
|
+
--callout-color: var(--callout-warning-color, #ff9632);
|
|
4855
|
+
}
|
|
4856
|
+
|
|
4857
|
+
.vditor-reset .callout[data-subtype="CAUTION"], .vditor-wysiwyg blockquote.callout[data-subtype="CAUTION"], .vditor-ir blockquote.callout[data-subtype="CAUTION"] {
|
|
4858
|
+
--callout-color: var(--callout-caution-color, #d23f31);
|
|
4859
|
+
}
|
|
4860
|
+
|
|
4861
|
+
.vditor-reset .callout > .callout-info, .vditor-wysiwyg blockquote.callout > .callout-info, .vditor-ir blockquote.callout > .callout-info {
|
|
4862
|
+
min-height: 1.5em;
|
|
4863
|
+
color: var(--callout-color);
|
|
4864
|
+
align-items: center;
|
|
4865
|
+
margin: 2px 0;
|
|
4866
|
+
padding: 4px;
|
|
4867
|
+
display: flex;
|
|
4868
|
+
}
|
|
4869
|
+
|
|
4870
|
+
.vditor-reset .callout > .callout-info .callout-icon, .vditor-wysiwyg blockquote.callout > .callout-info .callout-icon, .vditor-ir blockquote.callout > .callout-info .callout-icon {
|
|
4871
|
+
text-align: center;
|
|
4872
|
+
font-variant-emoji: emoji;
|
|
4873
|
+
border-radius: 6px;
|
|
4874
|
+
justify-content: center;
|
|
4875
|
+
align-items: center;
|
|
4876
|
+
width: 1.2em;
|
|
4877
|
+
height: 1.2em;
|
|
4878
|
+
padding: 4px;
|
|
4879
|
+
line-height: 1.2em;
|
|
4880
|
+
display: flex;
|
|
4881
|
+
}
|
|
4882
|
+
|
|
4883
|
+
.vditor-reset .callout > .callout-info .callout-icon:empty, .vditor-wysiwyg blockquote.callout > .callout-info .callout-icon:empty, .vditor-ir blockquote.callout > .callout-info .callout-icon:empty {
|
|
4884
|
+
display: none;
|
|
4885
|
+
}
|
|
4886
|
+
|
|
4887
|
+
.vditor-reset .callout > .callout-info .callout-title, .vditor-wysiwyg blockquote.callout > .callout-info .callout-title, .vditor-ir blockquote.callout > .callout-info .callout-title {
|
|
4888
|
+
opacity: .86;
|
|
4889
|
+
flex: 1;
|
|
4890
|
+
min-width: 1px;
|
|
4891
|
+
margin-left: 4px;
|
|
4892
|
+
font-size: 114%;
|
|
4893
|
+
font-weight: 500;
|
|
4894
|
+
}
|
|
4895
|
+
|
|
4896
|
+
.vditor-reset .callout > .callout-info .callout-img, .vditor-wysiwyg blockquote.callout > .callout-info .callout-img, .vditor-ir blockquote.callout > .callout-info .callout-img, .vditor-reset .callout > .callout-info > .callout-img, .vditor-wysiwyg blockquote.callout > .callout-info > .callout-img, .vditor-ir blockquote.callout > .callout-info > .callout-img {
|
|
4897
|
+
width: 100%;
|
|
4898
|
+
height: 1.2em;
|
|
4899
|
+
}
|
|
4900
|
+
|
|
4901
|
+
.vditor-reset .callout > p:not(.callout-info), .vditor-wysiwyg blockquote.callout > p:not(.callout-info), .vditor-ir blockquote.callout > p:not(.callout-info), .vditor-reset .callout > .callout-content > p, .vditor-wysiwyg blockquote.callout > .callout-content > p, .vditor-ir blockquote.callout > .callout-content > p {
|
|
4902
|
+
border-radius: 6px;
|
|
4903
|
+
margin: 2px 0;
|
|
4904
|
+
padding: 4px;
|
|
4905
|
+
line-height: 1.625;
|
|
4906
|
+
}
|
|
4907
|
+
|
|
4908
|
+
.vditor-wysiwyg blockquote.callout > .callout-info, .vditor-ir blockquote.callout > .callout-info {
|
|
4909
|
+
opacity: .86;
|
|
4910
|
+
font-size: 114%;
|
|
4911
|
+
font-weight: 500;
|
|
4912
|
+
}
|
|
4913
|
+
|
|
4914
|
+
.vditor-wysiwyg__callout-marker {
|
|
4915
|
+
display: none;
|
|
4916
|
+
}
|
|
4917
|
+
|
|
4918
|
+
.vditor-wysiwyg {
|
|
4919
|
+
box-sizing: border-box;
|
|
4920
|
+
flex: 1;
|
|
4921
|
+
width: 100%;
|
|
4922
|
+
min-width: 1px;
|
|
4923
|
+
position: relative;
|
|
4924
|
+
}
|
|
4925
|
+
|
|
4926
|
+
.vditor-wysiwyg pre.vditor-reset {
|
|
4927
|
+
background-color: var(--panel-background-color);
|
|
4928
|
+
white-space: pre-wrap;
|
|
4929
|
+
box-sizing: border-box;
|
|
4930
|
+
height: 100%;
|
|
4931
|
+
margin: 0;
|
|
4932
|
+
}
|
|
4933
|
+
|
|
4934
|
+
.vditor-wysiwyg pre.vditor-reset[contenteditable="false"] {
|
|
4935
|
+
opacity: .3;
|
|
4936
|
+
cursor: not-allowed;
|
|
4937
|
+
}
|
|
4938
|
+
|
|
4939
|
+
.vditor-wysiwyg pre.vditor-reset:empty:before {
|
|
4940
|
+
content: attr(placeholder);
|
|
4941
|
+
color: var(--second-color);
|
|
4942
|
+
}
|
|
4943
|
+
|
|
4944
|
+
.vditor-wysiwyg pre.vditor-reset:focus {
|
|
4945
|
+
background-color: var(--textarea-background-color);
|
|
4946
|
+
outline: none;
|
|
4947
|
+
}
|
|
4948
|
+
|
|
4949
|
+
.vditor-wysiwyg pre.vditor-reset:after {
|
|
4950
|
+
content: "";
|
|
4951
|
+
height: var(--editor-bottom);
|
|
4952
|
+
display: block;
|
|
4953
|
+
}
|
|
4954
|
+
|
|
4955
|
+
.vditor-wysiwyg blockquote:empty:before, .vditor-wysiwyg pre > code:empty:before, .vditor-wysiwyg p:empty:before, .vditor-wysiwyg h1:empty:after, .vditor-wysiwyg h2:empty:after, .vditor-wysiwyg h3:empty:after, .vditor-wysiwyg h4:empty:after, .vditor-wysiwyg h5:empty:after, .vditor-wysiwyg h6:empty:after {
|
|
4956
|
+
content: " ";
|
|
4957
|
+
}
|
|
4958
|
+
|
|
4959
|
+
.vditor-wysiwyg code[data-marker="`"] {
|
|
4960
|
+
padding-left: 0 !important;
|
|
4961
|
+
padding-right: 0 !important;
|
|
4962
|
+
}
|
|
4963
|
+
|
|
4964
|
+
.vditor-wysiwyg__block pre:first-child {
|
|
4965
|
+
margin-bottom: -1em;
|
|
4966
|
+
}
|
|
4967
|
+
|
|
4968
|
+
.vditor-wysiwyg__block pre:first-child code {
|
|
4969
|
+
color: var(--textarea-text-color);
|
|
4970
|
+
text-align: left;
|
|
4971
|
+
height: auto;
|
|
4972
|
+
}
|
|
4973
|
+
|
|
4974
|
+
.vditor-wysiwyg__block pre:last-child {
|
|
4975
|
+
margin-bottom: 1em;
|
|
4976
|
+
}
|
|
4977
|
+
|
|
4978
|
+
.vditor-wysiwyg__preview {
|
|
4979
|
+
cursor: pointer;
|
|
4980
|
+
white-space: initial;
|
|
4981
|
+
min-height: 27px;
|
|
4982
|
+
}
|
|
4983
|
+
|
|
4984
|
+
.vditor-wysiwyg > .vditor-reset > h1:before, .vditor-wysiwyg > .vditor-reset > h2:before, .vditor-wysiwyg > .vditor-reset > h3:before, .vditor-wysiwyg > .vditor-reset > h4:before, .vditor-wysiwyg > .vditor-reset > h5:before, .vditor-wysiwyg > .vditor-reset > h6:before, .vditor-wysiwyg div.vditor-wysiwyg__block:before, .vditor-wysiwyg div[data-type="link-ref-defs-block"]:before, .vditor-wysiwyg div[data-type="footnotes-block"]:before, .vditor-wysiwyg .vditor-toc:before {
|
|
4985
|
+
float: left;
|
|
4986
|
+
content: "H1";
|
|
4987
|
+
color: var(--second-color);
|
|
4988
|
+
margin-left: -29px;
|
|
4989
|
+
padding-right: 4px;
|
|
4990
|
+
font-size: .85rem;
|
|
4991
|
+
font-weight: normal;
|
|
4992
|
+
}
|
|
4993
|
+
|
|
4994
|
+
.vditor-wysiwyg > .vditor-reset > h2:before {
|
|
4995
|
+
content: "H2";
|
|
4996
|
+
}
|
|
4997
|
+
|
|
4998
|
+
.vditor-wysiwyg > .vditor-reset > h3:before {
|
|
4999
|
+
content: "H3";
|
|
5000
|
+
}
|
|
5001
|
+
|
|
5002
|
+
.vditor-wysiwyg > .vditor-reset > h4:before {
|
|
5003
|
+
content: "H4";
|
|
5004
|
+
}
|
|
5005
|
+
|
|
5006
|
+
.vditor-wysiwyg > .vditor-reset > h5:before {
|
|
5007
|
+
content: "H5";
|
|
5008
|
+
}
|
|
5009
|
+
|
|
5010
|
+
.vditor-wysiwyg > .vditor-reset > h6:before {
|
|
5011
|
+
content: "H6";
|
|
5012
|
+
}
|
|
5013
|
+
|
|
5014
|
+
.vditor-wysiwyg div[data-type="link-ref-defs-block"]:before {
|
|
5015
|
+
content: "\"A\"";
|
|
5016
|
+
}
|
|
5017
|
+
|
|
5018
|
+
.vditor-wysiwyg div[data-type="footnotes-block"]:before {
|
|
5019
|
+
content: "^F";
|
|
5020
|
+
}
|
|
5021
|
+
|
|
5022
|
+
.vditor-wysiwyg div.vditor-wysiwyg__block:before {
|
|
5023
|
+
content: "</>";
|
|
5024
|
+
}
|
|
5025
|
+
|
|
5026
|
+
.vditor-wysiwyg div.vditor-wysiwyg__block[data-type="yaml-front-matter"]:before {
|
|
5027
|
+
content: "F";
|
|
5028
|
+
}
|
|
5029
|
+
|
|
5030
|
+
.vditor-wysiwyg div.vditor-wysiwyg__block[data-type="math-block"]:before {
|
|
5031
|
+
content: "$$";
|
|
5032
|
+
}
|
|
5033
|
+
|
|
5034
|
+
.vditor-wysiwyg .vditor-toc:before {
|
|
5035
|
+
content: "ToC";
|
|
5036
|
+
}
|
|
5037
|
+
|
|
5038
|
+
.vditor-wysiwyg hr {
|
|
5039
|
+
width: 100%;
|
|
5040
|
+
margin: 12px 0;
|
|
5041
|
+
display: inline-block;
|
|
5042
|
+
}
|
|
5043
|
+
|
|
5044
|
+
.vditor-wysiwyg details {
|
|
5045
|
+
white-space: initial;
|
|
5046
|
+
}
|
|
5047
|
+
|
|
5048
|
+
.vditor-wysiwyg a {
|
|
5049
|
+
cursor: pointer;
|
|
5050
|
+
}
|
|
5051
|
+
|
|
5052
|
+
.vditor-wysiwyg span[data-type="backslash"] > span {
|
|
5053
|
+
color: var(--second-color);
|
|
5054
|
+
display: none;
|
|
5055
|
+
}
|
|
5056
|
+
|
|
5057
|
+
.vditor-wysiwyg span[data-type="link-ref"], .vditor-wysiwyg sup[data-type="footnotes-ref"] {
|
|
5058
|
+
color: #4285f4;
|
|
5059
|
+
}
|
|
5060
|
+
|
|
5061
|
+
.vditor-wysiwyg span[data-type="toc-h"] {
|
|
5062
|
+
color: #4285f4;
|
|
5063
|
+
text-decoration: underline;
|
|
5064
|
+
}
|
|
5065
|
+
|
|
5066
|
+
.vditor-wysiwyg div[data-type="footnotes-block"] {
|
|
5067
|
+
border-top: 2px solid var(--heading-border-color);
|
|
5068
|
+
margin-top: 24px;
|
|
5069
|
+
padding-top: 24px;
|
|
5070
|
+
}
|
|
5071
|
+
|
|
5072
|
+
.vditor-wysiwyg div[data-type="link-ref-defs-block"] {
|
|
5073
|
+
color: var(--blockquote-color);
|
|
5074
|
+
}
|
|
5075
|
+
|
|
5076
|
+
.vditor-wysiwyg__mobile-toolbar {
|
|
5077
|
+
display: none;
|
|
5078
|
+
}
|
|
5079
|
+
|
|
5080
|
+
@media screen and (width <= 520px) {
|
|
5081
|
+
.vditor-wysiwyg__mobile-toolbar {
|
|
5082
|
+
float: left;
|
|
5083
|
+
width: 23px;
|
|
5084
|
+
height: 21px;
|
|
5085
|
+
display: block;
|
|
5086
|
+
position: relative;
|
|
5087
|
+
}
|
|
5088
|
+
|
|
5089
|
+
.vditor-wysiwyg__mobile-actions {
|
|
5090
|
+
box-sizing: border-box;
|
|
5091
|
+
white-space: normal;
|
|
5092
|
+
flex-wrap: wrap;
|
|
5093
|
+
padding: 5px;
|
|
5094
|
+
top: 26px;
|
|
5095
|
+
left: 0;
|
|
5096
|
+
}
|
|
5097
|
+
|
|
5098
|
+
.vditor-wysiwyg__mobile-actions.vditor-panel--left {
|
|
5099
|
+
left: auto;
|
|
5100
|
+
right: 0;
|
|
5101
|
+
}
|
|
5102
|
+
|
|
5103
|
+
.vditor-wysiwyg__mobile-actions--open {
|
|
5104
|
+
display: flex;
|
|
5105
|
+
}
|
|
5106
|
+
|
|
5107
|
+
.vditor-wysiwyg h1:before, .vditor-wysiwyg h2:before, .vditor-wysiwyg h3:before, .vditor-wysiwyg h4:before, .vditor-wysiwyg h5:before, .vditor-wysiwyg h6:before, .vditor-wysiwyg div.vditor-wysiwyg__block:before, .vditor-wysiwyg div[data-type="link-ref-defs-block"]:before, .vditor-wysiwyg div[data-type="footnotes-block"]:before, .vditor-wysiwyg .vditor-toc:before {
|
|
5108
|
+
content: none;
|
|
5109
|
+
}
|
|
5110
|
+
}
|
|
5111
|
+
|
|
5112
|
+
.vditor-ir {
|
|
5113
|
+
box-sizing: border-box;
|
|
5114
|
+
flex: 1;
|
|
5115
|
+
width: 100%;
|
|
5116
|
+
min-width: 1px;
|
|
5117
|
+
position: relative;
|
|
5118
|
+
}
|
|
5119
|
+
|
|
5120
|
+
.vditor-ir__node[data-type="code-block"]:before, .vditor-ir__node[data-type="code-block"]:after, .vditor-ir__node[data-type="yaml-front-matter"]:before, .vditor-ir__node[data-type="yaml-front-matter"]:after, .vditor-ir__node[data-type="math-block"]:before, .vditor-ir__node[data-type="math-block"]:after {
|
|
5121
|
+
content: " ";
|
|
5122
|
+
color: var(--second-color);
|
|
5123
|
+
}
|
|
5124
|
+
|
|
5125
|
+
.vditor-ir__node:not(.vditor-ir__node--expand) .vditor-ir__marker {
|
|
5126
|
+
padding: 0 !important;
|
|
5127
|
+
}
|
|
5128
|
+
|
|
5129
|
+
.vditor-ir__node:not(.vditor-ir__node--expand)[data-type="a"] {
|
|
5130
|
+
cursor: pointer;
|
|
5131
|
+
}
|
|
5132
|
+
|
|
5133
|
+
.vditor-ir__node[data-type="link-ref"], .vditor-ir__node[data-type="footnotes-ref"] {
|
|
5134
|
+
color: #4285f4;
|
|
5135
|
+
}
|
|
5136
|
+
|
|
5137
|
+
.vditor-ir__node[data-type="html-block"] {
|
|
5138
|
+
margin-bottom: 1em;
|
|
5139
|
+
}
|
|
5140
|
+
|
|
5141
|
+
.vditor-ir__node .vditor-ir__marker {
|
|
5142
|
+
width: 0;
|
|
5143
|
+
height: 0;
|
|
5144
|
+
transition: all .15s ease-in-out;
|
|
5145
|
+
display: inline-block;
|
|
5146
|
+
overflow: hidden;
|
|
5147
|
+
}
|
|
5148
|
+
|
|
5149
|
+
.vditor-ir__node--hidden .vditor-ir__marker {
|
|
5150
|
+
visibility: hidden;
|
|
5151
|
+
}
|
|
5152
|
+
|
|
5153
|
+
.vditor-ir__node--expand .vditor-ir__marker {
|
|
5154
|
+
color: var(--second-color);
|
|
5155
|
+
width: auto;
|
|
5156
|
+
height: auto;
|
|
5157
|
+
display: inline;
|
|
5158
|
+
}
|
|
5159
|
+
|
|
5160
|
+
.vditor-ir__node--expand .vditor-ir__marker--hide {
|
|
5161
|
+
display: none;
|
|
5162
|
+
}
|
|
5163
|
+
|
|
5164
|
+
.vditor-ir__node--expand .vditor-ir__marker--heading {
|
|
5165
|
+
color: var(--ir-heading-color);
|
|
5166
|
+
}
|
|
5167
|
+
|
|
5168
|
+
.vditor-ir__node--expand .vditor-ir__marker--bi {
|
|
5169
|
+
color: var(--ir-bi-color);
|
|
5170
|
+
}
|
|
5171
|
+
|
|
5172
|
+
.vditor-ir__node--expand .vditor-ir__marker--link {
|
|
5173
|
+
color: var(--ir-link-color);
|
|
5174
|
+
}
|
|
5175
|
+
|
|
5176
|
+
.vditor-ir__node--expand .vditor-ir__marker--title {
|
|
5177
|
+
color: var(--ir-title-color);
|
|
5178
|
+
}
|
|
5179
|
+
|
|
5180
|
+
.vditor-ir__node--expand .vditor-ir__marker--bracket {
|
|
5181
|
+
color: var(--ir-bracket-color);
|
|
5182
|
+
text-decoration: underline;
|
|
5183
|
+
}
|
|
5184
|
+
|
|
5185
|
+
.vditor-ir__node--expand .vditor-ir__marker--paren {
|
|
5186
|
+
color: var(--ir-paren-color);
|
|
5187
|
+
}
|
|
5188
|
+
|
|
5189
|
+
.vditor-ir__node--expand .vditor-ir__marker--info {
|
|
5190
|
+
color: var(--ir-heading-color);
|
|
5191
|
+
}
|
|
5192
|
+
|
|
5193
|
+
.vditor-ir__node--expand .vditor-ir__marker--pre code {
|
|
5194
|
+
color: var(--textarea-text-color);
|
|
5195
|
+
text-align: left;
|
|
5196
|
+
height: auto;
|
|
5197
|
+
}
|
|
5198
|
+
|
|
5199
|
+
.vditor-ir__node--expand[data-type="code-block"]:before, .vditor-ir__node--expand[data-type="code-block"]:after {
|
|
5200
|
+
content: "```";
|
|
5201
|
+
}
|
|
5202
|
+
|
|
5203
|
+
.vditor-ir__node--expand[data-type="yaml-front-matter"]:before, .vditor-ir__node--expand[data-type="yaml-front-matter"]:after {
|
|
5204
|
+
content: "---";
|
|
5205
|
+
}
|
|
5206
|
+
|
|
5207
|
+
.vditor-ir__node--expand[data-type="math-block"]:before, .vditor-ir__node--expand[data-type="math-block"]:after {
|
|
5208
|
+
content: "$$";
|
|
5209
|
+
}
|
|
5210
|
+
|
|
5211
|
+
.vditor-ir__node span[data-type="code-block-open-marker"], .vditor-ir__node span[data-type="code-block-close-marker"], .vditor-ir__node span[data-type="yaml-front-matter-open-marker"], .vditor-ir__node span[data-type="yaml-front-matter-close-marker"], .vditor-ir__node span[data-type="math-block-open-marker"], .vditor-ir__node span[data-type="math-block-close-marker"] {
|
|
5212
|
+
display: none;
|
|
5213
|
+
}
|
|
5214
|
+
|
|
5215
|
+
.vditor-ir__preview {
|
|
5216
|
+
cursor: pointer;
|
|
5217
|
+
white-space: initial;
|
|
5218
|
+
min-height: 27px;
|
|
5219
|
+
}
|
|
5220
|
+
|
|
5221
|
+
.vditor-ir__link {
|
|
5222
|
+
color: var(--ir-bracket-color);
|
|
5223
|
+
text-decoration: underline;
|
|
5224
|
+
}
|
|
5225
|
+
|
|
5226
|
+
.vditor-ir pre.vditor-reset {
|
|
5227
|
+
background-color: var(--panel-background-color);
|
|
5228
|
+
white-space: pre-wrap;
|
|
5229
|
+
box-sizing: border-box;
|
|
5230
|
+
height: 100%;
|
|
5231
|
+
margin: 0;
|
|
5232
|
+
}
|
|
5233
|
+
|
|
5234
|
+
.vditor-ir pre.vditor-reset[contenteditable="false"] {
|
|
5235
|
+
opacity: .3;
|
|
5236
|
+
cursor: not-allowed;
|
|
5237
|
+
}
|
|
5238
|
+
|
|
5239
|
+
.vditor-ir pre.vditor-reset:empty:before {
|
|
5240
|
+
content: attr(placeholder);
|
|
5241
|
+
color: var(--second-color);
|
|
5242
|
+
}
|
|
5243
|
+
|
|
5244
|
+
.vditor-ir pre.vditor-reset:focus {
|
|
5245
|
+
background-color: var(--textarea-background-color);
|
|
5246
|
+
outline: none;
|
|
5247
|
+
}
|
|
5248
|
+
|
|
5249
|
+
.vditor-ir pre.vditor-reset:after {
|
|
5250
|
+
content: "";
|
|
5251
|
+
height: var(--editor-bottom);
|
|
5252
|
+
display: block;
|
|
5253
|
+
}
|
|
5254
|
+
|
|
5255
|
+
.vditor-ir pre.vditor-reset pre {
|
|
5256
|
+
margin: 0;
|
|
5257
|
+
}
|
|
5258
|
+
|
|
5259
|
+
.vditor-ir hr {
|
|
5260
|
+
width: 100%;
|
|
5261
|
+
margin: 12px 0;
|
|
5262
|
+
display: inline-block;
|
|
5263
|
+
}
|
|
5264
|
+
|
|
5265
|
+
.vditor-ir blockquote:empty:before, .vditor-ir pre > code:empty:before, .vditor-ir p:empty:before, .vditor-ir h1:empty:after, .vditor-ir h2:empty:after, .vditor-ir h3:empty:after, .vditor-ir h4:empty:after, .vditor-ir h5:empty:after, .vditor-ir h6:empty:after {
|
|
5266
|
+
content: " ";
|
|
5267
|
+
}
|
|
5268
|
+
|
|
5269
|
+
.vditor-ir .vditor-reset > h1:before, .vditor-ir .vditor-reset > h2:before, .vditor-ir .vditor-reset > h3:before, .vditor-ir .vditor-reset > h4:before, .vditor-ir .vditor-reset > h5:before, .vditor-ir .vditor-reset > h6:before, .vditor-ir div[data-type="link-ref-defs-block"]:before, .vditor-ir div[data-type="footnotes-block"]:before, .vditor-ir .vditor-toc:before {
|
|
5270
|
+
float: left;
|
|
5271
|
+
content: "H1";
|
|
5272
|
+
color: var(--second-color);
|
|
5273
|
+
margin-left: -29px;
|
|
5274
|
+
padding-right: 4px;
|
|
5275
|
+
font-size: .85rem;
|
|
5276
|
+
font-weight: normal;
|
|
5277
|
+
}
|
|
5278
|
+
|
|
5279
|
+
.vditor-ir .vditor-reset > h2:before {
|
|
5280
|
+
content: "H2";
|
|
5281
|
+
}
|
|
5282
|
+
|
|
5283
|
+
.vditor-ir .vditor-reset > h3:before {
|
|
5284
|
+
content: "H3";
|
|
5285
|
+
}
|
|
5286
|
+
|
|
5287
|
+
.vditor-ir .vditor-reset > h4:before {
|
|
5288
|
+
content: "H4";
|
|
5289
|
+
}
|
|
5290
|
+
|
|
5291
|
+
.vditor-ir .vditor-reset > h5:before {
|
|
5292
|
+
content: "H5";
|
|
5293
|
+
}
|
|
5294
|
+
|
|
5295
|
+
.vditor-ir .vditor-reset > h6:before {
|
|
5296
|
+
content: "H6";
|
|
5297
|
+
}
|
|
5298
|
+
|
|
5299
|
+
.vditor-ir div[data-type="link-ref-defs-block"] {
|
|
5300
|
+
color: var(--blockquote-color);
|
|
5301
|
+
}
|
|
5302
|
+
|
|
5303
|
+
.vditor-ir div[data-type="link-ref-defs-block"]:before {
|
|
5304
|
+
content: "\"A\"";
|
|
5305
|
+
}
|
|
5306
|
+
|
|
5307
|
+
.vditor-ir div[data-type="footnotes-block"] {
|
|
5308
|
+
border-top: 2px solid var(--heading-border-color);
|
|
5309
|
+
margin-top: 24px;
|
|
5310
|
+
padding-top: 24px;
|
|
5311
|
+
}
|
|
5312
|
+
|
|
5313
|
+
.vditor-ir div[data-type="footnotes-block"]:before {
|
|
5314
|
+
content: "^F";
|
|
5315
|
+
}
|
|
5316
|
+
|
|
5317
|
+
.vditor-ir div[data-type="footnotes-block"] > div[data-type="footnotes-def"] > ul, .vditor-ir div[data-type="footnotes-block"] > div[data-type="footnotes-def"] > ol, .vditor-ir div[data-type="footnotes-block"] > div[data-type="footnotes-def"] > p, .vditor-ir div[data-type="footnotes-block"] > div[data-type="footnotes-def"] > blockquote, .vditor-ir div[data-type="footnotes-block"] > div[data-type="footnotes-def"] > pre, .vditor-ir div[data-type="footnotes-block"] > div[data-type="footnotes-def"] > table, .vditor-ir div[data-type="footnotes-block"] > div[data-type="footnotes-def"] > hr {
|
|
5318
|
+
margin-left: 8px;
|
|
5319
|
+
}
|
|
5320
|
+
|
|
5321
|
+
.vditor-ir .vditor-toc:before {
|
|
5322
|
+
content: "ToC";
|
|
5323
|
+
}
|
|
5324
|
+
|
|
5325
|
+
.vditor-ir .vditor-toc span[data-type="toc-h"] {
|
|
5326
|
+
color: #4285f4;
|
|
5327
|
+
text-decoration: underline;
|
|
5328
|
+
}
|
|
5329
|
+
|
|
5330
|
+
@media screen and (width <= 520px) {
|
|
5331
|
+
.vditor-ir h1:before, .vditor-ir h2:before, .vditor-ir h3:before, .vditor-ir h4:before, .vditor-ir h5:before, .vditor-ir h6:before, .vditor-ir div[data-type="link-ref-defs-block"]:before, .vditor-ir div[data-type="footnotes-block"]:before, .vditor-ir .vditor-toc:before {
|
|
5332
|
+
content: none;
|
|
5333
|
+
}
|
|
5334
|
+
}
|
|
5335
|
+
|
|
5336
|
+
.vditor-sv {
|
|
5337
|
+
resize: none;
|
|
5338
|
+
box-sizing: border-box;
|
|
5339
|
+
background-color: var(--panel-background-color);
|
|
5340
|
+
width: 100%;
|
|
5341
|
+
min-width: 1px;
|
|
5342
|
+
color: var(--textarea-text-color);
|
|
5343
|
+
font-variant-ligatures: no-common-ligatures;
|
|
5344
|
+
white-space: pre-wrap;
|
|
5345
|
+
word-break: break-word;
|
|
5346
|
+
word-wrap: break-word;
|
|
5347
|
+
border: 0;
|
|
5348
|
+
border-radius: 0 0 3px 3px;
|
|
5349
|
+
outline: 0;
|
|
5350
|
+
flex: 1;
|
|
5351
|
+
margin: 0 1px 0 0;
|
|
5352
|
+
padding: 10px 9px 10px 10px;
|
|
5353
|
+
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;
|
|
5354
|
+
font-size: 16px;
|
|
5355
|
+
line-height: 22px;
|
|
5356
|
+
overflow: auto;
|
|
5357
|
+
}
|
|
5358
|
+
|
|
5359
|
+
.vditor-sv:disabled {
|
|
5360
|
+
opacity: .3;
|
|
5361
|
+
cursor: not-allowed;
|
|
5362
|
+
}
|
|
5363
|
+
|
|
5364
|
+
.vditor-sv::-moz-placeholder {
|
|
5365
|
+
color: var(--second-color);
|
|
5366
|
+
}
|
|
5367
|
+
|
|
5368
|
+
.vditor-sv::placeholder {
|
|
5369
|
+
color: var(--second-color);
|
|
5370
|
+
}
|
|
5371
|
+
|
|
5372
|
+
.vditor-sv:focus {
|
|
5373
|
+
background-color: var(--textarea-background-color);
|
|
5374
|
+
}
|
|
5375
|
+
|
|
5376
|
+
.workbase-markdown-icons {
|
|
5377
|
+
display: none;
|
|
5378
|
+
}
|
|
5379
|
+
|
|
5380
|
+
.workbase-markdown-editor, .workbase-markdown-editor .vditor {
|
|
5381
|
+
--panel-background-color: var(--color-surface);
|
|
5382
|
+
--border-color: var(--color-border);
|
|
5383
|
+
--toolbar-background-color: var(--color-background);
|
|
5384
|
+
--toolbar-icon-color: var(--color-muted);
|
|
5385
|
+
--toolbar-icon-hover-color: var(--color-brand);
|
|
5386
|
+
--toolbar-height: 36px;
|
|
5387
|
+
--textarea-background-color: var(--color-surface);
|
|
5388
|
+
--textarea-text-color: var(--color-foreground);
|
|
5389
|
+
--resize-icon-color: var(--color-muted);
|
|
5390
|
+
--resize-background-color: var(--color-background);
|
|
5391
|
+
--resize-hover-icon-color: var(--color-brand);
|
|
5392
|
+
--resize-hover-background-color: var(--color-brand-weak);
|
|
5393
|
+
min-width: 0;
|
|
5394
|
+
color: var(--color-foreground);
|
|
5395
|
+
font-size: 14px;
|
|
5396
|
+
position: relative;
|
|
5397
|
+
}
|
|
5398
|
+
|
|
5399
|
+
.markdown-field-label {
|
|
5400
|
+
margin-bottom: 8px;
|
|
5401
|
+
font-size: 12px;
|
|
5402
|
+
font-weight: 500;
|
|
5403
|
+
display: block;
|
|
5404
|
+
}
|
|
5405
|
+
|
|
5406
|
+
.workbase-markdown-editor > select {
|
|
5407
|
+
border: 1px solid var(--color-border);
|
|
5408
|
+
background: var(--color-surface);
|
|
5409
|
+
max-width: 100%;
|
|
5410
|
+
color: var(--color-foreground);
|
|
5411
|
+
font: inherit;
|
|
5412
|
+
border-radius: 6px;
|
|
5413
|
+
margin-bottom: 8px;
|
|
5414
|
+
padding: 6px 8px;
|
|
5415
|
+
}
|
|
5416
|
+
|
|
5417
|
+
.workbase-markdown-editor .vditor {
|
|
5418
|
+
border-radius: 6px;
|
|
5419
|
+
}
|
|
5420
|
+
|
|
5421
|
+
.workbase-markdown-editor .vditor-toolbar {
|
|
5422
|
+
flex-wrap: wrap;
|
|
5423
|
+
padding-left: 6px !important;
|
|
5424
|
+
padding-right: 6px !important;
|
|
5425
|
+
}
|
|
5426
|
+
|
|
5427
|
+
.workbase-markdown-editor .vditor-toolbar__item {
|
|
5428
|
+
flex-shrink: 0;
|
|
5429
|
+
}
|
|
5430
|
+
|
|
5431
|
+
.workbase-markdown-editor .vditor-reset {
|
|
5432
|
+
color: var(--color-foreground);
|
|
5433
|
+
font-family: inherit;
|
|
5434
|
+
font-size: 14px;
|
|
5435
|
+
line-height: 1.85;
|
|
5436
|
+
}
|
|
5437
|
+
|
|
5438
|
+
.workbase-markdown-editor .vditor-reset h1 {
|
|
5439
|
+
border: 0;
|
|
5440
|
+
font-size: 24px;
|
|
5441
|
+
}
|
|
5442
|
+
|
|
5443
|
+
.workbase-markdown-editor .vditor-reset h2 {
|
|
5444
|
+
border: 0;
|
|
5445
|
+
font-size: 20px;
|
|
5446
|
+
}
|
|
5447
|
+
|
|
5448
|
+
.workbase-markdown-editor .vditor-reset h3 {
|
|
5449
|
+
font-size: 16px;
|
|
5450
|
+
}
|
|
5451
|
+
|
|
5452
|
+
.workbase-markdown-editor .vditor-reset > :is(h1, h2, h3, h4, h5, h6):before {
|
|
5453
|
+
content: none;
|
|
5454
|
+
}
|
|
5455
|
+
|
|
5456
|
+
.workbase-markdown-editor .vditor-ir pre.vditor-reset, .workbase-markdown-editor .vditor-wysiwyg pre.vditor-reset {
|
|
5457
|
+
min-height: 320px;
|
|
5458
|
+
padding: 24px !important;
|
|
5459
|
+
}
|
|
5460
|
+
|
|
5461
|
+
.workbase-markdown-editor .vditor-sv {
|
|
5462
|
+
min-width: 0;
|
|
5463
|
+
font-size: 14px;
|
|
5464
|
+
line-height: 1.8;
|
|
5465
|
+
padding: 20px !important;
|
|
5466
|
+
}
|
|
5467
|
+
|
|
5468
|
+
.workbase-markdown-editor .vditor-preview {
|
|
5469
|
+
min-width: 0;
|
|
5470
|
+
}
|
|
5471
|
+
|
|
5472
|
+
.workbase-markdown-editor .vditor-preview > .vditor-reset {
|
|
5473
|
+
padding: 24px;
|
|
5474
|
+
}
|
|
5475
|
+
|
|
5476
|
+
.workbase-markdown-editor .vditor-hint {
|
|
5477
|
+
max-width: min(440px, 100%);
|
|
5478
|
+
}
|
|
5479
|
+
|
|
5480
|
+
.workbase-markdown-editor .vditor-hint button {
|
|
5481
|
+
white-space: normal;
|
|
5482
|
+
text-align: left;
|
|
5483
|
+
}
|
|
5484
|
+
|
|
5485
|
+
.workbase-markdown-editor [contenteditable] {
|
|
5486
|
+
caret-color: var(--color-brand);
|
|
5487
|
+
outline: none;
|
|
5488
|
+
}
|
|
5489
|
+
|
|
5490
|
+
.workbase-markdown-editor [contenteditable]:focus-visible {
|
|
5491
|
+
box-shadow: inset 0 0 0 2px var(--color-primary);
|
|
5492
|
+
}
|
|
5493
|
+
|
|
5494
|
+
.workbase-markdown-editor button:focus-visible, .workbase-markdown-editor select:focus-visible {
|
|
5495
|
+
outline: 2px solid var(--color-brand);
|
|
5496
|
+
outline-offset: 2px;
|
|
5497
|
+
}
|
|
5498
|
+
|
|
5499
|
+
.workbase-markdown-editor ::selection {
|
|
5500
|
+
background: var(--color-brand-weak);
|
|
5501
|
+
color: var(--color-foreground);
|
|
5502
|
+
}
|
|
5503
|
+
|
|
5504
|
+
.workbase-markdown-editor[data-disabled="true"] {
|
|
5505
|
+
opacity: .7;
|
|
5506
|
+
}
|
|
5507
|
+
|
|
5508
|
+
.markdown-editor-loading {
|
|
5509
|
+
color: var(--color-muted);
|
|
5510
|
+
border: 1px solid var(--color-border);
|
|
5511
|
+
border-radius: 6px;
|
|
5512
|
+
padding: 24px;
|
|
5513
|
+
}
|
|
5514
|
+
|
|
5515
|
+
.markdown-editor-error {
|
|
5516
|
+
color: var(--color-danger);
|
|
5517
|
+
line-height: 1.6;
|
|
5518
|
+
}
|
|
5519
|
+
|
|
5520
|
+
.markdown-editor-error button {
|
|
5521
|
+
color: var(--color-brand);
|
|
5522
|
+
cursor: pointer;
|
|
5523
|
+
font: inherit;
|
|
5524
|
+
background: none;
|
|
5525
|
+
border: 0;
|
|
5526
|
+
margin-left: 8px;
|
|
5527
|
+
text-decoration: underline;
|
|
5528
|
+
}
|
|
5529
|
+
|
|
5530
|
+
.markdown-editor-fallback {
|
|
5531
|
+
border: 1px solid var(--color-border);
|
|
5532
|
+
background: var(--color-surface);
|
|
5533
|
+
width: 100%;
|
|
5534
|
+
min-height: 360px;
|
|
5535
|
+
color: var(--color-foreground);
|
|
5536
|
+
resize: vertical;
|
|
5537
|
+
padding: 16px;
|
|
5538
|
+
font: 14px / 1.8 ui-monospace, monospace;
|
|
5539
|
+
}
|
|
5540
|
+
|
|
5541
|
+
.markdown-editor-form-value {
|
|
5542
|
+
clip-path: inset(50%);
|
|
5543
|
+
border: 0;
|
|
5544
|
+
width: 1px;
|
|
5545
|
+
height: 1px;
|
|
5546
|
+
margin: -1px;
|
|
5547
|
+
padding: 0;
|
|
5548
|
+
position: absolute;
|
|
5549
|
+
overflow: hidden;
|
|
5550
|
+
}
|
|
5551
|
+
|
|
5552
|
+
@media (width <= 760px) {
|
|
5553
|
+
.workbase-markdown-editor .vditor-content {
|
|
5554
|
+
flex-wrap: wrap;
|
|
5555
|
+
}
|
|
5556
|
+
|
|
5557
|
+
.workbase-markdown-editor .vditor-content > .vditor-sv, .workbase-markdown-editor .vditor-content > .vditor-preview {
|
|
5558
|
+
flex-basis: 100%;
|
|
5559
|
+
width: 100%;
|
|
5560
|
+
}
|
|
5561
|
+
|
|
5562
|
+
.workbase-markdown-editor .vditor-content > .vditor-preview {
|
|
5563
|
+
border-top: 1px solid var(--color-border);
|
|
5564
|
+
border-left: 0;
|
|
5565
|
+
}
|
|
5566
|
+
}
|
|
5567
|
+
|
|
3289
5568
|
.app-shell {
|
|
3290
5569
|
gap: 24px;
|
|
3291
5570
|
padding: 24px;
|