forked from 3ter/Ohmine-Dark-Theme-For-Joplin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuserchrome.css
1613 lines (1345 loc) · 56.5 KB
/
userchrome.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
/* OhmineDT v3.1.87 | userchrome.css |
/* CSS for: Markdown Editor | Joplin UI */
/* By usual case, you would only to edit the source code within the root section to fulfill most of your personal needs */
/* Please add your custom code to the bottom of this document if needed. */
/* OhmineDT will stay compatible with the latest stable versions of Joplin. */
/* OhmineDT's updates information: https://github.com/Nacandev/Ohmine-Dark-Theme-For-Joplin#latest-released */
/* Thank you, guys! I hope you enjoy what's OhmineDT did for you! */
/* Tell me whatever you want > Joplin Forum: https://discourse.joplinapp.org/t/css-theme-ohmine-dark-theme/21000 */
/* Directly report an issue > Github: https://github.com/Nacandev/Ohmine-Dark-Theme-For-Joplin/issues/new/choose */
:root {
/* ******************************************************* */
/* !!!!!!!!! ROOT: SECTION START !!!!!!!!!! */
/* ******************************************************* */
/* ******************************************************* */
/* === SWITCHER === */
/* ******************************************************* */
/* to get the correct effect, please follow the below comments to edit the switchers */
/* SWITCHER FOR MARKDOWN EDITOR ************************** */
/* change the below css property values to control the style effects on Markdown Editor */
--switcher-mde-abstract-content-bar-display: block; /* SHOW: "block;" | HIDE: "none;" | show/hide the abstract content bar */
--switcher-mde-abstract-content-bar-blank-line-display: none; /* SHOW: "block;" | HIDE: "none;" | show/hide the blank lines on abstract content bar */
--switcher-mde-headings-text-shadow: 0 0 2px; /* SHOW: "0 0 2px;" | HIDE: "none;" | show/hide the text shadow of headings */
--switcher-mde-h1-font-variant: small-caps; /* ON: "small-caps;" | OFF: "none;" | turn on/off the small-caps effect of h1 heading */
--switcher-mde-horizontal-line-background-color: none; /* ON: "var(--hr-background-gradient);" | OFF: "none;" | turn on/off the background color of horizontal line markdown syntax */
/* SWITCHER JOPLIN UI ************************************ */
/* change the below css property values to control the Joplin UI layout */
--switcher-jui-all-note-button-display: flex; /* SHOW: "flex;" | HIDE: "none;" | show/hide the top left all notes button */
--switcher-jui-rich-text-editor-switch-button-display: flex; /* SHOW: "flex;" | HIDE: "none;" | show/hide the top right editor toggle button */
--switcher-jui-notebook-panel-notebook-item-wrap: normal; /* ON: "normal;" | OFF: "none;" | turn on/off wrap text effect of the notebook names in notebook panel (mouse hover + [SHIFT] + [MOUSE WHEEL] for scroll) */
/* ******************************************************* */
/* === STYLING: MARKDOWN EDITOR === */
/* ******************************************************* */
/* GENERAL *********************************************** */
/* base font: heading | paragraph | blockquote | list | footnote | sticky notes | custom title block | emphasize | strong | insert | strikethrough | mark | search */
--base-font: "montserrat", "chiron sans hk pro extralight", avenir, arial, sans-serif;
--base-font-size: 14px;
/* monospace font: table | anchor text link | file path link | code block | inline code | katex | html */
--monospace-font: "cascadia mono light", monospace, "chiron sans hk pro extralight";
--monospace-font-size: 12px;
--monospace-font-line-height: normal;
/* bigger monospace font: file path link text | anchor link text | abbreviation text */
--bigger-monospace-font-size: 14px;
/* markdown editor --------------------------------------- */
--markdown-editor-background-color: #151b1a;
/* paragraph --------------------------------------------- */
--markdown-editor-text-color: #bdbdbd;
/* horizontal line --------------------------------------- */
--hr-background-color: #3a3930;
--hr-text-color: #777777;
--hr-background-gradient: linear-gradient( /* edit this value might cause the `--switcher-mde-horizontal-line-background-color` not working */
to bottom,
var(--markdown-editor-background-color) 30%,
var(--hr-background-color) 53%,
var(--markdown-editor-background-color) 75%
);
/* HEADINGS ********************************************** */
/* headings group: h1 to h6 ------------------------------ */
--headings-font-weight: 500;
--headings-line-height: 1em;
--headings-text-color: #cacaca;
--headings-text-shadow: #cacaca;
/* headings font size ------------------------------------ */
--h1-font-size: 1.6em;
--h2-font-size: 1.5em;
--h3-font-size: 1.4em;
--h4-font-size: 1.3em;
--h5-font-size: 1.2em;
--h6-font-size: 1.1em;
/* headings color ---------------------------------------- */
/* by default, they are all equal to the --headings-text-color */
--h1-text-color: var(--headings-text-color);
--h2-text-color: var(--headings-text-color);
--h3-text-color: var(--headings-text-color);
--h4-text-color: var(--headings-text-color);
--h5-text-color: var(--headings-text-color);
--h6-text-color: var(--headings-text-color);
/* headings text shadow ---------------------------------- */
/* by default, they are all equal to the --headings-text-shadow */
--h1-text-shadow: var(--headings-text-shadow);
--h2-text-shadow: var(--headings-text-shadow);
--h3-text-shadow: var(--headings-text-shadow);
--h4-text-shadow: var(--headings-text-shadow);
--h5-text-shadow: var(--headings-text-shadow);
--h6-text-shadow: var(--headings-text-shadow);
/* SPECIAL TEXT ****************************************** */
/* special text group: mark | emphasize | abbreviation | strong | insert | strikethrough */
--special-text-color: #73b99d;
--special-text-border-color: var(--special-text-color);
/* mark text --------------------------------------------- */
--mark-text-color: var(--special-text-color);
--mark-text-border-color: var(--mark-text-color);
/* search text ------------------------------------------- */
--search-text-color: #f1f173;
--search-text-border-color-selected: var(--search-text-color);
--search-text-box-shadow: var(--search-text-color);
/* search text - scrollbar search marker ------------------*/
--search-text-scrollbar-marker-background-color: var(--search-text-color);
/* text group: emphasize | abbreviation ----------------- */
/* joplin didn't provide an independent abbreviation text css class on markdown editor */
--emphasize-text-color: var(--special-text-color);
--emphasize-text-border-color: var(--emphasize-text-color);
/* strong text ------------------------------------------- */
--strong-text-color: var(--special-text-color);
--strong-text-border-color: var(--strong-text-color);
/* insert text ------------------------------------------- */
--insert-text-color: var(--special-text-color);
--insert-text-border-color: var(--insert-text-color);
/* strikethrough text ------------------------------------ */
--strikethrough-text-color: var(--special-text-color);
--strikethrough-text-border-color: var(--strikethrough-text-color);
/* inline code text -------------------------------------- */
--inline-code-text-color: #bdbdbd;
--inline-code-text-background-color: #232323;
--inline-code-text-border-color: #585858;
--inline-code-text-shadow: black;
/* SYNTAX ************************************************ */
/* syntax group: tag | string | attribute ---------------- */
--syntax-text-color: #a0a0a0;
/* syntax tag -------------------------------------------- */
--syntax-tag-text-color: var(--syntax-text-color);
--syntax-tag-background-color: #2f0008;
/* syntax string ----------------------------------------- */
--syntax-string-text-color: var(--syntax-text-color);
--syntax-string-background-color: #0b2d00;
/* syntax attribute -------------------------------------- */
--syntax-attribute-text-color: var(--syntax-text-color);
--syntax-attribute-background-color: #36005a;
/* LINK ************************************************** */
--link-text-color: #9a9a7e;
/* LIST ************************************************** */
--list-text-color: #a5a5a5;
--list-token-color: var(--list-text-color);
/* BLOCKQUOTE ******************************************** */
--blockquote-text-color: #808080;
/* CODEBLOCK ********************************************* */
--codeblock-background-color: #191919;
/* ABSTRACT CONTENT BAR ********************************** */
--acb-plain-text: #383838;
--acb-heading: #ffffff6e;
--acb-list: #51bba8;
--acb-blockquote: #a97945;
--acb-table: #575384;
--acb-image: #045d00;
--acb-footnote: #5a5800;
--acb-link: #cdd286;
--acb-abbreviation: #00c538;
--acb-html-tag: #ff0063;
--acb-katex: #5aa5fb;
--acb-checklist: #5d00ff;
--acb-codeblock: var(--codeblock-background-color);
--acb-blank-line: var(--markdown-editor-background-color);
/* PLUGIN: MARKDOWN TABLE COLORIZE *********************** */
/* markdown table colorize: caret ------------------------ */
--mtc-table-caret-color: #ff0000;
/* markdown table colorize: table vertical bar ----------- */
--mtc-table-vertical-bar-color: #5a5a5a;
/* markdown table colorize: table text ------------------- */
--mtc-table-text-color: #bdbdbd;
/* markdown table colorize: table separate group: header | row */
--mtc-table-separate-text-color: #bdbdbd;
--mtc-table-separate-text-shadow: black;
/* markdown table colorize: table separate header -------- */
--mtc-table-separate-header-background-color: linear-gradient(to right, #696969 10%, #2d2d2d 40%);
/* markdown table colorize: table separate row ----------- */
--mtc-table-separate-row-background-color: linear-gradient(to right, #424242 10%, #242424 40%);
/* markdown table colorize: table column mark ----------- */
/* table column mark group ------------------------------- */
--mtc-table-column-mark-background-color: black;
--mtc-table-column-mark-border-color: #4c4c4c; /* only for column 10 to 19 */
/* standalone table column mark -------------------------- */
--mtc-table-col0-mark-color: #ff8080cc;
--mtc-table-col1-mark-color: #fff980cc;
--mtc-table-col2-mark-color: #80fff7cc;
--mtc-table-col3-mark-color: #9080ffcc;
--mtc-table-col4-mark-color: #ff80fdcc;
--mtc-table-col5-mark-color: #a3ffa5cc;
--mtc-table-col6-mark-color: #ff9500cc;
--mtc-table-col7-mark-color: #2eff62cc;
--mtc-table-col8-mark-color: #579dffcc;
--mtc-table-col9-mark-color: #ff00cc;
--mtc-table-col10-mark-color: var(--mtc-table-col0-mark-color);
--mtc-table-col11-mark-color: var(--mtc-table-col1-mark-color);
--mtc-table-col12-mark-color: var(--mtc-table-col2-mark-color);
--mtc-table-col13-mark-color: var(--mtc-table-col3-mark-color);
--mtc-table-col14-mark-color: var(--mtc-table-col4-mark-color);
--mtc-table-col15-mark-color: var(--mtc-table-col5-mark-color);
--mtc-table-col16-mark-color: var(--mtc-table-col6-mark-color);
--mtc-table-col17-mark-color: var(--mtc-table-col7-mark-color);
--mtc-table-col18-mark-color: var(--mtc-table-col8-mark-color);
--mtc-table-col19-mark-color: var(--mtc-table-col9-mark-color);
/* ******************************************************* */
/* === STYLING: JOPLIN UI === */
/* ******************************************************* */
/* GENERAL *********************************************** */
--general-body-background-color: #191919;
/* NOTEBOOK PANEL **************************************** */
/* notebook panel: container ----------------------------- */
--np-background-color: #191919;
--np-box-shadow: #33524a;
/* notebook panel: header -------------------------------- */
/* header text group: notebook icon | text | plus icon -- */
--np-header-text-color: white;
/* notebook panel: directory icon ------------------------ */
--np-directory-icon-closed-color: #f6ff67;
--np-directory-icon-opened-color: #71ffc4;
--np-directory-icon-shadow: white;
/* notebook panel: notebook item ------------------------- */
--np-notebook-item-text-color: #e2e2e2;
--np-notebook-item-border-color: #393939;
--np-notebook-item-scrollbar-color: #00ffd5;
/* notebook panel: notebook item selected state ---------- */
--np-notebook-item-background-color-selected: linear-gradient(60deg, #002f24, #00926a);
--np-notebook-item-box-shadow-selected: #72fdbd;
/* notebook panel: note count label ---------------------- */
--np-note-count-label-text-color: #ffffff;
--np-note-count-label-background-color: #1d2927;
--np-note-count-label-box-shadow: white;
/* notebook panel: synchronize information text ---------- */
--np-sync-info-text-color: #02ffd0;
/* notebook panel: synchronize button -------------------- */
--np-sync-button-background-color: #191919;
--np-sync-button-box-shadow: #5a826e;
--np-sync-button-background-color-hover: #151f19;
--np-sync-button-box-shadow-hover: #beffdf;
--np-sync-button-text-color: #b1b1b1;
--np-sync-button-text-color-hover: #ddffef;
--np-sync-button-icon-shadow-hover: #7dffa6;
/* NOTELIST PANEL **************************************** */
/* notelist panel: container ----------------------------- */
--nlp-box-shadow: #33524a;
/* notelist panel: header container ---------------------- */
--nlp-header-background-color: #172723;
--nlp-header-box-shadow: #beffdf;
/* notelist panel: header search bar --------------------- */
--nlp-header-search-bar-placeholder-text-color: #888;
--nlp-header-search-bar-background-color: #191919;
--nlp-header-search-bar-box-shadow: #c1c1c1;
--nlp-header-search-bar-box-shadow-hover: white;
/* notelist panel: header button ------------------------- */
/* button group: sort field | sort reverse | todo | note --- */
--nlp-header-button-background-color: #191919;
--nlp-header-button-box-shadow: #c1c1c1;
--nlp-header-button-background-color-hover: #22584d;
--nlp-header-button-box-shadow-hover: white;
/* button icon group: search | cancel | sort field | sort reverse | todo | note */
--nlp-header-button-icon-color: #b1b1b1;
--nlp-header-button-icon-color-hover: #83e2ca;
/* notelist panel: body container ------------------------ */
--nlp-body-container-background-color: #191919;
/* notelist panel: note list item ------------------------ */
--nlp-list-item-text-color: var(--np-notebook-item-text-color);
--nlp-list-item-border-color: var(--np-notebook-item-border-color);
--nlp-note-list-item-background-color: #74370166;
--nlp-note-list-item-background-color-selected: linear-gradient(60deg, #002f24, #00926a);
--nlp-note-list-item-box-shadow-selected: #72fdbd;
--nlp-note-list-item-filter-hover-selected: hue-rotate(180deg);
/* EDITOR HEADER ***************************************** */
/* editor header: container ------------------------------ */
--eh-background-color: #151b1a;
/* editor header: notebook navigation button ------------- */
--eh-notebook-navigation-button-text-color: white;
--eh-notebook-navigation-button-background-color: #089c74;
--eh-notebook-navigation-button-hover: hue-rotate(180deg);
/* EDITOR TOP TOOLBAR ************************************ */
/* editor top toolbar: container ------------------------- */
--ett-background-color: #172723;
--ett-box-shadow: #beffdf;
/* editor top toolbar: button ---------------------------- */
--ett-button-background-color-hover: #22584d;
--ett-button-box-shadow-hover: white;
--ett-button-icon-color-hover: #83e2ca;
--ett-button-icon-color: var(--nlp-header-button-icon-color);
/* editor top toolbar: rich text editor toolbar container */
--ett-rich-text-editor-toolbar-background: var(--ett-background-color);
--ett-rich-text-editor-toolbar-box-shadow: var(--ett-box-shadow);
/* EDITOR BOTTOM TAG BAR ********************************* */
/* editor bottom tag bar: container ---------------------- */
--ebtb-background-color:#191919;
--ebtb-box-shadow: grey;
/* editor bottom tag bar: tag ---------------------------- */
--ebtb-tag-background-color: #4e3f1c;
--ebtb-tag-border-color: #ffffff1f;
--ebtb-tag-text-shadow: black;
--ebtb-tag-text-hover: white;
/* OPTIONS PAGE ****************************************** */
/* option page: menu ------------------------------------- */
--op-menu-text-color: white;
--op-menu-background-color: #151b1a;
--op-menu-background-color-hover: #009e847a;
--op-menu-background-color-selected: #009e84;
/* option page: content ---------------------------------- */
--op-content-background-color: #3b403f;
--op-input-text-color: #bdbdbd;
--op-dropdown-list-text-color: #bdbdbd;
--op-checkbox-checked-filter: hue-rotate(320deg);
--op-label-font-size: 14px;
--op-button-background-color: #151b1a;
--op-button-text-color: #6bbbae;
--op-table-container-background-color: #151b1a;
--op-table-border-color: #444;
--op-table-keyboard-shortcut-background-color: #565656;
/* option page: plugin ----------------------------------- */
--op-plugin-card-background-color: #292929;
--op-plugin-card-box-shadow: #151b1a;
--op-plugin-switcher-filter: hue-rotate(300deg);
--op-plugin-update-button-background-color: #1c3f46;
--op-plugin-update-button-box-shadow: #68ffb4;
/* ********************************************************* */
/* !!!!!!!!! ROOT: SECTION END !!!!!!!!!! */
/* ********************************************************* */
}
/* ********************************************************* */
/* !!!!!!!!! MAIN SOURCE CODE: SECTION START !!!!!!!!!! */
/* ********************************************************* */
/* ********************************************************* */
/* STYLING: MARKDOWN EDITOR */
/* ********************************************************* */
/* GENERAL ************************************************* */
/* base font: heading | paragraph | blockquote | list | footnote | sticky notes | custom title block | emphasize | strong | insert | strikethrough | mark | search */
.CodeMirror-lines .CodeMirror-line * {
font-family: var(--base-font) !important;
font-size: var(--base-font-size);
}
/* monospace font: table | anchor text link | file path link | code block | inline code | katex | html */
.CodeMirror-lines .CodeMirror-line .cm-url.cm-rm-link,
.CodeMirror-lines .CodeMirror-line .cm-hr,
.CodeMirror-lines .CodeMirror-line .cm-tag,
.CodeMirror-lines .CodeMirror-line .cm-string,
.CodeMirror-lines .CodeMirror-line .cm-attribute,
.CodeMirror-lines .CodeMirror-line .cm-image,
.CodeMirror-lines .CodeMirror-line .cm-atom,
.CodeMirror-lines .CodeMirror-line .cm-number,
.CodeMirror-lines .CodeMirror-line .cm-bracket,
.CodeMirror-lines .CodeMirror-line .cm-rm-link.cm-rm-image,
.CodeMirror-lines .CodeMirror-line .cm-string.cm-rm-link,
.CodeMirror-lines .CodeMirror-line .cm-link-text,
.CodeMirror-lines .CodeMirror-line [class|="cm-katex"],
.CodeMirror-lines .CodeMirror-line [class|="cm-katex"] ~ .cm-variable-2,
.CodeMirror-lines .CodeMirror-line .cm-bracket ~ .cm-variable-2,
.CodeMirror-lines .CodeMirror-line .cm-link-text.cm-em ~ *,
.CodeMirror-lines .CodeMirror-line .cm-jn-monospace {
font-family: var(--monospace-font) !important;
font-size: var(--monospace-font-size);
line-height: var(--monospace-font-line-height);
}
/* bigger monospace font: file path link text | anchor link text | abbreviation text */
.CodeMirror-lines .CodeMirror-line .cm-rm-link,
.CodeMirror-lines .CodeMirror-line .cm-em.cm-link-text,
.CodeMirror-lines .CodeMirror-line .cm-link-text.cm-em ~ * {
font-size: var(--bigger-monospace-font-size);
}
/* markdown editor ----------------------------------------- */
.resizableLayoutItem.rli-root,
.codeMirrorEditor {
background-color: var(--markdown-editor-background-color) !important;
}
/* paragraph ----------------------------------------------- */
.CodeMirror-line span[role="presentation"]:only-child,
.CodeMirror-line .cm-comment.cm-jn-monospace {
color: var(--markdown-editor-text-color);
}
.CodeMirror-lines {
padding: 0 5px 0 0 !important;
}
/* horizontal line ----------------------------------------- */
.CodeMirror-line.cm-rm-hr > span,
.CodeMirror-line.cm-rm-hr {
display: inline-block;
width: 100%;
background: var(--hr-background-gradient);
background: var(--switcher-mde-horizontal-line-background-color);
}
.CodeMirror-lines .CodeMirror-line .cm-hr {
color: var(--hr-text-color);
}
/* HEADINGS ************************************************ */
/* headings group: h1 to h6 -------------------------------- */
.CodeMirror-line .cm-header {
font-weight: var(--headings-font-weight);
line-height: var(--headings-line-height);
color: var(--headings-text-color);
text-shadow: var(--switcher-mde-headings-text-shadow) var(--headings-text-shadow);
}
/* h1 ------------------------------------------------------ */
.CodeMirror-line .cm-header.cm-header-1 {
font-size: var(--h1-font-size);
font-variant: var(--switcher-mde-h1-font-variant);
color: var(--h1-text-color);
text-shadow: var(--switcher-mde-headings-text-shadow) var(--h1-text-shadow);
}
/* h2 ------------------------------------------------------ */
.CodeMirror-line .cm-header.cm-header-2 {
font-size: var(--h2-font-size);
color: var(--h2-text-color);
text-shadow: var(--switcher-mde-headings-text-shadow) var(--h2-text-shadow);
}
/* h3 ------------------------------------------------------ */
.CodeMirror-line .cm-header.cm-header-3 {
font-size: var(--h3-font-size);
color: var(--h3-text-color);
text-shadow: var(--switcher-mde-headings-text-shadow) var(--h3-text-shadow);
}
/* h4 ------------------------------------------------------ */
.CodeMirror-line .cm-header.cm-header-4 {
font-size: var(--h4-font-size);
color: var(--h4-text-color);
text-shadow: var(--switcher-mde-headings-text-shadow) var(--h4-text-shadow);
}
/* h5 ------------------------------------------------------ */
.CodeMirror-line .cm-header.cm-header-5 {
font-size: var(--h5-font-size);
color: var(--h5-text-color);
text-shadow: var(--switcher-mde-headings-text-shadow) var(--h5-text-shadow);
}
/* h6 ------------------------------------------------------ */
.CodeMirror-line .cm-header.cm-header-6 {
font-size: var(--h6-font-size);
color: var(--h6-text-color);
text-shadow: var(--switcher-mde-headings-text-shadow) var(--h6-text-shadow);
}
/* SPECIAL TEXT ******************************************** */
/* special text group: mark | search | emphasize | abbreviation | strong | insert | strikethrough | inline code text */
/* .CodeMirror-lines .CodeMirror-line .cm-rm-highlight, */
.CodeMirror-lines .CodeMirror-line .cm-link-text.cm-em,
.CodeMirror-lines .CodeMirror-line .cm-link-text.cm-em ~ *,
.CodeMirror-lines .CodeMirror-line .cm-rm-ins {
color: var(--special-text-color);
border-width: 0 0 1px 0;
border-style: dotted;
border-color: var(--special-text-border-color);
background: none;
text-decoration: none;
}
/* mark text ----------------------------------------------- */
.CodeMirror-lines .CodeMirror-line .cm-rm-highlight {
color: var(--mark-text-color);
background: #0d4a32;
}
/* search text --------------------------------------------- */
.CodeMirror-lines .CodeMirror-line .cm-search-marker,
.CodeMirror-lines .CodeMirror-line .cm-search-marker-selected {
padding: 2px 6px !important;
margin: 0 3px !important;
color: var(--search-text-color) !important;
border-radius: 1em;
background: inherit !important;
box-shadow: 0 0 3px var(--search-text-box-shadow) !important;
opacity: 1;
}
.CodeMirror-lines .CodeMirror-line .cm-search-marker-selected {
border: 3px solid var(--search-text-border-color-selected);
}
/* search text - scrollbar search marker ------------------- */
.cm-search-marker-scrollbar {
height: 1px !important;
background: var(--search-text-scrollbar-marker-background-color) !important;
opacity: 0.5;
}
/* text group: emphasize | abbreviation ------------------- */
/* joplin didn't provide an independent abbreviation text css class on markdown editor */
.CodeMirror-lines .CodeMirror-line .cm-em:not(.cm-image-alt-text) {
color: var(--emphasize-text-color) !important;
border-color: var(--emphasize-text-border-color) !important;
}
/* strong text --------------------------------------------- */
.CodeMirror-lines .CodeMirror-line .cm-strong {
color: var(--strong-text-color) !important;
border-color: var(--strong-text-border-color) !important;
}
/* strikethrough text -------------------------------------- */
.CodeMirror-lines .CodeMirror-line .cm-strikethrough {
color: var(--strikethrough-text-color) !important;
border-color: none !important;
text-decoration: line-through !important;
}
/* insert text --------------------------------------------- */
.CodeMirror-lines .CodeMirror-line .cm-rm-ins {
color: var(--insert-text-color) !important;
border-width: 0 0 1px 0;
border-style: solid;
border-color: var(--insert-text-border-color) !important;
}
/* inline code text ---------------------------------------- */
.CodeMirror-lines .CodeMirror-line .cm-comment.cm-jn-inline-code {
color: var(--inline-code-text-color) !important;
border: 1px solid var(--inline-code-text-border-color) !important;
background: var(--inline-code-text-background-color) !important;
text-shadow: 1px 1px 2px var(--inline-code-text-shadow);
}
/* SYNTAX ************************************************** */
/* syntax tag ---------------------------------------------- */
.CodeMirror-lines .CodeMirror-line .cm-tag:not(.cm-jn-monospace),
.CodeMirror-lines .CodeMirror-line .cm-number:not(.cm-jn-monospace) {
color: var(--syntax-tag-text-color);
background: var(--syntax-tag-background-color);
}
/* syntax string ------------------------------------------- */
.CodeMirror-lines .CodeMirror-line .cm-string:not(.cm-url):not(.cm-jn-monospace),
.CodeMirror-lines .CodeMirror-line .cm-string.cm-rm-image:not(.cm-rm-link):not(.cm-jn-monospace) {
color: var(--syntax-string-text-color);
background: var(--syntax-string-background-color);
}
/* syntax attribute ---------------------------------------- */
.CodeMirror-lines .CodeMirror-line .cm-attribute:not(.cm-jn-monospace) {
color: var(--syntax-attribute-text-color);
background: var(--syntax-attribute-background-color);
}
/* LINK **************************************************** */
.CodeMirror .CodeMirror-line .cm-rm-link,
.CodeMirror .CodeMirror-line .cm-url,
.CodeMirror .CodeMirror-line .cm-link-text {
color: var(--link-text-color);
}
/* LIST **************************************************** */
.CodeMirror .CodeMirror-line .cm-variable-2,
.CodeMirror .CodeMirror-line .cm-variable-3,
.CodeMirror .CodeMirror-line .cm-keyword {
color: var(--list-text-color);
}
.cm-variable-2.cm-overlay.cm-rm-list-token,
.cm-variable-3.cm-overlay.cm-rm-list-token,
.cm-keyword.cm-overlay.cm-rm-list-token {
color: var(--list-token-color);
}
/* BLOCKQUOTE ********************************************** */
.CodeMirror .CodeMirror-line .cm-quote {
color: var(--blockquote-text-color);
opacity: 1;
}
/* CODE BLOCK ********************************************** */
.CodeMirror .cm-jn-code-block-background.CodeMirror-linebackground {
background: var(--codeblock-background-color);
margin-right: -2px;
}
/* code block text ----------------------------------------- */
.cm-jn-code-block > span {
filter: grayscale(0.1);
}
/* ABSTRACT CONTENT BAR ************************************ */
.CodeMirror-code > .CodeMirror-line > span[role="presentation"]::after,
.cm-header::after,
.cm-quote::after,
.cm-rm-list-token::after,
.CodeMirror-code > .CodeMirror-line > span > .cm-null.cm-jn-monospace:not(.cm-tabcolor-pipe)::after,
.cm-overlay.cm-rm-link.cm-rm-image::after,
.cm-link-text::after,
.cm-overlay.cm-rm-link::after,
.cm-em.cm-link-text::after,
.cm-tag:not(.cm-jn-monospace)::after,
.cm-katex-marker-open::after,
.cm-katex-marker-close::after,
.cm-rm-sup::after,
.cm-number:not(.cm-jn-monospace)::after,
.cm-rm-checkbox::after,
.cm-jn-code-block.CodeMirror-line::after,
span[cm-text]:only-child::after {
content: " ";
position: absolute;
display: var(--switcher-mde-abstract-content-bar-display);
top: 0px;
right: -4px;
width: 2px;
height: 100%;
}
/* plain text ---------------------------------------------- */
.CodeMirror-code > .CodeMirror-line > span[role="presentation"]::after {
background: var(--acb-plain-text);
z-index: 1;
}
/* heading ------------------------------------------------- */
.cm-header::after {
background: var(--acb-heading);
z-index: 2;
}
/* ordered list & unordered list --------------------------- */
.cm-rm-list-token::after {
background: var(--acb-list);
z-index: 3;
}
/* blockquote ---------------------------------------------- */
.cm-quote::after {
background: var(--acb-blockquote);
z-index: 4;
}
/* table --------------------------------------------------- */
.CodeMirror-code > .CodeMirror-line > span > .cm-null.cm-jn-monospace:not(.cm-tabcolor-pipe)::after {
background: var(--acb-table);
z-index: 5;
}
/* attached image ------------------------------------------ */
.cm-overlay.cm-rm-link.cm-rm-image::after {
background: var(--acb-image);
z-index: 6;
}
/* footnote ------------------------------------------------ */
.cm-link-text:not(.cm-variable-2)::after {
background: var(--acb-footnote);
z-index: 7;
}
/* simple link & anchor text link & file path link --------- */
.cm-overlay.cm-rm-link::after {
background: var(--acb-link);
z-index: 8;
}
/* abbreviation -------------------------------------------- */
.cm-em.cm-link-text::after {
background: var(--acb-abbreviation);
z-index: 9;
}
/* html tag ------------------------------------------------ */
.cm-tag::after {
background: var(--acb-html-tag);
z-index: 10;
/* height: 2em !important; */
max-height: 26px;
}
/* math notation ------------------------------------------- */
.cm-katex-marker-open::after,
.cm-katex-marker-close::after,
.cm-rm-sup::after,
.cm-number:not(.cm-jn-monospace)::after {
background: var(--acb-katex);
z-index: 11;
}
/* checklist ----------------------------------------------- */
.cm-rm-checkbox::after {
background: var(--acb-checklist);
z-index: 12;
}
/* codeblock ----------------------------------------------- */
.cm-jn-code-block.CodeMirror-line::after {
background: var(--acb-codeblock);
z-index: 13;
}
/* blank line ---------------------------------------------- */
span[cm-text]:only-child::after {
display: var(--switcher-mde-abstract-content-bar-blank-line-display);
background: var(--acb-blank-line);
z-index: 14;
}
/* PLUGIN: MARKDOWN TABLE COLORIZE ************************* */
/* markdown table colorize: caret -------------------------- */
.CodeMirror-lines .CodeMirror-line [class*="cm-tabcolor-col"] {
caret-color: var(--mtc-table-caret-color);
/* disable original text background color */
background: none;
}
/* markdown table colorize: table vertical bar ------------- */
.CodeMirror-lines .CodeMirror-line .cm-tabcolor-pipe {
color: var(--mtc-table-vertical-bar-color) !important;
}
/* markdown table colorize: table text --------------------- */
.CodeMirror-lines .CodeMirror-line [class*="cm-tabcolor-col"]:not(.cm-tabcolor-pipe) {
font-weight: normal;
color: var(--mtc-table-text-color) !important;
}
/* markdown table colorize: table separate group: header | row */
.cm-tabcolor-firstch::before,
.cm-tabcolor-row.cm-tabcolor-firstch::before {
display: block;
font-family: var(--base-font);
margin: 10px 0 1px 0;
width: 100%;
height: fit-content;
color: var(--mtc-table-separate-text-color);
border-radius: 2px;
text-shadow: 0 0 2px var(--mtc-table-separate-text-shadow);
}
/* markdown table colorize: table separate header ---------- */
.cm-tabcolor-firstch::before {
content: " H E A D E R > ";
padding: 3px 0;
font-size: 10px;
background-image: var(--mtc-table-separate-header-background-color);
}
/* markdown table colorize: table separate row ------------- */
.cm-tabcolor-row.cm-tabcolor-firstch::before {
content: " R O W >";
padding: 2px 0 1px 0;
font-weight: 400;
font-size: 8px;
background-image: var(--mtc-table-separate-row-background-color);
}
/* markdown table colorize: table separate hover ----------- */
.CodeMirror-line:hover .cm-tabcolor-firstch::before {
filter: brightness(160%);
transition: filter 0.3s;
}
/* markdown table colorize: table column mark -------------- */
/* table column mark group --------------------------------- */
[class*="cm-tabcolor-col"].cm-tabcolor-pipe::after {
content: "";
position: initial;
display: inline-block;
padding: 1px;
margin: 0 5px 0 0;
font-weight: 100;
font-size: 9px;
background: var(--mtc-table-column-mark-background-color);
border-radius: 2px;
}
.CodeMirror-line .cm-tabcolor-pipe:last-child::after {
display: none;
}
.CodeMirror-line:hover .cm-tabcolor-pipe::after {
filter: brightness(170%);
transition: filter 0.3s;
}
/* standalone table column mark ---------------------------- */
[class*="cm-tabcolor-col"].cm-tabcolor-firstch::after {
content: "A:";
color: var(--mtc-table-col0-mark-color);
}
.cm-tabcolor-col1.cm-tabcolor-pipe:not(.cm-tabcolor-firstch)::after {
content: "B:";
color: var(--mtc-table-col1-mark-color);
}
.cm-tabcolor-col2.cm-tabcolor-pipe:not(.cm-tabcolor-firstch)::after {
content: "C:";
color: var(--mtc-table-col2-mark-color);
}
.cm-tabcolor-col3.cm-tabcolor-pipe:not(.cm-tabcolor-firstch)::after {
content: "D:";
color: var(--mtc-table-col3-mark-color);
}
.cm-tabcolor-col4.cm-tabcolor-pipe:not(.cm-tabcolor-firstch)::after {
content: "E:";
color: var(--mtc-table-col4-mark-color);
}
.cm-tabcolor-col5.cm-tabcolor-pipe:not(.cm-tabcolor-firstch)::after {
content: "F:";
color: var(--mtc-table-col5-mark-color);
}
.cm-tabcolor-col6.cm-tabcolor-pipe:not(.cm-tabcolor-firstch)::after {
content: "G:";
color: var(--mtc-table-col6-mark-color);
}
.cm-tabcolor-col7.cm-tabcolor-pipe:not(.cm-tabcolor-firstch)::after {
content: "H:";
color: var(--mtc-table-col7-mark-color);
}
.cm-tabcolor-col8.cm-tabcolor-pipe:not(.cm-tabcolor-firstch)::after {
content: "I:";
color: var(--mtc-table-col8-mark-color);
}
.cm-tabcolor-col9.cm-tabcolor-pipe:not(.cm-tabcolor-firstch)::after {
content: "J:";
color: var(--mtc-table-col9-mark-color);
}
.cm-tabcolor-col10.cm-tabcolor-pipe:not(.cm-tabcolor-firstch)::after,
.cm-tabcolor-col11.cm-tabcolor-pipe:not(.cm-tabcolor-firstch)::after,
.cm-tabcolor-col12.cm-tabcolor-pipe:not(.cm-tabcolor-firstch)::after,
.cm-tabcolor-col13.cm-tabcolor-pipe:not(.cm-tabcolor-firstch)::after,
.cm-tabcolor-col14.cm-tabcolor-pipe:not(.cm-tabcolor-firstch)::after,
.cm-tabcolor-col15.cm-tabcolor-pipe:not(.cm-tabcolor-firstch)::after,
.cm-tabcolor-col16.cm-tabcolor-pipe:not(.cm-tabcolor-firstch)::after,
.cm-tabcolor-col17.cm-tabcolor-pipe:not(.cm-tabcolor-firstch)::after,
.cm-tabcolor-col18.cm-tabcolor-pipe:not(.cm-tabcolor-firstch)::after,
.cm-tabcolor-col19.cm-tabcolor-pipe:not(.cm-tabcolor-firstch)::after {
border: 1px solid var(--mtc-table-column-mark-border-color);
}
.cm-tabcolor-col10.cm-tabcolor-pipe:not(.cm-tabcolor-firstch)::after {
content: "K:";
color: var(--mtc-table-col10-mark-color);
}
.cm-tabcolor-col11.cm-tabcolor-pipe:not(.cm-tabcolor-firstch)::after {
content: "L:";
color: var(--mtc-table-col11-mark-color);
}
.cm-tabcolor-col12.cm-tabcolor-pipe:not(.cm-tabcolor-firstch)::after {
content: "M:";
color: var(--mtc-table-col12-mark-color);
}
.cm-tabcolor-col13.cm-tabcolor-pipe:not(.cm-tabcolor-firstch)::after {
content: "N:";
color: var(--mtc-table-col13-mark-color);
}
.cm-tabcolor-col14.cm-tabcolor-pipe:not(.cm-tabcolor-firstch)::after {
content: "O:";
color: var(--mtc-table-col14-mark-color);
}
.cm-tabcolor-col15.cm-tabcolor-pipe:not(.cm-tabcolor-firstch)::after {
content: "P:";
color: var(--mtc-table-col15-mark-color);
}
.cm-tabcolor-col16.cm-tabcolor-pipe:not(.cm-tabcolor-firstch)::after {
content: "Q:";
color: var(--mtc-table-col16-mark-color);
}
.cm-tabcolor-col17.cm-tabcolor-pipe:not(.cm-tabcolor-firstch)::after {
content: "R:";
color: var(--mtc-table-col17-mark-color);
}
.cm-tabcolor-col18.cm-tabcolor-pipe:not(.cm-tabcolor-firstch)::after {
content: "S:";
color: var(--mtc-table-col18-mark-color);
}
.cm-tabcolor-col19.cm-tabcolor-pipe:not(.cm-tabcolor-firstch)::after {
content: "T:";
color: var(--mtc-table-col19-mark-color);
}
/* ********************************************************* */