-
Notifications
You must be signed in to change notification settings - Fork 16
/
style.css
153 lines (132 loc) · 2.67 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
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
* {
margin: 0;
padding: 0;
}
body {
display: flex;
flex-direction: column;
font: 300 100%/1.5 Helvetica Neue, sans-serif;
background: #655;
color: white;
min-height: 100vh;
}
p {
font: 110%/1.5 Baskerville, Palatino Linotype, Palatino, Georgia, sans-serif;
}
header {
display: flex;
align-self: start;
width: 100%;
box-sizing: border-box;
padding: .5em;
background: black;
}
header h1 {
font-size: 110%;
font-weight: 100;
text-transform: uppercase;
letter-spacing: .06em;
}
header h1 strong {
color: deeppink;
}
header p {
flex: 1;
text-align: right;
font-style: italic;
}
body > section {
display: none;
width: -webkit-max-content;
width: max-content;
margin: auto;
text-align: center;
}
body > section > h1 {
font-weight: 300;
font-size: 230%;
}
body > section > p {
margin: .6em 0;
}
body > section,
section.error > p {
display: none;
}
/* Show appropritate section */
.redirecting .redirecting,
.error .error,
.no-js .no-js,
.json .json,
.not-found .not-found {
display: block;
}
@-webkit-keyframes spin { to { transform: rotate(1turn); } }
@-webkit-keyframes radius { to { border-radius: 50%; } }
@-webkit-keyframes width { to { border-width: .1em; } }
@-webkit-keyframes color {
50% { color: #fb3; }
to { color: deeppink; }
}
@keyframes spin { to { transform: rotate(1turn); } }
@keyframes radius { to { border-radius: 50%; } }
@keyframes width { to { border-width: .1em; } }
@keyframes color {
50% { color: #fb3; }
to { color: deeppink; }
}
section.redirecting h1 {
color: #ab4;
}
section.redirecting h1:before {
content: '';
display: block;
width: 2.5em;
height: 2.5em;
margin: 0 auto 1em;
border: .7em solid;
color: #ab4;
box-sizing: border-box;
-webkit-animation: 1s spin linear infinite, .7s radius linear infinite alternate, 1.1s width infinite alternate, 1.7s color linear infinite alternate;
animation: 1s spin linear infinite, .7s radius linear infinite alternate, 1.1s width infinite alternate, 1.7s color linear infinite alternate;
}
section.error h1 {
color: #fb3;
}
section.error h1:before {
content: '!';
display: block;
width: 1em;
margin: 0 auto .2em;
border: .16em solid;
border-radius: 50%;
text-align: center;
font-size: 300%;
line-height: 1;
font-weight: bold;
color: #fb3;
}
a {
color: #ab4;
}
a:not(:hover) {
text-decoration: none;
}
.all {
display: block;
width: -webkit-max-content;
width: max-content;
padding: .2em .5em;
border: .15em solid;
border-radius: .3em;
box-sizing: border-box;
margin: 1em auto 0;
color: white;
font-size: 120%;
}
.all:hover {
background: white;
text-decoration: none;
border-color: transparent;
color: #655;
}