-
Notifications
You must be signed in to change notification settings - Fork 13
/
obsidian.css
1591 lines (1355 loc) · 39.3 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
/* This is Mado Minimal, theme derived from Mado-11 */
:root {
/* Mado-11 Palette */
--mado-white-1:hsla(204, 45%, 97%, 1);
--mado-white-2:hsla(210, 45%, 95%, 1);
--mado-white-3:hsla(212, 17%, 80%, 0.2);
--mado-white-6:hsla(212, 17%, 80%, 0.3);
--mado-white-4:hsla(180, 33%, 99%, 1);
--mado-white-5:hsla(207, 10%, 90%, 0.1);
--mado-white-7:hsla(210, 45%, 95%, 0.9);
--mado-blue-1:hsla(209, 95%, 62%, 1);
--mado-blue-2:hsla(209, 85%, 72%, 0.5);
--mado-blue-3:hsla(245, 75%, 65%, 1);
--mado-blue-4:hsla(215, 57%, 63%, 1);
--mado-black-1:hsla(0, 0%, 13%, 1);
--mado-black-2:hsla(220, 20%, 35%, 1);
--mado-gray-1:hsla(0, 0%, 33%, 1);
--mado-gray-2:hsla(210, 15%, 70%, 0.2);
--mado-gray-3:hsla(210, 15%, 20%, 0.2);
--mado-gray-4:hsla(210, 15%, 30%, 0.5);
--mado-gray-5:hsla(207, 17%, 90%, 1);
--mado-gray-6:hsla(217, 15%, 83%, 1);
--mado-gray-7:hsla(217, 15%, 83%, 0.5);
--mado-yellow:hsla(60, 100%, 50%, 0.4);
--mado-orange:hsla(25, 75%, 65%, 1);
--mado-red-1:hsla(365, 90%, 62%, 1);
--mado-red-2:hsl(365, 95%, 85%, 1);
--mado-red-3:hsl(365, 85%, 45%, 1);
--button-radius:4px;
--window-radius:8px;
--readable-line-length:45rem;
}
.theme-light {
--color-black: var(--mado-black-1);
--color-dark-gray: var(--mado-gray-1);
--color-accent: var(--mado-blue-1);
--color-accent-alt: var(--mado-blue-2);
--color-accent-dark: var(--mado-blue-3);
--color-gray: var(--mado-gray-2);
--color-light-gray: var(--mado-gray-3);
--color-medium-gray:var(--mado-gray-4);
--modal-group-border: var(--mado-gray-6);
--button-selected: var(--mado-white-6);
--button-hover: var(--mado-white-6);
--button-selected-hover:var(--mado-white-3);
--window-shadow: 0 1px 3px var(--mado-white-3);
--window-shadow2: 0 0 9px var(--mado-gray-7);
--window-shadow-hover: 0 3px 5px var(--mado-white-6);
--window-shadow-transparent:0 3px 5px transparent;
--border:1px solid var(--mado-gray-5);
--background-primary: var(--mado-white-1);
--background-secondary: var(--mado-white-2);
--background-secondary-alt: var(--mado-gray-5);
--background-tertiary: var(--mado-white-3);
--background-secondary-trans: var(--mado-white-7);
--background-accent: var(--mado-blue-1);
--background-fourth: var(--mado-white-4);
--background-fifth: var(--mado-white-5);
--background-sixth: var(--mado-white-4);
--background-code-for-mado: var(--background-primary-alt);
--text-code: var(--mado-red-3);
--text-normal: var(--mado-black-1);
--text-error: var(--mado-red-1);
--text-on-accent: var(--mado-white-1);
--text-faint: var(--mado-gray-6);
--text-highlight-bg:var(--mado-yellow);
--text-bold: var(--mado-black-1);
--text-em: var(--mado-blue-4);
--text-muted: hsla(218, 19%, 39%, 1);
--background-modifier-error: var(--mado-red-1);
--background-modifier-border: var(--mado-gray-5);
--interactive-accent: var(--mado-blue-1);
--indentation-guide: var(--mado-gray-5);
--scrollbar-bg: transparent;
}
.theme-dark {
/* dark mode quick hack */
--mado-white-1:hsla(215, 17%, 19%, 1);
--mado-white-2:hsla(214, 24%, 15%, 1);
--mado-white-3:hsla(212, 17%, 22%, 0.9);
--mado-white-6:hsla(212, 17%, 0%, 0.3);
--mado-white-4:hsla(215, 22%, 13%, 1);
--mado-white-5:hsla(207, 10%, 10%, 0.1);
--mado-white-7:hsla(214, 24%, 15%, 0.5);
--mado-black-1:hsla(0, 0%, 73%, 1);
--mado-black-2:hsla(213, 33%, 65%, 1);
--mado-gray-1:hsla(0, 0%, 83%, 1);
--mado-gray-2:hsla(210, 25%, 5%, 0.3);
--mado-gray-3:hsla(210, 15%, 50%, 0.4);
--mado-gray-4:hsla(210, 15%, 70%, 0.5);
--mado-gray-5:hsla(207, 17%, 10%, 0.5);
--mado-gray-6:hsla(217, 18%, 50%, 0.7);
--mado-gray-7:hsla(217, 18%, 50%, 0.9);
--mado-yellow:hsla(45, 63%, 43%, 1);
--mado-blue-3:hsla(245, 60%, 67%, 1);
--color-black: var(--mado-black-1);
--color-dark-gray: var(--mado-gray-1);
--color-accent: var(--mado-blue-1);
--color-accent-alt: var(--mado-blue-2);
--color-accent-dark: var(--mado-blue-3);
--color-gray: var(--mado-gray-2);
--color-light-gray: var(--mado-gray-3);
--color-medium-gray:var(--mado-gray-4);
--modal-group-border: var(--mado-gray-6);
--button-selected: var(--mado-white-6);
--button-hover: var(--mado-white-6);
--button-selected-hover:var(--mado-white-3);
--window-shadow: 0 1px 3px var(--mado-white-5);
--window-shadow2: 0 0 9px var(--mado-white-6);
--window-shadow-hover: 0 3px 5px var(--mado-white-6);
--window-shadow-transparent:0 3px 5px transparent;
--border:1px solid var(--mado-gray-5);
--background-primary: var(--mado-white-1);
--background-secondary: var(--mado-white-2);
--background-secondary-alt: var(--mado-gray-5);
--background-tertiary: var(--mado-white-3);
--background-primary-alt: var(--mado-white-6);
--background-secondary-trans: var(--mado-white-7);
--background-accent: var(--mado-blue-1);
--background-fourth: var(--mado-white-3);
--background-fifth: var(--mado-white-5);
--background-sixth: var(--mado-white-5);
--background-code-for-mado: var(--mado-white-5);
--text-code: var(--mado-red-1);
--text-normal: var(--mado-black-1);
--text-error: var(--mado-red-1);
--text-on-accent: var(--mado-white-1);
--text-faint: var(--mado-gray-6);
--text-highlight-bg:var(--mado-yellow);
--text-bold: var(--mado-black-1);
--text-em: var(--mado-blue-4);
--text-muted: hsl(218, 17%, 58%);
--background-modifier-error: var(--mado-red-1);
--background-modifier-border: var(--mado-gray-5);
--interactive-accent: var(--mado-blue-1);
--indentation-guide: var(--mado-gray-3);
--scrollbar-bg: transparent;
}
body{
background:var(--background-secondary);
}
body.is-mobile{
padding-bottom:0!important;
}
/*
---------------------------
Title Bar
---------------------------
*/
.titlebar{
/* background none to let way for translucent mode design */
border-bottom:none;
background:none;
position:absolute;
}
.is-translucent .titlebar{
z-index:1;
/* Possible reason fof it to not work with opacity: https://stackoverflow.com/questions/23995799/css-hover-not-working-due-to-opacity */
}
.titlebar-text{
/* hide obsidian app title */
display:none;
}
.titlebar-button-container.mod-left{
left:0!important;
}
.mod-macos .titlebar-button-container.mod-left{
left:70px!important;
}
/* Hide buttons but show them when hovered */
.titlebar-button-container.mod-left,
.titlebar-button-container.mod-right{
position:absolute;
opacity:0;
z-index:1;
}
.titlebar-button-container.mod-left:hover,
.titlebar-button-container.mod-right:hover{
opacity:1;
}
/* Button styling */
.titlebar-button-container{
display:flex;
}
.titlebar-button{
display:flex;
padding:11px 17px;
color:var(--color-dark-gray);
border-radius:var(--button-radius);
transition:0.1s background;
opacity:0.7;
z-index:10;
}
.titlebar-button.mod-back,
.titlebar-button.mod-forward{
padding:9px 17px;
}
.titlebar-button:hover{
background:var(--button-hover);
color:var(--color-dark-gray);
}
.titlebar-button.mod-close:hover{
color:var(--text-on-accent);
}
body:not(.is-mobile) .app-container{
/* readjust height as to fill the gap caused by hiding the titlebar */
margin-top:-25px;
height:calc(100% + 25px);
}
/* Remove :before style that made up the weird spacing */
.titlebar-button:before{
content:"";
}
/*
---------------------------
Status Bar
---------------------------
*/
/* hide status bar */
.status-bar{
display:none; /* ADJUSTABLE CSS */
}
/*
---------------------------
PopOver Embed
---------------------------
*/
.popover.hover-popover{
width:500px;
max-height:400px;
}
.popover.hover-popover .markdown-embed{
padding:13px 13px 13px 23px;
height:400px;
}
/*
--------------------------- ---------------------------
--------------------------- ---------------------------
Markdown Common Styling
--------------------------- ---------------------------
--------------------------- ---------------------------
*/
strong,
.cm-strong{
font-weight:700;
color:var(--text-bold);
}
mark,
.cm-highlight{
background:var(--text-highlight-bg);
}
.theme-dark mark,
.theme-dark .cm-line .cm-highlight{
background:none;
border-bottom:2px solid var(--text-highlight-bg);
}
em,
.cm-em{
color:var(--text-em);
}
a{
text-decoration:none;
}
hr{
background-color:var(--background-modifier-border);
height:2px;
}
.markdown-preview-view{
padding-inline:63px;
}
.markdown-source-view .cm-content{
padding-inline:13px;
}
/* ADJUSTABLE CSS */
/* Maximum width for notes */
.markdown-preview-view.is-readable-line-width .markdown-preview-sizer,
.markdown-source-view.mod-cm6.is-readable-line-width .cm-editor .cm-contentContainer,
.markdown-source-view.mod-cm6.is-readable-line-width .cm-editor .cm-contentContainer .cm-content,
.markdown-source-view.mod-cm6.is-readable-line-width .cm-editor .cm-contentContainer .cm-content .cm-line{
max-width:830px;
}
.markdown-rendered code{
background:none;
color:var(--text-code);
}
.callout{
border-radius:var(--button-radius);
}
h1, .markdown-rendered h1, .HyperMD-header-1, .HyperMD-list-line .cm-header-1,
h2, .markdown-rendered h2, .HyperMD-header-2, .HyperMD-list-line .cm-header-2,
h3, .markdown-rendered h3, .HyperMD-header-3, .HyperMD-list-line .cm-header-3,
h4, .markdown-rendered h4, .HyperMD-header-4, .HyperMD-list-line .cm-header-4,
h5, .markdown-rendered h5, .HyperMD-header-5, .HyperMD-list-line .cm-header-5,
h6, .markdown-rendered h6, .HyperMD-header-6, .HyperMD-list-line .cm-header-6{
margin-top:33px;
}
/*
---------------------------
Markdown Checkbox
---------------------------
*/
input[type=checkbox]{
appearance:none;
cursor:pointer;
border:1px solid var(--color-light-gray);
border-radius:var(--button-radius);
}
input[type=checkbox]:checked{
background-color:var(--color-medium-gray);
background-position:center;
background-size:70%;
background-repeat:no-repeat;
background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' aria-hidden='true' focusable='false' width='1em' height='1em' style='-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);' preserveAspectRatio='xMidYMid meet' viewBox='0 0 20 20'%3E%3Cpath d='M0 11l2-2l5 5L18 3l2 2L7 18z' fill='%23fff'/%3E%3C/svg%3E");
}
.markdown-source-view .task-list-item-checkbox,
.markdown-preview-view .task-list-item-checkbox{
width:20px;
height:20px;
margin-top:-3px;
}
.markdown-preview-view .task-list-item-checkbox{
top:8px;
margin-left:-1px;
margin-right:10px;
}
/* Checkbox Bullet Point Alignment */
.task-list-item .external-link{
/* vertical-align:middle; */
}
/* Checkbox with link visual fix */
.task-list-item .external-link{
/* vertical-align:top; */
}
/*
---------------------------
Markdown Unordered / Ordered List
---------------------------
*/
/* Build spaces at the end of each listing to distinguish from each other (preview) */
ul,ol{
padding:7px 0;
margin-bottom:13px;
/* Build spaces at the start of each line (preview) */
padding-left:40px;
}
/* Only works if indentation-guide is enabled in the settings */
/* Not sure how to style it without that for source-view */
.cm-indent{
/* Build spaces at the start of each line (source) */
padding-left:3px;
margin-right:-3px;
}
/* Only append indent if it's from a list */
.cm-hmd-list-indent .cm-indent{
padding-inline:12px;
}
/* Build spaces at the end of each listing to distinguish from each other (source) */
.HyperMD-list-line-1+.HyperMD-list-line:not(.HyperMD-list-line-1):not(.HyperMD-list-line-2),
.HyperMD-list-line-2+.HyperMD-list-line:not(.HyperMD-list-line-2):not(.HyperMD-list-line-3),
.HyperMD-list-line-3+.HyperMD-list-line:not(.HyperMD-list-line-3):not(.HyperMD-list-line-4),
.HyperMD-list-line-4+.HyperMD-list-line:not(.HyperMD-list-line-4):not(.HyperMD-list-line-5),
.HyperMD-list-line-5+.HyperMD-list-line:not(.HyperMD-list-line-5):not(.HyperMD-list-line-6),
.HyperMD-list-line-6+.HyperMD-list-line:not(.HyperMD-list-line-6):not(.HyperMD-list-line-7){
padding-top:23px!important;
}
li{
padding-block:3px;
}
.HyperMD-list-line.cm-line{
padding-block:4px;
}
ul>li:not(.task-list-item)::marker{
/* Resize bullet point to a smaller version */
color:var(--color-dark-gray);
font-size:0.95rem;
content:"・ ";
}
/* Adjust line position to fit below bullet point (preview) */
.markdown-rendered.show-indentation-guide li > ul::before,
.markdown-rendered.show-indentation-guide li > ol::before{
left:-12px;
}
/* Adjust line position to fit below bullet point (source) */
/* .cm-formatting-list-ol, */
.list-bullet{
margin-right:7px;
margin-left:10px;
}
/* fix link in bullet list breaking to new line */
li .external-link{
/* display:inline-block; */
/* word-break:break-word; */
/* vertical-align:middle; */
/* overflow-wrap: break-word; */
/* word-wrap: break-word; */
/* max-width: 98%; */
}
/*
---------------------------
Markdown Table
---------------------------
*/
/* Adds margin for easier identification */
table{
margin:13px;
/* width:calc(100% - 26px); */
border-radius:var(--button-radius);
overflow:hidden;
}
/* Adds color to the header */
thead {
border-top:2px solid var(--color-accent);
background:var(--background-tertiary);
}
/* Adds padding spaces & color to the border */
.markdown-rendered td,
.markdown-rendered th{
border:1px solid var(--color-light-gray);
padding:4px 17px;
}
/* Adjust bold size of the header */
th{
font-weight:600;
}
/*
---------------------------
Markdown Strikethrough
---------------------------
*/
/* adjust color for strikethrough + on embed */
ul > li.task-list-item.is-checked{
text-decoration-color:var(--text-faint);
}
del,
.cm-strikethrough,
ul > li.task-list-item.is-checked *,
.markdown-source-view.mod-cm6 .HyperMD-task-line[data-task]:not([data-task=" "]) span {
color:var(--text-faint);
}
/*
---------------------------
Markdown Embed
---------------------------
*/
/* adjust embed padding, visual border */
.markdown-preview-view .markdown-embed{
border: 2px solid var(--background-modifier-border);
border-radius: var(--window-radius);
padding: 13px 23px;
margin: 0;
overflow:auto;
}
/* Show collapse indicator */
.markdown-preview-view:not(.allow-fold-lists) .list-collapse-indicator{
display:inline-block;
}
/* Align checkbox and text together */
.markdown-source-view.mod-cm6 .internal-embed .task-list-item-checkbox{
vertical-align:initial;
}
/* Adjust margin size for checkboxes in embed */
.HyperMD-list-line.HyperMD-list-line-2.cm-line .internal-embed .contains-task-list,
.HyperMD-list-line.HyperMD-list-line-3.cm-line .internal-embed .contains-task-list,
.markdown-preview-view blockquote .markdown-embed .contains-task-list{
margin:3px;
}
/*
---------------------------
Markdown Quote
---------------------------
*/
.markdown-preview-view blockquote{
margin:13px 0px;
padding:17px 27px 17px 37px;
border-radius:var(--button-radius);
background:var(--background-secondary);
border:var(--border);
/* border-left:5px solid var(--background-modifier-border); */
color:var(--text-muted);
position:relative;
}
.markdown-preview-view blockquote:before{
content:"";
position:absolute;
left:5px;
top:7px;
width:3px;
height:calc(100% - 14px);
background:var(--color-accent-alt);
border-radius:var(--button-radius);
}
/* adjust quote issue overflowing */
.markdown-preview-view blockquote p{
overflow:hidden;
}
.markdown-preview-view blockquote p+p{
/* add padding-top to siblings for easier reading*/
padding-top:13px;
}
.markdown-source-view.mod-cm6 .HyperMD-quote.cm-line{
padding-block:9px 0;
border-left:3px solid var(--color-accent-alt);
position:relative;
}
.HyperMD-quote.cm-line+.HyperMD-quote.cm-line{
/* remove siblings padding-top */
padding-block:0 9px;
}
/*
--------------------------- ---------------------------
--------------------------- ---------------------------
Dock/Sidebar Layout W11-Styling
--------------------------- ---------------------------
--------------------------- ---------------------------
*/
/* Remove background and give space to titlebar buttons */
.workspace .workspace-ribbon.side-dock-ribbon{
background:none;
margin-top:35px;
border:none;
}
.workspace .workspace-ribbon.side-dock-ribbon.mod-left{
margin-right:7px;
}
.workspace .workspace-ribbon.side-dock-ribbon.mod-right{
margin-left:7px;
}
/* Reveal all children buttons when parent is hovered */
.workspace-ribbon:hover .side-dock-settings,
.workspace-ribbon:hover .side-dock-actions,
.workspace-ribbon:hover .workspace-ribbon-collapse-btn{
opacity:1;
}
/* Style ribbon buttons */
.workspace-ribbon-collapse-btn,
.side-dock-actions,
.side-dock-settings,
.side-dock-ribbon-action{
color:var(--color-dark-gray);
border-radius:var(--button-radius);
transition:0.1s background, 0.1s opacity;
}
.workspace-ribbon-collapse-btn:hover{
background:var(--button-hover);
color:var(--color-dark-gray);
}
/* Hide buttons only on desktop, not mobile */
body:not(.is-mobile) .side-dock-actions,
body:not(.is-mobile) .side-dock-settings,
body:not(.is-mobile) .workspace-ribbon-collapse-btn{
opacity:0;
}
/* Remove addition margins on the side dock ribbons */
.side-dock-settings{
margin-bottom:0;
}
.workspace-ribbon-collapse-btn{
margin-top:0;
}
/* Hide dock's tab menu, and show them when hovered */
.workspace-tab-header-container{
opacity:0;
transition:opacity 0.1s;
border-radius:var(--button-radius);
border:var(--border);
box-shadow:var(--window-shadow);
width:100%;
}
.workspace-tab-header-container:hover{
opacity:1;
}
/* remove border-radius on icons */
.workspace-tab-header.is-before-active .workspace-tab-header-inner,
.workspace-tab-header.is-after-active .workspace-tab-header-inner,
.workspace-tab-container-after.is-after-active .workspace-tab-header-inner{
border-radius:0;
}
.workspace-split.mod-horizontal.mod-left-split .workspace-ribbon.side-dock-ribbon,
.workspace-split.mod-horizontal.mod-left-split .workspace-tab-header-container,
.workspace-split.mod-horizontal.mod-left-split .workspace-tab-header-inner{
background:var(--background-primary);
}
/* Remove style for border-on-active */
.workspace-tabs .workspace-leaf,
.workspace-tabs .workspace-leaf.mod-active{
border:none;
}
/*
---------------------------
Note Title
---------------------------
*/
.workspace-split.mod-root > .workspace-leaf:first-of-type:last-of-type .view-header,
.workspace-split.mod-horizontal > .workspace-leaf .view-header,
.workspace-split.mod-vertical > .workspace-leaf .view-header{
height:auto;
display:flex;
align-items:center;
padding:13px 17px;
border:none;
background:none;
}
.view-header-title{
font-size:1.25rem;
border-radius:var(--button-radius);
padding:11px 17px;
margin-left:0px;
border:1px solid transparent;
transition:border 0.2s, background 0.2s;
}
.view-header-title:hover,.view-header-title:focus{
background:var(--background-fifth);
border:var(--border);
}
/* Remove Title gradient background */
.workspace-split.mod-root > .workspace-leaf:first-of-type:last-of-type.mod-active .view-header-title-container:after,
.workspace-split.mod-horizontal > .workspace-leaf .view-header-title-container:after,
.workspace-split.mod-vertical > .workspace-leaf .view-header-title-container:after{
background:none;
pointer-events:none; /* Avoid blocking the space to edit title */
}
.view-action,.view-header-icon{
display:flex;
padding:11px;
margin:0 3px;
color:var(--color-dark-gray);
border-radius:var(--button-radius);
transition:0.1s background, 0.1s opacity;
top:0;
}
.view-action:hover,.view-header-icon:hover{
background:var(--button-hover);
color:var(--color-dark-gray);
}
.view-action:active,.view-header-icon:active{
opacity:0.75;
}
/* Adjust Title Background color */
.workspace-split.mod-vertical.mod-root .workspace-leaf-content{
background:var(--background-primary);
}
/* Mobile Fixes */
.is-mobile .view-header-title{
line-height:initial;
padding:12px 13px;
font-size:1.1rem;
-webkit-mask-image:none;
margin-right:5px;
}
.is-mobile .view-actions{
padding:0;
}
.is-mobile .view-header-icon, .is-mobile .view-action{
padding:9px;
margin:0 3px;
}
.is-mobile .view-header-icon svg, .is-mobile .view-action svg{
width:18px;
height:18px;
}
/*
---------------------------
Pane Resizer Handle
---------------------------
*/
/* Hide them at default, shows only when hovered */
/* Also adjusted thickness for easier finding/gripping */
.workspace-split.mod-horizontal > * > .workspace-leaf-resize-handle{
background:none;
height:5px;
border:none;
}
.workspace-split.mod-vertical > * > .workspace-leaf-resize-handle,
.workspace-split.mod-left-split > .workspace-leaf-resize-handle,
.workspace-split.mod-right-split > .workspace-leaf-resize-handle{
background:none;
width:5px;
border:none;
}
.workspace-split .workspace-leaf-resize-handle:hover{
background:var(--color-accent);
}
/*
---------------------------
Main Pane Border Styling
---------------------------
*/
.workspace-split.mod-horizontal.mod-left-split.is-collapsed+.workspace-split.mod-root > .workspace-leaf:first-of-type .workspace-leaf-content{
border-top-left-radius: 0px;
}
body:not(.is-mobile) .workspace-split.mod-vertical.mod-root .workspace-leaf{
border-radius:23px;
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
}
.workspace-split.mod-vertical.mod-root .workspace-split.mod-vertical:not(:first-child):last-child .workspace-leaf{
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
}
/* Apply spacing between workpanes */
.workspace-split.mod-vertical.mod-root,
.workspace-split.mod-vertical.mod-root .workspace-split{
display:flex;
gap:33px;
}
/* Apply margin to the side of the middle pain */
body:not(.is-mobile) .workspace>.workspace-split.mod-vertical{
padding:33px 0 0;
}
.workspace>.workspace-split.mod-horizontal.mod-left-split{
padding-right:33px;
}
.workspace>.workspace-split.mod-horizontal.mod-right-split{
padding-left:33px;
}
.workspace-split.mod-vertical.mod-root .workspace-leaf{
box-shadow:var(--window-shadow2);
height:100%;
}
.workspace-split.mod-vertical > .workspace-leaf{
padding:0;
}
.workspace-split.mod-root > .workspace-leaf:last-of-type .workspace-leaf-content{
border-top-right-radius: 0px;
}
.is-mobile .markdown-rendered{
padding:0 43px;
}
/*
---------------------------
Left Dock Styling
---------------------------
*/
/* markdown-preview-sizer is note placed onto the dock */
/* Left dock navigation (new note, new folder, reorder) */
.mod-left-split .workspace-leaf-content[data-type="file-explorer"] .nav-header{
padding:0;
opacity:0;
}
.mod-left-split .workspace-leaf-content[data-type="file-explorer"] .nav-header:hover{
opacity:1;
}
.mod-left-split .nav-header .nav-action-button{
padding:6px 13px 0;
margin:0 2px;
color:var(--color-dark-gray);
border-radius:var(--button-radius);
transition:0.1s background, 0.1s opacity;
background:var(--background-secondary);
border:1px solid var(--color-gray);
}
.mod-left-split .nav-header .nav-action-button:hover{
background:var(--button-hover);
color:var(--color-dark-gray);
}
.mod-left-split .workspace-leaf-content[data-type="file-explorer"] .nav-header .nav-action-button:active{
opacity:0.75;
}
/* Left dock Vault title hidden */
.nav-folder.mod-root>.nav-folder-title{
color:var(--color-accent-dark);
font-size:1.5rem;
font-weight:700;
margin-bottom:33px;
display:none; /* ADJUSTABLE CSS */
}
.mod-left-split .workspace-leaf-content,
.mod-right-split .workspace-leaf-content{
background:var(--background-secondary);
display:flex;
flex-direction:column;
gap:4px;
user-select:none;
padding-inline:8px;
max-width:330px;
align-self:end;
}
.mod-right-split .workspace-leaf-content{
align-self:start;
}
.nav-folder-children{
padding:3px 0 13px 33px;
}
.nav-folder-children,
.item-list{
display:flex;
flex-direction:column;
gap:2px;
}
/* Hide overflow-x when overflow-y is active */
.nav-files-container{
overflow-x:hidden;
}
/* Button styling */
.nav-file-title,
.nav-folder-title{
padding:3px 15px;
border-radius:var(--button-radius);
transition:0.05s ease-in;
transition-property:background, opacity;
opacity:1;
display:flex;
align-items:center;
position:relative;
overflow:hidden; /* to hide left border animation */
font-size:0.9rem;
color:var(--color-black);
width:100%;
white-space:nowrap;
}
.nav-folder-title{
color:var(--color-accent-dark);
font-size:1rem;
font-weight:500;
}
.nav-folder-title .nav-folder-collapse-indicator.collapse-icon{
display:none;
}
.nav-file-title:active,
.side-dock-ribbon-action:active{
opacity:0.8;
}
/* Navigation Button Left Border Styling and Animation */
.nav-file-title::before,
.side-dock-ribbon-action::before{
content:"";
position:absolute;
left:0;
top:50%;
width:3px;
height:0%;
border-radius:var(--button-radius);
background:var(--color-accent);
transform:translateY(0%);
transition:all 0.25s cubic-bezier(1,.1,.36,1.22);
}
/* Navigation Button Selected and Hover */
.nav-file-title.is-active{
background:var(--button-selected);
}
.nav-file-title.is-active::before{
height:70%;
transform:translateY(-50%);
}