forked from replete/obsidian-minimal-theme-css-snippets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path[editor] Typography fixes.css
110 lines (94 loc) · 2.17 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
/*
Typography
WIP. Loosely following github markdown styles, but will change over time
https://github.com/replete/obsidian-minimal-theme-css-snippets
*/
/* Fix list offset */
.HyperMD-list-line.cm-line {
transform:translate(-8px,0)
}
/* Fix list styling */
.HyperMD-list-line.cm-line .cm-formatting-list {
margin-left:-5px;
margin-right:4px;
}
/* list and blockquote colors */
.cm-s-obsidian .cm-formatting-list,
.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;
}
/* h5,
.markdown-rendered h5,
.HyperMD-header-5,
.HyperMD-list-line .cm-header-5 {
text-transform: uppercase;
letter-spacing:0.05em
}
h6,
.markdown-rendered h6,
.HyperMD-header-6,
.HyperMD-list-line .cm-header-6 {
text-transform: uppercase;
letter-spacing:0.05em
} */
/* Quotes */
.HyperMD-quote {
display:block !important;
}
.HyperMD-quote::before {
opacity:0;
}
.HyperMD-quote::after {
content:'';
display:block;
background:var(--bg3);
width:4px;
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);
/* font-size:12px !important; */
}
.HyperMD-footnote .cm-hmd-internal-link > *{
color:var(--tx2) !important;
text-decoration-color:var(--tx2) !important;
opacity:1 !important;
}