Echo Writes Code

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
/* 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;
}

/* 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;
}

#site-header a {
	font-size: 1.25rem;
	font-weight: bold;
}

/* Site footer */

#site-footer {
	font-size: 0.75rem;
	margin: 2rem;
	text-align: center;
}

/* Screen size breakpoints */

main {
	width: 100%;
	margin: 0 auto;
}

@media screen and (min-width: 1025px) {
	main {
		width: 1024px;
	}
}