-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathstyle.css
68 lines (68 loc) · 1.04 KB
/
style.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
/* Adapted from: https://www.swyx.io/css-100-bytes */
html {
max-width: 70ch;
padding: 3em 1em;
margin: auto;
line-height: 1.75;
font-size: 1.25em;
/* https://systemfontstack.com/ */
font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui,
helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial,
sans-serif;
}
h1,
h2,
h3,
h4,
h5,
h6 {
margin: 2em 0 1em;
}
p,
ul,
ol,
table,
pre,
blockquote {
margin-bottom: 2em;
}
blockquote {
font-style: italic;
padding: 0 1em;
border-left: 5px solid grey;
border-radius: 5px;
}
code,
pre {
/* https://systemfontstack.com/ */
font-family: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console,
monospace;
}
code,
pre {
background-color: lightgrey;
border-radius: 5px;
padding: 2px;
}
pre {
padding: 1em;
overflow: auto;
}
pre.wide {
width: 80vw;
transform: translateX(-50%);
margin-left: 50%;
}
pre.short {
max-height: 50vh;
}
p + pre {
margin-top: -1em;
}
hr {
margin: 3em 0;
}
li {
line-height: 1.5;
margin-bottom: 0.5em;
}