-
Notifications
You must be signed in to change notification settings - Fork 0
/
base.css
140 lines (130 loc) · 3.03 KB
/
base.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
@charset "utf-8";
:root {
--font-emoji: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
--font-fallback: BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans",
"Droid Sans", "Helvetica Neue", sans-serif, var(--font-emoji);
--font-body: Inter, var(--font-fallback);
--font-heading: serif, Inter, var(--font-fallback);
--font-code: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace, var(--font-emoji);
--code-bg-color: #e9e9e9;
--pre-code-bg-color: #F9F9F9;
}
body {
min-width: 350px;
padding: 0 8px;
margin: auto;
-webkit-text-size-adjust: unset;
flex-wrap: wrap;
font-family: var(--font-body);
font-size: 17px;
}
.site-header, main, .site-footer {
padding: 0 8px;
}
main {
flex: 1;
}
.post-content {
line-height: 1.8;
overflow-wrap: anywhere;
}
h1, h2, h3, h4, h5, h6 {
font-family: var(--font-heading);
font-weight: bold;
line-height: 1.3;
letter-spacing: -1px;
}
nav.toc {
min-width: 300px;
padding: 0.5rem;
background-color: whitesmoke;
margin: 1rem;
}
nav.toc > ul, nav.toc > ol {
background-color: #fdfdfd;
padding: 0 1rem 0 2rem;
margin: 0;
}
nav.toc > ol::before, nav.toc > ul::before {
display: block;
content: "ToC";
text-align: center;
margin-left: -4rem;
}
.post-content h2, .post-content h3, .post-content h4, .post-content h5, .post-content h6 {
margin: 2em auto 0.5em;
}
.post-content h2::before { content: "## "; letter-spacing: -2px; }
.post-content h2 {
border-bottom: double gray;
}
.post-content h3::before { content: "### "; letter-spacing: -2px; }
.post-content h3 {
border-bottom: thin solid silver;
}
.post-content h4::before { content: "#### "; letter-spacing: -2px; }
.post-content h5::before { content: "##### "; letter-spacing: -2px; }
.post-content h6::before { content: "###### "; letter-spacing: -2px; }
.post-content pre {
font-size: 1rem;
font-family: var(--font-code);
}
code {
font-size: inherit;
font-family: var(--font-code);
border: none;
padding: 1px 2px;
background-color: var(--code-bg-color);
text-wrap: initial;
}
.post-content blockquote {
font-size: 1rem;
font-style: normal;
color: unset;
border-left: 0.5em solid steelblue;
padding-left: 0.5em;
margin-left: 1em;
}
.post-content a[href^="http"]::after {
content: "🔗"; font-size: 0.8rem;
}
.post-content hr {
margin: 3em 0;
border: none;
border-top: 0.5em dashed black;
}
.highlighter-rouge .highlight, pre,
pre > code {
background-color: var(--pre-code-bg-color);
line-height: 1.2;
}
figure {
display: inline-flex;
flex-flow: column;
}
figure > img {
box-shadow: 3px 3px 3px 2px silver;
max-width: 100%;
}
figcaption {
text-align: center;
}
/*
* Don't set background in Mermaid diagrams
*/
pre:has(>.language-mermaid), code.language-mermaid {
background-color: transparent;
}
@media screen and (min-width: 1024px) {
body {
max-width: 1024px;
min-width: 600px;
padding: 0 5%;
margin: auto;
}
nav.toc {
float: right;
max-width: 400px;
margin: 0 0 0 1em;
}
}