-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
373 lines (328 loc) · 5.73 KB
/
styles.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
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
/* color palette
color: #083C64 dark ocean blue;
color: #00BBEF NEIP blue;
color: #5C5C5C medium gray;
color: #8F8F8F light gray;
color: #2A2A2A body text dark gray;
color: #DBCC74 light gold
*/
/* font palette
font-family: 'Merriweather', serif;
font-family: Georgia, Times, 'Times New Roman', serif;
font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
*/
/* text shadow
text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
*/
body {
margin: 0px;
padding: 0px;
display: block;
align-items: center;
justify-content: center;
font-family: "Merriweather", serif;
font-size: 1em;
line-height: 1.2em;
color: #2a2a2a;
}
#logo {
text-align: center;
padding: 3vh 10% 6vh 10%;
height: 11vh;
}
#banner {
display: flex;
flex-direction: column;
padding: 10vh 10vw 5vh 10vw;
text-align: center;
background-color: #083c64;
font-family: "Merriweather", serif;
color: white;
height: 72.5vh;
}
#banner h1 {
font-size: 3em;
text-align: center;
line-height: 1.2em;
}
#banner h2 {
font-size: 1.6em;
text-align: center;
line-height: 1.4em;
padding: 0 0 4vh 0;
}
#intro{
padding: 2vh 10% 2vh 10%;
line-height: 1.2em;
text-align: left;
}
/* main body, scrollytelling part styles */
article {
position: relative;
padding: 0;
max-width: 40rem;
margin: 0 auto;
}
figure {
position: sticky; /** don't move this within the bounds of the #scrolly wrapper **/
left: 0;
width: 100%;
height: 100%;
margin: 0;
background-color: #083c64;
}
figure div.wrapper {
/** center the image in the box **/
display: flex;
justify-content: center;
}
figure img {
height: 100%;
width: auto;
}
.step {
filter: drop-shadow(0px 0px 8px var(--color-text));
z-index: 0;
}
.step:last-child {
margin-bottom: 0;
}
.step p {
border-radius: 0.3rem;
text-align: center;
padding: 1rem;
font-size: 1rem;
background-color: white;
margin: 0 2rem;
line-height: 1.4rem;
}
/* In between scrolling segments */
.in-between {
padding: 5vh 10% 5vh 10%;
height: 60vh;
background-color: white;
color: #2a2a2a;
display: flex;
flex-direction: column;
}
cite {
font-size: 0.75em;
}
/* FOR SCROLLY-2 */
#scrolly-2 {
position: relative;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
background-color: #083C64;
padding: 1rem;
}
#scrolly-2 > * {
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
}
.article2 {
position: relative;
padding: 0 1rem;
max-width: 10rem;
display: flex;
}
.sticky-thing {
position: -webkit-sticky;
position: sticky;
width: 100%;
margin: 1em 2em 1em 2em;
z-index: 0;
top: 3.8em;
height: 80vh;
/* Center everything inside */
display: flex;
align-items: center;
justify-content: center;
background-size: contain;
}
h3 {
text-align: left;
color: #2A2A2A;
padding: 1em 0 0 1em;
line-height: 1.4em;
}
.step-2 {
margin: 0 1em 1rem 2em;
height: 35vh;
background-color: #dbcc74;
border-radius: 0.3rem;
}
#longer{
height: 45vh;
}
.step-2:last-child {
margin-bottom: 0;
}
.step-2 p {
text-align: left;
padding: 0 1rem 0 1rem;
font-size: 1rem;
color: #2A2A2A;
}
.audioWrapper {
display: flex;
align-items: center;
justify-content: center;
}
audio {
height: 2em;
padding: 2vh;
}
.spacer {
padding: 3vh 10%;
background-color: #083C64;
}
/* GALLERY */
#gallery {
background-color: #dbcc74;
display: flex;
flex-direction: column;
flex-wrap: wrap;
padding: 2.5vh 5vw;
height: 45vh;
}
#button-list {
border-color: #000;
display: flex;
flex-flow: row wrap;
align-items: center;
justify-content: center;
}
/* a css rule for buttons that take half the parent container, with a small margin between */
.gallery-button {
font-family: inherit;
text-align: center;
border: 2px solid #000;
width: 40vw;
margin: 2vh 1vw;
height: 10vh;
font-size: 1rem;
cursor: pointer;
border-radius: 0.3rem;
}
#gallery-title {
font-family: "Merriweather", serif;
font-size: 1.8em;
color: #2A2A2A;
margin-bottom: 4vh;
}
footer {
padding: 5vh 10% 10vh 10%;
height: 5vh;
text-align: center;
background-color: #083c64;
color: white;
font-size: 0.9em;
}
/* All links */
a:link {
color: #dbcc74;
}
a:visited {
color: #dbcc74;
}
a:hover {
color: #00bbef;
}
footer p {
margin: 0;
}
button:hover{
color: #00bbef;
}
/* RESPONSIVE DESIGN*/
@media (max-width: 700px) {
/* MOBILE */
#banner{
padding: 10vh 5vh 28vh 5vh;
}
.step {
z-index: 0;
}
#scrolly-2 {
display: block;
}
.sticky-thing {
margin: 0 0 0 0;
top: 0em;
height: 40vh;
text-align: center;
z-index: 1;
}
figure.nobackground {
background-color: transparent;
}
#stickyImg {
height: 100%;
}
#article2 {
max-width: 30em;
align-items: center;
justify-content: center;
}
.step-2 {
height: 50vh;
margin: 1em 3em 0 3em;
}
#longer{
height: 50vh;
}
.audioWrapper {
display: flex;
}
video {
width: 100%;
height: auto;
}
}
@media (min-width: 701px) and (max-width:1299px) {
/* SLIGHTLY LARGER */
#banner{
padding: 10vh 5vh 5vh 5vh;
}
#scrolly-2 {
display: flex;
}
.step {
z-index: 0;
}
.sticky-thing {
margin: 1em 0 0 2em;
top: 10em;
height: 60vh;
align-items: center;
justify-content: center;
}
figure.nobackground {
background-color: transparent;
}
#stickyImg {
height: 100%;
}
#article2 {
max-width: 40em;
align-items: right;
text-align: right;
}
.step-2 {
height: 50vh;
margin: 0 2em 0 2em;
}
#longer{
height: 50vh;
}
.audioWrapper {
display: flex;
}
video {
width: 80%;
height: auto;
}
}