-
Notifications
You must be signed in to change notification settings - Fork 85
/
ursine-umbra.scss
1359 lines (1126 loc) · 29.1 KB
/
ursine-umbra.scss
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
// SCSS VARIABLES //
// Umbra or Polar?
$umbra: true !default;
// Font variables
$paragraph-font: "'Avenir Next LT Pro', 'Lato', sans-serif";
$header-font: "'Adelle', 'Times New Roman', serif";
$monospace-font: "'Fira Mono', 'Cousine', 'Consolas', monospace";
// Cyrillic font support
$cyrillic-font: false !default;
@if $cyrillic-font {
$paragraph-font: "'Avenir Next Cyr', 'Lato', sans-serif";
$header-font: "'Adelle Cyrillic', 'Times New Roman', serif";
}
// Alternative font support (supports Cyrillic, Greek, Vietnamese, among others)
$alt-font: false !default;
@if $alt-font {
$paragraph-font: "'Open Sans', 'Lato', sans-serif";
$header-font: "'Roboto Slab', 'Times New Roman', serif";
}
// Important colors for writing (text, links, code, etc.)
$bg-color: #1e2022 !default;
$text-color: #ddd !default;
$md-char-color: #5b5b5b !default;
$meta-content-color: #757575 !default;
$link-color: #6bcafb !default;
$mark-color: #107da2eb !default;
$quote-color: #888e9c !default;
$code-bg-color: #282a36 !default;
$code-border-color: #ffffff26 !default;
$kbd-bg-color: #282a36 !default;
$selected-text-bg-color: #285194 !default;
// Button and table colors
$primary-color: #428bca !default;
$primary-btn-border-color: #285e8e !default;
$accent-color: #3c3c3c !default;
$table-head-color: #4d4d4d !default;
// Active and hover colors
$active-file-bg-color: #1b1b1d !default;
$active-search-item-bg-color: #212121 !default;
$item-hover-bg-color: #2e2e2e !default;
$item-hover-text-color: #fff !default;
// Sidebar colors
$sidebar-bg-color: #2b2b2b !default;
$sidebar-bg-hover-color: $bg-color !default;
$sidebar-border-color: #19191c !default;
$sidebar-text-color: $text-color !default;
$search-hit-bg-color: #428bca40 !default;
$search-select-bg-color: #428bca90 !default;
$files-menu-hover-color: $bg-color !default;
// Tooltip and footnote colors
$tooltip-bg-color: $sidebar-bg-color !default;
$tooltip-text-color: $text-color !default;
$tooltip-border-color: #00000040 !default;
$footnote-sup-bg-color: #111 !default;
$footnote-tooltip-bg-color: #111 !default;
$footnote-tooltip-text-color: $text-color !default;
// Dropdown and footer colors
$dropdown-bg-color: $sidebar-bg-color !default;
$dropdown-hover-bg-color: $bg-color !default;
$dropdown-divider-color: $bg-color !default;
$footer-hover-color: $sidebar-bg-color !default;
// Megamenu colors
$megamenu-bg-color: $sidebar-bg-color !default;
$megamenu-text-color: $text-color !default;
$megamenu-hover-bg-color: #222 !default;
$megamenu-active-bg-color: #181818 !default;
$megamenu-sidebar-bg-color: $bg-color !default;
$megamenu-sidebar-hover-bg-color: #161819 !default;
$megamenu-sidebar-active-bg-color: #101010 !default;
$megamenu-button-border-color: #9292928f !default;
// Mermaid diagram colors
$mermaid-node-fill: $bg-color !default;
$mermaid-node-border: $code-border-color !default;
$mermaid-task-fill: #8a88c9 !default;
$mermaid-task-border: #5f5caf !default;
$mermaid-task-done-fill: #6b6b6b !default;
$mermaid-task-done-border: #3d3d3d !default;
$mermaid-task-active-fill: #737cff !default;
$mermaid-task-active-border: #413da0 !default;
$mermaid-task-crit-fill: #d66979 !default;
$mermaid-task-crit-border: #8f1d22 !default;
// FONT-FACES //
@if $cyrillic-font { // Cyrillic font-faces
// Avenir Next Cyr provided by Adrian Frutiger and Akira Kobayashi.
// Downloaded from `https://www.cufonfonts.com/font/avenir-next-cyr`
@font-face {
font-family: "Avenir Next Cyr";
font-style: normal;
font-weight: normal;
src: local("Avenir Next Cyr Regular"), url("./ursine/AvenirNextCyr-Regular.woff") format("woff");
}
@font-face {
font-family: "Avenir Next Cyr";
font-style: italic;
font-weight: normal;
src: local("Avenir Next Cyr Italic"), url("./ursine/AvenirNextCyr-Italic.woff") format("woff");
}
@font-face {
font-family: "Avenir Next Cyr";
font-style: normal;
font-weight: bold;
src: local("Avenir Next Cyr Demi"), url("./ursine/AvenirNextCyr-Demi.woff") format("woff");
}
@font-face {
font-family: "Avenir Next Cyr";
font-style: italic;
font-weight: bold;
src: local("Avenir Next Cyr DemiItalic"), url("./ursine/AvenirNextCyr-DemiItalic.woff") format("woff");
}
// Adelle Cyrillic provided by Veronika Burian and Jos Scaglione
// Downloaded from `https://www.cufonfonts.com/font/adelle-cyrillic`
@font-face {
font-family: "Adelle Cyrillic";
font-style: normal;
font-weight: normal;
src: local("Adelle Cyrillic Light"), url("./ursine/AdelleCyrillic-Light.woff") format("woff");
}
@font-face {
font-family: "Adelle Cyrillic";
font-style: italic;
font-weight: normal;
src: local("Adelle Cyrillic Light Italic"), url("./ursine/AdelleCyrillic-LightItalic.woff") format("woff");
}
@font-face {
font-family: "Adelle Cyrillic";
font-style: normal;
font-weight: bold;
src: local("Adelle Cyrillic SemiBold"), url("./ursine/AdelleCyrillic-SemiBold.woff") format("woff");
}
@font-face {
font-family: "Adelle Cyrillic";
font-style: italic;
font-weight: bold;
src: local("Adelle Cyrillic SemiBold Italic"), url("./ursine/AdelleCyrillic-SemiBoldItalic.woff") format("woff");
}
} @else if $alt-font { // Alternative font
// Open Sans provided by Steve Matteson
// Downloaded from `https://fonts.google.com/specimen/Open+Sans`
@font-face {
font-family: "Open Sans";
font-style: normal;
font-weight: normal;
src: local("Open Sans Regular"), url("./ursine/OpenSans-Regular.ttf") format("ttf");
}
@font-face {
font-family: "Open Sans";
font-style: italic;
font-weight: normal;
src: local("Open Sans Light Italic"), url("./ursine/OpenSans-LightItalic.ttf") format("ttf");
}
@font-face {
font-family: "Open Sans";
font-style: normal;
font-weight: bold;
src: local("Open Sans SemiBold"), url("./ursine/OpenSans-SemiBold.ttf") format("ttf");
}
@font-face {
font-family: "Open Sans";
font-style: italic;
font-weight: bold;
src: local("Open Sans Italic"), url("./ursine/OpenSans-Italic.ttf") format("ttf");
}
// Roboto Slab provided by Christian Robertson
// Downloaded from `https://fonts.google.com/specimen/Roboto+Slab`
@font-face {
font-family: "Roboto Slab";
font-style: normal;
font-weight: normal;
src: local("Roboto Slab Extra Light"), url("./ursine/RobotoSlab-ExtraLight.ttf") format("ttf");
}
@font-face {
font-family: "Roboto Slab";
font-style: normal;
font-weight: bold;
src: local("Roboto Slab Regular"), url("./ursine/RobotoSlab-Regular.ttf") format("ttf");
}
} @else { // Normal font-faces
// Avenir Next LT Pro provided by Adrian Frutiger and Akira Kobayashi.
// Downloaded from `https://www.cufonfonts.com/font/avenir-next-lt-pro`
@font-face {
font-family: 'Avenir Next LT Pro';
font-style: normal;
font-weight: normal;
src: local('Avenir Next LT Pro Regular'), url('./ursine/AvenirNextLTPro-Regular.woff') format('woff');
}
@font-face {
font-family: 'Avenir Next LT Pro';
font-style: italic;
font-weight: normal;
src: local('Avenir Next LT Pro It'), url('./ursine/AvenirNextLTPro-Italic.woff') format('woff');
}
@font-face {
font-family: 'Avenir Next LT Pro';
font-style: normal;
font-weight: bold;
src: local('Avenir Next LT Pro Demi'), url('./ursine/AvenirNextLTPro-Demi.woff') format('woff');
}
@font-face {
font-family: 'Avenir Next LT Pro';
font-style: italic;
font-weight: bold;
src: local('Avenir Next LT Pro DemiIt'), url('./ursine/AvenirNextLTPro-DemiItalic.woff') format('woff');
}
// Adelle provided by Veronika Burian and Jos Scaglione
// Downloaded from `https://www.cufonfonts.com/font/adelle`
@font-face {
font-family: 'Adelle';
font-style: normal;
font-weight: normal;
src: local('Adelle Light'), url('./ursine/Adelle-Light.woff') format('woff');
}
@font-face {
font-family: 'Adelle';
font-style: italic;
font-weight: normal;
src: local('Adelle Light Italic'), url('./ursine/Adelle-LightItalic.woff') format('woff');
}
@font-face {
font-family: 'Adelle';
font-style: normal;
font-weight: bold;
src: local('Adelle SemiBold'), url('./ursine/Adelle-SemiBold.woff') format('woff');
}
@font-face {
font-family: 'Adelle';
font-style: italic;
font-weight: bold;
src: local('Adelle SemiBold Italic'), url('./ursine/Adelle-SemiBoldItalic.woff') format('woff');
}
}
// Fira Mono provided by Carrois Apostrophe from Google Fonts
// Downloaded from `https://fonts.google.com/specimen/Fira+Mono`
@font-face {
font-family: 'Fira Mono';
font-style: normal;
font-weight: normal;
src: local('Fira Mono Regular'), url('./ursine/FiraMono-Regular.ttf') format('ttf');
}
@font-face {
font-family: 'Fira Mono';
font-style: normal;
font-weight: bold;
src: local('Fira Mono Bold'), url('./ursine/FiraMono-Bold.ttf') format('ttf');
}
// IMPORTS //
@import 'ursine/code-dracula';
// ROOT VARIABLES //
:root {
--bg-color: #{$bg-color}; // background color
--text-color: #{$text-color}; // text color
--md-char-color: #{$md-char-color}; // color of meta characters (i.e. `*` in markdown)
--meta-content-color: #{$meta-content-color}; // color of meta contents (i.e. image text or link address in markdown)
--table-border-color: #{$md-char-color}; // color of table cell borders
--select-text-bg-color: #{$selected-text-bg-color}; // background color for selected text
--primary-color: #{$primary-color}; // primary color
--primary-btn-border-color: #{$primary-btn-border-color}; // primary color for button borders
--primary-btn-text-color: #{$text-color}; // text color for buttons
--window-border: 1px solid #{$active-file-bg-color}; // border color for window and sidebar
--active-file-bg-color: #{$active-file-bg-color}; // background color for active file in sidebar
--active-file-text-color: inherit; // text color for selected file
--active-file-border-color: #{$meta-content-color}; // border color for selected file
--active-search-item-bg-color: #{$active-search-item-bg-color}; // background color for active search item
--side-bar-bg-color: #{$sidebar-bg-color}; // sidebar background color
--item-hover-bg-color: #{$item-hover-bg-color}; // background color of control items when hovering
--item-hover-text-color: #{$item-hover-text-color}; // text color upon hovering over menu items
--search-select-text-color: #{$text-color}; // text color for selected searched text
--search-select-bg-color: #{$search-select-bg-color}; // background color for selected searched text
--rawblock-edit-panel-bd: #{$accent-color}; // background color for inline HTML 'edit panel' blocks
--monospace: #{$monospace-font}; // monospace font for code
--node-fill: #{$mermaid-node-fill}; // Mermaid node fill color
--node-border: #{$mermaid-node-border}; // Mermaid node border
}
// STYLING //
// Tags
html, body {
font-family: unquote($paragraph-font);
}
body { font-size: 1em; }
h1, h2, h3, h4, h5, h6 {
font-family: unquote($header-font);
}
p { margin: .5rem 0; }
a { color: $link-color; }
del { color: $md-char-color; }
mark {
padding: 0 2px 2px;
background: $mark-color;
color: inherit;
}
blockquote {
position: relative;
margin: 1rem 0 1rem 2rem;
font-family: unquote($header-font);
color: $quote-color;
&::before {
content: '';
position: absolute;
left: -2rem;
height: 100%;
width: .25rem;
background: $primary-color;
}
}
code,
.md-fences,
tt {
font-family: unquote($monospace-font);
font-size: 1rem;
}
code {
font-size: .9em;
border: 1px solid $code-border-color;
border-radius: .25rem;
padding: 1px .25rem;
background: $code-bg-color;
}
kbd {
font-family: unquote($monospace-font);
font-size: .875rem;
border: 2px solid $code-border-color;
background: $kbd-bg-color;
color: $text-color;
box-shadow: none;
}
hr { border-color: $md-char-color; }
table {
border: 1px solid $md-char-color;
margin: 1rem 0;
tr:nth-child(2n) {
background: $accent-color;
}
}
thead { background: $table-head-color; }
td, th {
padding: .35rem .7rem;
border: 1px solid $md-char-color;
}
// Writing area
#write {
position: static;
width: 90%;
max-width: 700px;
line-height: 1.6;
transform: none; // Windows-specific fix
h1, h2, h3, h4, h5, h6, p, pre {
width: auto;
}
// Headers
h1, h2, h3, h4, h5, h6 {
&::before {
position: absolute;
left: auto;
right: calc(100% + .75em);
top: 0;
color: $md-char-color;
font-size: 1rem;
font-weight: bold;
font-variant: 'small-caps';
}
}
h1 {
font-size: 1.8rem;
margin: 1rem 0;
&::before {
content: 'H1';
top: .87rem;
}
}
h2 {
font-size: 1.4rem;
margin: .7rem 0;
&::before {
content: 'H2';
top: .43rem;
}
}
h3 {
font-size: 1.2rem;
margin: .5rem 0;
&::before {
content: 'H3';
top: .2rem;
}
}
h4 {
font-size: 1.1rem;
margin: .2rem 0;
&::before {
content: 'H4';
top: .07rem;
}
}
h5, h6 {
font-size: 1rem;
margin: 0;
}
h5::before {
content: 'H5';
}
h6::before {
content: 'H6';
}
> h1.md-focus::before,
> h2.md-focus::before,
> h3.md-focus::before,
> h4.md-focus::before,
> h5.md-focus::before,
> h6.md-focus::before {
color: $meta-content-color;
padding: 0;
border: 0;
line-height: inherit;
}
// Lists
ol, ul {
padding-left: 2rem;
margin: .5rem 0;
> li {
color: $primary-color;
font-weight: bold;
> * {
color: $text-color;
font-weight: normal;
}
> *:not(ol):not(ul) {
padding-left: .25rem;
}
}
}
ul {
list-style-type: disc;
}
// Checklists
.md-task-list-item {
$transition-duration: .3s;
> input {
-webkit-appearance: initial;
display: block;
position: absolute;
border: 1px solid $md-char-color;
border-radius: .25rem;
margin-top: .1rem;
margin-left: -1.8rem;
height: 1.2rem;
width: 1.2rem;
transition: background $transition-duration;
&:focus {
outline: none;
box-shadow: none;
}
&:hover {
background: $accent-color;
}
&[checked]::before {
content: '';
position: absolute;
top: 20%;
left: 50%;
height: 60%;
width: 2px;
transform: rotate(40deg);
background: $text-color;
}
&[checked]::after {
content: '';
position: absolute;
top: 46%;
left: 25%;
height: 30%;
width: 2px;
transform: rotate(-40deg);
background: $text-color;
}
}
> p {
transition: color $transition-duration, opacity $transition-duration;
}
&.task-list-done > p {
color: $md-char-color;
text-decoration: line-through;
> .md-emoji {
opacity: .5;
}
> .md-link > a {
opacity: .6;
}
}
}
// YAML
.md-meta-block {
background-color: transparent;
border-bottom: 1px solid $md-char-color;
padding-bottom: 1rem;
opacity: .8;
}
// Table toolbar
.md-table-edit {
border-top: 1px solid $md-char-color;
margin-top: -29px !important;
padding: 3px 0;
}
.md-grid-board {
a {
&.md-active,
&:hover {
background: $primary-color;
color: $md-char-color;
}
}
tr[row='1'] a {
&.md-active,
&:hover {
background: $primary-btn-border-color;
color: $md-char-color;
}
}
}
.btn-group .btn + .btn {
margin-left: 0;
}
.btn-default {
&.active,
&.focus,
&:active,
&:focus,
&:hover,
.open > &.dropdown-toggle {
background: transparent;
color: inherit;
}
}
// Table drag areas
.typora-table-drag-area {
&::after {
content: '';
position: absolute;
border: 2px solid $text-color;
opacity: 0;
transition: opacity .4s;
}
#typora-table-row-tracker &::after,
#typora-table-col-tracker &::after {
opacity: 1;
}
#typora-table-row-tracker &::after {
top: 0;
left: 50%;
transform: translateX(-50%);
width: 0;
height: 100%;
}
#typora-table-col-tracker &::after {
top: 50%;
left: 0;
transform: translateY(-50%);
width: 100%;
height: 0;
}
}
// Table of contents
.md-toc-tooltip {
z-index: 10;
}
.md-toc-item {
font-size: 1.1rem;
color: var(--primary-btn-border-color);
}
.md-toc-h1 {
font-family: unquote($header-font);
font-size: 1.3rem;
}
.md-toc-h2 {
font-size: 1.2rem;
}
// Footnotes
.md-footnote {
font-family: unquote($header-font);
font-size: .8em;
border: 1px solid $accent-color;
padding: 0 4px;
background: $footnote-sup-bg-color;
color: $text-color;
}
.md-def-split {
min-width: 1ch;
}
.md-def-name {
&::before, &::after {
color: $meta-content-color;
}
}
// Image meta text
.md-image > .md-meta {
color: $meta-content-color;
}
// Inline styles
.md-rawblock-tooltip {
top: -1.5rem;
height: 1.5rem;
padding: .25rem;
}
// Search results
.md-search-hit {
background: $search-hit-bg-color;
border-radius: .125rem;
}
.md-search-select {
background: $search-select-bg-color;
border: 1px solid $megamenu-button-border-color;
padding: 0 1px;
}
// Mermaid diagrams
pre[lang="mermaid"] {
.md-diagram-panel {
border-color: $code-border-color;
}
tspan {
fill: $text-color;
}
// Mermaid graphs diagrams
&[mermaid-type="graph"] {
path.path {
& ~ defs marker {
fill: $text-color;
}
}
.cluster rect {
fill: transparent !important;
stroke: $mermaid-node-border !important;
}
}
// Mermaid Gantt diagrams
&[mermaid-type="gantt"] {
// NOTE: Not the best, but I can't target with :nth-child(2n)
@for $i from 1 to 20 {
.section#{$i} {
@if $i % 2 == 0 {
fill: $accent-color;
} @else {
fill: transparent;
}
}
}
.task {
fill: $mermaid-task-fill;
stroke: $mermaid-task-border;
&[class*="done"] {
fill: $mermaid-task-done-fill;
stroke: $mermaid-task-done-border;
}
&[class*="active"] {
fill: $mermaid-task-active-fill;
stroke: $mermaid-task-active-border;
}
&[class*="crit"] {
fill: $mermaid-task-crit-fill;
stroke: $mermaid-task-crit-border;
}
&[class*="Crit"] {
stroke: $mermaid-task-crit-border;
}
}
text {
fill: $text-color;
&[class*="activeText"], &[class*="activeCritText"] {
fill: $text-color !important;
font-weight: bold;
}
&[class*="doneText"], &[class*="doneCritText"] {
fill: $md-char-color !important;
}
}
.grid .tick line {
stroke: $text-color;
}
}
}
}
// Modals
.modal-content {
.modal-header, .modal-footer {
border-color: $md-char-color;
}
input, button.btn-default {
border-color: $md-char-color;
}
input {
background: transparent;
}
}
// Quick Open window
#typora-quick-open {
top: 32px;
width: 40%;
min-width: 420px;
transform: translateX(-50%);
margin-left: 0;
.mac-seamless-mode & {
top: 50px;
}
#typora-quick-open-input input {
border-color: $primary-color;
}
.ty-quick-open-category-list-inner {
position: relative;
}
.ty-quick-open-category-title {
height: auto;
padding-top: 4px;
padding-left: 12px;
}
.typora-quick-open-item {
display: flex;
flex-direction: column;
justify-content: center;
padding-bottom: 2px;
cursor: pointer;
&:not(.active):hover {
background: $active-search-item-bg-color;
}
&.active:before {
content: '⟩';
position: absolute;
left: 8px;
font-weight: bold;
padding-bottom: 5px;
}
}
.typora-quick-open-item-path {
margin-top: -2px;
}
}
// Outline Dropdown (MacOS)
#toc-dropmenu {
padding: .25em 0;
background: $bg-color;
// Disable the divider
.outline-title-divider {
display: none;
}
}
// Disable underlining in outline items
.outline-label:hover {
text-decoration: none;
}
// Tooltips
.ty-tooltip {
background: $tooltip-bg-color;
color: $tooltip-text-color;
border-color: $tooltip-border-color;
}
.code-tooltip.md-f-tooltip {
&, .md-arrow::after {
background: $footnote-tooltip-bg-color !important;
color: $footnote-tooltip-text-color !important;
}
a {
color: $link-color;
}
}
// Focus mode
.on-focus-mode {
.md-end-block:not(.md-focus):not(.md-focus-container) {
&, *, ol, ul {
color: $md-char-color !important;
}
img, .md-footnote, .md-emoji {
opacity: .5;
}
mark {
background: $accent-color;
}
}
blockquote .md-end-block:not(.md-focus):not(.md-focus-container)::before {
opacity: .5;
}
li:not(.md-focus-container)::before {
opacity: .5;
}
}
// Sidebar
#typora-sidebar {
border-right: 1px solid $sidebar-border-color;
.sidebar-tabs {
font-family: unquote($header-font);
border-bottom: 1px solid $sidebar-border-color;
}
.file-list-item-file-name {
font-family: unquote($header-font);
font-size: 1.2em;
}
// Search
#file-library-search-input {
background: $sidebar-bg-color;
}
#file-library-search {
.file-list-item-file-name {
font-size: 1.1rem;
}
.ty-search-item.active {
background: $active-search-item-bg-color;
}
}
.file-list-item-summary,
.ty-search-item-line {
font-family: unquote($paragraph-font);
}
.ty-file-search-match-text,
.ty-outline-hit {
font-weight: bold;
background: transparent;
}
// Outline
#outline-content {
line-height: 1.4em;
.outline-h1 > .outline-item {
font-family: unquote($header-font);
}
@for $i from 1 through 6 {
.outline-h#{$i} > .outline-item {
padding-left: .75em * ($i - 1);
}
}
.outline-item:hover {
background: $sidebar-bg-hover-color;
}
}
.outline-title-wrapper,
.outline-item-wrapper.outline-h1 > .outline-item {
font-family: unquote($header-font);
}
// Node/Item
.file-library-node,
.file-library-node .file-node-background {
transition: background .4s;