-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbasics.css
82 lines (82 loc) · 1.49 KB
/
basics.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
:root {
font-size: 100%;
--page-margin: 3%;
--section-space: calc(1rem + 6%);
}
body {
background: #fff;
color: #000;
font-family: sans-serif;
line-height: 1.5;
overflow-wrap: break-word;
max-width: 40em;
margin: 0 auto;
padding: 0 var(--page-margin) var(--section-space) var(--page-margin);
}
a {
color: blue;
}
a:visited {
color: purple;
}
h1 {
font-weight: 300;
line-height: 1.25;
font-size: 2.5em;
text-align: center;
background: #eee;
margin-top: 0;
padding: 1.25em var(--page-margin);
margin: 0 calc(-1 * var(--page-margin)) var(--section-space) calc(-1 * var(--page-margin));
text-shadow: 0 0 2px rgb(255, 255, 255, 0.75);
box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}
h2 {
margin-top: 2rem;
font-size: 1.5em;
line-height: 1.25;
}
h3 {
font-size: 1em;
margin: 1em 0;
line-height: 1.25;
}
button {
font-size: inherit;
font-family: inherit;
line-height: inherit;
}
ul {
padding-left: 2rem;
}
li {
margin: 0.5em 0;
}
video, img {
max-width: 100%;
}
pre {
border-left: 2px solid #ccc;
padding-left: var(--page-margin);
padding-right: 1em;
overflow-x: auto;
}
hr {
border: none;
border-top: 0.25rem dotted #aaa;
margin: var(--section-space) calc(-1 * var(--page-margin));
}
section, .section {
margin-top: var(--section-space);
margin-bottom: var(--section-space);
}
.meta {
display: block;
text-align: center;
color: #666;
margin-top: calc(-1 * var(--section-space) + 0.5em);
font-size: 0.8em;
}
.meta a {
color: inherit;
}