-
Notifications
You must be signed in to change notification settings - Fork 13
/
theme.css
3136 lines (2677 loc) · 92.8 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
/*
--------------------------- --------------------------- ---------------------------
--------------------------- --------------------------- ---------------------------
Mado Miniflow - Obsidian Theme by hydescarf
https://github.com/hydescarf/Obsidian-Theme-Mado-Miniflow
--------------------------- --------------------------- ---------------------------
--------------------------- --------------------------- ---------------------------
*/
body{
/* --accent-h: 210; */
/* --accent-s: 93%; */
/* --accent-l: 62%; */
--accent-h: 254;
--accent-s: 80%;
--accent-l: 68%;
--bgcolor-h:204;
--bgcolor-s:45%;
--bgcolor-l:97%;
--titlebar-background:var(--background-secondary);
--titlebar-background-focused:var(--background-secondary);
--background-modifier-hover:var(--color-base-hover);
--bold-weight:var(--font-bold);
--italic-color:var(--text-muted);
--code-normal:var(--text-muted);
--blockquote-color:var(--color-muted);
--background-primary:var(--color-base-00);
--background-secondary:var(--color-base-20);
--checklist-done-color:var(--color-base-50);
--icon-m:20px;
--icon-l:20px;
--divider-width:4px;
--callout-padding:0px;
--callout-title-padding:11px;
--callout-content-padding:0 11px 0 27px;
--embed-padding:13px 23px;
--list-indent:37px;
--header-height:43px;
--tab-stacked-header-width:53px;
/* custom */
--border:1px solid var(--tab-outline-color);
--button-radius:4px;
--panel-radius:8px;
--window-radius:23px;
--button-padding-icon:7px;
--button-padding-long:7px 15px;
--background-fourth:var(--color-base-00-0);
--background-fifth:var(--color-base-20-0);
--panel-shadow:0 1px 3px var(--color-base-shadow);
--panel-shadow-hover:0 3px 5px var(--color-base-shadow-hover);
--window-shadow:0 0 9px var(--color-base-shadow-hover);
--window-shadow-left:-4px 0 5px var(--color-base-shadow-hover);
--window-shadow-right:4px 0 5px var(--color-base-shadow-hover);
--sidebar-size-left:270px;
--sidebar-size-right:270px;
--color-strikethrough:var(--text-faint);
--italic-color:var(--color-italic);
--inline-code-color:var(--color-red);
}
body.is-translucent{
--background-primary:var(--color-base-00-trans);
--background-secondary:var(--color-base-20-trans);
--background-fourth:var(--color-base-00-0-trans);
}
body.toggle-tab-height{
--header-height:35px;
}
.theme-light,
.is-mobile.theme-light,
.is-tablet.theme-light{
--color-base-00:hsla(calc(var(--bgcolor-h) - 0), calc(var(--bgcolor-s) - 0%), calc(var(--bgcolor-l) - 0%), 1);
--color-base-10:hsla(calc(var(--bgcolor-h) + 6), calc(var(--bgcolor-s) - 6%), calc(var(--bgcolor-l) - 4%), 1);
--color-base-05:hsla(calc(var(--bgcolor-h) + 3), calc(var(--bgcolor-s) - 28%), calc(var(--bgcolor-l) - 7%), 1);
--color-base-20:hsla(calc(var(--bgcolor-h) + 9), calc(var(--bgcolor-s) - 0%), calc(var(--bgcolor-l) - 2%), 1);
--color-base-00-trans:hsla(calc(var(--bgcolor-h) - 0), calc(var(--bgcolor-s) - 0%), calc(var(--bgcolor-l) - 0%), 0.5); /*for transparency background*/
--color-base-20-trans:hsla(calc(var(--bgcolor-h) + 6), calc(var(--bgcolor-s) - 8%), calc(var(--bgcolor-l) - 2%), 0.5);
--color-base-00-0:hsla(calc(var(--bgcolor-h) - 27), calc(var(--bgcolor-s) - 12%), calc(var(--bgcolor-l) + 2%), 1); /* very white */
--color-base-20-0:hsla(calc(var(--bgcolor-h) + 3), calc(var(--bgcolor-s) - 27%), calc(var(--bgcolor-l) - 7%), 0.1); /* hovered version for above */
--color-base-00-0-trans:hsla(calc(var(--bgcolor-h) - 20), calc(var(--bgcolor-s) - 12%), calc(var(--bgcolor-l) + 2%), 0.5);
--color-base-shadow:hsla(212, 17%, 80%, 0.2); /* shadow */
--color-base-shadow-hover:hsla(212, 17%, 80%, 0.3); /* shadow hover*/
--color-base-hover:var(--color-base-shadow-hover); /* hover*/
--color-base-35:hsla(210, 15%, 73%, 1);
--color-base-50:hsla(217, 15%, 73%, 1);
--color-base-70:hsla(218, 19%, 39%, 1);
--color-base-100:hsla(0, 0%, 13%, 1); /* text-normal color */
--color-accent-1: hsl(calc(var(--accent-h) - 0), calc(var(--accent-s) - 0%), calc(var(--accent-l) + 10%));
--color-accent-2: hsl(calc(var(--accent-h) - 0), calc(var(--accent-s) - 0%), calc(var(--accent-l) - 5%));
--color-red:hsla(365, 85%, 55%, 1);
--color-muted:var(--color-base-70);
--color-italic:hsla(215, 43%, 63%, 1);
--color-highlight:var(--text-normal); /* for highlight text color */
}
.theme-dark,
.is-mobile.theme-dark,
.is-tablet.theme-dark{
--bgcolor-h:215;
--bgcolor-s:17%;
--bgcolor-l:19%;
--color-base-00:hsla(calc(var(--bgcolor-h) - 0), calc(var(--bgcolor-s) - 0%), calc(var(--bgcolor-l) - 0%), 1);
--color-base-10:hsla(calc(var(--bgcolor-h) - 1), calc(var(--bgcolor-s) + 7%), calc(var(--bgcolor-l) - 4%), 1);
--color-base-05:hsla(calc(var(--bgcolor-h) - 8), calc(var(--bgcolor-s) - 0%), calc(var(--bgcolor-l) - 9%), 0.5);
--color-base-20:hsla(calc(var(--bgcolor-h) - 1), calc(var(--bgcolor-s) + 7%), calc(var(--bgcolor-l) - 4%), 1);
--color-base-00-trans:hsla(calc(var(--bgcolor-h) - 0), calc(var(--bgcolor-s) - 0%), calc(var(--bgcolor-l) - 0%), 0.5); /*for transparency background*/
--color-base-20-trans:hsla(calc(var(--bgcolor-h) - 1), calc(var(--bgcolor-s) + 7%), calc(var(--bgcolor-l) - 4%), 0.5);
--color-base-00-0:hsla(calc(var(--bgcolor-h) - 0), calc(var(--bgcolor-s) - 0%), calc(var(--bgcolor-l) + 3%), 0.9); /* very white */
--color-base-20-0:hsla(calc(var(--bgcolor-h) - 0), calc(var(--bgcolor-s) - 7%), calc(var(--bgcolor-l) - 9%), 0.1); /* hovered version for above */
--color-base-00-0-trans:hsla(calc(var(--bgcolor-h) - 0), calc(var(--bgcolor-s) - 0%), calc(var(--bgcolor-l) + 3%), 0.5);
--color-base-shadow:hsla(207, 10%, 10%, 0.1); /* shadow */
--color-base-shadow-hover:hsla(212, 17%, 0%, 0.3); /* shadow hover*/
--color-base-hover:var(--color-base-05); /* hover*/
--color-base-30:hsla(215, 22%, 13%, 1);
--color-base-35:hsla(210, 15%, 33%, 1);
--color-base-50:hsla(217, 18%, 50%, 0.7);
--color-base-70:hsl(218, 17%, 58%); /* text-muted */
--color-base-100:hsla(0, 0%, 73%, 1); /* text-normal color */
--color-accent: hsl(calc(var(--accent-h) - 0), calc(var(--accent-s) + 13%), calc(var(--accent-l) + 3%));
--color-accent-1: hsl(calc(var(--accent-h) - 3), calc(var(--accent-s) - 13%), calc(var(--accent-l) - 3%));
--color-accent-2: hsl(calc(var(--accent-h) - 0), calc(var(--accent-s) + 7%), calc(var(--accent-l) + 2%));
--color-red:hsla(365, 90%, 65%, 1);
--color-muted:hsl(218, 17%, 62%);
--color-italic:hsla(215, 33%, 60%, 1);
--color-highlight:hsla(45, 63%, 63%, 1); /* for highlight text color */
--text-highlight-bg:hsla(45, 53%, 53%, 1); /* for highlight text underline color */
}
.theme-dark:is(.THT-background,.THT-underline-light){
--color-highlight:hsla(45, 53%, 13%, 1);
}
.theme-light:is(.THT-underline,.THT-underline-light){
--color-highlight:var(--color-yellow);
--text-highlight-bg:hsla(45, 53%, 73%, 1);
}
body.theme-daisy-blue{
--accent-h: 210;
--accent-s: 93%;
--accent-l: 62%;
}
body.theme-red-sky{
--accent-h: 0;
--accent-s: 88%;
--accent-l: 57%;
}
body.theme-red-sky.theme-dark{
--accent-h: 0;
--accent-s: 73%;
--accent-l: 57%;
}
body.theme-violette{
--accent-h: 254;
--accent-s: 80%;
--accent-l: 68%;
}
body.theme-violette.theme-dark{
--accent-h: 255;
--accent-s: 73%;
--accent-l: 68%;
}
body.theme-greenery{
--accent-h: 125;
--accent-s: 83%;
--accent-l: 43%;
}
body.theme-greenery.theme-dark{
--accent-h: 125;
--accent-s: 81%;
--accent-l: 38%;
}
body.theme-yellowish{
--accent-h: 43;
--accent-s: 76%;
--accent-l: 50%;
}
body.theme-yellowish.theme-dark{
--accent-h: 47;
--accent-s: 85%;
--accent-l: 50%;
}
body.theme-orange-jist{
--accent-h: 23;
--accent-s: 100%;
--accent-l: 61%;
}
body.theme-deep-blue{
--accent-h: 229;
--accent-s: 83%;
--accent-l: 53%;
}
body.theme-deep-blue.theme-dark{
--accent-h: 229;
--accent-s: 78%;
--accent-l: 63%;
}
body.theme-tea-teal{
--accent-h: 195;
--accent-s: 63%;
--accent-l: 52%;
}
body.theme-magenta-pink{
--accent-h: 302;
--accent-s: 70%;
--accent-l: 60%;
}
body.theme-grayscale{
--accent-h: 234;
--accent-s: 15%;
--accent-l: 45%;
}
body.theme-grayscale.theme-dark{
--accent-h: 224;
--accent-s: 12%;
--accent-l: 63%;
}
body.toggle-tab-height-stacked{
--tab-stacked-header-width:33px;
}
/*
--------------------------- ---------------------------
--------------------------- ---------------------------
Mado Layout Basic Styling
--------------------------- ---------------------------
--------------------------- ---------------------------
*/
body, body.is-translucent{
background-color:var(--background-secondary);
}
/* Background Wave design */
body:not(.toggle-wave-background):before{
content:"";
position:absolute;
width:100%;
height:100%;
-webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none" xml:space="preserve"><path opacity=".1" d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z"/><path opacity=".2" d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z"/><path opacity=".4" d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z"/></svg>');
-webkit-mask-size:300% 300px;
-webkit-mask-position:88.5% -73px;
-webkit-mask-repeat:no-repeat;
background-color:var(--color-accent-2);
transform:rotateZ(180deg);
opacity:0.5;
}
/* remove padding-top when fullscreen in obsidian-ver titlebar */
body.is-frameless:not(.is-hidden-frameless).is-fullscreen{
padding-top:0;
}
/* hidden scrollbar */
body:not(.is-mobile):is(:not(.css-settings-manager),.toggle-scrollbar) ::-webkit-scrollbar-thumb{
visibility:hidden;
}
body ::-webkit-scrollbar-thumb:hover:hover{
visibility:initial;
}
/* Switching overflow:auto to overlay */
.workspace .mod-root .workspace-tabs.mod-stacked .workspace-tab-container,
body:not(.is-mobile):is(:not(.css-settings-manager),.toggle-scrollbar-overlay) :is(.callout-content,.markdown-rendered pre,.markdown-source-view.mod-cm6 .math-block > mjx-container){
overflow-x:overlay;
}
body:not(.is-mobile):is(:not(.css-settings-manager),.toggle-scrollbar-overlay) :is(.cm-scroller,.workspace-leaf-content .view-content,.backlink-pane, .outgoing-link-pane,.item-list,.search-result-container.mod-global-search,.open-vault-options,.recent-vaults-list,.workspace-leaf-content .view-content:not(:has(.canvas-wrapper)) .markdown-preview-view,,.community-modal-info,.prompt-results,.suggestion,.vertical-tab-content,.pdf-scroll-container,.nav-files-container){
overflow-y:overlay;
}
/* Switching overflow:scroll to overlay */
body:not(.is-mobile):is(:not(.css-settings-manager),.toggle-scrollbar-overlay) .CodeMirror-hscrollbar{
overflow-x:overlay;
}
body:not(.is-mobile):is(:not(.css-settings-manager),.toggle-scrollbar-overlay) .CodeMirror-vscrollbar{
overflow-y:overlay;
}
/* remove backgrounds for wave design background */
.workspace,
.workspace-tabs .workspace-leaf,
.workspace-ribbon,
.workspace-split,
.workspace-split .view-content,
.workspace-split.mod-root,
body.is-hidden-frameless:not(.is-fullscreen):is(.is-focused,) .titlebar-button-container:is(.mod-right,.mod-left),
.workspace-tab-header-container{ /* remove background as parent will be the one to have it instead */
background-color:initial;
background:none;
}
/* remove background to adapt translucent mode */
.is-translucent:not(.is-fullscreen) .titlebar,
.is-translucent.is-hidden-frameless:not(.is-fullscreen) .titlebar-button-container.mod-right{
background:none;
}
/* remove distinguishing-borders on sidebars and headers */
.workspace-ribbon,
.workspace-tab-header-container{
border:none;
}
/* hide handle visibility when not hovered */
.workspace-leaf-resize-handle{
border-color:transparent;
}
/* Toggle visibility on Sidebar Tab Icons */
/* and on Left Sidebar (File Explorer) */
/* and on Toggle Sidebar (3 rows) */
/* and on Ribbon Icons */
/* and on Main Note Tabs */
/* and on Note Title Header Bar */
/* and on Titlebar (Window Frame) */
body:not(.is-mobile):is(:not(.css-settings-manager),.toggle-sidebar-buttons) .workspace-split.mod-horizontal:is(.mod-left-split, .mod-right-split) .workspace-tab-header-container-inner,
body:not(.is-mobile):is(:not(.css-settings-manager),.toggle-explorer-buttons) .workspace-leaf-content[data-type="file-explorer"] .nav-buttons-container,
body:not(.is-mobile):not(.css-settings-manager) .sidebar-toggle-button:is(.mod-left, .mod-right),
body:not(.is-mobile).toggle-sidebar-toggle-left .sidebar-toggle-button.mod-left,
body:not(.is-mobile).toggle-sidebar-toggle-right .sidebar-toggle-button.mod-right,
body:not(.is-mobile):is(:not(.css-settings-manager),.toggle-side-ribbons) :is(.side-dock-actions, .side-dock-settings),
body:not(.is-mobile).toggle-tab-section .workspace-split.mod-vertical.mod-root :is(.workspace-tabs:not(.mod-stacked) .workspace-tab-header, .workspace-tab-header-new-tab, .workspace-tab-header-tab-list),
body.toggle-note-header .workspace-split.mod-vertical.mod-root .view-header,
body:not(.is-mobile):is(:not(.css-settings-manager),.toggle-titlebar-buttons) .titlebar{
opacity:0;
transition:opacity 0.15s;
}
body .workspace-split.mod-horizontal:is(.mod-left-split, .mod-right-split) .workspace-tab-header-container:hover .workspace-tab-header-container-inner,
body .workspace-leaf-content[data-type="file-explorer"] .nav-header:hover .nav-buttons-container,
body .workspace-ribbon.side-dock-ribbon.mod-left:hover :is(.sidebar-toggle-button.mod-left, .side-dock-actions,.side-dock-settings),
body .workspace-split.mod-vertical.mod-root .workspace-tab-header-container:hover:hover:hover:hover div,
body .sidebar-toggle-button:is(.mod-left, .mod-right):hover:hover,
body .titlebar:hover:hover,
body .workspace-split.mod-vertical.mod-root .view-header:hover,
body.toggle-note-header .workspace-split.mod-vertical.mod-root .view-header:focus-within,
body.is-grabbing.is-grabbing .app-container:not(.no-transition) .workspace-split .workspace-tabs .workspace-tab-header-container .workspace-tab-header-container-inner,
body.is-grabbing.is-grabbing.is-grabbing.is-grabbing.is-grabbing .app-container:not(.no-transition) .workspace-split .workspace-tabs .workspace-tab-header-container{
opacity:1;
}
/* remove border-bottom below left-sidebar-toggle button */
.workspace-ribbon.mod-left:before{
border:none;
}
/* Make spacing to match collapsed left-ribbon-dock */
body:not(.is-mobile) .workspace:not(.is-right-sidedock-open) .workspace-split.mod-vertical.mod-root{
padding-right:var(--ribbon-width);
}
/* Make spacing for left side to match the right spacing during pop-out window mode */
body:not(.is-mobile).is-popout-window .workspace-split.mod-vertical.mod-root{
padding-left:var(--ribbon-width);
}
.is-mobilebody, .is-mobile .app-container,
.is-mobile .horizontal-main-container,
.workspace-ribbon.mod-left.is-collapsed{
background:none;
}
/* Fixed width for left and right sidebar */
:is(.mod-left-split, .mod-right-split) .workspace-leaf-content{
display:flex;
flex-direction:column;
align-self:end;
}
.mod-right-split .workspace-leaf-content{
align-self:start;
}
body:is(:not(.css-settings-manager),.toggle-sidebar-fixed-left) .mod-left-split .workspace-leaf-content{
max-width:var(--sidebar-size-left);
}
body:is(:not(.css-settings-manager),.toggle-sidebar-fixed-right) .mod-right-split .workspace-leaf-content{
max-width:var(--sidebar-size-right);
}
body:is(.toggle-sidebar-fixed-left-auto) .mod-left-split .workspace-leaf-content{
min-width:var(--sidebar-size-left);
max-width:fit-content;
}
body:is(.toggle-sidebar-fixed-right-auto) .mod-right-split .workspace-leaf-content{
min-width:var(--sidebar-size-right);
max-width:fit-content;
}
body:is(:not(.css-settings-manager),.toggle-sidebar-right-top) .workspace-split.mod-horizontal.mod-right-split .workspace-tabs.mod-top.mod-top-right-space .workspace-tab-container,
body.toggle-sidebar-left-top .workspace-split.mod-horizontal.mod-left-split .workspace-tabs.mod-top.mod-top-left-space .workspace-tab-container{
margin-top:37px;
}
.workspace-split.mod-horizontal.mod-left-split{
padding-right:23px;
}
.workspace-split.mod-horizontal.mod-right-split{
padding-left:23px;
}
/* Hide Vault Title */
body:is(:not(.css-settings-manager),.toggle-vault-title) .nav-folder-title[data-path="/"]{
display:none;
}
.nav-folder-title[data-path="/"]{
margin-bottom:23px;
}
/* Vault hidden by default, and show up when hovered at the very bottom part of the sidebar */
body:not(.is-mobile) .workspace-split.mod-left-split .workspace-sidedock-vault-profile{
margin-bottom:-40px!important;
opacity:0;
transition:margin 0.2s, opacity 0.1s;
padding:5px;
width: calc(100% + 23px)!important;
}
body:not(.is-mobile) .workspace-split.mod-left-split .workspace-sidedock-vault-profile:hover{
margin-bottom:0!important;
opacity:1;
}
body:not(.is-mobile) .workspace-split.mod-left-split .workspace-drawer-vault-switcher{
padding:0;
}
body:not(.is-mobile) .workspace-split.mod-left-split .workspace-drawer-vault-switcher-icon{
padding:7px 3px 7px 7px;
}
/*
--------------------------- ---------------------------
--------------------------- ---------------------------
Main Note Pane Desgin
--------------------------- ---------------------------
--------------------------- ---------------------------
*/
.workspace-tab-header-container{
padding:0;
}
/* Extend margin beneath it */
.workspace-split.mod-vertical.mod-root .workspace-tab-header-container{
margin:0 0 11px 0;
}
body.toggle-tab-height .workspace-split.mod-vertical.mod-root .workspace-tab-header-container{
margin:0 0 5px 0;
}
/* Remove top-margin and increase gap in between tabs */
.workspace-split.mod-vertical.mod-root .workspace-tab-header-container-inner{
margin:0 -5px;
gap:0;
padding-top:0;
}
/* Remove tab siblings border-radius design */
.workspace-split.mod-vertical.mod-root .workspace-tab-header:before,
.workspace-split.mod-vertical.mod-root .workspace-tab-header:after,
.workspace .mod-root .workspace-tab-header-inner::after{ /* Remove border-right on tabs that are not active */
display:none;
}
body.is-translucent .workspace-split.mod-vertical.mod-root .workspace-tabs:not(.mod-stacked) .workspace-leaf{
background:var(--background-primary)!important;
}
/* Tab design */
.workspace-split.mod-vertical.mod-root .workspace-tab-header{
padding:0;
box-shadow:none;
margin-top:0;
background:none;
padding:5px 3px;
}
.workspace-split.mod-vertical.mod-root .workspace-tabs:not(.mod-stacked) .workspace-tab-header-inner{
padding:29px 11px 20px;
border-radius:6px;
border:1px solid transparent;
box-shadow:none;
margin-top:-13px;
/* background:var(--background-secondary); */
}
.workspace-split.mod-vertical.mod-root .workspace-tabs:not(.mod-stacked) .workspace-tab-header.is-active .workspace-tab-header-inner{
background:var(--background-primary);
border:var(--border);
box-shadow:var(--panel-shadow);
}
.workspace-split.mod-vertical.mod-root .workspace-tabs:not(.mod-stacked) .workspace-tab-header:not(.is-active):hover .workspace-tab-header-inner{
background:var(--background-modifier-hover);
}
/* Remove small space on the tab header, as its 100% is based on parent's width+padding-right when right sidebar is collapsed */
body:not(.is-mobile):not(.is-fullscreen) .workspace:not(.is-right-sidedock-open) .mod-top-right-space .workspace-tab-header-container{
padding-right:calc(var(--frame-right-space) - var(--ribbon-width));
}
body:not(.is-mobile):not(.is-fullscreen) .workspace:not(.is-right-sidedock-open) .workspace-tabs.mod-top-right-space .workspace-tab-header-container:after{
width:calc(var(--frame-right-space) - var(--ribbon-width));
}
body:not(.is-mobile).is-fullscreen .workspace:not(.is-right-sidedock-open) .mod-top-right-space .workspace-tab-header-container{
margin-right:calc(1px - var(--ribbon-width) + 4px);
}
/* remove margin-top of tab headers that block the possibilities to implement pseudo-clickable area */
.mod-left-split .workspace-tab-header-container-inner,
.mod-right-split .workspace-tab-header-container-inner{
margin-top:0;
padding:0;
gap:0;
}
/* Prevent sticking-to-top design during obsidian window frame mode */
/* 2nd rows are for independent tabs that are not stick to the top */
/* 3rd row pseudo-clickable area during different tab design */
body.is-frameless:not(.is-hidden-frameless):not(.is-fullscreen) .workspace-split.mod-vertical.mod-root .workspace-tabs.mod-top .workspace-tab-header-container,
.workspace-split.mod-vertical.mod-root .workspace-tabs:not(.mod-top) .workspace-tab-header-container,
body.toggle-tab-design .workspace-split.mod-vertical.mod-root .workspace-tabs .workspace-tab-header-container{
height:auto;
margin-bottom:5px;
}
body.is-frameless:not(.is-hidden-frameless):not(.is-fullscreen) .workspace-split.mod-vertical.mod-root .workspace-tabs.mod-top .workspace-tab-header,
.workspace-split.mod-vertical.mod-root .workspace-tabs:not(.mod-top) .workspace-tab-header,
body.toggle-tab-design .workspace-split.mod-vertical.mod-root .workspace-tabs .workspace-tab-header{
padding-block:5px;
}
body.is-frameless:not(.is-hidden-frameless):not(.is-fullscreen) .workspace-split.mod-vertical.mod-root .workspace-tabs.mod-top .workspace-tab-header-inner,
.workspace-split.mod-vertical.mod-root .workspace-tabs:not(.mod-top) .workspace-tab-header-inner,
body.toggle-tab-design .workspace-split.mod-vertical.mod-root .workspace-tabs .workspace-tab-header-inner{
padding:4px 11px;
margin-top:2px;
}
/* when header tabs are switched to compact size */
body.is-frameless:not(.is-hidden-frameless):not(.is-fullscreen).toggle-tab-height .workspace-split.mod-vertical.mod-root .workspace-tabs.mod-top .workspace-tab-header-inner,
body.toggle-tab-height .workspace-split.mod-vertical.mod-root .workspace-tabs:not(.mod-top) .workspace-tab-header-inner,
body.toggle-tab-design.toggle-tab-height .workspace-split.mod-vertical.mod-root .workspace-tabs .workspace-tab-header-inner{
padding:1px 11px;
}
body.is-frameless:not(.is-hidden-frameless):not(.is-fullscreen).toggle-tab-height .workspace-split.mod-vertical.mod-root .workspace-tabs.mod-top .workspace-tab-header-inner,
body.toggle-tab-height .workspace-split.mod-vertical.mod-root .workspace-tabs:not(.mod-top) .workspace-tab-header-inner,
body.toggle-tab-design.toggle-tab-height .workspace-split.mod-vertical.mod-root .workspace-tabs .workspace-tab-header-inner{
padding:1px 11px;
}
body.toggle-tab-height .workspace-split.mod-vertical.mod-root .workspace-tabs .workspace-tab-header-inner{
padding:23px 11px 17px;
}
body.toggle-tab-height .workspace-split svg.svg-icon{
--icon-size:var(--icon-s);
}
body.toggle-tab-height .workspace-split.mod-vertical.mod-root .workspace-tab-header svg.svg-icon{
--icon-size:var(--icon-xs);
}
body.toggle-tab-height .workspace-split.workspace-horizontal:is(.mod-left-split,.mod-right-split) .sidebar-toggle-button,
body.toggle-tab-height .workspace-ribbon .sidebar-toggle-button{
height:var(--header-height);
--icon-size:var(--icon-s);
}
/* match vertical align for alternative tab design and compact mode */
body.is-frameless:not(.is-hidden-frameless):not(.is-fullscreen) .workspace-split.mod-vertical.mod-root .workspace-tabs.mod-top .workspace-tab-header-container :is(.workspace-tab-header-new-tab, .workspace-tab-header-tab-list, .sidebar-toggle-button) .clickable-icon,
body.toggle-tab-design .workspace-split.mod-vertical.mod-root .workspace-tab-header-container :is(.workspace-tab-header-new-tab, .workspace-tab-header-tab-list, .sidebar-toggle-button) .clickable-icon,
body:not(.toggle-tab-design) .workspace-split.mod-vertical.mod-root .workspace-tabs:not(.mod-top) .workspace-tab-header-container :is(.workspace-tab-header-new-tab, .workspace-tab-header-tab-list, .sidebar-toggle-button) .clickable-icon{
margin-top:4px;
}
body.toggle-tab-design:not(.toggle-tag-height) .workspace-split.mod-vertical.mod-root .workspace-tab-header-container :is(.workspace-tab-header-new-tab, .workspace-tab-header-tab-list, .sidebar-toggle-button) .clickable-icon:before{
height:calc(var(--ribbon-width) + 6px);
margin-top:-6px;
}
/* Main Note Headers spacing */
.workspace-split.mod-vertical.mod-root .view-header{
margin-block:7px;
background:none;
}
/* remove title fading element */
.view-header-title-container:not(.mod-at-end):after{
display:none;
}
/* increase Main Note Headers icon size */
.workspace-split.mod-vertical.mod-root .view-header svg{
--icon-size:var(--icon-l);
}
/* increase Main Note Headers breadcrumb button size */
.view-header-title-parent .view-header-breadcrumb{
padding:3px 7px;
}
/* Stacked Mode styling */
body .workspace-split.mod-vertical.mod-root .workspace-tabs.mod-stacked .workspace-tab-header-container>.workspace-tab-header-new-tab{
order:1;
margin-right:var(--size-4-1);
}
body .workspace-split.mod-vertical.mod-root .workspace-tabs.mod-stacked .workspace-tab-header-container>.workspace-tab-header-tab-list{
order:2;
}
body .workspace-split.mod-vertical.mod-root .workspace-tabs.mod-stacked .workspace-tab-header-container>.sidebar-toggle-button.mod-right{
order:3;
}
/* overflow for visible shadow, though not working nicely */
.workspace .mod-root .workspace-tabs.mod-stacked .workspace-tab-container{
/* overflow: visible; */
}
.workspace-split.mod-vertical.mod-root .workspace-tabs.mod-stacked .workspace-tab-header{
margin:0;
padding-top:7px;
border-top-left-radius:var(--window-radius);
/* border-bottom-left-radius:var(--window-radius); */
box-shadow:none;
border-top:1px solid var(--color-accent-1);
border-left:1px solid var(--color-accent-1);
border-right:none;
border-bottom:none;
/* box-shadow:var(--window-shadow-left); */
}
body.toggle-note-radius .workspace-split.mod-vertical.mod-root .workspace-tabs.mod-stacked .workspace-tab-header{
border-bottom-left-radius:var(--window-radius);
}
.workspace-split.mod-vertical.mod-root .workspace-tabs.mod-stacked .workspace-tab-header+.workspace-leaf{
border-top-left-radius:0;
/* border-bottom-right-radius:var(--window-radius); */
border-top:var(--border);
border-image:linear-gradient(90deg, var(--color-accent-1) 0, var(--tab-outline-color) 60%, transparent 90%) 1;
/* box-shadow:var(--window-shadow-right); */
box-shadow:none;
border-bottom-left-radius:0;
}
/* Disable transparency on main note during translucent mode due to unreadable issue */
body.is-translucent .workspace-split.mod-vertical.mod-root .workspace-tabs.mod-stacked :is(.workspace-leaf, .workspace-tab-header){
transition:background 0.2s;
background:var(--background-primary)!important;
}
body.is-translucent .workspace-split.mod-vertical.mod-root .workspace-tabs.mod-stacked :is(.workspace-tab-header.is-active+.workspace-leaf, .workspace-tab-header.is-active){
background:var(--color-base-00)!important;
}
/* Border radius on Pane design, however, not adjusted for multiple panes */
body:not(.is-mobile) .workspace-split.mod-vertical.mod-root .workspace-leaf{
border-radius:var(--window-radius);
border-bottom-right-radius:0;
border-bottom-left-radius:0;
box-shadow:var(--window-shadow);
}
body:not(.is-mobile).toggle-note-radius .workspace-split.mod-vertical.mod-root{
padding-bottom:23px;
}
body:not(.is-mobile).toggle-note-radius .workspace-split.mod-vertical.mod-root .workspace-leaf{
border-radius:var(--window-radius);
}
/* Overflow to allow shadow flowing out */
body:not(.is-mobile) .workspace-tabs,
body:not(.is-mobile) .workspace-tabs .workspace-tab-container{
overflow:visible;
}
/* Minimum padding to push down cut-off scrollbars when show-tab-title-bar is disabled */
body:not(.show-view-header) .workspace-split.mod-vertical.mod-root .workspace-leaf{
padding-top:23px;
background-color:var(--background-primary);
}
body.is-mobile .workspace-split.mod-vertical.mod-root .workspace-leaf{
padding-top:0;
}
/* Adjust mobile header position */
body.is-phone .view-header, .show-view-header .view-header{
align-items:center;
}
.is-mobile .view-actions{
margin-right:-3px;
}
/* Gap inbetween panes */
.workspace-split.mod-vertical.mod-root,
.workspace-split.mod-vertical.mod-root .workspace-split:not(.mod-horizontal){
gap:23px;
}
/* Main Note padding space, only in middle pane, not sidebars*/
.workspace-split.mod-vertical.mod-root .markdown-preview-view{
padding-inline:53px;
}
.workspace-split.mod-vertical.mod-root .markdown-source-view .cm-content{
padding-inline:13px;
}
/* Context menu styling */
.menu{
padding:0;
}
.menu-item{
padding:var(--button-padding-long);
}
body.is-translucent .menu{
background:var(--color-base-00);
}
/* Hide status bar */
body:is(:not(.css-settings-manager),.toggle-status-bar) .status-bar{
bottom:-50px;
}
/* Show Sync Button Only */
body.toggle-sync-button.toggle-status-bar .status-bar-item.plugin-sync{
bottom:54px;
right:5px;
position:absolute;
padding:var(--button-padding-icon);
}
body.toggle-sync-button.toggle-status-bar .status-bar-item.plugin-sync:hover{
filter:brightness(0.8);
}
body.toggle-sync-button.toggle-status-bar .status-bar-item .svg-icon{
--icon-size:var(--icon-l);
}
/* Adjust button spacing on search result items */
.search-result-hover-button{
padding-block:0;
}
.search-result-hover-button.mod-top {
top:0;
}
.search-result-hover-button.mod-bottom {
bottom:0;
}
/* Setting Modal */
.vertical-tab-header{
padding-inline:0;
}
.vertical-tab-header-group-title{
color:var(--color-accent-2);
}
.vertical-tab-header-group{
padding-inline:var(--size-4-3);
}
.vertical-tab-header-group:not(:last-child){
border-bottom:var(--border);
margin-bottom:23px;
}
body.is-translucent .modal{
background:var(--color-base-00);
}
/*
--------------------------- ---------------------------
--------------------------- ---------------------------
Animation
--------------------------- ---------------------------
--------------------------- ---------------------------
*/
.modal{
border-radius:var(--window-radius);
animation:0.2s popup forwards;
}
@keyframes popup{
0% { transform:scale(70%); opacity:0; }
15% { transform:scale(80%); opacity:0.1; }
35% { transform:scale(102%); }
45% { opacity:0.3; }
65% { opacity:0.7; }
100% { transform:scale(100%); opacity:1; }
}
body:is(:not(.css-settings-manager), .toggle-note-animation) .workspace-split.mod-vertical.mod-root .workspace-tabs:not(.mod-stacked) .workspace-leaf-content:not([data-type="pdf"]) .view-content{
animation:0.2s slide-up forwards;
}
@keyframes slide-up{
0% { transform:translateY(0%); opacity:0; }
15% { transform:translateY(5px); opacity:0; }
25% { transform:translateY(10px); }
45% { opacity:0.5; }
65% { opacity:0.7; }
100% { transform:translateY(0%); opacity:1; }
}
:is(.nav-folder, .nav-file) :is(.nav-folder-title, .nav-file-title).is-active svg{
animation:0.3s bounceback;
}
@keyframes bounceback{
0% { transform:translateY(0%); }
60% { transform:translateY(10%); }
100% { transform:translateY(0%); }
}
/*
--------------------------- ---------------------------
--------------------------- ---------------------------
Icon Button Style
--------------------------- ---------------------------
--------------------------- ---------------------------
*/
/* tab close button */
.workspace .mod-root .workspace-tab-header .workspace-tab-header-inner-close-button{
padding:var(--button-padding-icon);
right:unset;
margin-right:-4px;
}
/* remove margin during stacked mode */
.workspace .mod-root .workspace-tabs.mod-stacked .workspace-tab-header-inner-close-button{
margin-right:0;
}
/* easier hover adaption color */
:is(.workspace-tab-header-status-icon, .workspace-tab-header-inner-close-button, .clickable-icon):hover{
background-color:var(--background-modifier-hover);
filter:brightness(0.8);
}
:is(*, .workspace-tab-header-tab-list, .workspace-tab-header-new-tab) .clickable-icon, /*all clickable icon button */
.workspace .mod-root .workspace-tabs.mod-stacked .workspace-tab-container .workspace-tab-header-inner-icon, /* icon in stacked tab mode*/
.workspace-tab-header-inner-icon{ /* Sidebar header icons, though the original padding overrides a bit */
padding:var(--button-padding-icon);
}
/* Adjust icon size during stacked */
.workspace .mod-root .workspace-tabs.mod-stacked .workspace-tab-container .workspace-tab-header-inner-icon{
--icon-size:var(--icon-s);
}
/* Setting close button */
body:not(.native-scrollbars) .modal-close-button{
right:7px;
top:7px;
height:32px;
width:34px;
}
.modal-close-button:before{
position:absolute;
top:5px;
left:9px;
}
/* undo original style to adapt consistency on header position */
.sidebar-toggle-button{
height:unset;
justify-content:unset;
padding:unset;
--icon-size:unset;
--icon-stroke:unset;
align-items:center;
padding-block:4.5px;
}
.workspace-tab-header-new-tab,
.workspace-tab-header-tab-list{
padding-block:4.5px;
}
/* background space to be hovered/clicked, a.k.a. "fake" empty space / pseudo-clickable area */
/* maintains the position of hovered whitespace design while still being able to click a little outside of the proposed size. */
:is(.workspace-tab-header-status-icon, .clickable-icon):before{
position:absolute;
content:"";
height:var(--ribbon-width);
width:var(--ribbon-width);
}
/* fix the above design since v16/17 */
.clickable-icon:before{
height:41px;
width:41px;
}
/* extend setting clickable area to the bottom */
.side-dock-settings .clickable-icon.side-dock-ribbon-action:last-child:before{
height:calc(var(--ribbon-width) + 8px);
margin-bottom:-5px;
}
/* remove side padding and add pseudo space on header-parent, then remove parent's is-active background and re-enable child's background */
.workspace-split.mod-horizontal:is(.mod-left-split,.mod-right-split) .workspace-tab-header-inner{
padding:0;
}
.workspace-split.mod-horizontal:is(.mod-left-split,.mod-right-split) .workspace-tab-header{
padding:5px 3px;
}
.workspace-split.mod-horizontal:is(.mod-left-split,.mod-right-split) .workspace-tab-header:first-child{
padding-left:5px;
}
.workspace-split.mod-horizontal:is(.mod-left-split,.mod-right-split) .workspace-tab-header:last-child,
.workspace-split.mod-horizontal:is(.mod-left-split,.mod-right-split) .sidebar-toggle-button.mod-left,
.workspace-split.mod-horizontal:is(.mod-left-split,.mod-right-split) .sidebar-toggle-button.mod-right{
padding-right:5px;
}
.workspace-split.mod-horizontal:is(.mod-left-split,.mod-right-split) .workspace-tab-header.is-active{
background:transparent;
}
.workspace-split.mod-horizontal:is(.mod-left-split,.mod-right-split) .workspace-tab-header.is-active .workspace-tab-header-inner{
background-color:var(--background-modifier-hover);
}
/*
--------------------------- ---------------------------
--------------------------- ---------------------------
Long Button Style
--------------------------- ---------------------------
--------------------------- ---------------------------
*/
/* Append some spaces so that when on-focused, the border does not get cut */
.nav-files-container{