-
Notifications
You must be signed in to change notification settings - Fork 3
/
layout.css
218 lines (185 loc) · 5.08 KB
/
layout.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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
html {
height: 100%;
color: #333;
font: 16px/1.4 'Libre Baskerville', serif;
display: grid;
}
body {
margin: 0px;
height: 100%;
display: grid;
background-color: #ebd0bd;
position: relative;
animation: 2.2s ease-in 0s 1 bg-color-fadein;
font-family: 'Libre Baskerville', serif;
}
.bg-images {
display: grid;
margin: auto;
justify-items: center;
overflow: hidden;
}
.bg-images img {
user-select: none;
overflow: auto;
max-height: 100%;
grid-column: 1;
grid-row: 1;
}
@keyframes bg-color-fadein {
0% { opacity: 0; background-color: black; }
20% { opacity: 0; background-color: black; }
100% { opacity: 1; background-color: #ebd0bd; }
}
@keyframes text-fadein {
0% { opacity: 0; }
20% { opacity: 0; }
100% { opacity: 0.9; }
}
@keyframes popvillage {
0% { transform: scaleY(0.001); }
100% { transform: scaleY(1); }
}
.bg-sky {
z-index: 1;
}
.bg-town {
z-index: 2;
transform-origin: left bottom;
transform: scaleY(0.001);
}
.bg-fore {
z-index: 3;
}
/* SIMEVILLE, A TOWN IN EIGHT ACTS */
#town0 { animation: 3.3s cubic-bezier(0, 1.3, 1, 1) 1.8s 1 popvillage forwards; }
#town1 { animation: 3.7s cubic-bezier(0, 1.2, 1, 1) 3.5s 1 popvillage forwards; }
#town2 { animation: 3.7s cubic-bezier(0, 1.2, 1, 1) 3.7s 1 popvillage forwards; }
#town3 { animation: 3.6s cubic-bezier(0, 1.2, 1, 1) 3.9s 1 popvillage forwards; }
#town4 { animation: 3.6s cubic-bezier(0, 1.2, 1, 1) 4.1s 1 popvillage forwards; }
#town5 { animation: 3.6s cubic-bezier(0, 1.2, 1, 1) 4.3s 1 popvillage forwards; }
#town6 { animation: 3.5s cubic-bezier(0, 1.2, 1, 1) 4.5s 1 popvillage forwards; }
#town7 { animation: 3.4s cubic-bezier(0, 1.2, 1, 1) 4.7s 1 popvillage forwards; }
.text {
text-align: center;
z-index: 4;
grid-column: 1;
grid-row: 1;
}
h1 {
animation: 8s ease-in 0s 1 text-fadein;
}
h1 {
font-size: 2.8em;
letter-spacing: 5px;
margin: 0.5em 0 0 0;
white-space: nowrap;
}
/* faff about with pure CSS menu */
.main-menu {
list-style-type: none;
overflow: hidden;
margin: 0px;
text-align: center;
}
/* that's my secret. I'm always hidden. */
input[type='radio'] { display: none; }
.menu-button {
user-select: none;
font-weight: bold;
padding: 1rem;
color: #222;
cursor: pointer;
animation: 4s ease-in 0s 1 text-fadein;
text-shadow: 0.5px 0.5px #607D8B;
transition: all 0.25s ease-out;
}
.menu-button:hover {
color: #c6aa92;
}
/* applies to all */
.content-inner {
background: rgba(204, 175, 153, .95);
border: 1px solid rgba(66, 66, 66, .1);
padding: 10px;
margin: 210px 0 0 0; /* no text shall rise above simeville */
text-align: left;
max-width: 700px;
}
.about-content, .writing-content, .photo-content {
max-height: 0px;
overflow: hidden;
opacity: 0.01;
transition: opacity .25s ease-in-out;
}
/* just wild that this works. check boxes reveal corresponding content divs */
#about:checked ~ .menu-button ~ .about-content,
#photo:checked ~ .menu-button ~ .photo-content,
#writing:checked ~ .menu-button ~ .writing-content {
max-height: none;
opacity: 1;
}
/* This is only relevant for non-index.html pages */
#about:checked ~ .primary-content,
#photo:checked ~ .primary-content,
#writing:checked ~ .primary-content {
max-height: 0px;
}
#primary:checked ~ .primary-content {
max-height: none;
}
/* end faffing about */
/* BIRDS!! */
.BIRD {
z-index: 5;
grid-column: 1;
grid-row: 1;
height: 30px;
transform: translateY(310px);
}
.BIRD::after {
transform: translateX(-130px);
content: '';
display: block;
width: 3.5px;
height: 2px;
box-shadow: 2px 2px 3px #333;
border-radius: 2px;
background-color: #222;
}
/* ugh ok now I really want JavaScript */
/* the BIRD div and the ::after object are animated separately, along different axes,
to allow our feather'd friends some freedom of flight.
*/
.BIRD0 { animation: yAxis 28.5s infinite cubic-bezier(0.3, 0.27, 0.07, 1.64) 5s; }
.BIRD0::after { animation: xAxis 22.5s infinite cubic-bezier(0.02, 0.01, 0.21, 1) 5s; }
.BIRD1 { animation: yAxis 21.5s infinite cubic-bezier(0.3, 0.27, 0.07, 1.64) 5s; }
.BIRD1::after { animation: xAxis 21.5s infinite cubic-bezier(0.02, 0.01, 0.21, 1) 5s; }
.BIRD2 { animation: yAxis 24.5s infinite cubic-bezier(0.3, 0.27, 0.07, 1.64) 5s; }
.BIRD2::after { animation: xAxis 25.5s infinite cubic-bezier(0.02, 0.01, 0.21, 1) 5s; }
.BIRD3 { animation: yAxis 20.5s infinite cubic-bezier(0.3, 0.27, 0.07, 1.64) 5s; }
.BIRD3::after { animation: xAxis 22.5s infinite cubic-bezier(0.02, 0.01, 0.21, 1) 5s; }
.BIRD4 { animation: yAxis 24.5s infinite cubic-bezier(0.3, 0.27, 0.07, 1.64) 5s; }
.BIRD4::after { animation: xAxis 20.5s infinite cubic-bezier(0.02, 0.01, 0.21, 1) 5s; }
@keyframes yAxis {
50% {
animation-timing-function: cubic-bezier(0.02, 0.01, 0.21, 1);
transform: translateY(200px);
}
}
@keyframes xAxis {
50% {
animation-timing-function: cubic-bezier(0.3, 0.27, 0.07, 1.64);
transform: translateX(600px);
}
}
/* end birds */
a {
color: #742a14;
text-decoration: none;
font-weight: bold;
}
a:hover, a:focus, a:active {
text-decoration: underline;
}
/* no media queries lolololol */