This repository has been archived by the owner on Feb 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
theme.css
2120 lines (1948 loc) · 60.7 KB
/
theme.css
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/* 导入h3样式 */
@import url('style/h3.css');
/* 标题自动编号 */
@import url('style/title-heading.css');
/* 导入列表转换样式 */
@import url('style/list2board.css');
@import url('style/list2map.css');
@import url('style/list2table.css');
/* 导入文档属性 */
@import url('style/doc_attr.css');
/* 导入代码块样式 */
@import url('style/code_block.css');
/* 导入自定义属性 */
@import url('style/attr.css');
/* 导入自定义有序列表样式 */
@import url('style/ol.css');
/* 导入折叠css */
@import url('style/fold.css');
/* 导入超链接图标link icon css */
@import url('style/link_icon.css');
/* 导入语雀提示区块 css */
@import url('style/yuque.css');
@font-face {
font-family: 'Win11 Emoji';
font-style: normal;
src: url('fonts/seguiemj.ttf');
}
:root {
/* 主色 */
/* 高亮 */
/* --b3-theme-primary: #4285f4; */
/* 菜单高亮、样式高亮、错误提示,确定删除 */
/* 动态加载调圆点、设置按钮圆点、打开图片的关闭按钮 */
--b3-theme-primary: #6bb481;
/* 设置按钮长条 */
--b3-theme-primary-light: #6ab4806e;
/* 动态加载调长条 */
--b3-theme-primary-lighter: #85ab95;
/* 编辑器点击大纲高亮 */
--b3-theme-primary-lightest: rgba(31, 138, 93, 0.12);
/* 订阅黄 */
--b3-theme-secondary: #faad14;
--b3-theme-background: #d5ead8;
/* 面包屑和标签页 */
--b3-theme-surface: #bcd7bf;
--b3-theme-error: #ec8d8e;
/* 文字颜色 */
--b3-theme-on-primary: #fff;
--b3-theme-on-secondary: #fff;
--b3-theme-on-background: #202124;
--b3-theme-background-light: #8ca98fad;
/* 主要图标颜色 */
--b3-theme-on-surface: #5f6368;
--b3-theme-on-error: #fff;
/* 字体 */
--b3-font-family: 'quote', 'Helvetica Neue', 'Luxi Sans', 'DejaVu Sans', 'Hiragino Sans GB',
'Microsoft Yahei', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji',
'Win11 Emoji', 'Segoe UI Symbol', 'Android Emoji', 'EmojiSymbols';
--b3-font-family-code: 'JetBrainsMono-Regular', mononoki, Consolas, 'Liberation Mono', Menlo,
Courier, monospace, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji',
'Segoe UI Symbol', 'Android Emoji', 'EmojiSymbols';
--b3-font-family-graph: mononoki;
--b3-font-family-emoji: 'Win11 Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Segoe UI',
'Apple Color Emoji', 'Twemoji Mozilla', 'Noto Color Emoji', 'Android Emoji';
--b3-font-family-math: KaTeX_Math;
/* 顶部工具栏 */
--b3-toolbar-background: #bcd8bf;
--b3-toolbar-blur-background: #bcd8bf;
--b3-toolbar-color: #5f6368;
--b3-toolbar-hover: #9cb89f;
/* 线条 */
/* --b3-border-color: #dfe0e1; */
/* --b3-border-color: rgba(0, 0, 0, .1); */
--b3-border-color: #c7d9ca;
/* 滚动条 m */
/* --b3-scroll-color: rgba(0, 0, 0, .2); */
--b3-scroll-color: rgba(5, 50, 80, 0.2);
/* 列表 */
/* --b3-list-hover: rgba(0, 0, 0, 0.05); */
--b3-list-hover: transparent;
/* 页签 */
--b3-tab-background: #e7edf0;
--b3-tab-background-hover: #dee4e8;
/* 菜单 */
--b3-menu-background: #d5ead8;
/* 提示 */
--b3-tooltips-color: rgba(16, 63, 44, 0.5);
/* 卡片背景 */
--b3-card-error-color: rgb(97, 26, 21);
--b3-card-error-background: #f1c5beda;
--b3-card-warning-color: rgb(102, 60, 0);
--b3-card-warning-background: #f5dfc1e0;
--b3-card-info-color: rgb(13, 60, 97);
--b3-card-info-background: #a8dbf594;
--b3-card-success-color: rgb(30, 70, 32);
--b3-card-success-background: #c0e4c0da;
/* 自定义文字 */
--b3-font-color1: rgb(250, 118, 109);
--b3-font-color2: #f1781c;
--b3-font-color3: #2183ce;
--b3-font-color4: #11ad81;
--b3-font-color5: #8e8e8e;
--b3-font-color6: #52d4ca;
--b3-font-color7: var(--b3-theme-secondary);
--b3-font-color8: #d32a1b;
--b3-font-color9: #596ab7;
--b3-font-color10: #944194;
--b3-font-color11: #d447c5;
--b3-font-color12: #a3431f;
--b3-font-color13: var(--b3-theme-background);
--b3-font-background1: var(--b3-card-error-background);
--b3-font-background2: var(--b3-card-warning-background);
--b3-font-background3: var(--b3-card-info-background);
--b3-font-background4: var(--b3-card-success-background);
--b3-font-background5: #dfddddaf;
--b3-font-background6: #27e6ff42;
--b3-font-background7: #fff19598;
--b3-font-background8: #fe6567;
--b3-font-background9: #ccd3f3;
--b3-font-background10: #d2cbff;
--b3-font-background11: #f4d0f0;
--b3-font-background12: #edd9d2;
--b3-font-background13: var(--b3-theme-on-background);
/* PDF */
--b3-pdf-sidebar-width: 200px;
--b3-pdf-offset: 0;
--b3-pdf-background1: #e8e191;
--b3-pdf-background2: #8fd5bc;
--b3-pdf-background3: #8ed2e9;
--b3-pdf-background4: #e5b9b1;
--b3-pdf-background5: #e3cc84;
--b3-pdf-background6: #c2c5c5;
--b3-pdf-background7: #3eb9af;
/* 动画效果 */
--b3-transition: all 0.15s cubic-bezier(0, 0, 0.2, 1) 0ms;
/* 阴影 */
--b3-point-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14),
0px 1px 5px 0px rgba(0, 0, 0, 0.12);
--b3-dialog-shadow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14),
0px 9px 46px 8px rgba(0, 0, 0, 0.12);
/* diff */
--b3-diff-add: #dfd;
--b3-diff-add-surface: #97f295;
--b3-diff-del: #fee8e9;
--b3-diff-del-surface: #ffb6ba;
/* 图表颜色 */
--b3-graph-p-point: #076f7e;
--b3-graph-heading-point: #660e7a;
--b3-graph-math-point: #80ffa5;
--b3-graph-code-point: #00ddff;
--b3-graph-table-point: #37a2ff;
--b3-graph-list-point: #ff0087;
--b3-graph-todo-point: #ffbf00;
--b3-graph-olist-point: #b3005f;
--b3-graph-listitem-point: #f65b00;
--b3-graph-bq-point: #8d48e3;
--b3-graph-super-point: #dd79ff;
--b3-graph-doc-point: #202124;
--b3-graph-tag-point: #dbf32f;
--b3-graph-asset-point: #05c091;
--b3-graph-line: #5f6368;
--b3-graph-ref-line: #d23f31;
--b3-graph-tag-line: #5f6b06;
--b3-graph-tag-tag-line: #dbf32f;
--b3-graph-asset-line: #037457;
--b3-graph-hl-point: #f3a92f;
--b3-graph-hl-line: #4285f4;
/* 编辑器搜索颜色 */
--b3-protyle-search-background: #ffe955;
--b3-protyle-search-border-color: #f2e680;
--b3-protyle-search-current-background: #a5d3fe;
/* 代码片段背景 m */
--b3-protyle-code-background: #e2f4e4;
/* 所见即所得行内元素颜色 */
--b3-protyle-inline-strong-color: #202124;
--b3-protyle-inline-em-color: #202124;
--b3-protyle-inline-s-color: #202124;
--b3-protyle-inline-link-color: #0e5797d5;
--b3-protyle-inline-link-hover-color: #fa60a0;
--b3-protyle-inline-mark-background: rgba(62, 163, 155, 0.267);
--b3-protyle-inline-mark-color: #202124;
--b3-protyle-inline-tag-background: #378b8b;
--b3-protyle-inline-tag-color: #f8f9fa;
--b3-protyle-inline-code-color: #038296;
--b3-protyle-inline-code-background: #a0cc952d;
--b3-protyle-inline-blockref-color: #0e7a88;
--b3-protyle-inline-blockref-hover-color: #ff398b;
--blockquote-border-color: #6bb481;
/* 表格 */
--b3-table-border-color: #93a597;
--b3-table-th-color: #91c39860;
--b3-table-trn-color: #d5ead8;
--b3-table-tr2n-color: #91c3982d;
/* 高亮 */
--b3-menu-highlight-color: #0d9d8f;
--b3-menu-highlight-focus-color: #34495e;
/* 文件树背景高亮颜色 */
--b3-menu-highlight-background: #a2c2a58c;
--custom-tab-background: #c4ddc89c;
--custom-tab-hover-background: #76878d38;
--custom-tab-border: #b1c2b87c;
--custom-tab-focus-top-border: #555f63;
/* 各级标题颜色 */
--custom-h1-color: #04393f;
--custom-h2-color: #396871;
--custom-h3-color: #1a8080;
--custom-h4-color: #1e776f;
--custom-h5-color: #174b53d6;
--custom-h6-color: var(--b3-theme-on-background);
}
body {
background-color: transparent;
}
.render-node[data-subtype='graphviz'] .graph > polygon {
fill: transparent;
}
/* 背景纸张纹理 */
#status,
.protyle,
.protyle-preview,
.search__header .b3-text-field--text,
/* .b3-typography .code-block, */
.layout-tab-container,
.block__icons,
.dock,
.toolbar,
.layout-tab-bar,
.layout-tab-bar .item,
.layout__center,
.b3-dialog__container,
.b3-tab-container,
.search__header .b3-text-filed--text,
.b3-text-filed,
.b3-tab-container .b3-select,
.b3-card,
.b3-dialog__container .b3-dialog__close,
.config-account__center--text,
.b3-typography table tbody tr,
.protyle-wysiwyg table thead,
.protyle-wysiwyg table tbody td,
.protyle-wysiwyg table tbody tr,
.protyle-wysiwyg [data-node-id] span[data-type='tag'],
/* .protyle-wysiwyg .code-block, */
div[style*="background-color: var" ],
span[data-type="strong"][style*="background-color: var" ],
.protyle-toolbar,
span[data-type="mark"],
.emojis,
.b3-menu,
.b3-menu__item,
.vis-network,
.layout__empty,
.b3-list--background .b3-list-item--focus,
.b3-list--files .b3-list-item--focus:not(.dragover),
.b3-switch:after,
.protyle-wysiwyg code:not(.hljs),
.textLayer,
.block__content,
::-webkit-scrollbar-thumb {
background-image: url('src/paper.png');
}
.b3-dialog__container {
background-color: #d1e4d4;
}
/* 最后一种背景色无纸张纹理 */
span[data-type='strong'][style='background-color: var(--b3-font-background13);'],
div[style='background-color: var(--b3-font-background13);'] {
background-image: none;
}
/* ---------------编辑器内容两侧宽度设置 Start ————————————————————————*/
/* 已放弃调整即时编辑内容两侧宽度,只调整预览模式 */
/* 目前这种方式的弊端就是滑块位置往右了 */
/* 调整思源编辑器内容最大宽度 */
.protyle .b3-typography {
/* 如果要调整编辑器宽度只需调整下面这个值 */
max-width: 1000px;
}
/* ---------------编辑器内容两侧宽度设置 END ———————————————————————— */
body {
font-size: 15.5px;
}
/* 主要背景色 */
.status,
.dock {
/* 侧边栏更改 */
background-color: #b6cfbb;
}
/* #c3ddc7af */
.layout-tab-container {
background-color: #c7dfca;
/* background-color: #c3ddc7af ; */
}
/* 修复面板收缩的留白问题 */
.block__icons {
background-color: #a7caad94 !important;
}
/* .block__icons span.fn__space,
.block__icons div.fn__space{
display: inline-block;
flex-shrink: 1 !important;
} */
/* 集市动画 */
.b3-dialog__container div[data-name='bazaar'] .b3-card:hover {
transform: translateY(-8px) scale(1.05);
box-shadow: 7px 7px 12px #929191;
transition: all 0.2s ease-in-out;
}
/*分窗口的边框(线) */
/* .layout__resize::after {
background-color: #bad3be;
} */
/* -------------------------------标题样式-------------------------------------- */
.protyle-wysiwyg [data-node-id].h1,
.b3-typography h1 {
text-align: center;
border-bottom: 0px solid #c5c7ca !important;
font-size: 1.75em !important;
padding: 0.3em 4px;
color: var(--custom-h1-color);
/* page-break-before: always; */
}
.protyle-wysiwyg [data-node-id].h2,
.b3-typography h2 {
border-bottom: 1px solid #1a241d26 !important;
/* border-bottom: 0px solid transparent !important; */
font-size: 1.55em !important;
color: var(--custom-h2-color);
border-radius: 0px;
}
.protyle-wysiwyg .sb .h2,
.protyle-wysiwyg .li > [data-node-id].h2,
.b3-typography li h2 {
/* 列表、超级块h2不显示竖线 */
border-bottom: 0px solid transparent !important;
}
.protyle-wysiwyg [data-node-id].h3,
.b3-typography h3 {
font-size: 1.35em !important;
color: var(--custom-h3-color);
}
.protyle-wysiwyg:not([custom-title-num='true']) [data-node-id].h3 > div:first-child::before,
.b3-typography h3:before {
content: '';
display: block;
float: left;
height: 1em;
width: 0.125em;
font-size: 1.35em !important;
margin-right: 8px;
margin-top: -0.1em;
background: var(--custom-h3-color);
}
.protyle-wysiwyg:not([custom-title-num='true']) [data-node-id].h3 > div:first-child {
/* block 不能改为inline,不然点击旁边不会激活光标! */
display: block !important;
margin-top: 0.15em;
margin-right: 8px;
}
.b3-typography h3:before {
margin-right: 8px;
margin-top: -0.23em;
}
.b3-typography h3 {
padding-top: 0.27em;
}
.protyle-wysiwyg .h3[data-node-id][fold='1'] > div:first-child {
margin-top: 0em;
}
/* 调整h3空行时光标位置 */
.protyle-wysiwyg .h3 > [spellcheck='false']:empty {
padding-left: 1rem;
}
.protyle-wysiwyg .h3 > [spellcheck='false']:empty:before {
content: '';
display: block;
height: 0.15em;
margin-top: -0.3em;
margin-left: -1rem;
}
/* 列表中h3特殊调整 */
.protyle-wysiwyg .li > .h3 > div:first-child:before {
margin-top: 0.1em;
}
/*
.protyle-wysiwyg .li>.h3>div:first-child:before{
content: none;
font-size: 0em !important;
} */
.protyle-wysiwyg [data-node-id].h4,
.b3-typography h4 {
font-size: 1.2em !important;
color: var(--custom-h4-color);
}
.protyle-wysiwyg [data-node-id].h5,
.b3-typography h5 {
font-size: 1.1em !important;
color: var(--custom-h5-color);
}
.protyle-wysiwyg [data-node-id].h6,
.b3-typography h6 {
font-size: 1.1em !important;
color: var(--custom-h6-color);
}
.protyle-wysiwyg [data-type='NodeHeading'] span[data-type='strong']:not([style]),
.protyle-wysiwyg [data-type='NodeHeading'] span[data-type='em']:not([style]) {
color: inherit !important;
}
.b3-typography h1 span[data-type='strong'],
.b3-typography h2 span[data-type='strong'],
.b3-typography h3 span[data-type='strong'],
.b3-typography h4 span[data-type='strong'],
.b3-typography h5 span[data-type='strong'],
.b3-typography h6 span[data-type='strong'] {
/* 预览样式 */
color: inherit;
}
/* 标题自动编号 */
/* 首先全局进行一次reset,这样即使不添加h1标题也可以使用较低级别的标题 */
/* .protyle-wysiwyg ,.b3-typography {
counter-reset: h2 0 h3 0 h4 0 h5 0 h6 0;
}
.protyle-wysiwyg [data-node-id].h1,.b3-typography h1 {
counter-reset: h2;
}
.protyle-wysiwyg [data-node-id].h2,.b3-typography h2 {
counter-reset: h3;
}
.protyle-wysiwyg [data-node-id].h3 ,.b3-typography h3{
counter-reset: h4;
}
.protyle-wysiwyg [data-node-id].h4 ,.b3-typography h4{
counter-reset: h5;
}
.protyle-wysiwyg [data-node-id].h5,.b3-typography h5 {
counter-reset: h6;
}
.protyle-wysiwyg [data-node-id].h2 div:before,.b3-typography h2:before {
counter-increment: h2;
content: counter(h2) ;
margin-right: 2rem;
}
.protyle-wysiwyg [data-node-id].h3 div:before,.b3-typography h3:before{
counter-increment: h3;
content: counter(h2) "." counter(h3);
margin-right: 2rem;
}
.protyle-wysiwyg [data-node-id].h4 div:before,.b3-typography h4:before{
counter-increment: h4;
content: counter(h2) "." counter(h3) "." counter(h4);
margin-right: 2rem;
}
.protyle-wysiwyg [data-node-id].h5 div:before,.b3-typography h5:before{
counter-increment: h5;
content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5);
margin-right: 2rem;
}
.protyle-wysiwyg [data-node-id].h6 div:before,.b3-typography h6:before {
counter-increment: h6;
content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) "."
counter(h6);
margin-right: 2rem;
} */
/* -------------------------------表格start------------------------------------- */
/* 表格默认居中 */
/* .protyle .table {
text-align: center;
} */
/* 调整表格字体 */
/* .protyle table {
font-size: 0.9em;
} */
/* 表格背景设置 */
.b3-typography table,
.protyle-wysiwyg table {
border-collapse: collapse;
}
.b3-typography .table table th,
.b3-typography .table table td,
.protyle-wysiwyg .table table th,
.protyle-wysiwyg .table table td {
background-color: var(--b3-theme-background) !important;
}
.b3-typography table th,
.b3-typography table td,
.protyle-wysiwyg table th,
.protyle-wysiwyg table td {
background-color: var(--b3-theme-background) !important;
}
.protyle-wysiwyg table tr th,
.b3-typography table tr th {
border-collapse: collapse;
border: 1px solid var(--b3-table-border-color);
background-image: url('src/paper.png');
}
.b3-typography table tr td,
.protyle-wysiwyg table tr td {
border:1px solid var(--b3-table-border-color);
}
/* .protyle-wysiwyg table tr th:first-child,
.protyle-wysiwyg table tr td:first-child,
.b3-typography table tr th:first-child,
.b3-typography table tr td:first-child {
border-left-width: 0px;
}
.protyle-wysiwyg table tr th:last-child,
.protyle-wysiwyg table tr td:last-child,
.b3-typography table tr th:last-child,
.b3-typography table tr td:last-child {
border-right-width: 0px;
} */
/* -------------------------------表格end------------------------------------- */
/* -------------------------------行内块字体样式-------------------------------------- */
/* 高亮 */
mark {
background-color: var(--b3-protyle-inline-mark-background);
color: var(--b3-protyle-inline-mark-color);
}
.protyle-wysiwyg [data-node-id].bq,
.b3-typography blockquote {
/* border: 1px solid var(--blockquote-border-color); */
border-left: 0.18em solid var(--blockquote-border-color);
border-radius: 0px 4px 4px 0px !important;
background-color: #a9d6b248;
background-image: url('src/paper.png');
}
/* blockquote 缩进调整 */
.protyle-wysiwyg [data-node-id].bq > div:not(.code-block) {
padding-left: 1rem;
}
.protyle-wysiwyg [data-node-id].bq > div.bq {
margin-left: 1rem;
padding-left: 0em;
}
.protyle-wysiwyg [data-node-id].bq div.code-block {
margin-left: 1rem;
}
/* 缩进调整 */
.b3-typography blockquote > p,
.b3-typography blockquote .code-block,
.b3-typography blockquote ul,
/* .b3-typography blockquote li, */
.b3-typography blockquote > blockquote {
margin-left: 1em;
}
.protyle-wysiwyg [data-node-id].li .bq > .list {
margin-left: 0px;
}
/* 调整列表下引述块小竖线 */
.protyle-wysiwyg [data-node-id].li > .bq {
left: 0.07em;
top: -1px;
}
.block__popover .protyle-wysiwyg [data-node-id].li > .bq,
.protyle-wysiwyg .protyle-wysiwyg__embed [data-node-id].li > .bq {
left: 0.1em;
top: -1px;
}
/* 块引用 */
.protyle-wysiwyg [data-node-id] span[data-type~='block-ref'] {
color: var(--b3-protyle-inline-blockref-color); /*更改颜色*/
padding-bottom: 0em;
box-sizing: border-box;
height: 1.5em;
opacity: 1;
border-bottom: 1px dashed var(--b3-protyle-inline-blockref-color);
}
/* .protyle-wysiwyg [data-node-id] span[data-type~='block-ref']::before {
content: "[[";
}
.protyle-wysiwyg [data-node-id] span[data-type~='block-ref']::after {
content: "]]";
} */
.protyle-wysiwyg [data-node-id] span[data-type~='block-ref']:hover {
color: var(--b3-protyle-inline-blockref-hover-color); /*更改鼠标悬浮的颜色*/
border-bottom: 1px dashed var(--b3-protyle-inline-blockref-hover-color); /*下划线可以去掉*/
}
/* .protyle-wysiwyg [data-node-id] span[data-type="block-ref"]::before{
display: inline-block;
content: '1';
position: relative;
background-color: red;
border-bottom: 3px dashed var(--b3-protyle-inline-blockref-color);
} */
/* 块引用悬浮动画 */
.block__popover.block__popover--move.block__popover--open {
animation: showBlock 0.4s ease;
/* transform: */
/* transform: rotateY(80deg); */
}
@keyframes showBlock {
0% {
border-radius: 50%;
/* transform: rotateY(80deg); 会位置偏左 */
/* transform: rotateX(80deg); */
/* transform: rotateY(80deg); */
}
100% {
border-radius: 0;
}
}
div[data-type='block-render'] {
margin-top: 5px;
}
/* 块引弹窗固定高度 */
.block__popover.block__popover--move.block__popover--open {
min-height: 30%;
}
/* 添加块引用钉住图标动画 */
.block__popover--move .block__icon .ft__primary {
transform: rotate(30deg) !important;
transition: all 0.2s ease-out;
}
/* 块嵌入 */
.protyle-wysiwyg [data-node-id].render-node[data-type='NodeBlockQueryEmbed'] {
box-shadow: 0px 0px 3px 2px rgba(59, 102, 93, 0.568);
border-left: 0px dashed #dfe0e1;
background-color: transparent;
/* margin: 10px -10px; */
padding: 4px 10px;
margin-bottom: 12px;
margin-top: 10px;
}
/* 嵌入块分割 */
.protyle-wysiwyg
[data-node-id].render-node[data-type='NodeBlockQueryEmbed']
> .protyle-wysiwyg__embed {
border-top: 3px dashed #0e5d12d6;
position: relative;
}
/* 文件树中区别文件数和引用数 */
li[data-type='navigation-file'] .counter {
color: var(--b3-protyle-inline-blockref-color);
/* background-color: #dfdfdf9e; */
font-weight: 600;
background: transparent !important;
}
/* 内容中计数 */
/* .counter, */
.protyle-attr--refcount,
.protyle-wysiwyg .protyle-attr--refcount {
margin-left: 8px;
background-color: rgba(0, 0, 0, 0.05) !important;
/* z-index: 2; */
line-height: 16px;
color: var(--b3-protyle-inline-blockref-color);
border-radius: 20%;
font-size: 12px;
user-select: none;
font-weight: 600;
cursor: pointer;
}
/* sql查找不到字体颜色*/
div[data-type='NodeBlockQueryEmbed'] .ft__secondary {
color: #ff7875;
font-weight: 800;
/* background: #929275; */
}
/* 标签 */
.protyle-wysiwyg [data-node-id] span[data-type='tag']:not(:empty) {
display: inline-flex;
border-bottom: 0px solid var(--b3-protyle-inline-tag-color);
font-size: 85%;
text-decoration: none !important;
color: var(--b3-protyle-inline-tag-color);
background-color: var(--b3-protyle-inline-tag-background);
border-radius: 0.3em;
padding: 0em 0.375em 0.08em !important;
margin: 0em 0.25em;
transform: translateY(-1.5px);
box-sizing: border-box;
cursor: pointer;
transition: all 0.2s ease-in-out;
z-index: 20;
}
/* 标签#号 */
.protyle-wysiwyg [data-node-id] span[data-type='tag']:not(:empty)::before {
content: '#';
}
/*.protyle-wysiwyg [data-node-id] span[data-type='tag']:not(:empty)::after {
content: "#";
} */
.protyle-wysiwyg [data-node-id] span[data-type='tag']:hover {
/* transform: scale(1.05); */
background-color: #3eadad;
}
/* 行内代码 */
.b3-typography code:not(.hljs),
.b3-typography span[data-type~='code'],
.protyle-wysiwyg code:not(.hljs),
.protyle-wysiwyg span[data-type~='code'] {
position: relative;
/* display: inline-block;
margin: 0px 2px 0px; */
top: -0.1em;
background-image: url('src/paper.png');
background-color: var(--b3-protyle-inline-code-background);
margin: 0px 2px;
border: 1px solid #5e756321;
color: #3f5d86;
font-size: 80%;
}
/* 超链接 */
.protyle-wysiwyg [data-node-id] span[data-type~='a'] {
color: var(--b3-protyle-inline-link-color);
cursor: pointer;
border-bottom: 1px solid #0a3a6418;
word-break: break-all;
/* border-bottom: 1px solid transparent; */
/* text-decoration: underline; */
}
.b3-typography a {
word-break: break-all;
}
/* 超链接前后是否要设置icon */
/* .protyle-wysiwyg [data-node-id] span[data-type~='a']:before
.b3-typography a:before{
content: "";
position: relative;
display: inline-block;
width: 1em;
height: 1em;
top: 0.2em;
margin-right:2px;
background-image: url(src/share.svg);
background-size: 100% 100%;
} */
.b3-typography a {
/* text-decoration: underline; */
color: var(--b3-protyle-inline-link-color);
}
.protyle-wysiwyg [data-node-id] span[data-type~='a']:hover {
color: var(--b3-protyle-inline-link-hover-color);
border-bottom: 1px solid var(--b3-protyle-inline-link-hover-color);
}
.protyle-wysiwyg [data-node-id] span[data-type~='a']:hover code {
color: var(--b3-protyle-inline-link-hover-color);
/* border-bottom: 1px solid var(--b3-protyle-inline-link-hover-color); */
}
/* 图片 */
.protyle-wysiwyg img,
.b3-typography img {
max-width: 100%;
cursor: pointer;
border-radius: 5px;
/* transition: all 0.4s ease-in-out; 加了这个缩放会不跟 手*/
}
.protyle-wysiwyg img:hover,
.p [contenteditable='true']:focus > .img:first-child img {
box-shadow: 1px 1px 5px 5px rgba(6, 6, 6, 10%);
}
/* 调整列表间距 */
.protyle .li {
padding: 0;
margin: 0px 0px 0px 0px;
}
.b3-typography ul li.protyle-task::before {
margin: 2px 2px 0px -2px;
}
/* 列表悬浮 */
.protyle-wysiwyg [data-node-id].li > .protyle-action:hover:after {
/* 大圆背景 */
background-color: #a1b5bd9c !important;
opacity: 0.68;
}
.protyle-wysiwyg [data-node-id].li > .protyle-action:hover {
/* 小圆点 */
color: #476796bb;
}
/* 列表折叠 */
.protyle-wysiwyg [data-node-id].li[fold='1'] > .protyle-action:after {
/* 大圆背景 */
background-color: #66a9a37d !important;
opacity: 0.68;
}
.protyle-wysiwyg [data-subtype='t'].li[fold='1'] > .protyle-action:after {
/* 大圆背景 */
background-color: #66a9a37d !important;
border-radius: 0.2em;
opacity: 0.68;
width: 1.2em;
height: 1.2em;
top: 0.93em;
left: 0.9em;
}
.protyle-wysiwyg [data-subtype='u'].li[fold='1'] > .protyle-action {
/* 小圆点 */
color: #479675;
}
/* ---------------------复选框(待办事项)Start------------------------------------------------ */
.b3-typography .protyle-task input {
opacity: 0;
}
.protyle-wysiwyg [data-node-id].li > .protyle-action--task svg {
opacity: 0;
}
.protyle-wysiwyg [data-node-id].li > .protyle-action--task:hover:after {
background-color: transparent !important;
opacity: 0 !important;
}
/* 复选框样式 */
.protyle-wysiwyg .protyle-action--task:before,
.b3-typography .protyle-task:before {
content: '';
position: absolute;
display: inline-block;
cursor: pointer;
width: 1em;
height: 1em;
vertical-align: middle;
text-align: center;
border: 1.7px solid #5f6368;
border-radius: 0.2em;
top: 0.65em;
font-size: 0.8em;
}
.b3-typography .protyle-task:before {
left: -1.2em;
top: 0.5em;
}
/* 复选框选中 */
.protyle-task--done > .protyle-action--task:before,
.b3-typography .protyle-task--done:before {
content: '\2713';
font-size: 0.8em;
font-weight: bold;
border: 1.7px solid #289aa2;
line-height: 1em;
color: #289aa2;
background-color: transparent;
}
/* 复选框鼠标悬停 */
.protyle-wysiwyg [data-node-id].li > .protyle-action--task:hover:before {
content: '\2713';
font-size: 0.8em;
vertical-align: middle;
line-height: 1em;
color: #436681;
}
/* 复选框完成 */
/* .protyle-task--done [data-type="NodeParagraph"]>div:first-child,
.protyle-task--done p {
text-decoration: line-through;
opacity: 0.5;
transition: all 0.5s ease-in-out;
} */
.protyle-task--done[fold='1'] > .protyle-action--task:before {
content: '\2713';
background-color: transparent;
color: #476796;
}
div[data-subtype='t'][data-type='NodeList'] {
position: relative;
}
/* 调整透明度 */
.protyle-task--done {
opacity: 1;
transition: opacity 0.5s ease-in-out;
}
.protyle-task--done .protyle-task--done {
opacity: 1;
transition: opacity 0.5s ease-in-out;
}
.protyle-task--done div[data-type='NodeParagraph'],
.protyle-task--done .protyle-action--task {
opacity: 1;
}
/* ----------------- 外观样式 ----------------- */
/* 文件树列表 */
.b3-list--files .b3-list-item:hover {
color: var(--b3-menu-highlight-color);
background-color: transparent;
}
.b3-list--files .b3-list-item:hover .b3-list-item__text,
.b3-list--files .b3-list-item:hover .b3-list-item__graphic {
color: var(--b3-menu-highlight-color);
}
.b3-list--files .b3-list-item--focus:not(.dragover) {
background-color: var(--b3-menu-highlight-background) !important;
border-radius: 0% 6px 6px 0%;
color: var(--b3-menu-highlight-focus-color);
/* font-weight: bold; */
transition: all 0.1s ease-in-out;
}
.b3-list--files .b3-list-item--focus .b3-list-item__text {
color: var(--b3-menu-highlight-focus-color);
font-weight: bold;
/* border-radius: 15px 15px 15px 15px; */
}
.b3-list--files .b3-list-item--focus .b3-list-item__graphic {
color: var(--b3-menu-highlight-focus-color);
}
.b3-list--files .b3-list-item--focus:hover .b3-list-item__text,
.b3-list--files .b3-list-item--focus:hover .b3-list-item__graphic {
color: var(--b3-menu-highlight-focus-color);
}
.b3-list--background .b3-list-item:hover {
color: var(--b3-menu-highlight-color);
background-color: var(--b3-list-hover);
}
.b3-list--background .b3-list-item:hover .b3-list-item__text,
.b3-list--background .b3-list-item:hover .b3-list-item__graphic {
color: var(--b3-menu-highlight-color);
/* background-color: var(--b3-list-hover); */
}
.b3-list--background .b3-list-item--focus {
background-color: var(--b3-menu-highlight-background) !important;
border-radius: 0% 6px 6px 0%;
color: var(--b3-menu-highlight-focus-color);
font-weight: bold;
}
.b3-list--background .b3-list-item--focus .b3-list-item__text {
color: var(--b3-menu-highlight-focus-color);
font-weight: bold;
/* border-radius: 15px 15px 15px 15px; */
}
.b3-list--background .b3-list-item--focus .b3-list-item__graphic {
color: var(--b3-menu-highlight-focus-color);
}
.b3-list--background .b3-list-item--focus:hover .b3-list-item__text,
.b3-list--background .b3-list-item--focus:hover .b3-list-item__graphic {
color: var(--b3-menu-highlight-focus-color);
}
/* 大纲 */
.b3-typography .b3-list-item__text {
flex: 1;
background-color: transparent;