-
Notifications
You must be signed in to change notification settings - Fork 3
/
obsidian.css
4119 lines (3425 loc) · 97.4 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
/*
Building on top of Minimal Obsidian by @kepano
----------------------------------------------------------------
DISABLED FEATURES
These features are hidden in pursuit of a more focused editing
experience. Remove each line if you want to re-activate the feature */
.tooltip, /* Tooltips */
.titlebar-button-container { /* Titlebar buttons */
/* display:none !important;*/
display: block;
}
.search-result-file-matches, /* File matches in search */
.backlink-pane .search-result-file-matches, /* File matches in backlinks */
.workspace-leaf-content[data-type=starred] .nav-header { /* Starred section header */
}
.side-dock-ribbon-action[aria-label='Help'] { /* Disable help */
color: var(--text-faint);
visibility: hidden;
margin: -25px;
}
:root {
/*----------------------------------------------------------------
COLORS
Most colors in this theme are driven from the following values,
meaning that the backgrounds, borders, and various shades are
automatically generated for you.
- Base color is used for the backgrounds, text and borders.
- Accent color is used for links and some interactive elements.
The colors use HSL (hue, saturation, lightness)
- Hue (0-360 degrees):0 is red, 120 is green, and 240 is blue
- Saturation (0-100%):0% is desaturated, 100% is full saturation
- Lightness (0-100%):0% is black, 100% is white
/* Main colors*/
--base-h:0; /* Base hue */
--base-s:0%; /* Base saturation */
--base-d:10%; /* Base lightness Dark Mode - 0 is black */
--base-l:95%; /* Base lightness Light Mode - 100 is white */
/* Text elements*/
--accent-h:210; /* Accent hue */
--accent-h-o: 50; /* Accent oposite */
--accent-s:90%; /* Accent saturation */
--accent-d:85%; /* Accent lightness Dark Mode */
--accent-l:63%; /* Accent lightness Light Mode */
/* UI elments */
--main-accent-h:360; /* Accent hue */
--main-accent-s:70%; /* Accent saturation */
--main-accent-d:60%; /* Accent lightness Dark Mode */
--main-accent-l:10%; /* Accent lightness Light Mode */
/*----------------------------------------------------------------
FONTS */
/* Preview mode and UI */
--text:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,'m1+ 1p';
/* Editor mode */
--text-editor:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue", 'm1+ 1p';
/* Code */
--font-monospace:Menlo,Monaco,Consolas,"Courier New",monospace;
--font-normal:16px;
--font-medium:13.5px;
--font-small:12px;
--font-smaller:11px;
--normal-weight:300; /* Switch to 300 if you want thinner default text */
--bold-weight:500; /* Switch to 600 or 700 if you want thicker bold text */
--line-width:800px; /* I recommend turning off "Readable line length" in Obsidian Settings */
--max-width: 100%; /* Maximum width inside file panels */
--view-width: 95%;
/*----------------------------------------------------------------
CURSOR
Change this to "pointer" if you like the normal style better */
--cursor:pointer;
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------
ANIMTION OF UN-FOCUSED ELEMENTS
Change if you want to fade elements quicker or slower */
--buttons-fade-in-speed:filter 100ms ease-in-out;
--buttons-fade-out-speed:filter 2000ms ease-in-out;
--tags-fade-in-speed: 100ms cubic-bezier(0.4, 0, 1, 1);
--tags-fade-out-speed: 2000ms cubic-bezier(0.4, 0, 1, 1);
/*----------------------------------------------------------------*/
}
.theme-dark {
/* Transluency*/
--translucency: 0.95;
--scrollbar-thumb-bg: rgba(255, 255, 255, 0.10);
--background-primary:hsl(var(--base-h),var(--base-s),calc(var(--base-d) - 4%));
--background-primary-alt:hsl(var(--base-h),var(--base-s),calc(var(--base-d) - 3%));
--background-secondary:hsl(var(--base-h),var(--base-s),var(--base-d));
--background-secondary-table:hsl(var(--base-h),var(--base-s),calc(var(--base-d) - 2%));
--background-secondary-alt:hsl(var(--base-h),var(--base-s),var(--base-d));
--background-tertiary:hsl(var(--base-h),var(--base-s),calc(var(--base-d) + 4%));
--background-modifier-border:hsl(var(--base-h),var(--base-s),calc(var(--base-d) + 5%));
--background-modifier-border-hover:hsl(var(--base-h),var(--base-s),calc(var(--base-d) + 10%));
--background-modifier-border-focus:hsl(var(--base-h),var(--base-s),calc(var(--base-d) + 20%));
--background-modifier-box-shadow:rgba(0, 0, 0, 0.3);
--text-normal:hsl(var(--base-h),var(--base-s),calc(var(--base-d) + 70%));
--text-muted:hsl(var(--base-h),var(--base-s),calc(var(--base-d) + 45%));
--text-faint:hsl(var(--base-h),var(--base-s),calc(var(--base-d) + 20%));
--text-selection:rgba(50, 50, 50, 1);
--text-shadow:hsl(var(--base-h),var(--base-s),calc(var(--base-d) + 3%));
--line-shadow:hsl(var(--base-h),var(--base-s),calc(var(--base-d) + 2%));
--background-transparent:hsla(var(--base-h),var(--base-s),var(--base-d),0);
--background-translucent:hsla(var(--base-h),var(--base-s),var(--base-d),0.85);
--background-match-highlight:hsla(var(--accent-h), 40%, 62%, 0.2);
--background-modifier-accent:hsl(var(--accent-h),var(--accent-s),calc(var(--accent-d) - 10%));
--text-accent:hsl(var(--accent-h),var(--accent-s),var(--accent-d));
--text-accent-hover:hsl(var(--accent-h),var(--accent-s),calc(var(--accent-d) + 10%));
--interactive-accent:hsl(var(--accent-h),var(--accent-s),var(--accent-d));
--interactive-accent-hover:hsl(var(--accent-h),var(--accent-s),calc(var(--accent-d) + 10%));
--quote-opening-modifier:hsl(var(--base-h),var(--base-s),calc(var(--base-d) + 15%));
--interactive-accent-rgb:66, 66, 66;
--text-highlight-bg:rgba(168, 220, 250, 0.33);
--button-background: hsl(var(--base-h),var(--base-s),calc(var(--base-d) + 5%));
--button-background-active: hsl(var(--base-h),var(--base-s),calc(var(--base-d) + 30%));
--icon-bright:brightness(140%);
--icon-normal:brightness(100%);
--icon-dark:brightness(90%);
--color-external: #4ed5ff;
--color-accent:hsl(var(--main-accent-h),var(--main-accent-s),var(--main-accent-d));
--color-accent-hover:hsl(var(--main-accent-h),var(--main-accent-s),calc(var(--main-accent-d) + 10%));
--color-accent-shadow:hsla(var(--main-accent-h),var(--main-accent-s),calc(var(--main-accent-d) + 10%),0.2);
--color-accent-hover-invert: var(--text-muted);
--color-accent-shadow-more:hsla(var(--main-accent-h),var(--main-accent-s),calc(var(--main-accent-d) + 10%),0.1);
--color-accent-bright:hsla(var(--main-accent-h),var(--main-accent-s),calc(var(--main-accent-d) + 20%),0.9);;
}
.theme-light {
/* Transluency*/
--translucency: 0.85;
--background-primary:hsl(var(--base-h),var(--base-s),calc(var(--base-l) - 5%));
--background-primary-alt:hsl(var(--base-h),var(--base-s),calc(var(--base-l) - 2%));
--background-secondary:hsl(var(--base-h),var(--base-s),calc(var(--base-l) - 0%));
--background-secondary-table:hsl(var(--base-h),var(--base-s),calc(var(--base-l) - 2%));
--background-secondary-alt:hsl(var(--base-h),var(--base-s),var(--base-l));
--background-tertiary:hsl(var(--base-h),var(--base-s),calc(var(--base-l) - 12%));
--background-modifier-border:hsl(var(--base-h),var(--base-s),calc(var(--base-l) - 8%));
--background-modifier-border-hover:hsl(var(--base-h),var(--base-s),calc(var(--base-l) - 12%));
--background-modifier-border-focus:hsl(var(--base-h),var(--base-s),calc(var(--base-l) - 20%));
--text-normal:hsl(var(--base-h),var(--base-s),calc(var(--base-l) - 100%));
--text-muted:hsl(var(--base-h),var(--base-s),calc(var(--base-l) - 55%));
--text-faint:hsl(var(--base-h),var(--base-s),calc(var(--base-l) - 3s5%));
--text-selection:hsl(var(--base-h),var(--base-s),calc(var(--base-l) - 6%));
--text-shadow:hsl(var(--base-h),var(--base-s),calc(var(--base-d) + 80%));
--line-shadow:hsl(var(--base-h),var(--base-s),calc(var(--base-d) + 70%));
--background-transparent:hsla(var(--base-h),var(--base-s),var(--base-l),0);
--background-translucent:hsla(var(--base-h),var(--base-s),var(--base-l),0.85);
--background-match-highlight:hsla(var(--accent-h), 40%, 62%, 0.2);
--background-modifier-accent:hsl(var(--accent-h),var(--accent-s),calc(var(--accent-l) + 2%));
--text-accent:hsl(var(--accent-h),var(--accent-s),var(--accent-l));
--text-accent-hover:hsl(var(--accent-h),var(--accent-s),calc(var(--accent-l) - 10%));
--interactive-accent:hsl(var(--accent-h),var(--accent-s),var(--accent-l));
--interactive-accent-hover:hsl(var(--accent-h),var(--accent-s),calc(var(--accent-l) - 10%));
--quote-opening-modifier:hsl(var(--base-h),var(--base-s),calc(var(--base-l) - 15%));
--interactive-accent-rgb:220, 220, 220;
--button-background: hsl(var(--base-h),var(--base-s),calc(var(--base-d) + 75%));
--button-background-active: hsl(var(--base-h),var(--base-s),calc(var(--base-d) + 60%));
--icon-bright:brightness(20%);
--icon-normal:brightness(100%);
--icon-dark:brightness(120%);
--color-external: #389ebd;
--color-accent:hsl(var(--main-accent-h),var(--main-accent-s),var(--main-accent-d));
--color-accent-hover:hsl(var(--main-accent-h),var(--main-accent-s),calc(var(--main-accent-d) + 4%));;
--color-accent-shadow:hsla(var(--main-accent-h),var(--main-accent-s),calc(var(--main-accent-d) + 10%),0.4);
--color-accent-hover-invert: var(--text-muted);
--color-accent-bright:hsla(var(--main-accent-h),var(--main-accent-s),calc(var(--main-accent-d) + 5%),1.9);
}
.markdown-source-view.is-readable-line-width .CodeMirror {
max-width: 120%;
width: 100%;
margin-left: auto;
padding-right: -10px;
}
.markdown-preview-view.is-readable-line-width .markdown-preview-sizer {
max-width: var(--view-width);
margin-left: auto;
margin-right: auto;
}
/* --------------- */
/* Frameless mode */
.titlebar, .titlebar-inner {
position:fixed;
top:0;
height:12px;
}
.titlebar,
.titlebar-inner {
background:transparent;
}
.titlebar-text {
display:none;
}
.is-frameless {
padding-top:0px !important;
}
.workspace-split.mod-right-split > .workspace-tabs,
.workspace-split.mod-root .view-header {
padding-top:4px;
}
.workspace-tabs .workspace-leaf {
height: 100%;
width: 100%;
}
.workspace-split.mod-root > .workspace-leaf:last-of-type .workspace-leaf-content {
border-radius: 0px;
}
.workspace-split.mod-right-split > .workspace-tabs ~ .workspace-tabs,
.workspace-split.mod-left-split > .workspace-tabs ~ .workspace-tabs {
padding-top:0px;
}
.is-fullscreen .workspace-split.mod-left-split > .workspace-tabs,
.is-fullscreen .workspace-split.mod-root .view-header {
padding-top:0px;
}
.workspace-split.mod-left-split {
margin-left: 33px;
}
/* --------------- */
/* */
.is-translucent .workspace-tabs {
opacity: var(--translucency);
}
.is-translucent .workspace-ribbon {
opacity: var(--translucency);
}
.is-translucent .workspace-ribbon.mod-left.is-collapsed{
opacity: 1;
transition: all 500ms ease-in-out
}
.is-translucent .workspace-split.mod-root {
opacity: 1;
}
.workspace-ribbon {
position: absolute;
top: 0;
height: 100%;
width: 33px;
z-index: 20;
border-color: transparent;
background: var(--background-secondary);
transition: background-color 200ms ease-in-out, border-left-color 200ms 200ms ease-in-out;
}
.workspace-ribbon.mod-left {
border-color: transparent;
width: 45px;
background: var(--background-secondary);
}
.markdown-preview-view .internal-link {
text-decoration: none;
font-weight: 300;
color: var(--background-modifier-accent);
}
.markdown-preview-view .internal-link:hover {
text-decoration: none;
background: lighter(var(--background-modifier-accent),120%);
text-shadow: 0px 0px 30px var(--text-accent);
}
/* --------------- */
/* Colapse indicatior */
.markdown-preview-view .collapse-indicator {
/* visibility: hidden; */
color: var(--color-accent);
margin-top: 0.4%;
transform: scale(0.8);
filter: opacity(0.1);
}
.markdown-preview-view .collapse-indicator:hover {
/* visibility: hidden; */
color: var(--color-accent);
margin-top: 0.4%;
transform: scale(0.8);
filter: opacity(1);
}
.collapse-icon svg {
transition: transform 100ms ease-in-out;
transform: scale(1.6);
color: var(--color-accent);
}
.markdown-preview-view .list-collapse-indicator {
margin-left: -5%;
}
.markdown-preview-view .collapse-indicator {
margin-left: -5%;
}
/* --------------- */
/* Pop hover */
.popover {
}
.popover.hover-popover {
position: fixed;
z-index: var(--layer-popover);
width: 120%;
max-width: 550px;
height: auto;
transform: scale(0.8);
background: var(--background-primary);
box-shadow: 0px 0px 20px var(--color-accent-shadow);
border-color: transparent;
overflow: hidden;
padding: 20px 20px 20px 20px;
margin-left: 25px;
margin-top: -10%;
}
/* --------------- */
/* Fonts */
::selection { background:var(--text-selection); }
h1,h2,h3,h4,h5,strong {font-weight:var(--bold-weight);}
h1,h2,h3,h4 {letter-spacing:-0.02em;}
body, input, button {
letter-spacing:0.02rem; /* Remove this line if you need contextual alternates */
}
body, input, button,
.cm-s-obsidian .cm-formatting-hashtag,
.cm-s-obsidian {
font-family:var(--text) !important;
font-size:var(--font-normal);
font-weight:var(--normal-weight);
text-align: justify;
-webkit-font-smoothing:subpixel-antialiased;
}
.markdown-source-view,
.cm-s-obsidian .cm-formatting-hashtag,
.cm-s-obsidian {
line-height:1.4;
font-family:var(--text-editor) !important;
}
.cm-s-obsidian .cm-header {
font-weight: 500;
font-size: 140%;
color: var(--text-editor);
}
.cm-s-obsidian .cm-strong {
font-weight: 600;
font-size: 100%;
color: var(--text-normal);
filter: brightness(1.2);
}
.cm-formatting-header {
color:var(--text-faint) !important;
font-weight:var(--normal-weight) !important;
}
/* --------------- */
/* LATEX */
mjx-c {
display: inline-block;
margin: 0 1px;
font-family: 'Inter';
padding: 0px -1px;
}
/* --------------- */
/* CHECKBOXES */
input[type=checkbox] {
-webkit-appearance: none;
appearance: none;
border-radius: 20%;
border: 1px solid var(--color-accent);
padding: 0;
background: transparent;
}
input[type=checkbox]:hover {
-webkit-appearance: none;
appearance: none;
border-radius: 20%;
border: 1px solid white;
padding: 0;
background: transparent;
}
input[type=checkbox]:focus{
outline:0;
}
.theme-dark input[type=checkbox]:checked {
background-color: transparent;
border: 1px solid transparent;
background-position: center;
background-size: 70%;
background-repeat: no-repeat;
background-image: url('data:image/svg+xml; utf8, <svg width="12px" height="10px" viewBox="0 0 12 8" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g transform="translate(-4.000000, -6.000000)" fill="%23ffffff"><path d="M8.1043257,14.0367999 L4.52468714,10.5420499 C4.32525014,10.3497722 4.32525014,10.0368095 4.52468714,9.8424863 L5.24777413,9.1439454 C5.44721114,8.95166768 5.77142411,8.95166768 5.97086112,9.1439454 L8.46638057,11.5903727 L14.0291389,6.1442083 C14.2285759,5.95193057 14.5527889,5.95193057 14.7522259,6.1442083 L15.4753129,6.84377194 C15.6747499,7.03604967 15.6747499,7.35003511 15.4753129,7.54129009 L8.82741268,14.0367999 C8.62797568,14.2290777 8.3037627,14.2290777 8.1043257,14.0367999"></path></g></g></svg>');
}
.theme-light input[type=checkbox]:checked {
background-color: transparent;
border: 1px solid transparent;
background-position: center;
background-size: 70%;
background-repeat: no-repeat;
background-image: url('data:image/svg+xml; utf8, <svg width="12px" height="10px" viewBox="0 0 12 8" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g transform="translate(-4.000000, -6.000000)" fill="grey"><path d="M8.1043257,14.0367999 L4.52468714,10.5420499 C4.32525014,10.3497722 4.32525014,10.0368095 4.52468714,9.8424863 L5.24777413,9.1439454 C5.44721114,8.95166768 5.77142411,8.95166768 5.97086112,9.1439454 L8.46638057,11.5903727 L14.0291389,6.1442083 C14.2285759,5.95193057 14.5527889,5.95193057 14.7522259,6.1442083 L15.4753129,6.84377194 C15.6747499,7.03604967 15.6747499,7.35003511 15.4753129,7.54129009 L8.82741268,14.0367999 C8.62797568,14.2290777 8.3037627,14.2290777 8.1043257,14.0367999"></path></g></g></svg>');
}
.markdown-preview-view ul > li.task-list-item.is-checked {
text-decoration: line-through;
margin: -1px 1px;
color: var(--text-faint);
}
/* --------------- */
/* PREVIEW HEADINGS */
.markdown-preview-view h1 {
font-family: var(--font-family-preview);
font-weight: 400 !important;
font-size: 22px;
margin: 5% 0 2%;
text-align: center;
font-weight: bold;
color: var(--text-normal);
text-transform: uppercase;
z-index: 20;
}
.markdown-preview-view h2 {
font-family: var(--font-family-preview);
font-weight: 300 !important;
font-size: 16px;
text-align: center;
line-height: 1.2;
margin: 3% 0 2% 0;
hyphens: auto;
word-break: break-word;
color: var(--text-normal);
filter: brightness(1.1);
text-transform: uppercase;
}
.markdown-preview-view h3,
.markdown-preview-view h4,
.markdown-preview-view h5,
.markdown-preview-view h6
{
margin: 3% 0 3% 0;
font-family: var(--font-family-preview);
font-weight: 300 !important;
font-weight: bold;
color: var(--text-normal);
text-align: left;
line-height: 1.2;
font-size: 13px;
hyphens: auto;
text-transform: uppercase;
}
/* --------------- */
/* Missing emblemed link */
.markdown-preview-view .internal-embed:not(.image-embed) {
display: block;
font-size: 80;
margin: 0 0 0 0;
padding: 0 0 0 0;
line-height: 0.1;
text-align: left;
border-left: transparent;
border-right: transparent;
color: var(--text-shadow);
/* display: none; */
/* visibility: hidden; */
}
/* --------------- */
/* Emblemed searcg query */
.internal-query.is-embed .search-result-file-matches {
font-size: 100%;
line-height: 1.2;
margin-bottom: 10px;
color: var(--text-muted);
display: none;
}
.internal-query.is-embed .tree-item-inner:before {
content: "◉";
color: var(--color-accent);
position: absolute;
transform: scale(0.4);
margin-left: -1.2em;
display: inline-block;
width: -30px;
text-indent: 0;
text-align: center;
}
.tree-item-self .collapse-icon {
margin-left: -20px;
width: 13px;
/* padding-top: 10px; */
padding-left: 6px;
/* flex: 0 0 auto; */
}
.internal-query.is-embed .is-collapsed .search-result-file-title {
margin: 0 0px 0px 2px;
font-size: 85%;
/* display: block; */
width: 100%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
border-top: 1px solid var(--color-accent-shadow-more);
display: none;
}
.internal-query.is-embed .tree-item-inner {
font-size: 70%;
text-transform: uppercase;
margin: 2px 2px -10px 20px;
}
.markdown-preview-view .internal-query.is-embed {
margin: 28px 0;
border-bottom: 1px solid var(--background-modifier-border);
}
.markdown-preview-view .internal-query.is-embed .internal-query-header-title {
font-size: 80%;
font-weight: 600;
}
.markdown-preview-view .internal-query.is-embed .internal-query-header-icon {
color: var(--text-faint);
margin-right: 6px;
display: flex;
transform: scale(0.7);
}
.markdown-preview-view .internal-query.is-embed .internal-query-header {
display: none;
text-align: center;
padding: 4px 0 12px 0;
color: var(--color-accent);
filter: opacity(0.6);
/* font-size: 80%; */
justify-content: center;
align-items: center;
border-top: transparent;
}
.markdown-preview-view .internal-query.is-embed .internal-query-header-icon {
color: var(--color-accent);
margin-right: 6px;
display: flex;
transform: scale(0.7);
}
.markdown-preview-view .internal-query.is-embed .search-results-children {
padding: 4px 0;
max-height: 100%;
}
/* --------------- */
/* Icons */
.nav-action-button svg {
width:15px;
}
.workspace-ribbon-collapse-btn svg path {
stroke-width:2px;
}
.nav-action-button svg path {
stroke-width:1px;
}
.view-header-icon, .workspace-tab-header, .nav-action-button, .side-dock-ribbon-tab, .view-action {
background: transparent;
color: var(--text-muted);
opacity: 0.4;
transition: opacity 0.1s ease-in-out;
cursor: var(--cursor);
transform: scale(0.9);
margin: 0px;
padding: 0px;
}
.workspace-tab-header-inner {
padding: 3px 0px 3px 10px;
}
.view-header-icon {
opacity:0.2;
}
.workspace-leaf-content[data-type='search'] .nav-action-button.is-active,
.workspace-leaf-content[data-type='backlink'] .nav-action-button.is-active,
.workspace-tab-header.is-active,
.workspace-leaf-content[data-type='search'] .nav-action-button.is-active {
background:transparent;
color:var(--text-muted);
opacity:1;
transition:opacity 0.1s ease-in-out;
}
.view-action:hover,
.view-header-icon:hover,
.nav-action-button:hover,
.workspace-tab-header:hover,
.side-dock-ribbon-tab:hover,
.side-dock-ribbon-action:hover {
background:transparent;
color:var(--text-muted);
opacity:1;
transition:opacity 0 ease-in-out;
}
.workspace-leaf-content[data-type='search'] .nav-action-button.is-active {
background:transparent;
}
.nav-action-button,
.workspace-leaf-content[data-type='search'] .nav-action-button,
.workspace-leaf-content[data-type='backlink'] .nav-action-button {
padding:0 4px 0 8px;
margin:0;
}
.view-header-icon {
padding: 8px 15px;
color: var(--text-muted);
cursor: grab;
/* position: relative; */
/* top: 4px; */
}
/* --------------- */
/* Focus mode */
/* When the left sidebar is collapsed */
.workspace-split.is-collapsed ~ .mod-root .view-header-icon {
opacity:0.2;
}
.workspace-ribbon.mod-left {
transition: all 0.3s ease-in-out;
}
.workspace-ribbon.mod-left.is-collapsed {
border-color: transparent;
background: var(--background-primary);
transition: all 0.7s ease-in-out;
}
.workspace-ribbon.mod-left.is-collapsed .side-dock-actions,
.workspace-ribbon.mod-left.is-collapsed .side-dock-settings {
opacity:0;
transition:opacity 0.25s ease-in-out;
}
.workspace-ribbon.mod-left.is-collapsed:hover .side-dock-actions,
.workspace-ribbon.mod-left.is-collapsed:hover .side-dock-settings {
opacity:1;
transition:opacity 0s ease-in-out;
}
.is-right-sidedock-collapsed .workspace-split.mod-right-split {
margin-right:0px;
}
.view-actions {
opacity:0;
margin-right:0px;
margin-left:auto;
transition:opacity 0.25s ease-in-out;
}
.view-actions .view-action {
margin-right:4px;
}
.view-actions .view-action:last-child {
margin-left:2px;
}
.workspace-ribbon:not(.is-collapsed) ~ .mod-root .view-actions {
opacity: 1;
transform: scale(0.70);
position: absolute;
right: -25px;
width: 200px;
transition: opacity 0.25s ease-in-out;
}
.mod-right.is-collapsed ~ .mod-root .view-header:hover .view-actions {
opacity:1;
transition:opacity 0.25s ease-in-out;
}
.workspace-ribbon.mod-left .side-dock-actions,
.workspace-ribbon.mod-left .side-dock-settings {
opacity:0;
transition:opacity 0s ease-in-out;
}
.workspace-ribbon.mod-left:hover .side-dock-actions,
.workspace-ribbon.mod-left:hover .side-dock-settings {
opacity:1;
transition:opacity 0s ease-in-out;
}
.nav-files-container {
flex-grow: 1;
overflow-y: auto;
/* padding-bottom: 20px; */
}
/* --------------- */
/* FRONT MATER */
.theme-dark :not(pre) > code[class*="language-"], .theme-dark pre[class*="language-"] {
/* background: var(--background-primary-alt); */
line-height: 1;
font-size: 90%;
filter: opacity(0.5);
}
.theme-light code[class*="language-"], .theme-light pre[class*="language-"] {
text-shadow: none;
background: transparent;
line-height: 1;
font-size: 90%;
filter: opacity(0.8);
}
/* --------------- */
/* LEFT RIBBON ICONS */
.side-dock-actions {
display: block;
position: absolute;
top: 38%;
margin-left: 13px;
padding-top: 200%;
transform: scale(0.75);
}
.side-dock-settings {
display: block;
position: absolute;
top: 38%;
transform: scale(1.2);
margin-left: 13px;
padding-bottom: 5px;
margin-top: 7px;
border-bottom: 1px solid var(--background-modifier-border);
}
.side-dock-ribbon-tab, .side-dock-ribbon-action {
color: green;
text-align: center;
cursor: pointer;
opacity: 1;
opacity: 1;
opacity: 0.5;
stroke-width: 1px;
}
.side-dock-ribbon-action[aria-label='Open another vault']{
color: white;
margin: 0 -20px -10px 0;
content: url("data:image/svg+xml;charset=UTF-8, <svg xmlns='http://www.w3.org/2000/svg' version='1.1' viewBox='0 0 100 100' width='34' height='34'><path fill='white' stroke='currentColor' d='M 10 4 C 6.6981361 4 4 6.6981361 4 10 C 4 13.301864 6.6981361 16 10 16 C 13.301864 16 16 13.301864 16 10 C 16 6.6981361 13.301864 4 10 4 z M 25 4 C 21.698136 4 19 6.6981361 19 10 C 19 13.301864 21.698136 16 25 16 C 28.301864 16 31 13.301864 31 10 C 31 6.6981361 28.301864 4 25 4 z M 40 4 C 36.698136 4 34 6.6981361 34 10 C 34 13.301864 36.698136 16 40 16 C 43.301864 16 46 13.301864 46 10 C 46 6.6981361 43.301864 4 40 4 z M 10 6 C 12.220984 6 14 7.7790164 14 10 C 14 12.220984 12.220984 14 10 14 C 7.7790164 14 6 12.220984 6 10 C 6 7.7790164 7.7790164 6 10 6 z M 25 6 C 27.220984 6 29 7.7790164 29 10 C 29 12.220984 27.220984 14 25 14 C 22.779016 14 21 12.220984 21 10 C 21 7.7790164 22.779016 6 25 6 z M 40 6 C 42.220984 6 44 7.7790164 44 10 C 44 12.220984 42.220984 14 40 14 C 37.779016 14 36 12.220984 36 10 C 36 7.7790164 37.779016 6 40 6 z M 10 19 C 6.6981361 19 4 21.698136 4 25 C 4 28.301864 6.6981361 31 10 31 C 13.301864 31 16 28.301864 16 25 C 16 21.698136 13.301864 19 10 19 z M 25 19 C 21.698136 19 19 21.698136 19 25 C 19 28.301864 21.698136 31 25 31 C 28.301864 31 31 28.301864 31 25 C 31 21.698136 28.301864 19 25 19 z M 40 19 C 36.698136 19 34 21.698136 34 25 C 34 28.301864 36.698136 31 40 31 C 43.301864 31 46 28.301864 46 25 C 46 21.698136 43.301864 19 40 19 z M 10 21 C 12.220984 21 14 22.779016 14 25 C 14 27.220984 12.220984 29 10 29 C 7.7790164 29 6 27.220984 6 25 C 6 22.779016 7.7790164 21 10 21 z M 25 21 C 27.220984 21 29 22.779016 29 25 C 29 27.220984 27.220984 29 25 29 C 22.779016 29 21 27.220984 21 25 C 21 22.779016 22.779016 21 25 21 z M 40 21 C 42.220984 21 44 22.779016 44 25 C 44 27.220984 42.220984 29 40 29 C 37.779016 29 36 27.220984 36 25 C 36 22.779016 37.779016 21 40 21 z M 10 34 C 6.6981361 34 4 36.698136 4 40 C 4 43.301864 6.6981361 46 10 46 C 13.301864 46 16 43.301864 16 40 C 16 36.698136 13.301864 34 10 34 z M 25 34 C 21.698136 34 19 36.698136 19 40 C 19 43.301864 21.698136 46 25 46 C 28.301864 46 31 43.301864 31 40 C 31 36.698136 28.301864 34 25 34 z M 40 34 C 36.698136 34 34 36.698136 34 40 C 34 43.301864 36.698136 46 40 46 C 43.301864 46 46 43.301864 46 40 C 46 36.698136 43.301864 34 40 34 z M 10 36 C 12.220984 36 14 37.779016 14 40 C 14 42.220984 12.220984 44 10 44 C 7.7790164 44 6 42.220984 6 40 C 6 37.779016 7.7790164 36 10 36 z M 25 36 C 27.220984 36 29 37.779016 29 40 C 29 42.220984 27.220984 44 25 44 C 22.779016 44 21 42.220984 21 40 C 21 37.779016 22.779016 36 25 36 z M 40 36 C 42.220984 36 44 37.779016 44 40 C 44 42.220984 42.220984 44 40 44 C 37.779016 44 36 42.220984 36 40 C 36 37.779016 37.779016 36 40 36 z'/></svg>");
}
.side-dock-ribbon-action[aria-label='Help']{
color: var(--text-faint);
}
.side-dock-ribbon-action[aria-label='Settings']{
color: var(--text-faint);
}
/* --------------- */
/* Tags */
.cm-s-obsidian span.cm-hashtag {
background-color: var(--background-tertiary);
border: none;
color: var(--text-muted);
font-size: var(--font-small);
text-align: center;
text-decoration: none;
margin: 0;
line-height: 2em;
padding-top: 2px;
padding-bottom: 2px;
cursor: text;
}
.cm-hashtag-begin {
border-top-left-radius:14px;
border-bottom-left-radius:14px;
padding-left:8px;
}
.cm-hashtag-end {
border-top-right-radius:14px;
border-bottom-right-radius:14px;
padding-right:8px;
}
/* --------------- */
/* Modals */
.modal.mod-settings .vertical-tab-content-container {
/* border: 1px solid var(--background-modifier-border); */
padding-bottom: 0;
padding-right: 0;
}
.modal.mod-settings {
padding: 0;
width: 50%;
height: 70%;
max-width: 90vw;
overflow: hidden;
display: flex;
flex-direction: column;
}
.modal-close-button {
cursor: pointer;
position: absolute;
top: 5px;
left: 10px;
/* right: 15px; */
font-size: 30px;
color: var(--text-muted);
}
input.prompt-input, input.prompt-input:hover {
/* border: 0; */
background: var(--background-primary);
}
/* Settings */
.vertical-tab-header-group-title {
font-size: 12px;
color: var(--color-accent-hover);
text-transform: uppercase;
letter-spacing: 0.03em;
filter: opacity(0.4);
padding: 6px 16px;
text-align: center;
user-select: none;
}
.vertical-tab-header-group {
padding: 20% 0;
}
.vertical-tab-nav-item {
border-left: 10px solid transparent;
user-select: none;
cursor: pointer;
color: var(--text-muted);
filter: opacity(0.5);
text-align: right;
line-height: 1;
font-size: 80%;
}
.setting-item-info {
flex-grow: 1;
/* margin-right: 20px; */
}
.setting-item-name {
font-size: 13px;
filter: brightness(1.1);
text-align: left;
/* margin-left: 60px; */
margin-top: 10px;
color: var(--text-normal);
font-weight: 500;