-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
376 lines (295 loc) · 7.5 KB
/
style.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
/* import of "Dosis" (font to use) */
@import url('https://fonts.googleapis.com/css2?family=Dosis:wght@800&display=swap');
/* settings for the whole page */
:root {
/* Variable for the start section */
--start-background-color: #222255;
/* Variable for the about section */
--about-background-color: #225522;
/* Variable for the projects section */
--projects-background-color: #552222;
/* Variable for the body background color */
--body-background-color: #000000;
/* Variable for the navigation background color */
--nav-background-color: #222222;
/* Variable for the standart text color */
--text-color: #ffffff;
/* Variable fot the standart title-text color */
--title-color: #ffffff;
/* Variable for the text in the navigation */
--nav-text-color: #ffffff;
/* Variable for other extra elements */
--extra-color: #ffffff;
/* Variable for nav hover effect */
--nav-hover-color: #dad9aa;
}
/* Settings for the whole html */
html {
/* Change the scrollbar color */
scrollbar-color: #343434 #000;
/* activate smooth scrolling */
scroll-behavior: smooth;
}
/* Settings for the whole body */
body {
/* Set text color */
color: var(--text-color);
/* Set font-family */
font-family: Dosis;
/* Set background color */
background-color: var(--body-background-color);
/* Add spacing around the elements */
margin: 0px;
/* Stretch to full height */
height: 100%;
}
/* all links */
a {
/* disable text decoration */
text-decoration: none;
}
/* navigation parent element */
.sidenav {
/* Stretch over full height */
height: 100vh;
/* Don't show the nav standart */
width: 0;
/* Position the element fixed */
position: fixed;
/* Get the menu on top of the page */
z-index: 1;
/* Position the element */
top: 0;
left: 0;
/* Remove scroll-bar */
overflow-x: hidden;
/* Add padding on the top */
padding-top: 5vh;
/* Add background-color */
background-color: var(--nav-background-color);
}
/* navigation links */
.sidenav a {
/* Add space around the texts */
padding: 1vh 1vw 1vh 3vw;
/* Set font size */
font-size: 3vh;
/* Set text-color */
color: var(--nav-text-color);
/* Set display type */
display: block;
}
/* navigation links on hover */
.sidenav a:hover {
/* Set text color */
color: var(--nav-hover-color);
}
.sidenav .navClosebtn {
position: absolute;
top: 0;
right: 10%;
font-size: 5vh;
margin-left: 50px;
cursor: pointer;
}
/* Parent element of the navigation opener button */
#navOpener {
/* Set text color */
color: var(--text-color);
/* Position the button fixed */
position: fixed;
/* Position it */
top: 0.5vh;
left: 0.5vw;
}
#copyright {
font-size: 2.5vh;
position: absolute;
margin-top: 140%;
text-align: center;
width: 100%;
}
/* The navigation opener button */
#navOpenerButton {
/* Set the font-size */
font-size: 3vh;
/* Set cursor type */
cursor: pointer;
}
/* Settings for the whole page (without the sidenav) */
#main {
/* Add a transition */
transition: margin-left 0.25s;
}
/* Message div */
#occassion {
/* Normally don't display */
display: none;
/* Stretch about full width */
width: 100%;
/* Set height to be header banner */
height: 5vh;
/* Set background color */
background-color: var(--projects-background-color);
/* Set text Color */
color: var(--text-color);
/* Set text to be center aligned */
text-align: center;
/* Set font size */
font-size: 4vh;
}
html>.occassion {
/* Set background color */
background-color: var(--projects-background-color);
/* Set text Color */
color: var(--text-color);
/* Center all elements vertically and horizontally */
display: flex;
align-items: center;
justify-content: center;
/* Stretch over the full page */
width: 100%;
height: 100vh;
/* Set a font size */
font-size: 25vh;
/* Don't display the cursor */
cursor: none;
}
/* Correct sidenav on smaller screens */
@media screen and (max-height: 450px) {
.sidenav {
padding-top: 15px;
}
.sidenav a {
font-size: 18px;
}
}
/* The pages */
.page {
/* Set it to the full screen height */
height: 100vh;
}
/* The start page */
#start {
/* Set the background color */
background-color: var(--start-background-color);
}
/* Settings for the title */
.title {
/* Add a padding */
padding-left: 10vw;
padding-top: 10%;
/* Set font size */
font-size: 3.5vh;
}
/* All text sections */
.inner_text {
/* Add a padding from the left */
padding-left: 15%;
/* Set font size */
font-size: 2.5vh;
}
/* The parent element for each of the buttons to get down */
.downlink {
/* Add a space from the top */
padding-top: 1vh;
}
/* The buttons to get down */
.down {
/* Add rounded corners */
border-radius: 2vh;
/* Add space around the element */
padding: 2vh;
/* Set background color */
background-color: var(--extra-color);
/* Remove the border */
border: 0px;
/* Set the font size */
font-size: 2vh;
/* Add space on the top */
margin-top: 2vh;
/* Change the cursor to let the buttons look clickable */
cursor: pointer;
}
/* The icon inside the buttons */
.down>i {
/* Add a space on the left */
margin-left: 1vw;
}
/* The section in which informations about the person are */
#about {
/* Set the background color */
background-color: var(--about-background-color);
}
/* Image of the person */
#person_image {
/* Set the position absolute */
position: absolute;
/* Add a height and width */
height: 30vh;
width: 30vh;
/* Add space from the right */
right: 10vw;
/* Add space from the top */
top: 130vh;
/* Add rounded corners */
border-radius: 15%;
}
/* The section in which the short description of the projects is */
#projects {
/* Set the background color */
background-color: var(--projects-background-color);
}
/* The parent element around the button to project informations */
.projects_link {
/* Add a spacing from the top */
padding-top: 1vh;
/* Change the cursor to let the buttons look clickable */
cursor: pointer;
}
/* The button element */
.projects_link_button {
/* Add rounded corners */
border-radius: 2vh;
/* Add space around the element */
padding: 2vh;
/* Set background color */
background-color: var(--extra-color);
/* Remove the border */
border: 0px;
/* Set the font size */
font-size: 2vh;
/* Center horizontally and vertically */
display: flex;
align-items: center;
justify-content: center;
}
/* All icons in the projects_link_button */
.projects_link_button>i {
/* Add a space on the left */
margin-left: 1vw;
}
/* The button to get to the top of the page */
#up_button {
/* Set the position to be fixed */
position: fixed;
/* Make the button round */
border-radius: 50%;
/* Add a space around the box */
padding: 1vh;
/* Position the button */
bottom: 1vw;
right: 1vw;
/* Set width and height */
height: 1.5vh;
width: 1.5vh;
/* Set background color */
color: #000;
/* Set font color */
background-color: var(--extra-color);
/* Set font size */
font-size: 1.8vh;
/* Center the icon within it */
align-items: center;
justify-content: center;
}