-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy paththeme.css
1071 lines (886 loc) · 28.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
/* theme.css 只放导出的样式,以及各个主题统一的样式,具体每个主题特殊的样式会放到各自主题的css中 */
/* 导入编辑器基础块和行内样式 */
@import url('style/editor.css');
/* 导入标题后缀提示样式 */
/* @import url('style/module/h-reminder.css'); */
/* 导入代码块样式 */
@import url('style/module/code_block.css');
/* 导入自定义有序列表样式 */
@import url('style/module/ol.css');
/* 导入折叠样式css */
@import url('style/module/fold.css');
/* 导入超链接图标样式 */
@import url('style/module/link_icon.css');
/* 导入数据库样式 */
@import url('style/database.css');
/* 导入文档属性 */
@import url('style/doc_attr.css');
/* 导入Admonition样式 */
@import url('style/module/Admonition.css');
/* 导入块自定义属性 */
@import url('style/attr.css');
/* 导入列表转换样式 */
@import url('style/block_attr/list2board.css');
@import url('style/block_attr/list2map.css');
@import url('style/block_attr/list2table.css');
@import url('style/block_attr/table.css');
/* 导出样式 */
@import url('style/export.css');
/* 搜索样式 */
@import url('style/module/ctrlp.css');
:root {
/* 卡片背景 */
--b3-card-error-color: #b93128;
--b3-card-error-background: #fdeaec;
--b3-card-warning-color: rgb(102, 60, 0);
--b3-card-warning-background: #fce4d2;
--b3-card-info-color: rgb(13, 60, 97);
--b3-card-info-background: #F0F4F9;
--b3-card-success-color: rgb(30, 70, 32);
--b3-card-success-background: #e5fae5;
/* 自定义文字 */
--b3-font-color1: #e21e11;
--b3-font-color2: #f1781c;
--b3-font-color3: #2183ce;
--b3-font-color4: #11ad81;
--b3-font-color5: #878484;
--b3-font-color6: #3fada5;
--b3-font-color7: #faad14;
--b3-font-color8: #a3431f;
--b3-font-color9: #596ab7;
--b3-font-color10: #944194;
--b3-font-color11: #d447c5;
--b3-font-color12: #ee2e68;
--b3-font-color13: #fff;
--b3-font-background1: #FEDADE;
--b3-font-background2: #fce4d2;
--b3-font-background3: #F0F4F9;
--b3-font-background4: #e5fae5;
--b3-font-background5: #e2e3e4;
--b3-font-background6: #d8faff;
--b3-font-background7: #fef7d2;
--b3-font-background8: #f0ede0;
--b3-font-background9: #e9e9ff;
--b3-font-background10: #e5daff;
--b3-font-background11: #f5c7f0;
--b3-font-background12: #FFD8E4;
--b3-font-background13: #202124;
/* PDF */
--b3-pdf-sidebar-width: 200px;
--b3-pdf-offset: 0;
--b3-pdf-background1: #f4eba3;
--b3-pdf-background2: #9af997;
--b3-pdf-background3: #59c6ff;
--b3-pdf-background4: #ff8280;
--b3-pdf-background5: #faad14;
--b3-pdf-background6: #d4d4d4;
--b3-pdf-background7: #52d4ca;
/* 动画效果 */
--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: #31d284;
--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: #f6f8fa;
/* 所见即所得行内元素颜色 */
--b3-protyle-inline-strong-color: #202124;
--b3-protyle-inline-em-color: #202124;
--b3-protyle-inline-s-color: #9ba0ad;
--b3-protyle-inline-link-color: #3375ab;
--b3-protyle-inline-link-hover-color: #2094f3;
--b3-protyle-inline-mark-background: #C9EDD1;
--b3-protyle-inline-mark-color: #202124;
--b3-protyle-inline-tag-background: #70b3ca;
--b3-protyle-inline-tag-color: #fff;
--b3-protyle-inline-code-color: #3779b3;
--b3-protyle-inline-code-background: #F3F4F4;
--b3-protyle-inline-blockref-color: #0e7a88;
--b3-protyle-inline-blockref-hover-color: #ff398b;
/* 表格背景设置 */
--b3-table-border-color: #d1d3d6;
--b3-table-th-color: #e9ecee;
--b3-table-trn-color: #fff;
--b3-table-tr2n-color: var(--b3-theme-background);
/* 高亮 */
--b3-menu-highlight-color: #068eb8;
--b3-menu-highlight-focus-color: #34495e;
/* 搜索高亮 */
--b3-highlight-color: #222;
--b3-highlight-background: var(--b3-protyle-inline-mark-background);
--b3-highlight-current-background: var(--b3-theme-primary-lighter);
/* 文件树背景高亮颜色 */
--b3-menu-highlight-background: #dde5ea;
--custom-tab-background: #edf0f2;
--custom-tab-hover-background: #76878d38;
--custom-tab-border: #d3dae27c;
--custom-tab-focus-top-border: #435f6b;
/* 各级标题颜色 */
--custom-h1-color: rgba(15, 76, 129, 1);
--custom-h2-color: #083256;
--custom-h2-border-color: #dfe0e1;
--custom-h3-color: rgba(15, 76, 129, 1);
--custom-h4-color: #1c849e;
--custom-h5-color: #000000;
--custom-h6-color: var(--b3-theme-on-background);
--custom-blockquote-border-color: #e8e8e8;
--custom-blockquote-background-color: #eaf7ff59;
--custom-tag-hover-color: #559898;
--custom-link-bottom-color: #3375ab;
}
.render-node[data-subtype='graphviz'] .graph>polygon {
fill: transparent;
}
/* ----------------------导出样式------------------- */
/* 导出pdf右侧的面板 */
body>#action {
width: 200px;
background: #dde4e873;
padding: 16px;
position: fixed;
right: 0;
top: 0;
overflow: auto;
bottom: 0;
}
.protyle-preview__action button,
.protyle-preview__action button.protyle-preview__action--current,
.protyle-preview__action button:hover {
background-color: transparent;
}
/* --------------------------------------------------------------------------------------------- */
/* ------------------------------------基本外观设置:Start-------------------------------------- */
/* --------------------------------------------------------------------------------------------- */
body {
font-size: 15.5px;
}
/* ------------------------------更改空行提示------------------------------ */
.protyle-wysiwyg [data-node-id]:not(.code-block)>[spellcheck='false']:empty:after {
/* 避免代码块也出现空行提示 */
content: '';
color: #9fa5a675;
}
/* 空列表出现提示 */
.protyle-wysiwyg [data-subtype='t']>.li>.p:nth-of-type(2)>[spellcheck='false']:empty:after {
content: 'To-do';
color: #9fa5a675;
}
.protyle-wysiwyg [data-subtype='u']>.li>.p:nth-of-type(2)>[spellcheck='false']:empty:after,
.protyle-wysiwyg [data-subtype='o']>.li>.p:nth-of-type(2)>[spellcheck='false']:empty:after {
content: 'List';
color: #9fa5a675;
}
/* 顶栏颜色 */
.toolbar__text {
color: var(--b3-theme-on-background);
}
/* 闪卡 */
.protyle-wysiwyg [data-node-id][custom-riff-decks] {
box-shadow: 4px 0px 0px -1px var(--b3-protyle-inline-mark-background);
}
/* HTML提示 */
.fn__code,
.b3-typography code:not(.hljs),
.b3-typography span[data-type~='code'],
.protyle-wysiwyg code:not(.hljs),
.protyle-wysiwyg span[data-type~='code'] {
color: var(--b3-protyle-inline-code-color);
background-color: var(--b3-protyle-inline-code-background);
word-break: break-all !important;
}
/* 导出pdf右侧选项背景 */
body>div#action {
background: var(--b3-theme-background) !important;
}
/* Optimize the style of closed notebooks */
.file-tree__close>li {
opacity: 0.6;
/* font-weight: bolder; */
/* text-shadow: 0 0 1px #202124; */
}
.file-tree__close.fn__flex-1>li {
opacity: 1;
border-top: 1px solid var(--b3-border-color);
}
/* ----------optimize-custom-emoji ----Start--------*/
/* 调整编辑器内的自定义emoji大小 */
/* .b3-typography img.emoji, .protyle-wysiwyg img.emoji {
cursor: auto;
max-width: 2.5em;
box-shadow: none !important;
vertical-align: top;
} */
/* 取消官方悬浮文档图标的修改提示 */
.b3-list--files .b3-list-item__icon:hover {
background-color: transparent;
border-radius: 0px;
}
.b3-list--files .b3-list-item__icon:hover::after,
.b3-list--files .b3-list-item__icon:hover::before {
opacity: 0;
}
/* 文档图标标题上方大小调整win10 emoji */
/* 文档图标文件树大小调整 */
.file-tree .b3-list-item__icon svg,
.file-tree .b3-list-item__icon img {
/* margin-top: 6px; */
height: 18px;
width: 18px;
color: var(--b3-theme-on-surface);
}
.file-tree .b3-list-item__icon {
text-align: center;
font-size: 15px;
margin-right: 1px;
transition: var(--b3-transition);
padding: 0 2px;
width: 20px;
margin-top: -1px;
}
/* 改变新建按钮图标 */
.file-tree [data-type='new'] svg {
opacity: 0;
}
.file-tree [data-type='new'] {
/* background-color: #fff; */
background-image: url(/appearance/themes/Tsundoku/src/theme/add.svg);
background-size: 15px 15px;
background-repeat: no-repeat;
background-position: left 1px top 4px;
}
.file-tree [data-type='new']:hover {
background-color: #d3e2e671;
}
/* 调整内容中标题左侧文档图标大小 */
.protyle-title.protyle-wysiwyg--attr span svg {
height: 20px;
width: 20px;
float: left;
}
/* .emojis__item img, .emojis__item svg {
height: 30px;
width: 30px;
} */
.emojis__item {
font-size: 20px;
line-height: 30px;
font-family: var(--b3-font-family-emoji);
text-align: center;
height: 33px;
width: 33px;
padding: 2px 4px;
cursor: pointer;
display: inline-block;
}
/* ----------optimize-custom-emoji ---END---------*/
/* 块标提示不被窗口线遮挡 */
.protyle-gutters {
/* 块标移动增加过渡 */
transition: all 200ms ease-out;
}
/* -------------------主题增强面板区分度-------------------- */
.block__logo {
font-weight: 600;
color: var(--b3-menu-highlight-focus-color);
}
/* 加强笔记本强调 */
.b3-list--files [data-type='navigation-root'] .b3-list-item__text,
.b3-list--files [data-type='navigation-root'] {
font-weight: 600;
color: var(--b3-menu-highlight-focus-color);
}
.b3-list--files [data-type='navigation-root'] .b3-list-item__toggle {
color: var(--b3-menu-highlight-focus-color);
}
/* 区分大纲中的各级标题 */
.file-tree ul.b3-list.b3-list--background [data-subtype='h1'] .b3-list-item__text,
.file-tree ul.b3-list.b3-list--background [data-subtype='h1'] .b3-list-item__graphic,
.file-tree ul.b3-list.b3-list--background [data-subtype='h1'] {
font-weight: 600;
opacity: 1;
color: var(--custom-h1-color) !important;
}
.file-tree ul.b3-list.b3-list--background [data-subtype='h2'] .b3-list-item__text,
.file-tree ul.b3-list.b3-list--background [data-subtype='h2'] .b3-list-item__graphic,
.file-tree ul.b3-list.b3-list--background [data-subtype='h2'] {
opacity: 1;
font-weight: 600;
color: var(--custom-h2-color) !important;
}
.file-tree ul.b3-list.b3-list--background [data-subtype='h3'] .b3-list-item__text,
.file-tree ul.b3-list.b3-list--background [data-subtype='h3'] .b3-list-item__graphic,
.file-tree ul.b3-list.b3-list--background [data-subtype='h3'] {
/* opacity: 1; */
font-weight: 600;
color: var(--custom-h3-color) !important;
}
.file-tree ul.b3-list.b3-list--background [data-subtype='h4'] .b3-list-item__text,
.file-tree ul.b3-list.b3-list--background [data-subtype='h4'] .b3-list-item__graphic,
.file-tree ul.b3-list.b3-list--background [data-subtype='h4'] {
color: var(--custom-h4-color);
}
.file-tree ul.b3-list.b3-list--background [data-subtype='h5'] .b3-list-item__text,
.file-tree ul.b3-list.b3-list--background [data-subtype='h5'] .b3-list-item__graphic,
.file-tree ul.b3-list.b3-list--background [data-subtype='h5'] {
opacity: 1;
color: var(--custom-h5-color);
}
.file-tree ul.b3-list.b3-list--background [data-subtype='h6'] .b3-list-item__text,
.file-tree ul.b3-list.b3-list--background [data-subtype='h6'] .b3-list-item__graphic,
.file-tree ul.b3-list.b3-list--background [data-subtype='h6'] {
opacity: 1;
color: var(--custom-h6-color);
}
.file-tree .b3-list--background .b3-list-item .b3-list-item__text:hover {
color: var(--b3-menu-highlight-color) !important;
}
.file-tree .b3-list--background .b3-list-item--focus .b3-list-item__text {
color: inherit !important;
opacity: 1 !important;
}
/* 标题图标放大,提示可以块悬浮窗 */
.file-tree .b3-list-item__graphic.popover__block:hover {
transform: scale(1.2);
transition: all 0.1s ease-in-out;
}
/* -------------------主题增强面板区分度-------------------- */
/* 修复1.4.2 文件树列表focus高亮问题 */
.b3-list--files .b3-list-item--focus:not(.dragover):not(.dragover__top):not(.dragover__bottom) {
background-color: var(--b3-menu-highlight-background) !important;
}
/* 文件树拖拽增强 */
/* .file-tree .dragover__bottom {
box-shadow: 0 2px 0 rgba(44, 160, 255, 0.726), inset 0px -2px 0 rgba(44, 160, 255, 0.726);
}
.file-tree .dragover__top {
box-shadow: 0 -2px 0 rgba(44, 160, 255, 0.726), inset 0px 2px 0 rgba(44, 160, 255, 0.726);
} */
/* 前进后退disable颜色更改 */
.toolbar__item--disabled,
.toolbar__item--disabled:hover {
color: #acb7b7;
cursor: not-allowed;
}
/* .layout__resize--lr:after {
width: 1px;
}
.layout__resize:after {
background-color: #d5dde2;
} */
.b3-typography span[data-type='em'],
.protyle-wysiwyg span[data-type='em'] {
/* .protyle-wysiwyg span[data-type='strong'], */
/* .b3-typography span[data-type='strong'] { */
color: inherit;
}
.b3-typography s,
.protyle-wysiwyg s {
color: inherit !important;
opacity: 0.5;
}
/* 修复一些按钮出现滚轮 */
.b3-label .fn__flex-1 {
overflow: hidden;
}
/* Ctrl的搜索设置按钮 */
body>div.b3-dialog--open>div>div.b3-dialog__container>div:nth-child(3)>div>div.fn__flex-column>div.fn__flex.b3-form__space--small>span.b3-tooltips.b3-tooltips__nw.fn__flex-center {
font-size: 50%;
}
/* 去除dock栏的边框 */
.dock#dockLeft {
border-right: 0px solid var(--b3-border-color);
}
.dock#dockRight {
border-left: 0px solid var(--b3-border-color);
}
.b3-dialog__container .layout-tab-bar {
background-color: var(--b3-theme-surface);
}
/* 聚焦面包屑高亮 */
.protyle-breadcrumb__item:hover,
.protyle-breadcrumb__item--active {
color: var(--b3-menu-highlight-color);
background-color: var(--b3-menu-highlight-background);
}
/* 文档树 */
.b3-list--files .b3-list-item--focus:not(.dragover) {
background-color: var(--b3-menu-highlight-background) !important;
}
/* 文件树列表 */
.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;
transition: all 0.1s ease-in-out;
/* 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);
}
.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;
}
.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;
text-align: left;
border: 0;
padding: 0;
color: var(--b3-theme-on-background);
word-break: break-all;
-webkit-line-clamp: 1;
overflow: hidden !important;
text-overflow: ellipsis;
-webkit-box-orient: vertical;
display: -webkit-box;
font-size: 90%;
}
/* 菜单选中高亮 */
.b3-menu__item:hover:not(.b3-menu__item--readonly):not(.b3-menu__item--custom),
.b3-menu__item--current {
background-color: #cddce3;
}
.b3-menu__item:hover:not(.b3-menu__item--readonly):not(.b3-menu__item--custom)>.b3-menu__label,
.b3-menu__item:hover:not(.b3-menu__item--readonly):not(.b3-menu__item--custom)>.b3-menu__icon,
.b3-menu__item:hover:not(.b3-menu__item--readonly):not(.b3-menu__item--custom)>.b3-menu__accelerator {
color: var(--b3-menu-highlight-focus-color);
/* font-weight: 600; */
}
/* 创建文件按钮 */
/* .b3-button--text,
.b3-button--cancel,
.b3-button--outline {
color: #6b9ac9;
background-color: transparent;
} */
.b3-button--text:hover,
.b3-button--text:focus,
.b3-button--cancel:hover,
.b3-button--cancel:focus,
.b3-button--outline:hover,
.b3-button--outline:focus {
background-color: #848b8c3d;
}
/* 悬浮工具栏 */
.protyle-toolbar__item:hover {
background-color: var(--b3-menu-highlight-background);
color: var(--b3-menu-highlight-color);
}
.protyle-toolbar__item--current,
.protyle-toolbar__item--current:hover {
color: #04a0bf;
}
/* 警告 */
.b3-snackbar--error {
/* background-color: var(--b3-theme-error); */
color: var(--b3-theme-on-error);
}
/* 消息提示 */
/* #message .b3-button {
color: #fff;
background-color: #3fb6be;
border-radius: 16x;
padding: 8px 8px;
} */
.b3-snackbar__content {
color: #fff;
background-color: #3fb6be;
}
.b3-snackbar--error .b3-snackbar__content {
background-color: var(--b3-theme-error);
color: var(--b3-theme-on-error);
}
.b3-snackbar__content svg:hover {
color: #fff;
transform: scale(1.1);
}
/* 设置列表选中取消背景色 */
.b3-list-item.b3-list-item--big:hover,
.b3-list-item.b3-list-item--big.b3-list-item--focus {
font-size: 1.05em;
font-weight: bold;
color: var(--b3-menu-highlight-color);
transition: all 0.1s ease-in-out;
}
.b3-dialog__container .b3-list--background .b3-list-item--focus {
background-color: #d8e0e5c7 !important;
}
/* 调整设置的select按钮 */
.b3-select {
background-color: #d8e0e5;
}
.b3-select option {
background-color: #f3f5f7;
border-radius: 10%;
}
.b3-select option:hover {
background-color: #dfe6ea !important;
}
/* 设置/搜索弹窗的链接 */
.b3-dialog__container a {
outline: 0;
color: #588699;
font-weight: 500;
}
.b3-dialog__container a:hover,
.b3-dialog__container .b3-card__info a:hover {
outline: 0;
text-decoration: underline;
color: var(--b3-menu-highlight-color);
}
.b3-dialog__container .b3-card__info a {
color: #34495e;
text-decoration: none;
}
/* 设置/搜索弹窗的关闭按钮 */
.b3-dialog__container .b3-dialog__close {
color: #8493a6;
}
.b3-dialog__container .b3-dialog__close:hover {
color: #225494;
}
.b3-dialog__container svg:hover {
color: var(--b3-menu-highlight-color);
background: transparent;
/* transform: scale(1.2); */
transition: all 0.1s ease-in-out;
}
.b3-dialog__container svg.b3-dialog__close:hover {
transform: scale(1.2);
}
.b3-dialog__container svg {
transition: all 0.1s ease-in-out;
}
.block__popover--open .fn__flex-column .protyle-wysiwyg {
/* 块引用预览背景颜色 */
transition: background-color 0.5s linear;
}
.protyle-title__input,
.layout__wnd--active .protyle-content,
.layout__wnd--active .protyle-title .protyle-title__input {
/* 当前编辑窗口保持主背景色 */
background-color: transparent;
}
/* 如果页签文字太长避免出现隐藏掉的文字 */
.layout-tab-bar .item__text {
padding: 4px 0px 0px 8px;
}
/* 调整标签页 */
.layout-tab-bar .item__text {
/* 超出显示省略号 */
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
mask-image: none;
-webkit-mask-image: none;
}
/* 钉住添加图标 */
.item.item--pin::before {
content: '📌';
position: absolute;
top: 0px;
right: 0px;
width: 13px;
font-size: 0.7em;
opacity: 0.7;
}
/* ----------------------------标签页、页签样式 Start----------------------------------------- */
.layout-tab-bar {
background-color: var(--b3-theme-surface);
}
.b3-dialog__container .layout-tab-bar {
background-color: transparent;
}
/* 已打开的标签页 */
.layout-tab-bar .item--focus,
.layout__wnd--active .layout-tab-bar .item--focus {
border-radius: 7px 7px 0px 0px;
border: 0px solid transparent;
border-top: 0px solid transparent;
font-weight: 400;
font-size: 15px;
color: var(--b3-menu-highlight-focus-color);
}
.layout__wnd--active .layout-tab-bar .item--focus>.item__text {
color: var(--b3-menu-highlight-focus-color);
}
.b3-dialog__container .layout-tab-bar .item--focus {
box-shadow: none !important;
}
/* hover页签背景色 */
.layout-tab-bar .item:hover:not(.item--focus):not(.item--readonly) {
background-color: var(--custom-tab-hover-background);
}
/* siyuan 1.9.6增加的标签页focus shadow取消 */
.layout__wnd--active .layout-tab-bar .item--focus {
box-shadow: inherit;
}
/* ----------------------------标签页、页签样式 END----------------------------------------- */
.protyle-breadcrumb {
background-color: transparent;
}
/* 集市动画 */
.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;
}
/* 块添加圆角 */
/* .protyle-wysiwyg [data-node-id] {
border-radius: 4px !important;
} */
/* 文件树文档图标悬浮放大 */
.b3-list--files .b3-list-item__icon {
transition: all 0.1s ease-in-out;
}
.b3-list--files .b3-list-item__icon:hover {
transform: scale(1.2);
transition: all 0.1s ease-in-out;
}
/* dock栏和顶部图标放大动效 */
.dock--vertical .dock__item:hover svg,
.toolbar__item:hover svg {
transform: scale(1.1);
transition: all 0.1s ease-in-out;
}
.block__icon:hover svg {
transform: scale(0.9) !important;
}
.dock--vertical .dock__item svg,
.toolbar__item svg,
.block__icon svg {
transition: all 0.1s ease-in-out;
}
/* 文档树文字放大 */
.b3-list--files .b3-list-item__text:hover {
/* transform: scale(1.01); */
transition: all 0.1s ease-in-out;
}
.b3-list--files .b3-list-item__text {
transition: all 0.1s ease-in-out;
}
/* 文档树区分有子文档和无子文档的文档 */
.b3-list-item.b3-list-item--hide-action .b3-list-item__toggle.fn__hidden::before {
content: '✧';
display: block;
position: absolute;
visibility: visible;
transition: var(--b3-transition);
margin-bottom: 2px;
}
/* 取消默认的隐藏效果 */
.file-tree--leave .b3-list-item__graphic--arrow:not(.fn__hidden) {
opacity: 1;
}
/* emoji选中背景 */
.emojis__item--current {
background: rgba(103, 182, 235, 0.658);
border-radius: 4px;
}
/* ------------集市Readme--Start---------*/
/* 不展示link icon */
#configBazaarReadme a::before {
content: none !important;
}
/* 代码块样式 */
#configBazaarReadme code.hljs {
background-color: var(--b3-protyle-code-background);
box-shadow: 0 0 0 1px rgb(0 0 0 / 8%);
border: 2px solid rgb(0 0 0 / 8%);
}
/* ------------集市Readme-End----------*/
/* 文件树拖拽增强 */
/* .file-tree .dragover__bottom {
box-shadow: 0 2px 0 rgba(44, 160, 255, 0.726), inset 0px -2px 0 rgba(44, 160, 255, 0.726);
}
.file-tree .dragover__top {
box-shadow: 0 -2px 0 rgba(44, 160, 255, 0.726), inset 0px 2px 0 rgba(44, 160, 255, 0.726);
} */
/* 退出聚焦按钮 */
.block__icon[data-type='exit-focus'] {
background-color: var(--b3-card-success-background);
color: var(--b3-card-success-color);
/* 加粗 */
font-weight: 600;
}
/* --------------------------------------------------------------------------------------------- */
/* ------------------------------------基本外观设置:End-------------------------------------- */
/* --------------------------------------------------------------------------------------------- */
/* 导出预览选项栏的背景色 */
.protyle-preview__action {
background-color: transparent;
}
/* 钉住的页签不倾斜 */
.layout-tab-bar .item--pin.item--unupdate {
font-style: normal;
color: var(--b3-theme-on-surface);
}
/* 取消2.7.7 更新的待办列表完成样式 */
.protyle-wysiwyg .protyle-task--done>div:not([data-subtype='t']) {
/* color: var(--b3-theme-on-surface-light); */
/* text-decoration: line-through; */
text-decoration: none !important;
color: var(--b3-theme-on-background);
}
/* 取消搜索面板预览不展示link icon */
/* #searchPreview .protyle-wysiwyg [data-node-id] span[data-type~='a']:not(:empty)::before {
display: none;
} */
.b3-typography .img,
.protyle-wysiwyg .img {
display: inline-block;
/* text-align: center; */
vertical-align: top;
margin: 0 auto;
}
#configBazaarReadme .block__icons {
background-color: transparent !important;
}
.b3-dialog__container .b3-list-item {
padding: 4px 4px;
}
#custom-toolbar-more {
display: none;
}
/* 退出聚焦按钮添加背景色 */
.protyle-breadcrumb__icon[data-type='exit-focus'] {
background-color: var(--b3-card-success-background);
}
#dockBottom,
#status {
border-top: none;
}
/* .export-img.protyle-wysiwyg span[data-type~='code']{
margin: 0;
} */
/* 自定义属性 */
[data-key='dialog-attr'] .fn__flex-1:has(.custom-attr[data-type='NodeAttributeView']) {
background-color: var(--b3-theme-background);
}