summaryrefslogtreecommitdiff
path: root/static/css/common.css
blob: 8ec40161219029b70c5bdba648477db57c3714d2 (plain)
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
html {
  max-width: 80ch;
  padding-left: 1em;
  padding-right: 1em;
  margin: auto;
  line-height: 1.75;
  font-size: 1.25em;
  background-color: #64B6AC;
}

#main > .post + .post {
    margin-top: 2rem;
}

#main > .post > h2 {
    align-items: center;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#main > .post > h2 > time {
    font-size: 1rem;
    font-weight: normal;
}

#main > .post > .content {
    padding-top: 1rem;
}

@media screen and (min-width: 768px) {
    #main > .post > div {
        margin-left: 2rem;
    }

    #main {
        width: calc(100% - 2rem);
    }

    body {
        padding: 1rem;
    }
}

/* global */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #DAFFEF;
    display: flex;
    flex-direction: column;
    /* font-family: 'Latin Modern Roman', 'Times New Roman', serif; */
    font-family: sans-serif;
    min-height: 100vh;
    overflow-wrap: break-word;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-left: 4px solid #46555e;
    border-right: 4px solid #46555e;
}

a {
    color: #46555e;
}

/* header */

#header {
    align-items: end;
    display: flex;
    flex-direction: row;
}

#header > h1 {
    line-height: 1;
}

@media screen and (min-width: 768px) {
    #header > h1 {
        font-size: 2.8rem;
    }
}

#header > nav {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    flex-wrap: wrap;
    max-width: 768px;
    width: 100%;
}

.nav-bar-item a {
    border: 1px solid black;
    border-radius: 4px;
    margin: 0.2rem;
    padding: 0.3rem;
    text-decoration: none;
    color: 46555e;
}


#header > nav > span > a {
    font-size: 1.2rem;
}

/* main */

#main {
    align-self: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    max-width: 768px;
    padding: 2rem 0;
}

/* footer */

footer {
    align-items: center;
    display: flex;
    font-size: .9rem;
    flex-direction: column;;
}

.content :last-child {
    margin-bottom: 0;
}

hr {
    margin-bottom: 1rem;
    width: 100%
}

footer .links a {
    margin: 0.5rem;
}

.content blockquote,
.content div,
.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6,
.content p,
.content pre,
.content ol,
.content table,
.content ul {
    margin-bottom: 1rem;
}

.content blockquote {
    border-left: black 2px solid;
    font-style: italic;
    padding: 1rem 0 1rem 2rem;
}

.content code {
    background-color: hsl(0, 0%, 96%);
    border-radius: .2rem;
    color: #AA0000;
    font-family: 'Latin Modern Mono', Courier, monospace;
    padding: 0 .2rem;
}

.content h1, .content h2, .content h3,
.content h4, .content h5, .content h6 {
    line-height: 1;
}

h1.title {
    font-size: 2rem;
}

.content h1 {
    font-size: 1.8rem;
}

.content h2 {
    font-size: 1.2rem;
}

.content h3 {
    font-size: 1.1rem;
}

.content h4 {
    font-size: 1rem;
}

.content h5 {
    font-size: 1rem;
}

.content h6 {
    font-size: 1rem;
}

.content img {
    max-width: 100%;
}

.content p {
    padding: 0.2rem;
}

.content pre {
    background-color: #F5F5F5!important;
    border-radius: .2rem;
    font-family: 'Latin Modern Mono', Courier, monospace;
    margin-top: .5rem;
    overflow-x: auto;
    padding: .5rem;
}

.content pre code {
    padding: 0;
}

.content strong.chinese {
    font-weight: normal;
    text-emphasis-style: dot;
    text-emphasis-position: under;
    -webkit-text-emphasis-style: dot;
    -webkit-text-emphasis-position: under;
}

.content table {
    display: block;
    overflow-x: auto;
}

.content td, .content th {
    border: #575C61 1px solid;
    padding: .1rem .5rem;
}

.content th {
    background-color: #575C61;
    color: #FAFAFA;
}

.content ol, .content ul {
    margin-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

.email::after {
    content: "@marks.kitchen";
}

dl > dt {
    font-weight: bold;
}

dd {
    margin-bottom: 1em;
    margin-left: 2em;
    padding-left: 2em;
    padding-bottom: 1em;
}

li.post summary {
    list-style: none;
}

li.post p {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

#header > h1 a {
    text-decoration: none;
    color: inherit;
}