-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
377 lines (284 loc) · 6.23 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
377
/* Set basic styling for the body of the page */
body {
color: #383543;
background-color: #fefefe;
font-family: 'Roboto', sans-serif;
border: 0;
margin: 0;
padding: 0;
}
/* Make images adjust to page size */
img {
max-width: 95%;
}
/* Create my top nav bar */
.topnav {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
background-color: #333;
color: #fefefe;
font-family: 'Roboto', sans-serif;
margin: 0;
padding: 0;
border: 0;
width: 100%
}
/* Styling for hamburger menu */
#navLinks {
display: none;
}
/* Align items to left or right on navbar as required */
#navbarleft {
display: flex;
flex-direction: row;
justify-content: flex-start;
}
#navbarright {
display: flex;
flex-direction: row;
justify-content: end;
}
/* Style for navbar links */
.topnav a {
float: left;
color: #fefefe;
padding: 10px 10px;
text-decoration: none;
font-size: 20px;
/* font-family: 'Roboto', sans-serif; */
transition-duration: 0.3s;
}
/*Style for navbar links when hovered*/
.topnav a:hover {
background-color: #ddd;
color: #333;
}
/* Add a color to the active/current link */
.topnav a.active {
background-color: #fefefe;
color: #333;
}
/* Make hamburger menu checkbox invisible */
#chkToggle {
display: none;
}
/* #chkToggle:checked+ul.main-nav {
display: block;
} */
section {
overflow-x: hidden;
}
/* Create a class for the main content on each page */
.content {
display: grid;
grid-template-columns: 20% 60% auto;
grid-template-rows: 50px 100px auto 100px;
}
/* Content heading subtype */
.content .heading {
grid-column-start: 2;
grid-row-start: 2;
font-size: 45px;
}
/* Main content subtype */
.content .main {
font-size: 18px;
grid-column-start: 2;
grid-row-start: 3;
}
/* Change styling for hyperlinks in content */
.content .main a {
color: #333;
}
.content .main .filesize {
font-size: 12px;
}
/* Special styling for the landing page */
#index-content {
display: grid;
grid-template-columns: 1fr 19fr;
grid-template-rows: 1fr 2fr 1fr;
height: 100%;
}
#index-content #index-heading {
font-size: 80px;
grid-column-start: 2;
grid-row-start: 2;
}
#index-content #index-main {
font-size: 45px;
grid-column-start: 2;
grid-row-start: 4;
}
#about-socials {
display: flex;
justify-content: space-between;
align-items: center;
}
/* Set up transition time when hovering on social icons on about page */
#about-socials img {
transition-duration: 0.5s;
}
/* Set up hover effect on social icons on about page */
#about-socials img:hover {
transform: scale(1.1);
box-shadow: 2px 2px 2px 2px #333;
}
/* Create a style for the footer */
footer {
display: flex;
flex-direction: row;
justify-content: space-between;
position: fixed;
left: 0;
bottom: 0;
width: 100%;
background-color: #333;
transition: 1s;
font-family: 'Roboto', sans-serif;
color: #fefefe;
align-items: center;
box-sizing: border-box;
}
/* Align text in footer to the left */
#footerleft {
display: flex;
flex-direction: row;
justify-content: flex-start;
font-size: 20px;
margin-left: 10px;
/* transition-duration: 1s; */
}
#footerleft a {
font-size: 20px;
/* text-decoration: none; */
color: #fefefe;
margin-left: 5px;
}
/*
#footerleft:hover {
letter-spacing: 2pt;
} */
/* Align icons in footer to the right */
#footerright {
display: flex;
flex-direction: row;
justify-content: flex-end;
margin-right: 8px;
}
/* Style the #footerright links */
#footerright a {
font-size: 30px;
color: #fefefe;
margin: 2px;
padding: 5px;
transition-duration: 200ms;
}
/*Make icons bigger on hover */
#footerright a:hover {
transform: scale(1.618);
margin: 0;
box-sizing: border-box;
}
/* Change individual icon colors when hovered */
#footerright a:hover .fa-linkedin {
color: #0073B0;
}
#footerright a:hover .fa-github-square {
color: #2DBD4F;
}
#footerright a:hover .fa-twitter-square {
color: #1DA1F2;
}
#footerright a:hover .fa-medium {
color: #03A87C;
}
/* Fix for socials on about page on mobile devices: */
@media screen and (max-width: 700px) {
.content {
display: grid;
grid-template-columns: 2% auto 2%;
grid-template-rows: 33px 70px auto 66px;
}
.content .heading {
font-size: 30px
}
.content .main {
font-size: 12px;
}
.content .main .filesize {
font-size: 6px
}
#about-socials {
display: flex;
justify-content: space-between;
}
}
/* Styles main page text to fit correctly on smaller devices */
@media screen and (max-width: 500px) {
#navbarleft {
flex-direction: column;
}
#index-content #index-heading {
font-size: 50px;
}
#index-content #index-main {
font-size: 30px;
}
}
/* Hamburger menu for left navbar and wrap footer on mobile */
@media screen and (max-width: 400px) {
#navbarleft {
display: flex;
justify-content: start;
flex-wrap: wrap;
}
#navLinks {
flex-direction: column;
}
#footerleft {
margin-left: 2px;
}
}
/* Wrap footer icons on mobile */
@media screen and (max-width: 300px) {
#index-content #index-heading {
font-size: 30px;
}
#index-content #index-main {
font-size: 20px;
}
#footerright {
display: flex;
flex-direction: row;
justify-content: flex-end;
flex-wrap: wrap;
}
}
/* Fix display error on very small screens */
@media screen and (max-width: 200px) {
.topnav {
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: flex-start;
}
.content .main {
display: grid;
grid-template-rows: 50px 120px auto 300px;
}
#navbarleft {
display: flex;
flex-direction: column;
justify-content: start;
flex-wrap: wrap;
}
#navbarright {
display: flex;
flex-direction: column;
justify-content: start;
flex-wrap: wrap;
}
}