about summary refs log tree commit diff
path: root/served/styles/common.css
blob: 3b83a6ddbe2750400418a0afbffce4405abacb93 (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
* {
	box-sizing: border-box;
}

:root {
	--text: #222;
	--text-dim: #444;
	--text-link: #037;
	--text-link-visited: #730;
	--background: #FFF;
	--background-dim: #F8F0F0;
	--color-a: rgb(11, 113, 126);
	--color-a-dim: rgb(7, 80, 90);
}

@media (prefers-color-scheme: dark) {
	:root {
		--text: #eee;
		--text-dim: #bbb;
		--text-link: #ddf;
		--text-link-visited: #fed;
		--background: #001;
		--background-dim: #222;
		--color-a: #3a8;
		--color-a-dim: rgb(158, 228, 208);
	}
}

html,
body {
	padding: 0;
	margin: 0;
}

body {
	font-size: 1.1rem;
	line-height: 1.4;
	font-family: sans-serif;
	padding: 2rem 5vw;

	color: var(--text);
	background-color: var(--background);
}

a {
	color: var(--color-a);
}

h1,
h2,
h3 {
	margin: 0;
	font-family: serif;
}

#nav-access {
	/* shove it above the page and make sure it's always on top*/
	position: absolute;
	top: -20rem;
	left: 0;
	width: 100%;
	z-index: 1000000;

	text-align: center;
	font-size: 2rem;
	list-style: none;
	padding: 0;
	margin: 0;
	overflow: hidden;
}