-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
65 lines (57 loc) · 1.02 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
* {
box-sizing: border-box;
}
body {
padding: 0;
margin: 0;
font-family: sans-serif;
}
table {
border: calc(.25em / 3) solid black;
border-spacing: 0;
border-collapse: collapse;
}
th, td {
border: calc(.25em / 3) solid black;
padding: .25em;
}
header h1 {
text-align: center;
}
main {
margin: auto;
max-width: min(960px, 90%);
padding: .75em;
}
main > * + * {
margin-top: .75em;
}
form.major {
max-width: min(100%, 600px);
display: grid;
grid-template-columns: 1fr 2fr;
grid-auto-rows: minmax(2em, auto);
gap: .75em;
}
form.major > h2, form.major > p, form.major > .checkbox-with-label {
grid-column: 1 / 3;
}
form.major > p {
margin-top: 0;
margin-bottom: 0;
}
form.major input[type="submit"] {
display: block;
max-width: 20ch;
margin-left: auto;
margin-right: auto;
}
main > section > table {
margin: .75em;
/* Tables are absolutely cursed and don't obey normal rules */
width: calc(100% - calc(.75em * 2));
}
code {
/* Compensate for the monospace fonts often being smaller */
font-size: 1.25em;
}