-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy path[editor] Typography fixes.css
138 lines (117 loc) · 3.22 KB
/
[editor] Typography fixes.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
/*
Typography
WIP. Loosely following github markdown styles, but will change over time
https://github.com/replete/obsidian-minimal-theme-css-snippets
*/
/* Markdown source view (not live preview) */
.markdown-source-view:not(.is-live-preview) {
/* Set source view to monospace font */
font-family: JetBrains Mono,Menlo, Monaco, 'Courier New', monospace;
/* Reset header font sizes */
.cm-header {
font-size:1rem;
font-variant:normal;
}
/* Fix footnote indent */
.HyperMD-footnote {
font-size:inherit;
padding-left:0;
text-indent:0;
}
.cm-inline-code {
font-size:inherit;
}
/* Fix heading font-size */
.cm-line[class*=HyperMD-header-] {
font-size:inherit;
line-height:inherit;
}
}
.markdown-source-view.is-live-preview {
/* unordered list item children alignment (to match checkbox size metrics) */
.cm-formatting-list-ul {
.list-bullet {
transform: translateX(-1px);
margin-right: 7px;
}
}
/* unordered list item alignment and style */
.cm-formatting-list-ol {
padding:0;
min-width:2rem !important;
display:inline-flex;
.list-number {
text-align:center !important;
display:inline-flex;
font-size:0.85em;
text-align:center !important;
min-width:var(--checkbox-size) !important;
margin:0 auto; /* centered */
}
}
/* list and blockquote colors */
.cm-s-obsidian .cm-formatting-quote {
color: var(--tx2)
}
.cm-s-obsidian .cm-formatting-quote {
transform:translate(-3px,0);
display: inline-block;
}
/* Headings */
&.cm-s-obsidian {
--h1-size:2em !important;
--h2-size:1.5em !important;
--h3-size:1.25em !important;
--h3-weight:600 !important;
--h4-size:1em !important;
--h4-weight:600 !important;
--h4-variant: normal !important;
--h5-size:0.875em !important;
--h5-weight:600 !important;
--h5-variant: normal !important;
--h6-size:0.75em !important;
--h6-weight:600 !important;
--h6-variant: normal !important;
}
/* Quotes */
.HyperMD-quote {
display:block !important;
}
.HyperMD-quote::before {
opacity:0;
}
.HyperMD-quote::after {
content:'';
display:block;
background:var(--bg3);
width:1px;
height:100%;
position: absolute;
top:0;
left:0;
}
.HyperMD-quote.cm-active {
border-color:transparent;
}
.HyperMD-quote.cm-active::after{
display:none;
}
.HyperMD-quote cite {
color:var(--tx3);
display: inline-block;
}
/* fix is-flashing display */
.cm-editor .is-flashing {
background:hsla(var(--base-h), var(--base-s), calc(var(--base-l) + 30%),0.5);
}
/* Footnote styles */
.HyperMD-footnote {
color:var(--tx2);
padding-left:0 !important;
.cm-hmd-internal-link > *{
color:var(--tx2) !important;
text-decoration-color:var(--tx2) !important;
opacity:1 !important;
}
}
}