-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
420 lines (340 loc) · 6.37 KB
/
styles.css
File metadata and controls
420 lines (340 loc) · 6.37 KB
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
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
/* undo default link styling */
a {
color: inherit;
text-decoration: none;
}
/* remove default link highlight on mobile */
* {
-webkit-tap-highlight-color: transparent;
}
/* prevent images being too big for small screens */
img {
max-width: 100%;
height: auto;
}
/* setup font */
html {
font-family: 'Raleway', sans-serif;
}
h1 h2 {
font-weight: bold;
}
footer {
font-weight: 200;
}
/* HEADER */
/* center the logo & navbar in the header */
header {
background-color: #3D396C;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
/* center the navbar links in a row */
.nav-bar {
display: flex;
flex-flow: row;
align-items: center;
justify-content: center;
text-wrap: nowrap;
}
/* customise padding for the links */
.nav-bar-link {
margin-left: 50px;
margin-right: 50px;
}
.nav-bar-link-label {
margin-top: 0;
}
/* add colours to links & change colour on hover */
.nav-bar-link-label {
color: white;
transition: color 0.5s;
}
.nav-bar-link-label:hover {
color: gray;
}
/* mobile nav modal */
.mobile-nav-open {
display: none;
color: white;
padding: 10px;
margin-bottom: 20px;
cursor: pointer;
}
@media all and (max-width: 700px) {
.nav-bar {
display: none;
}
.mobile-nav-open {
display: inline;
}
}
.mobile-nav-modal {
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: white;
}
/* class to block scrolling while modal is open */
.no-scroll {
margin: 0;
height: 100%;
overflow: hidden;
}
.mobile-nav-close {
position: relative;
color: black;
cursor: pointer;
padding-bottom: 50px;
z-index: 1;
top: -30px;
margin-bottom: -51px;
}
.mobile-nav {
display: none;
opacity: 0;
}
.mobile-nav-active {
display: block;
opacity: 1;
animation: opening-mobile-nav 0.5s ease-out;
}
@keyframes opening-mobile-nav {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
.mobile-nav-closing {
animation: closing-mobile-nav 0.5s ease-out;
opacity: 0;
}
@keyframes closing-mobile-nav {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}
.mobile-nav-bar {
display: flex;
flex-flow: column;
align-items: center;
justify-content: center;
text-wrap: nowrap;
height: 100%;
gap: 10px;
}
.mobile-nav-bar-link-label {
color: black;
transition: color 0.5s;
}
.mobile-nav-bar-link-label:hover {
color: lightgray;
}
/* MAIN */
/* classes to show & hide page sections */
.page {
display: none;
}
.active {
display: block;
width: 100%;
}
/* center pages */
main {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
/* home page */
#home {
text-align: center;
}
#home-coverart {
height: 50vh;
max-height: 500px;
width: auto;
transition: 0.2s;
}
#home-coverart:hover {
transform: scale(1.03);
}
@media all and (max-width: 700px) {
#home {
font-size: small;
}
#home-coverart {
object-fit: contain;
max-width: 80%;
}
}
/* music page */
#music {
/* allows for two columns of images with some padding */
max-width: 700px;
margin-top: 40px;
margin-bottom: 40px;
}
@media all and (max-width: 700px) {
/* allows for one column of images with some padding */
#music {
max-width: 400px;
}
}
#gallery {
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: 40px 40px;
}
#gallery>a {
display: flex;
align-items: center;
justify-content: center;
width: 300px;
height: 300px;
max-width: 80%;
}
.coverart {
transition: 0.2s;
}
.coverart:hover {
transform: scale(1.1);
}
/* sign-up page */
#mailing-list {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
#mailing-list>form {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 80%;
gap: 5px;
}
#mailing-list>form>input {
padding: 20px;
border: 0.25rem solid black;
border-radius: 5px;
font-style: italic;
background-color: white;
}
#mailing-list>form>.text-input {
width: 80%;
max-width: 600px;
}
#mailing-list>form>.text-input::placeholder {
color: black;
/* Firefox */
opacity: 1;
}
#mailing-list>form>.text-input::-ms-input-placeholder {
/* Edge 12 -18 */
color: black;
}
#privacy {
display: flex;
flex-direction: row;
align-items: center;
justify-self: center;
gap: 10px;
font-style: italic;
/* replicate silly extra bottom padding on inputs */
margin-bottom: 30px;
}
#privacy-checkbox {
accent-color: black;
height: 30px;
width: 30px;
}
#submit {
/* override italic default for the form */
font-style: normal !important;
font-weight: 600;
transition: color 0.7s;
max-width: 80%;
}
/* flip colours on hover */
#submit:hover {
color: white;
background-color: black;
}
/* change back to normal as you click */
#submit:focus {
color: black;
background-color: white;
}
/* FOOTER */
/* make the footer 'sticky' */
body {
display: flex;
flex-direction: column;
min-height: 100vh;
}
main {
flex-grow: 1;
}
/* styling */
footer {
display: flex;
flex-flow: row wrap;
align-items: center;
justify-content: space-evenly;
align-content: space-between;
gap: 10px;
margin: 15px 50px 15px 50px;
}
#contact-email, #copyright {
display: block;
text-align: center;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
/* center the external links */
.external-links {
display: flex;
justify-content: center;
align-content: center;
}
.external-links {
display: flex;
flex-flow: row wrap;
align-items: center;
justify-content: space-evenly;
align-content: space-between;
gap: 10px;
flex-grow: 2;
max-width: 30vw;
}
.external-link:hover {
color: grey;
}
.external-link:focus {
color: grey;
}
/* mobile: move external links to the top & allow them to grow to full width */
@media all and (max-width: 700px) {
footer>* {
flex: 1 100%;
}
.external-links {
order: -1;
max-width: 100vw;
}
}