-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathuserstyle.css
117 lines (101 loc) · 2.25 KB
/
userstyle.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
/* EverJop */
/* userstyle.css */
:root {
--base-font: "Source Sans Pro", "-apple-system", "BlinkMacSystemFont", "system-ui", "Segoe UI", Roboto, sans-serif;
--base-font-size: 16px;
--monospace-font: "Source Code Pro", "SF Mono", monospace;
--monospace-font-size: 14px;
}
body {
color: #333333;
line-height: 1.6em;
}
/*========================= GENERAL =========================*/
/* base font */
#rendered-md,
#tinymce,
#joplin-container-body,
#joplin-container-content,
#spoiler-block-title
#rendered-md > table > * {
font-family: var(--base-font) !important;
font-size: var(--base-font-size);
}
/* monospace font */
#rendered-md > .joplin-editable > pre:not(.mermaid),
#rendered-md > .joplin-editable > pre > code,
#rendered-md .inline-code,
[id*="fnref"] /* footnote ref */ {
font-family: var(--monospace-font) !important;
font-size: var(--monospace-font-size);
}
/*=========================*/
/*
Markdown editor:
div .codeMirrorEditor
div .CodeMirror .cm-s-default .CodeMirror-wrap
...
div .CodeMirror-scroll
div .CodeMirror-sizer
div
div role=presentation
...
div .CodeMirror-code role=presentation
Markdown viewer:
iframe .noteTextViewer
#document
html
header #joplin-container-root-head
body #joplin-container-body
...
div #joplin-container-content
div #rendered-md
Rich editor hieararchy:
body #tinymce .mce-content-body .jop-tinymce
div #rendered-md
div
div
*/
/* rendered viewer background */
#rendered-md,
#tinymce,
#joplin-container-body,
#joplin-container-content,
.exported-note {
background: #ffffff;
max-width: unset;
}
/*------------------------- editor padding -------------------------*/
/* Markdown viewser */
#joplin-container-content > #rendered-md {
padding: 10px 20px !important;
}
/* Rich editor */
#tinymce {
padding: 20px 40px !important;
}
p {
margin-block: 10px !important;
}
a {
color: #026fac;
}
mark {
background-color: #ffdb2773;
}
pre {
border: 1px solid #e6e6e6;
background-color: #f8f8f8 !important;
padding: 10px 15px;
border-radius: 0.3em;
}
code.inline-code {
border: 1px solid #e6e6e6 !important;
background-color: #f8f8f8 !important;
padding-right: .2em;
padding-left: .2em;
border-radius: .25em;
}
h1, h2, h3, h4, h5, h6 {
line-height: 2.6em;
}