-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
408 lines (340 loc) · 7.58 KB
/
Copy pathstyle.css
File metadata and controls
408 lines (340 loc) · 7.58 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
* {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
/* Makes .viewMore link scroll smoothly. (Does not work in safari). */
html {
scroll-behavior: smooth;
}
body {
font-family: Roboto, sans-serif;
padding: 0;
margin: 0;
background: url("./Images/Homepagepic.png") rgba(0, 0, 0, 0.541);
background-blend-mode: multiply; /* Blends the background image with the background color */
background-position: top;
background-repeat: no-repeat;
background-size: 100vw 100vh;
}
.navbar {
display: flex;
position: relative;
width: 100%;
background-color: transparent;
z-index: 1; /* Puts navbar over other elements to avoid overlap */
list-style: none;
}
.navbar .language {
color: rgb(255, 217, 0);
white-space: nowrap; /* Prevents linebreak */
padding-right: 1rem;
padding-left: 1rem;
font-size: 20px;
list-style: none;
align-self: flex-start; /* Aligns language switch higher than the other flex items */
margin-top: -15px;
margin-right: 5px;
}
.navbar .language a {
color: rgb(255, 217, 0);
text-decoration: none;
}
.yellowLogo img {
height: auto;
padding: 20px;
max-width: 175px;
}
.header {
text-align: center;
color: white;
font-size: 15px;
}
.header h1 {
width: 350px;
margin: 30px auto 60px auto;
padding: 20px;
text-transform: uppercase;
}
main {
display: block;
background-color: rgb(41, 41, 41);
color: white;
height: auto;
}
main p {
max-width: 1000px;
font-size: 20px;
float: none;
padding-top: 20px;
text-align: left;
}
main a {
color: white;
}
main img {
height: 40vh;
border-radius: 10px;
}
footer {
display: flex;
background-color: rgb(255, 217, 0);
height: auto;
color: white;
text-align: left;
align-items: center;
}
footer p {
color: black;
margin: auto;
}
.blackLogo {
height: 15vh;
float: left;
}
.icons ul {
padding: 0;
list-style: none;
}
.icons img {
height: 4vh;
display: flex;
}
span {
color: rgb(255, 217, 0);
}
.h1 {
font-size: 30px;
text-align: left;
text-transform: uppercase;
}
main a {
color: rgb(255, 217, 0);
font-style: italic;
text-decoration: none;
}
main a:hover {
text-decoration: underline;
color: rgba(250, 225, 178, 0.89);
}
/*
HOME PAGE:
--------------------------------------------------------------------------------------
*/
.headerHome {
max-width: 100%;
height: 75vh;
display: block;
}
.headerHome div {
position: absolute;
padding: 5rem 0rem 6rem 6rem;
}
.headerHome h1{
color: white;
text-transform: uppercase;
text-align: left;
font-size: 50px;
line-height: 1;
margin: 0px;
}
.headerHome h2{
color: rgb(255, 217, 0);
font-size: 25px;
text-align: left;
font-weight: initial;
}
/* Links that scrolls down on page when clicked */
.headerHome .links{
position: absolute;
display: flex;
justify-content: flex-end;
align-items: center;
padding-left: 0;
left: 6rem;
list-style: none;
}
.headerHome .links .viewMore {
background-color: white;
text-decoration: none;
color: black;
font-size: 20px;
padding: 13px 10px 9px 10px;
white-space: nowrap;
}
.headerHome .links .pil img{
background-color: rgb(255, 217, 0);
height: 45px;
}
.welcome {
padding: 50px 0px 50px 50px;
}
.welcome h2 {
font-size: 30px;
text-align: left;
text-transform: uppercase;
}
.welcome p {
font-size: 30px;
}
.welcome ul li {
font-size: 25px;
list-style: none;
padding: 3px;
margin-left: -1rem;
}
/* Making the bullet points yellow */
.welcome ul li::before {
content: "\2022";
color: rgb(255, 217, 0);
padding-right: 5px;
}
.welcome .oslometLink {
border: 1px solid;
padding: 20px;
margin-top: 50px;
border-radius: 20px;
font-size: 25px;
width: 50%;
margin-left: auto;
margin-right: auto;
text-align: center;
}
/*
ACCESSIBILITY PAGE:
--------------------------------------------------------------------------------------
*/
/* Centers images on accessibility page */
.accessContainer figure {
width: 50%;
padding: 10px;
margin-left: auto;
margin-right: auto;
}
/*
REFLECTION, ACCESSIBILITY, AND TECHNOLOGY & SOCIETY PAGE:
--------------------------------------------------------------------------------------
*/
/* Same padding on main for the three different pages */
.accessContainer, .universalContainer, .reflectionContainer {
padding: 50px 50px 50px 50px;
}
/*
Media screens between below 900px:
- Putting navbar into hamburger icon menu
- Resizes images with smaller screens
*/
@media only screen and (max-width:900px) {
/* Style for the hamburger menu */
.navbar .dropdown .button {
background-color: transparent;
cursor: pointer;
border: none;
position: relative;
}
.button img {
height: 50px;
}
.navbar {
justify-content: space-between;
align-items: center;
}
.nav-menu {
display: none;
}
.navbar .dropdown {
position: relative;
margin-right: -50px;
margin-left: auto;
}
.navbar .drop-menu {
display: none;
position: absolute;
}
.navbar .drop-menu a {
color: white;
text-decoration: none;
padding: 12px 16px;
display: block;
}
.navbar .drop-menu a:hover {
background-color: rgba(145, 145, 145, 0.521);
}
/* Shows meny in the form of a dropdown meny when hovering
over the hamburger menu */
.navbar .dropdown:hover .drop-menu {
display: block;
background-color: rgba(41, 41, 41, 0.836);
}
/* Sizing the images on the different pages */
.universalContainer .img1,
.reflectionContainer .img1, .reflectionContainer .img3,
.reflectionContainer .img2 {
width: 80vw;
height: auto;
margin: 20px 0px 20px 0px;
}
.universalContainer .img2 , .accessContainer img{
width: 50vw;
height: auto;
}
.universalContainer p, .reflectionContainer p {
clear: both;
}
}
/*
Media screens greater than 901px:
- Shows full navigation bar and hides hamburger menu
*/
@media only screen and (min-width:901px) {
/* Hides the dropdownmeny */
.dropdown {
display: none;
}
.navbar {
display: flex;
justify-content: space-around;
align-items: center;
}
.nav-menu {
width: 100%;
}
.nav-menu ul {
display: flex;
padding-left: 0;
justify-content:space-around;
list-style: none;
}
.nav-menu ul li {
padding-left: 15px;
}
.nav-menu a:hover {
background-color: rgba(145, 145, 145, 0.521);
}
.nav-menu a {
color: white;
background-color: transparent;
justify-content: space-between;
text-decoration: none;
font-size: 20px;
}
/*Makes first list element (home) yellow*/
.navbar li:first-child a{
color: rgb(255, 217, 0);
}
/* Sizing the images on the different pages */
.reflectionContainer img, .universalContainer .img1,
.accessContainer img {
width: 400px;
height: auto;
}
.reflectionContainer .img1, .reflectionContainer .img3,
.universalContainer .img1 {
float: right;
margin: 20px;
}
.reflectionContainer .img2, .universalContainer .img2 {
float: left;
margin: 20px 20px 20px 0px;
}
}