page.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
/* Resets */ html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, pre { margin: 0; padding: 0; } html { font-family: sans-serif; line-height: 1.5; } /* Good baseline for block element vertical margins */ h1, h2, h3, h4, h5, h6, p, ul, ol, li, pre { margin: 1rem 0; } /* Keep the header and footer static, and let the content fill the rest of the space so we are * always at least 1 browser window high */ body { display: flex; flex-direction: column; margin: 0 1rem; min-height: 100vh; } #site-header { flex: 0 0 auto; } main { flex: 1; } #site-footer { flex: 0 0 auto; } /* Site header */ #site-header { margin: 1rem 0; border-bottom: 4px solid black; padding-bottom: 0.5rem; } #site-header a { font-size: 1.25rem; font-weight: bold; } /* Site footer */ #site-footer { font-size: 0.75rem; margin: 2rem; text-align: center; } /* Add margins to the main content area past a certain screen size (over 1024px is typical for * desktop) */ main { width: 100%; margin: 0 auto; } @media screen and (min-width: 1025px) { main { width: 1024px; } } /* Don't explode big images to their full size; let them take up most of the content area * horizontally, but only 1/5 of the screen vertically */ article img { max-width: 90%; max-height: 20vh; }