forked from curtgrimes/obsidian-floating-toc-plugin
-
Notifications
You must be signed in to change notification settings - Fork 5
/
styles.css
1462 lines (1240 loc) · 45 KB
/
styles.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
/* @settings
name: Floating TOC
id: floating-toc-styles
settings:
-
id: floating-toc-font-color-header
title: color setting
title.zh: 颜色相关设置
type: heading
level: 2
collapsed: true
-
id: floating-toc-header-settings
title: Headers
title.zh: 大纲标题(H1-H6)
type: heading
level: 3
collapsed: true
-
id: floating-toc-remove-heading-indicator
title: Remove H1-H6 Indicators after Headings
title.zh: 移除标题后的H1-H6
type: class-toggle
default: false
-
id: toggle-floating-toc-header-color
title: toggle header color
title.zh: 是否开启标题颜色
type: class-toggle
default: false
-
id: floating-toc-color-h1
title: Header 1
type: variable-themed-color
opacity: true
format: hex
default-light: '#'
default-dark: '#'
-
id: floating-toc-color-h2
title: Header 2
type: variable-themed-color
opacity: true
format: hex
default-light: '#'
default-dark: '#'
-
id: floating-toc-color-h3
title: Header 3
type: variable-themed-color
opacity: true
format: hex
default-light: '#'
default-dark: '#'
-
id: floating-toc-color-h4
title: Header 4
type: variable-themed-color
opacity: true
format: hex
default-light: '#'
default-dark: '#'
-
id: floating-toc-color-h5
title: Header 5
type: variable-themed-color
opacity: true
format: hex
default-light: '#'
default-dark: '#'
-
id: floating-toc-color-h6
title: Header 6
type: variable-themed-color
opacity: true
format: hex
default-light: '#'
default-dark: '#'
-
id: floating-toc-settings
title: Other color settings
title.zh: 其他颜色设置
type: heading
level: 3
collapsed: true
-
id: floating-toc-font-color
title: font color
title.zh: 目录字体颜色
type: variable-themed-color
format: hex
opacity: false
default-light: '#f5f6f8'
default-dark: '#1b1b1b'
-
id: floating-toc-hover-color
title: hover color
title.zh: 鼠标聚焦hover色
description: The header color when the mouse is over the line .
description.zh: 当鼠标在条目上方时,标题颜色。
type: variable-themed-color
format: hex
opacity: false
default-light: '#f5f6f8'
default-dark: '#1b1b1b'
-
id: floating-toc-header-background-color
title: Header background color
title.zh: 标题背景色
type: variable-themed-color
format: hex
opacity: true
default-light: '#ffffff8c'
default-dark: '#202020c4'
-
id: floating-toc-background-color
title: toc background color
title.zh: 目录背景色
type: variable-themed-color
format: hex
opacity: true
default-light: '#dddddd4d'
default-dark: '#20202066'
-
id: floating-toc-highlight-color
title: highlight color
title.zh: 高亮颜色
description: Click on the header background color and the indicator color when scrolling .
description.zh: 点击标题背景色和同步滚动时的指示器颜色
type: variable-color
format: hex
alt-format:
-
id: floating-toc-highlight-color-rgb
format: rgb-values
default: '#ff8000'
-
id: floating-toc-line-color
title: Indicator line color
title.zh: 指示条颜色
type: variable-themed-color
format: hex
opacity: true
default-light: '#7a9486'
default-dark: '#84a83a'
-
id: floating-toc-layout-header
title: layout settings
title.zh: 版面相关设置
type: heading
level: 2
collapsed: true
-
id: enable-heading-nowrap
title: Header single line display
title.zh: 目录标题单行显示
type: class-toggle
default: false
-
id: floating-toc-font-size
title: font size
title.zh: 字体大小
type: variable-number
format: rem
default: 0.7
-
id: floating-toc-line-height
title: line height
title.zh: 目录行间距
type: variable-number
format: rem
default: 1.5
-
id: floating-toc-position
title: TOC Position relative to the edge
title.zh: TOC距离边界的相对位置
type: variable-number-slider
default: 0
format: px
min: -100
max: 100
step: 1
-
id: indicator-bar-position
title: Indicator bar position relative to the edge
title.zh: 指示条的相对位置
type: variable-number-slider
default: 0
format: em
min: -3
max: 3
step: 0.1
-
id: floating-toc-line-width
title: Line Width of floating-toc
title.zh: 目录显示宽度
description: The maximum line width in rem units (1rem = Body font size)
type: variable-number
default: 18
format: rem
-
id: floating-toc-appearance-header
title: Appearance settings
title.zh: 外观设置
type: heading
level: 2
collapsed: true
-
id: enable-outline-style
title: enable outline style
title.zh: 显示层级线
type: class-select
allowEmpty: false
default: default-outline-style
options:
-
label: Default
value: default-outline-style
-
label: curves
value: float-curves-outline-style
-
label: line
value: float-outline-style
-
id: enable-bar-icon
title: Replace the indicator bar with an icon
title.zh: 用图标代替指示条
type: class-toggle
default: false
-
id: enable-bar-heading-text
title: Show heading text next to indicator bar (including parent)
title.zh: 在指示条旁边显示标题上下级
type: class-toggle
default: false
-
id: focus-heading
title: Focus on the current heading
title.zh: 突出显示当前标题
description: Focus on the header corresponding to the current scrollbar, other headers will be faded . Set the fade level here.
description.zh: 重点突出当前滚动条对应的标题,其他标题将淡化显示。这里调整淡化程度。
type: variable-number-slider
default: 0.9
min: 0
max: 1
step: 0.1
-
id: floating-toc-response-time
title: Response Time
title.zh: 浮动目录响应速度
description: Adjust the eject sensitivity. The larger the value, the less sensitive it is
description.zh: 调整浮动目录弹出灵敏度。值越大越不灵敏
type: variable-number-slider
level: 1
format: s
default: 0.3
min: 0
max: 1
step: 0.1
-
id: floating-background-settings
title: Notes background blur effect settings
title.zh: 笔记背景模糊效果设置
type: heading
level: 3
collapsed: true
-
id: enable-background-blur-dept
title: Activate Blurred background
title.zh: 开启触发目录后笔记背景模糊效果
type: class-toggle
default: false
-
id: background-blur-depth
title: Blurred background after opening the toc
title.zh: 触发目录背景模糊程度
description: To adjust the radius of blur
description.zh: 调整背景模糊程度
type: variable-number-slider
default: 2
format: px
min: 0
max: 30
step: 1
-
id: floating-toc
title: If you have ideas or feedback, welcome to commit issues on github 😁
title.zh: 有任何想法可以跟我交流😁,欢迎来访,QQ群:908688452
type: heading
level: 1
collapsed: true
*/
.theme-light,
.theme-dark {
--background-blur-depth:2px;
--floating-toc-font-color: var(--text-normal);
--floating-toc-hover-color: var(--text-accent-hover);
--floating-toc-font-size: 0.7rem;
--floating-toc-highlight-color: var(--text-highlight-bg-active);
--floating-toc-highlight-color-rgb: 255,128,0;
--floating-toc-line-color: var(--text-accent);
--floating-toc-line-height: 1.5rem;
--floating-toc-response-time: 0.3s;
--floating-toc-position:0px;
--focus-heading:0.9;
--floating-toc-line-width:18rem;
}
.theme-light{
--floating-toc-header-background-color:var(--background-primary);
--floating-toc-background-color: rgba(221, 221, 221, 0.3);
}
.theme-dark{
--floating-toc-header-background-color: rgb(32 32 32 / 77%);
--floating-toc-background-color: rgba(32, 32, 32, 0.4);
}
div.workspace-leaf-content[data-type="style-settings"] div.style-settings-heading[data-id="floating-toc"] {
margin-top: 10px;
margin-bottom: 0;
pointer-events: none;
cursor: text;
border-top: 2px solid var(--background-modifier-border);
pointer-events: none;
}
.style-settings-heading[data-id="floating-toc"] .setting-item-control,
.style-settings-heading[data-id="floating-toc"] .style-settings-collapse-indicator {
display: none;
}
.style-settings-heading[data-id="floating-toc"] .setting-item-name::before {
display: inline-block;
width: 20px;
height: fit-content;
padding-right: 8px;
font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
font-weight: initial;
color: unset;
content: "❤️";
}
.heading-list-item.located .line-wrap .line {
background: rgb(var(--floating-toc-highlight-color-rgb),0.8);
height: 2.5px;
}
.heading-list-item.located .text-wrap:not(.located) .text {
color: var(--floating-toc-highlight-color);
}
.heading-list-item .text-wrap.located .text {
background-color: rgba(var(--floating-toc-highlight-color-rgb),0.4);
}
.heading-list-item {
z-index: 1;
font-size: var(--floating-toc-font-size);
min-height: var(--floating-toc-line-height);
padding: 0;
white-space: nowrap;
position: relative;
}
.heading-list-item .line-wrap {
position: absolute;
top: 0;
bottom: 0;
width: 1.5rem;
z-index: -1;
animation: lineAppear-72a6a55b 250ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes lineAppear-72a6a55b {
0% {
transform: translateX(1rem);
}
100% {
transform: translateX(0rem);
}
}
.heading-list-item .line-wrap .line {
position: absolute;
top: 50%;
margin-top: calc(2px / -2);
height: 2px;
width: 1.5rem;
background: var(--floating-toc-line-color);
}
.heading-list-item .text-wrap {
z-index: 9999;
opacity: 0;
pointer-events: none;
height: 100%;
display: inline-flex;
align-items: center;
animation: textAppear-72a6a55b 250ms cubic-bezier(0.34, 1.56, 0.64, 1);
position: relative;
}
@keyframes textAppear-72a6a55b {
0% {
transform: translateX(-1rem);
}
100% {
transform: translateX(0rem);
}
}
.heading-list-item .text-wrap .text {
padding: 0.25rem;
border-radius: 0.5rem;
text-decoration: none;
cursor: pointer;
color: var(--floating-toc-font-color);
backdrop-filter: blur(5px);
background: var(--floating-toc-header-background-color);
}
body.enable-heading-nowrap .floating-toc-div.pin .floating-toc .heading-list-item>.text-wrap {
max-width: unset;
}
body.enable-heading-nowrap .heading-list-item .text-wrap .text {
max-width: calc(var(--floating-toc-line-width) - 3rem);
overflow: hidden;
text-overflow: ellipsis;
}
.heading-list-item .text-wrap .text:hover {
color: var(--floating-toc-hover-color);
font-weight: bold;
}
.heading-list-item .text-wrap .text:hover::after {
font-size: 8px;
}
.heading-list-item:hover .line-wrap .line {
opacity: 0;
pointer-events: none;
}
.heading-list-item:hover .text-wrap {
opacity: 1;
pointer-events: all;
}
.heading-list-item[data-level="2"] .text-wrap {
margin-left: 0.5rem;
}
.heading-list-item[data-level="3"] .text-wrap {
margin-left: 1rem;
}
.heading-list-item[data-level="4"] .text-wrap {
margin-left: 1.5rem;
}
.heading-list-item[data-level="5"] .text-wrap {
margin-left: 2rem;
}
.heading-list-item[data-level="6"] .text-wrap {
margin-left: 2.5rem;
}
.heading-list-item[data-level="1"] {
padding-left: 0rem;
}
.heading-list-item[data-level="1"] .text::after {
content: "H1";
font-size: 8px;
margin-left: 1px;
color: var(--text-muted);
font-weight: normal !important;
padding: 1px 2px 1px 2px;
}
.heading-list-item[data-level="2"] {
padding-left: 0.5rem;
}
.heading-list-item[data-level="2"] .text::after {
content: "H2";
font-size: 8px;
margin-left: 1px;
color: var(--text-muted);
font-weight: normal !important;
padding: 1px 2px 1px 2px;
}
.heading-list-item[data-level="3"] {
padding-left: 1rem;
}
.heading-list-item[data-level="3"] .text::after {
content: "H3";
font-size: 8px;
margin-left: 1px;
color: var(--text-muted);
font-weight: normal !important;
padding: 1px 2px 1px 2px;
}
.heading-list-item[data-level="4"] {
padding-left: 1.5rem;
}
.heading-list-item[data-level="4"] .text::after {
content: "H4";
font-size: 8px;
margin-left: 1px;
color: var(--text-muted);
font-weight: normal !important;
padding: 1px 2px 1px 2px;
}
.heading-list-item[data-level="5"] {
padding-left: 1.6rem;
}
.heading-list-item[data-level="5"] .text::after {
content: "H5";
font-size: 8px;
margin-left: 1px;
color: var(--text-muted);
font-weight: normal !important;
padding: 1px 2px 1px 2px;
}
.heading-list-item[data-level="6"] {
padding-left: 1.8rem;
}
.heading-list-item[data-level="6"] .text::after {
content: "H6";
font-size: 8px;
margin-left: 1px;
color: var(--text-muted);
font-weight: normal !important;
padding: 1px 2px 1px 2px;
}
.floating-toc {
overflow: hidden;
list-style: none;
margin: 0;
padding: 0;
position: absolute;
top: 95px;
display: flex;
flex-direction: column;
justify-content: flex-start;
bottom: 40px;
/* width: 13rem; */
scroll-behavior: smooth;
min-height: max-content;
max-height: calc(100% - 135px) ;
left:var(--floating-toc-position);
padding-top: 0.5rem;
}
.floating-toc-div.pin .floating-toc,
.floating-toc:hover {
z-index: 2;
align-items: flex-start;
min-width: 6rem;
max-width: var( --floating-toc-line-width);
width: auto;
overflow-y: auto;
background: var(--floating-toc-background-color);
}
.floating-toc-div.pin .floating-toc::-webkit-scrollbar,
.floating-toc:hover::-webkit-scrollbar {
display: none;
}
body:not(.enable-heading-nowrap) .floating-toc-div.pin .floating-toc .heading-list-item,
body:not(.enable-heading-nowrap) .floating-toc:hover .heading-list-item {
min-height: auto;
}
.floating-toc-div:is(.hover,.pin) .floating-toc .heading-list-item
{
padding:0 1rem;
}
.floating-toc-div.pin .floating-toc .heading-list-item
{
max-width: fit-content;
}
body.enable-heading-nowrap .floating-toc-div.pin .floating-toc .heading-list-item>.text-wrap,
body.enable-heading-nowrap .floating-toc:hover .heading-list-item>.text-wrap {
white-space: nowrap;
}
.floating-toc-div.pin .floating-toc .heading-list-item>.text-wrap,
.floating-toc:hover .heading-list-item>.text-wrap {
/* min-width: 12rem; */
white-space: normal;
opacity: 1;
transition-delay: var(--floating-toc-response-time);
transition-property: opacity;
transition-timing-function: ease-in-out;
-webkit-transition-delay: var(--floating-toc-response-time);
-webkit-transition-property: opacity;
-webkit-transition-timing-function: ease-in-out;
}
.floating-toc-div.pin .heading-list-item>.line-wrap,
.floating-toc:hover .heading-list-item>.line-wrap {
display: none;
}
/* .workspace-leaf-content .floating-toc-div.pin:is(.floating-left,.floating-both)+.markdown-source-view .cm-editor {
padding-left: 2rem;
} */
.workspace-leaf-content .floating-toc-div:is(.floating-left,.floating-both)+.markdown-source-view>.cm-editor {
padding-left: 2rem;
}
.workspace-leaf-content .floating-toc-div.pin:is(.floating-left,.floating-both)+.markdown-source-view>.cm-editor {
padding-left: var(--floating-toc-line-width);
}
.workspace-leaf-content .floating-toc-div:is(.floating-left,.floating-both)~.markdown-reading-view .markdown-preview-view {
padding-left: 4rem;
}
.floating-toc-div:is(.floating-left,.floating-both)+.markdown-source-view .cm-panels {
margin-left: -2rem;
}
/****right*********/
.floating-toc-div.pin .floating-toc .heading-list-item>.text-wrap a>a,
.floating-toc-div .floating-toc:hover .heading-list-item>.text-wrap a>a {
pointer-events: none;
}
.floating-toc-div.pin .floating-toc .heading-list-item>.text-wrap a>a.external-link,
.floating-toc-div .floating-toc:hover .heading-list-item>.text-wrap a>a.external-link {
background-image: none;
}
.workspace-leaf-content .floating-toc-div.floating-right~.markdown-reading-view .markdown-preview-view {
padding-right: 2rem;
}
.floating-toc-div.floating-right .floating-toc {
right: calc(0.5rem + var(--floating-toc-position));
align-items: flex-end;
left: unset;
}
.floating-toc-div.floating-right .heading-list-item {
text-align: right;
}
.floating-toc-div.floating-right .heading-list-item .line-wrap {
right: 0.5rem;
}
.floating-toc-div.floating-right .heading-list-item[data-level="1"] .line-wrap {
padding-left: 0.5rem;
}
.floating-toc-div.floating-right .heading-list-item[data-level="2"] .line-wrap {
padding-left: 0.7rem;
}
.floating-toc-div.floating-right .heading-list-item[data-level="3"] .line-wrap {
padding-left: 0.9rem;
}
.floating-toc-div.floating-right .heading-list-item[data-level="4"] .line-wrap {
padding-left: 1.1rem;
}
.floating-toc-div.floating-right .heading-list-item[data-level="5"] .line-wrap {
padding-left: 1.3rem;
}
.floating-toc-div.floating-right .heading-list-item[data-level="6"] .line-wrap {
padding-left: 1.5rem;
}
.floating-toc-div.floating-right.pin .floating-toc .heading-list-item>.text-wrap,
.floating-toc-div.floating-right .floating-toc:hover .heading-list-item>.text-wrap {
justify-content: flex-end;
text-align: right;
display: inline-flex;
}
/****pin button***/
.floating-right.floating-toc-div .toolbar.pin {
right: 10px;
}
.floating-toc-div.pin .toolbar.pin {
opacity: 1;
display: block;
}
.floating-toc-div .toolbar.pin:hover {
opacity: 1;
}
.floating-toc-div .toolbar button:hover {
box-shadow: none;
color: var( --interactive-accent-hover);
transform: scale(1.2);
}
@keyframes shake {
0%,
100% {
-webkit-transform: translateX(0);
}
10%,
30%,
50%,
70%,
90% {
-webkit-transform: translateX(-0.1px);
}
20%,
40%,
60%,
80% {
-webkit-transform: translateX(0.1px);
}
}
.floating-toc-div .toolbar.pin.hide {
display: none;
}
.floating-toc-div .toolbar
{
display: list-item;
opacity: 0.8;
z-index: 2;
background: var(--floating-toc-background-color);
position: fixed;
top: 75px;
margin-left: 10px;
}
.floating-toc-div.pin .toolbar.pin
{
display: block;
}
.floating-toc-div.pin .toolbar.pin button[aria-label="pin"]
{
color: var(--interactive-accent-hover);
animation: shake 0.5s 2 alternate linear; /* 设置动画为2秒钟的时间,并无限循环 */
}
.floating-toc-div .toolbar button
{
margin: 0;
padding: 0 10px;
background-color:transparent;
margin-right: 5px;
width: 10px;
display: inline-grid;
box-shadow: none;
transition: transform 0.3s;
}
.floating-toc-div .toolbar button svg{
width: 12px;
height: 12px;
}
.floating-toc-div.pin .floating-toc .heading-list-item>.text-wrap {
max-width: calc(var(--floating-toc-line-width) - 1rem);
}
body.enable-background-blur-dept .workspace-leaf-content .floating-toc-div.hover:not(.pin)+.markdown-source-view>.cm-editor
{
filter: blur(var(--background-blur-depth));
-webkit-filter: blur(var(--background-blur-depth));
background: var(--floating-toc-background-color);
}
body.enable-background-blur-dept .workspace-leaf-content .floating-toc-div.hover:not(.pin) ~.markdown-reading-view .markdown-preview-view
{
filter: blur(var(--background-blur-depth));
-webkit-filter: blur(var(--background-blur-depth));
background: var(--floating-toc-background-color);
}
body.enable-background-blur-dept .floating-toc-div.hover:not(.pin) .heading-list-item .text-wrap:not(.located) .text {
background: transparent;
}
body.enable-background-blur-dept .floating-toc-div.pin .floating-toc,
body.enable-background-blur-dept .floating-toc:hover {
background: transparent;
}
/****alignLeft**/
.floating-toc-div.floating-right.alignLeft .floating-toc {
align-items: flex-start;
}
.floating-right.floating-toc-div.alignLeft .toolbar.pin {
right: 4rem;
}
.floating-toc-div.floating-right.alignLeft.pin .floating-toc .heading-list-item>.text-wrap,
.floating-toc-div.floating-right.alignLeft .floating-toc:hover .heading-list-item>.text-wrap
{
max-width: 12rem;
text-overflow: ellipsis;
justify-content: flex-start;
text-align: left;
}
/* .heading-list-item.located .text::before
{
content: "•";
margin-right: 2px;
margin-left: -0.5rem;
} */
/* .heading-list-item.focus .text::before
{
content: "▾";
margin-right: 2px;
margin-left: -1rem;
} */
heading-list-item.focus .text
{
font-weight: bold;
}
.floating-toc-div:not(:is(.hover,.pin)) .heading-list-item
{
width: 2rem;
overflow: hidden;
margin-left: var(--indicator-bar-position);
}
.floating-toc-div:hover .heading-list-item
{
width: unset;
}
.floating-toc-div:not(:is(.hover)) .heading-list-item:not(:is(.located,.focus))
{
opacity: var(--focus-heading);
}
/****enable-bar-heading-text**/
body.enable-bar-heading-text .floating-toc-div:not(:is(.hover,.pin)) .heading-list-item:is(.located,.focus)
{
width:unset;
}
body.enable-bar-heading-text .floating-toc-div:not(:is(.hover,.pin)) .heading-list-item:is(.located,.focus) .text-wrap
{
opacity: 1;
margin-left: 10px;
}
body.enable-bar-heading-text .floating-toc-div:not(:is(.hover,.pin)) .heading-list-item:is(.located,.focus) .text-wrap .text
{
max-width: 12rem;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
color: var(--text-normal);
}
body.enable-bar-heading-text .floating-toc-div:not(:is(.hover,.pin)) .heading-list-item:is(.located,.focus) .text-wrap .text::before
{
content: '';
margin-left: 0.2rem;
}
.heading-list-item.focus .text-wrap .text {
font-weight:bolder;
}
/******/
.heading-list-item:not(.focus,.located) .text-wrap .text {
font-weight:normal;
}
.workspace-tabs.mod-stacked .workspace-tab-header:not(.is-active) + .workspace-leaf .floating-toc-div
{
opacity: 0;
}
/******/
/**第二个tabs右侧*/
.workspace-tabs~.workspace-tabs.mod-top-right-space .floating-toc-div.floating-both~.markdown-reading-view .markdown-preview-view {
padding-right: 2rem;
}
.workspace-tabs~.workspace-tabs.mod-top-right-space .floating-toc-div.floating-both .floating-toc {
right: calc(0.5rem + var(--floating-toc-position));
align-items: flex-end;
left: unset;
}
.workspace-tabs~.workspace-tabs.mod-top-right-space .floating-toc-div.floating-both .heading-list-item {
text-align: right;
}
.workspace-tabs~.workspace-tabs.mod-top-right-space .floating-toc-div.floating-both .heading-list-item .line-wrap {
right: 0.5rem;
}
.workspace-tabs~.workspace-tabs.mod-top-right-space .floating-toc-div.floating-both .heading-list-item[data-level="1"] .line-wrap {
padding-left: 0.5rem;
}
.workspace-tabs~.workspace-tabs.mod-top-right-space .floating-toc-div.floating-both .heading-list-item[data-level="2"] .line-wrap {
padding-left: 0.7rem;
}
.workspace-tabs~.workspace-tabs.mod-top-right-space .floating-toc-div.floating-both .heading-list-item[data-level="3"] .line-wrap {
padding-left: 0.9rem;
}
.workspace-tabs~.workspace-tabs.mod-top-right-space .floating-toc-div.floating-both .heading-list-item[data-level="4"] .line-wrap {
padding-left: 1.1rem;
}
.workspace-tabs~.workspace-tabs.mod-top-right-space .floating-toc-div.floating-both .heading-list-item[data-level="5"] .line-wrap {
padding-left: 1.3rem;
}
.workspace-tabs~.workspace-tabs.mod-top-right-space .floating-toc-div.floating-both .heading-list-item[data-level="6"] .line-wrap {
padding-left: 1.5rem;
}
.workspace-tabs~.workspace-tabs.mod-top-right-space .floating-toc-div.floating-both.pin .floating-toc .heading-list-item>.text-wrap,
.workspace-tabs~.workspace-tabs.mod-top-right-space .floating-toc-div.floating-both .floating-toc:hover .heading-list-item>.text-wrap {
justify-content: flex-end;
text-align: right;
display: inline-flex;
}
.workspace-split.mod-vertical .workspace-tabs ~.workspace-tabs
.floating-toc-div.floating-both~.markdown-reading-view .markdown-preview-view {
padding-right: 2rem;
}
/**垂直分割后第二个tabs*/
.workspace-split.mod-vertical > .workspace-tabs ~.workspace-tabs .floating-toc-div.floating-both + .markdown-source-view>.cm-editor {
padding-right: 2rem;
padding-left: 0;