-
Notifications
You must be signed in to change notification settings - Fork 1
/
common.css
99 lines (79 loc) · 1.33 KB
/
common.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
html, body {
/* is it this easy? */
scroll-behavior: smooth;
}
body {
max-width: 50em;
margin: 0 auto;
padding: 1em;
font-family: "Atkinson Hyperlegible", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
font-size: 1.2em;
}
header {
text-align: center;
margin-bottom: 5em;
}
header nav {
display: flex;
flex-direction: row;
justify-content: space-evenly;
align-items: center;
margin-top: 3em;
}
header nav a {
display: block;
}
header nav a.current {
color: inherit;
font-weight: bold;
}
span.emoji-icon {
display: inline-block;
width: 1.25em;
text-align: center;
}
a {
color: #00f;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
input {
padding: 0.5em;
background-color: hsl(0, 0%, 100%);
border: 1px solid #000;
border-radius: 2px;
}
input:focus {
outline: none;
border: 1px solid #00f;
}
input[readonly] {
opacity: 0.8;
font-style: italic;
}
section {
background-color: #eee;
border: 1px solid #000;
padding: 1em;
}
ol.reversed {
display: flex;
flex-direction: column-reverse;
}
ol.reversed li {
flex: 0 0 auto;
}
/* mobile rules */
@media screen and (max-width: 720px) {
header nav {
display: block !important;
}
nav a {
display: block;
width: 100%;
padding: 1em 0;
margin: 1em 0;
}
}