-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathobsidian.css
1055 lines (818 loc) · 21.5 KB
/
obsidian.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-dark
{
--background-primary: #2f3136;
--background-primary-alt: #3b3f48;/*#464a53;*/
--background-secondary: #202225;
--background-secondary-alt: #0c1018d1;
--text-normal: #bbc0c5;/* 正文 #ccd0d5;#bbc0c5;*/
--text-graph: #dde0e5;
--dot-graph: #bbc0c5;
--text-faint: #a09b80;/* 三角折叠符号;*/
--text-title-h1: #939bd6;
--text-title-h2: #ba7390;
--text-title-h3: #b78b60;
--text-title-h4: #a79645;/*a79645;*/
--text-title-h5: #859676;
--text-title-h6: #799097; /*#797077;*/
--text-link: #59a2c5;
--text-a: #59a2c5;
--text-a-hover: #b3a14b;
--text-muted: #bbc0c5;/* 标题非激活状态 #a5a5a5*/
--text-mark: #686028;/* 预览高亮*/
--pre-code: #272524d9;/* #272524d9*/
--text-highlight-bg: #686028;/* 编辑窗口高亮*/
--interactive-accent: #a79040; /* 标题栏激活状态亮纹 */
--interactive-before: #5e6565;
--background-modifier-border: #92a1a17a;
--blockquote-border: #6a7070; /* rgba(77, 60, 166, .6);*/
--text-accent: #ff9640ba;
--interactive-accent-rgb: #fe8019;
--text-selection: #406488; /*#682f36;506468;文字选中时的颜色*/
}
/**********************/
/*graph-view #图谱*/
/**********************/
#graph-view-canvas .links {
stroke: var(--interactive-accent-rgb) !important; /*--interactive-accent-rgb*/
}
strong {
color: #cac4bc;/* #bbc0c5;#ba946d;*/
font-weight: 550;
}
em {
color: #baa76d;
}
mark {
background-color: var(--text-mark) !important;
padding-top: 2px;
padding-bottom: 1px;
}
/**********************/
/*background of graph view pane*/
/**********************/
.workspace-leaf-content[data-type = "graph"] .view-content{
background-color: var(--background-primary);
}
/*filled color for the circle when not hover*/
.graph-view.color-fill {
color: #a79040;
}
/*color for the circle stroke */
.graph-view.color-circle {
color: none;
}
/*color for the connecting line when not hover*/
.graph-view.color-line {
color: #191935;
}
/*color for texts*/
.graph-view.color-text {
color: var(--text-graph);
}
/*filled color for the circle when hover*/
.graph-view.color-fill-highlight {
color: #f3bf88;
}
/*color for the connecting line when hover*/
.graph-view.color-line-highlight {
color: #59a2c5;
}
/**********************/
/*blockquote #引用块*/
/**********************/
/*.markdown-preview-view blockquote, .cm-s-obsidian pre.HyperMD-quote-1 {
border:none;
border-left: 3px solid currentcolor;
}*/
/**********************/
/*horizontal line #水平线*/
/**********************/
.markdown-preview-view hr {
margin-top: 0.5em;
margin-bottom: 24px;
height: 1.5px;
opacity: 0.5;
}
/**********************/
/* Odds and Ends #标签*/
/**********************/
/* Tag pillbox - common settings for editor left, editor right and preview */
.cm-s-obsidian span.cm-hashtag-begin,
.cm-s-obsidian span.cm-hashtag-end,
a.tag {
background-color: #464a53 !important;
color: #bbc0c5 !important;
padding-bottom: 2px;
padding-top: 2px;
text-decoration: none;
font-family: var(--font-family-editor);
font-size: 0.95em;
}
/* Tag Color in PREVIEW MODE */
a.tag {
background-color: #464a53 !important;
border: none;
color: #bbc0c5 !important;
font-size: 13.5px;
padding: 0px 10px;
text-align: center;
text-decoration: none;
display: inline-block;
margin: 2px 1px;
cursor: pointer;
border-radius: 14px;
}
/* Tag Color in EDITOR MODE */
.cm-hashtag {
color: #799097 !important;
border-radius: 0px;
background-color: #464a53 !important;
padding: 0px 0px;
cursor: pointer;
}
/* Tag editor left side pillbox */
.cm-s-obsidian span.cm-hashtag-begin {
border-top-left-radius: 25px;
border-bottom-left-radius: 25px;
padding-left: 8px;
}
/* Tag editor right side pillbox */
.cm-s-obsidian span.cm-hashtag-end {
border-top-right-radius: 25px;
border-bottom-right-radius: 25px;
padding-right: 10px;
}
/* SEARCH BAR */
.side-dock-panels-container {
background-color: rgb(32, 32, 36) !important;
color: #bbc0c5;
}
/**********************/
/* links and brackets #超链接*/
/**********************/
/* link */
a,
.internal-link,
.cm-hmd-internal-link,
.cm-link,
.cm-formatting-link
{
color: var(--text-a) !important;
text-decoration: none !important;
font-family: Avenir !important;
}
/* 未创笔记的建链接 */
.markdown-preview-view .internal-link.is-unresolved {
color: var(--text-a) !important; /*var(--text-title-h6) !important;*/
opacity: 0.75;
}
/* link hover color */
a:hover,
.internal-link:hover
{
color: var(--text-a-hover) !important;
text-decoration: none !important;
}
/* make external links italics to differentiate */
/* a:not(.internal-link) {
font-style: italic;
}*/
/* icons at top of panes*/
.file-view-actions a
{
color: var(--text-muted) !important;
}
.file-view-actions a:hover
{
color: var(--text-a) !important;
}
/* html tags in editor */
.cm-tag
{
color: var(--text-accent) !important;
}
/* code blocks in preview */
pre code
{
padding: 6px !important;
line-height: normal;
display: block;
background-color: var(--pre-code) !important;
}
.markdown-preview-view pre
{
padding: 0px !important;
}
/* in-line code for editor and preview and code block for editor*/
code,
.cm-inline-code
{
background-color: var(--pre-code) !important;
color: var(--text-muted) !important;
bottom: 0px !important;
}
/* code and code blocks for preview */
.markdown-preview-view code
{
font-size: 13.5px;
}
/**********/
/* tables #表格*/
/**********/
th
{
font-weight: 800 !important;
}
thead
{
border-bottom: 2.2px solid var(--background-modifier-border);
}
.table
{
background-color: var(--background-secondary-alt);
border: 1px solid var(--background-modifier-border);
padding: 4px;
line-height: normal;
display: block;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
border-bottom-left-radius: 4px;
}
/* embedded images */
img
{
display: block;
margin-left: 0;
margin-right: auto;
margin-top: 5px;
margin-bottom: 5px;
}
/*************/
/* checkboxes #任务清单*/
/*************/
/* task lists! (DEATH AU - I'm proud of this, but could use improvement) */
.markdown-preview-view .task-list-item-checkbox {
-webkit-appearance: none;
top: 3px !important;
position: relative;
width: 1.15em;
height: 1.15em;
margin: 1px;
box-shadow: 0 0 0.12em #fff900;
}
.markdown-preview-view .task-list-item-checkbox:checked::before {
content: '✓';
position: absolute;
color: #c1a601;
font-size:1em;
line-height: 1.25em;
width:1.2em;
text-align:center;
text-shadow: 0 0 0.5em var(--accent-2);
}
.markdown-preview-view .task-list-item-checkbox
{
margin-left:7px;
left:-6px;
filter:none;
/*-去除任务列表框颜色 #任务清单*/
}
/* Editor view - task list, color and veritcal align */
.cm-s-obsidian span.cm-formatting-task {
color: var(--text-accent);
font-size: 0.85em;
font-weight: 500;
position: relative;
top: -0.12em;
}
.markdown-preview-view .task-list-item-checkbox
{
top: 0px;
}
.checkbox-container {
background-color: #5dbcd2;
border-radius: 14px;
display: inline-block;
height: 22px;
position: relative;
top: 4px;
user-select: none;
width: 42px;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.15);
transition: background 0.15s ease-in-out, box-shadow 0.15s ease-in-out, border 0.15s ease-in-out, opacity 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
}
.checkbox-container.is-enabled {
background-color: #5dbcd2;
}
.markdown-preview-view mark {
color: #bbc0c5;
background-color: #5dbcd2;
}
/*************/
/* side dock SPECIAL STUFF #侧边栏*/
/*************/
.side-dock-ribbon-tab, .side-dock-ribbon-action {
}
.side-dock-ribbon-tab.is-active {
color: #bdbaa8 !important;
}
.side-dock-ribbon-tab.is-active .side-dock-ribbon-tab-inner:hover {
color: #337AB7 !important;
background-color: #182026;
}
.nav-file-title {
color: #aaaaaa !important;/* 文件列表名称颜色 */
background-color: rgb(32, 32, 36);
}
.nav-folder-title {
color: #bfbfbf !important;
background-color: rgb(32, 32, 36);
}
.nav-file-title:hover {
color: #59a2c5 !important;
}
.search-result-file-title {
color: #d1c1a1 !important; /* 搜索结果标题颜色 */
background-color: rgb(32, 32, 36); /* 搜索结果标题背景颜色 */
}
.search-result-file-matched-text {
color: #59a2c5 !important;
background-color: rgb(32, 32, 36);
}
.nav-file-tag{ color: #59a2c5; } for the PNG text, but can't specifically target "PNG", just all of those filetype tags.
.nav-file.is-active .nav-file-tag { color: #59a2c5; }
/* side dock text, like file names and backlink context #侧边栏*/
.side-dock-panels-container *
{
font-size: 13px !important;
}
/* side dock titles at top */
.side-dock-title
{
font-size: 20px !important;
font-weight: 800 !important;
}
/* hover actions on side dock navigation */
.side-dock-ribbon-tab:hover,
.side-dock-ribbon-tab-inner:hover,
.side-dock-ribbon-action:hover,
.side-dock-ribbon-action.is-active:hover,
.nav-action-button:hover,
.side-dock-collapse-btn:hover
{
color: var(--text-a);
}
/* condense line spacing on file explorer title list. also avoids character-level word breaks */
.nav-file-title-content,
.search-result-file-title,
.search-result-file-match
{
padding-top: 0 !important;
padding-bottom: 0 !important;
line-height: normal !important;
word-break: keep-all;
}
/* clean up side bar empty state (e.g. unlinked mentions) */
.search-empty-state
{
width: auto;
padding-left: 15px;
padding-right: 15px;
line-height: normal;
}
/* font for everything outside of editor/preview panes */
.app-container
{
font-family: var(--font-family-preview);
}
.status-bar-item
{
font-family: var(--font-family-preview);
font-size: 14px;
}
/******************/
/* editor section */
/******************/
/* normal text outside of headings and code #正文 */
.cm-s-obsidian
{
font-family: var(--font-family-editor);
font-size: 15px;
color: var(--text-normal);
padding-left: 2% !important;
padding-right: 2% !important;
}
.mod-single-child .cm-s-obsidian
{
font-family: var(--font-family-editor);
font-size: 15px;
color: var(--text-normal);
padding-left: 4% !important;
padding-right: 4% !important;
}
/* headings #标题*/
.cm-header-1
{
font-family: var(--font-family-editor);
font-weight: 500;
font-size: 28px;
font-weight: bold;
color: var(--text-title-h1);
}
.cm-header-2
{
font-family: var(--font-family-editor);
font-weight: 500;
font-size: 26px;
font-weight: bold;
color: var(--text-title-h2);
}
.cm-header-3
{
font-family: var(--font-family-editor);
font-weight: 500;
font-size: 23px;
font-weight: bold;
color: var(--text-title-h3);
}
.cm-header-4
{
font-family: var(--font-family-editor);
font-weight: 500;
font-size: 20px;
font-weight: bold;
color: var(--text-title-h4);
}
.cm-header-5
{
font-family: var(--font-family-editor);
font-weight: 500;
font-size: 18px;
font-weight: bold;
color: var(--text-title-h5);
}
.cm-header-6
{
font-family: var(--font-family-editor);
font-weight: 500;
font-size: 16px;
font-weight: bold;
color: var(--text-title-h6);
}
/* .cm-strong {
color: #ba946d;
font-weight: bold;
}*/
.cm-em {
color: #baa76d;
}
/* This is the dashes in bullets. Color does not work,
but font weight does. */
.cm-formatting-list {
color: #848994;
font-weight: 700;
}
/* Changing size/color of the header hashtags ## */
.cm-formatting-header {
/* color: var(--text-faint);*/
font-size: 0.6em;
}
/******************/
/* preview section */
/******************/
/* headings #标题*/
.markdown-preview-view h1
{
font-family: var(--font-family-preview);
font-weight: 500;
font-size: 28px;
font-weight: bold;
color: var(--text-title-h1);
}
.markdown-preview-view h2
{
font-family: var(--font-family-preview);
font-weight: 500;
font-size: 26px;
font-weight: bold;
color: var(--text-title-h2);
}
.markdown-preview-view h3
{
font-family: var(--font-family-preview);
font-weight: 500;
font-size: 23px;
font-weight: bold;
color: var(--text-title-h3);
}
.markdown-preview-view h4
{
font-family: var(--font-family-preview);
font-weight: 500;
font-size: 20px;
font-weight: bold;
color: var(--text-title-h4);
}
.markdown-preview-view h5
{
font-family: var(--font-family-preview);
font-weight: 500;
font-size: 18px;
font-weight: bold;
color: var(--text-title-h5);
}
.markdown-preview-view h6
{
font-family: var(--font-family-preview);
font-weight: 500;
font-size: 16px;
font-weight: bold;
color: var(--text-title-h6);
}
/* remove secondary scroll bar in editor that comes from adding variable padding */
.CodeMirror-scroll::-webkit-scrollbar {
display: none;
}
/* clean up side bar empty state (e.g. unlinked mentions) */
.search-empty-state
{
width: auto;
padding-left: 10px;
padding-right: 5px;
line-height: normal;
}
/******************/
/* Editor Code Appearance #代码块 */
/******************/
.CodeMirror-code span.cm-inline-code {
color: #e1e2e3 !important;
}
/******************/
/* Editor Code - from death-au */
/* i think this just adds a border to inline code in editor mode */
/******************/
.cm-s-obsidian span.cm-inline-code {
border: 1px solid #525660;
border-radius: 4px;
background-color: #555961 !important;
}
.cm-s-obsidian span.cm-formatting-code.cm-inline-code {
border-right-width: 0;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
.cm-s-obsidian span.cm-formatting-code.cm-inline-code + span.cm-inline-code {
border-right: none;
border-left: none;
border-radius: 0;
}
.cm-s-obsidian span.cm-formatting-code.cm-inline-code + span.cm-inline-code + span.cm-formatting-code.cm-inline-code {
border-left-width: 0;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
border-right-width: 1px;
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
}
/* Editor CodeBlock TEXT Appearance - */
.cm-s-obsidian pre.HyperMD-codeblock {
color: #e1e2e3 !important;
}
/******************/
/* Preview Code Appearance #代码块*/
/******************/
.markdown-preview-view code {
color: #d5dadd !important;
background-color: #555961 !important; /*预览 Code BG */
bottom: -0.1px !important;
}
/* Naked Embeds #嵌入块*/
/******************/
.markdown-embed-title { display:none; }
.markdown-preview-view .markdown-embed-content>:first-child { margin-top: 0; font-size:1em; }/* remove the first heading:display:none; */
.markdown-preview-view .markdown-embed-content>:last-child { margin-bottom: 0; }
.markdown-preview-view .markdown-embed-content { /* 不限高度,去掉滚动条, not work in v0.9.x */
max-height: unset;
}
.markdown-preview-view .markdown-embed-content {
margin-bottom: 0px; margin-top: 0px; }
.markdown-embed-link {
color: #59a2c5 !important;
right: 2px !important;
}
.markdown-embed-link:hover {
color: #b3a14b !important;
}
.markdown-preview-view .markdown-embed /* embed 嵌入格式 */
{
border-width: 0.5px; border-left: 0; border-right: 0;
border-radius: 0px;
padding-left: 0px !important; padding-right: 0px !important;
margin-top:0px; margin-bottom:0px;
background-color: None;
} /*#323439;*/
.markdown-embed /* embed hover预览格式 */
{
padding-left: 0px !important;
padding-right: 0px !important;
margin-left: 0px !important;
margin-right: 0px !important;
}
/*====bigger link popup preview === #超链接弹窗 =*/
.popover.hover-popover {
transform: scale(0.95); /* makes the content smaller */
max-height: 600px; /* was 300 */
min-height: 100px;
width: 450px; /* was 400 */
background-color:#39393f;
border-color: #59595f;
}
/*============隐藏sidebar stripe ======== #侧边栏 */
.workspace-ribbon.is-collapsed:not(:hover) .workspace-ribbon-collapse-btn,
.workspace-ribbon.is-collapsed:not(:hover) .side-dock-actions,
.workspace-ribbon.is-collapsed:not(:hover) .side-dock-settings {display:none;}
.workspace-ribbon.is-collapsed:not(:hover) {width: 0;}
.workspace-split.mod-left-split[style="width: 0px;"] {margin-left: 0;}
.workspace-split.mod-right-split[style="width: 0px;"] {margin-right: 0;}
.workspace-ribbon {transition: none}
/*---------------------------------*/
/* BULLET POINT RELATIONSHIP LINES #列表 */
/*---------------------------------*/
.cm-hmd-list-indent .cm-tab,
ul ul {
position: relative;
}
.cm-hmd-list-indent .cm-tab::before,
ul ul::before {
content: "";
border-left: 1px solid rgba(100, 100, 120, 0.6);/*最后一个数为透明度*/
position: absolute;
}
.cm-hmd-list-indent .cm-tab::before {
left: 3.5px; /* 调节编辑模式下线的左缩进 */
top: -4.5px;
bottom: -4px;
}
ul ul::before {
left: -13px; /* 调节预览模式下线的左缩进 */
top: 0;
bottom: 0;
}
.cm-hmd-list-indent .cm-tab,
ol ol { /* 有序列表 */
position: relative;
}
.cm-hmd-list-indent .cm-tab::before,
ol ol::before {
content: "";
border-left: 1px solid rgba(100, 100, 120, 0.6);/*最后一个数为透明度*/
position: absolute;
}
.cm-hmd-list-indent .cm-tab::before {
left: 3.5px; /* 调节编辑模式下线的左缩进 */
top: -4.5px;
bottom: -4px;
}
ol ol::before {
left: -13px; /* 调节预览模式下线的左缩进 */
top: 0;
bottom: 0;
}
.cm-hmd-list-indent .cm-tab,
ol ul { /* 有序列表 */
position: relative;
}
.cm-hmd-list-indent .cm-tab::before,
ol ul::before {
content: "";
border-left: 1px solid rgba(100, 100, 120, 0.6);/*最后一个数为透明度*/
position: absolute;
}
.cm-hmd-list-indent .cm-tab::before {
left: 3.5px; /* 调节编辑模式下线的左缩进 */
top: -4.5px;
bottom: -4px;
}
ol ul::before {
left: -13px; /* 调节预览模式下线的左缩进 */
top: 0;
bottom: 0;
}
.cm-hmd-list-indent .cm-tab,
ul ol { /* 有序列表 */
position: relative;
}
.cm-hmd-list-indent .cm-tab::before,
ul ol::before {
content: "";
border-left: 1px solid rgba(100, 100, 120, 0.6);/*最后一个数为透明度*/
position: absolute;
}
.cm-hmd-list-indent .cm-tab::before {
left: 3.5px; /* 调节编辑模式下线的左缩进 */
top: -4.5px;
bottom: -4px;
}
ul ol::before {
left: -13px; /* 调节预览模式下线的左缩进 */
top: 0;
bottom: 0;
}
/*-------------------------------------*/
/* 在编辑模式中将无序 #列表 转化为圆点 */
/*-------------------------------------*/
/* Unordered lists: turn into bullets as you type in edit mode */
span.cm-formatting-list-ul {
visibility: hidden !important;
}
/*hieu: no idea if this would affect preview bullet color, but some useful css to play with? */
span.cm-formatting-list-ul:before {
content: '• ';
color: var(--text-normal); /*change to your color pref */
visibility: visible !important;
margin-left: 0.1rem; /* 调节点的右缩进 */
margin-right: -0.22rem; /*调文字的左缩进 */
padding-inline-start: 0px;
}
/*-------------------------------------*/
/* 减少 #列表 缩进 Ajust list indent In preview mode*/
/*-------------------------------------*/
ol {
padding-inline-start: 30px;
}
ul {
padding-inline-start: 30px;
}
/*-------------------------------------*/
/* #大纲面板 的关系线 #侧边栏 relationship line of outline */
/*-------------------------------------*/
.outline .collapsible-item-children {
margin-left: 20px;
border-left: 1px solid rgba(165,165,165,0.2);
transition:all 0.5s ease-in-out;
padding-left: 6px;
}
/*-------------------------------------*/
/* #水平线 所见即所得 hr line*/
/*-------------------------------------*/
div:not(.CodeMirror-activeline)>.CodeMirror-line span.cm-hr {
color: transparent;
}
div:not(.CodeMirror-activeline)>.CodeMirror-line span.cm-hr:after {
content: "";
position: absolute;
height: 1px;
width: 100%;
background: var(--text-selection);
left: 0;
top: 50%;
opacity: 0.8;
}
/*-------------------------------------*/
/* #引用块 (Quote block WYSIWYG)见即所得 */
/*-------------------------------------*/
div:not(.CodeMirror-activeline)>.CodeMirror-line span.cm-formatting-quote {