-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
390 lines (334 loc) · 6.87 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
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
/* Nathanael Jenkins*/
/* 2021 */
/* -------------- DEFAULT STYLES ------------- */
/* All formatting; white background, crosshair cursor */
*{
cursor: crosshair;
}
/* Selected text */
::selection{
color: white;
background: #222;
}
/* Text default */
body, figcaption, h2, p, a, nav, div{
font: small "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Calibri, Arial, Verdana, sans-serif;
color: #444;
margin: 0;
padding: 0;
}
/* Hyperlink default (consistent colour) */
a:link, a:visited, a:active{
text-decoration: none;
}
/* Header 1 default (bold) */
h1{
font: xx-large Helvetica Neue Bold, Arial Black, Verdana, sans-serif;
margin-bottom: 0;
color: #444;
}
h2{
font-style: italic;
}
/* Header 3 default (medium) */
h3, h3 a{
font: x-large "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Arial, Verdana, sans-serif;
color: #444;
padding-top: 2px;
}
/* Caption default (small) */
figcaption{
color: #666;
font: small Helvetica Neue Bold, Arial Black, Verdana, sans-serif;
text-align: center;
}
figcaption a{
color: black;
font: small Helvetica Neue Bold, Arial Black, Verdana, sans-serif;
text-align: center;
}
/* Paragraph default */
p{
text-align: justify;
}
/* Paragraph hyperlink default (bold) */
p a{
font-weight: bold;
padding: 0 2px;
}
/* -------------- CUSTOM STYLES ------------- */
/* HEADER */
/* Site header display */
.site-header{
display: inline;
margin: 1vw;
}
/* Homepage link formatting */
.name{
font-size: xx-large;
padding: 0;
margin: 2px;
display: inline;
}
/* Homepage link (forename) */
.name1{
font-family: "HelveticaNeue-UltraLight", "Helvetica Neue Light", "Helvetica Neue", "Calibri Light", Calibri, Arial, Verdana;
font-size: xx-large;
display: inline;
}
/* menu link defaults */
.menu-links, .menu-links:visited{
display: inline-block;
font-size: large;
color: #444;
margin: 0 0.5vw;
padding: 4px 4px;
}
/* Dropdown settings */
.dropdown{
position: relative;
display: inline-block;
}
/* Dropdown Content (Hidden by Default) */
.dropdown-content {
opacity: 0;
transition: visibility 1s, opacity 0.25s;
visibility: hidden;
position: fixed;
z-index: 2;
}
/* Links inside the dropdown */
.dropdown-content a {
display: block;
color: #444;
background: #CCC;
padding: 4px 4px;
min-width: 100%;
overflow: auto;
text-decoration: none;
}
/* Dropdown container positioning */
.menu-right {
display: inline-block;
float: right;
text-align: center;
}
/* Change color of dropdown links on hover */
.dropdown-content a:hover{
background-color: #444;
color: #CCC;
cursor: pointer;
}
/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content, .dropdown-content:hover{
opacity: 1;
transition: visibility 0s, opacity 0.25s;
visibility: visible;
}
/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .menu-links{
background-color: #CCC;
/* color: #444;*/
}
/* CONTENT */
/* Text wrapping */
.wrapper{
overflow: hidden;
max-width: 70%;
margin-right: 5%;
margin-left: 5%;
padding-right: 10%;
padding-left: 10%;
}
/* Project images (centered) */
.projectimg{
background: none;
z-index: 1;
position: absolute;
height: 70px;
right: 60vw;
clip-path: circle();
margin-top: 10px;
display: inline-block;
transition: 0.1s;
}
/* Project preview boxes */
.box{
background: none;
display: block;
position: absolute;
width: 70vw;
left: 35vw;
background: none;
transition: 0.1s;
}
.projectgap{
padding-bottom: 70px;
}
.mobilegap{
display: none;
}
/* Error page image (circular crop) */
.cat{
max-width: 70%;
margin-right: 5%;
margin-left: 5%;
padding-right: 10%;
padding-left: 10%;
clip-path: circle();
opacity: 0.9;
}
/* Homepage left box */
.introbox{
overflow: hidden;
width: 50vw;
text-align: justify;
margin-right: 25vw;
margin-left: 25vw;
}
video {
/* Prevent blinking black borders on videos */
clip-path: inset(1px 1px);
}
/* PDF embed box */
.iframewindow{
text-align: center;
}
/* PDF embed box */
.iframepdf{
height: 100vw;
width: 70vw;
overflow: hidden;
}
/* Changes colour of links on hover */
.menu-links:hover, .social-links:hover, .logo:hover, p a:hover, h1 a:hover, span:hover, h3 a:hover{
background-color: #CCC;
/* color: #CCC;*/
cursor: pointer;
}
figcaption a:hover{
cursor:pointer;
background-color: #CCC;
}
.name:hover, .name1:hover, a img:hover, .box *:hover{
cursor: pointer;
}
/* VIDEOS */
/* Full width video (centered) */
.fullvid{
width: 70vw;
display; inline;
margin-left: 15vw;
}
.minivid{
width: 40vw;
display; inline;
margin-left: 30vw;
}
/* FOOTER */
/* Logo sizing */
.logo{
height: 15px;
vertical-align: middle;
margin-top: -0.2vw;
background: none;
}
.logo:hover{
background: none;
}
/* Social media links */
.social-links, .social-links:visited{
display: inline;
font-size: medium;
background: none;
color: #444;
line-height: 300%;
margin: 0 5px;
padding: 4px 4px;
vertical-align: middle;
}
/*.social-links:hover{*/
/* color: white;*/
/*}*/
/* Footer default */
.footer{
text-align: center
}
/* -------------- ANIMATIONS ------------- */
/* Horizontal rules (header/ footer) */
.rule{
width: 100%;
color: #CCC;
z-index: 1;
animation-name: widen;
animation-duration: 2s;
}
@keyframes widen{
from{
width:0;
}
to{
width:100%;
}
}
/* Fade in (all) */
*{
animation-name: header;
animation-duration: 1s;
}
@keyframes header{
from{
opacity:0;
}
to{
opacity:1;
}
}
/* Project images (zoom on hover) */
.box:hover .projectimg{
transform: translate(-15px, -15px);
height: 100px;
z-index: 3;
transition: 0.1s;
transition-delay: 0.1s;
}
.box:hover p, .box:hover h2, .box:hover a{
background: none;
/* transform: translateY(-1vw);*/
transform-origin: top left;
transform: scale(1.15);
/* font-size: 115%;*/
z-index: 2;
transition: 0.1s;
/* transition-delay: 0.1s;*/
}
.box:hover{
z-index: 1;
}
/* Mobile optimisation */
@media (max-aspect-ratio: 13/18){
.box{
display: block;
height: 100%;
width: 90vw;
left: 5vw;
background: none;
}
.box:hover p, .box:hover a, .box:hover h2{
transform: translateY(0);
font-size: 100%;
}
.projectimg, .box:hover .projectimg{
transform: translate(0, 0);
display: inline-block;
height: 30vw;
left: 30vw;
}
.projectgap{
padding-bottom: 70vw;
}
.mobilegap{
display: block;
padding-bottom: 25vw;
}
}