-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
378 lines (307 loc) · 6.6 KB
/
Copy pathstyle.css
File metadata and controls
378 lines (307 loc) · 6.6 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
/* Global Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
text-align: center;
color: white;
background-color: rgb(158, 158, 255);
}
html {
scroll-behavior: smooth;
}
/* Navigation Styles */
.navlist ul li {
padding: 20px;
}
.navBar {
display: flex;
position: fixed;
width: 100%;
justify-content: space-between;
align-items: center;
padding: 2% 0;
background-color: rgb(40, 40, 44);
}
.navlist ul {
display: flex;
list-style: none;
margin: 0;
padding: 0;
}
.navlist a {
text-decoration: none;
color: white;
font-size: 18px;
}
.navlist a:hover {
color: rgb(100, 100, 255);
}
/* Home Page Styles */
#Home {
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: linear-gradient(180deg, rgb(40, 40, 44), rgb(100, 100, 255));
flex-direction: column;
}
#Home h1 {
font-size: 3rem;
margin-bottom: 1.5rem;
}
#Home .btn {
padding: 0.8rem 1.5rem;
font-size: 1.25rem;
background-color: rgb(40, 40, 44);
color: white;
text-decoration: none;
border-radius: 5px;
}
#Home .btn:hover {
background-color: rgb(0, 0, 141);
}
/* About Me Section */
#About {
padding: 10% 5% 5%;
background-color: rgb(100, 100, 255);
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
text-align: center;
}
#About h1 {
font-size: 3rem;
margin-bottom: 1.5rem;
}
#About p {
font-size: 1.25rem;
max-width: 90%;
margin: 0 auto;
line-height: 1.7;
}
/* Projects Section */
#Projects {
padding: 100px 20px;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
background-color: rgb(100, 100, 255);
min-height: 100vh;
}
#Projects h1 {
font-size: 48px;
margin-bottom: 40px;
}
#Projects h2{
font-size: 36px;
}
#Projects p {
font-size: 20px;
/* Limit paragraph width */
max-width: 800px;
/* Center the text */
margin: 0 auto;
/*Affects Hieght of spaces in between text lines vertically*/
line-height: 1.7;
}
/*Start of Contact Me Page */
/* Contact Me Section */
#Contacts {
padding: 5% 5%;
background: linear-gradient(360deg, rgb(40, 40, 44), rgb(100, 100, 255));
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
text-align: center;
}
#Contacts .SectionTitle {
font-size: 3rem;
margin-bottom: 2rem;
color: white;
}
/* Form Styles */
#contactFrm {
max-width: 80%;
width: 100%;
background-color: rgba(255, 255, 255, 0.1);
padding: 2%;
border-radius: 0.5rem;
box-shadow: 0px 0px 0.625rem rgba(0, 0, 0, 0.2);
}
/*Form Group*/
.form-group {
margin-bottom: 20px;
display: flex;
flex-direction: column;
align-items: flex-start;
text-align: left;
}
/*Form Labels*/
#contactFrm label {
font-size: 18px;
margin-bottom: 8px;
color: white;
}
/*Form Inputs*/
#contactFrm input[type="text"],
#contactFrm input[type="email"],
#contactFrm input[type="tel"],
#contactFrm textarea {
width: 100%;
padding: 10px;
font-size: 16px;
border: 1px solid rgba(40, 40, 44);
border-radius: 4px;
background-color: white;
color: black
}
/*Input Focus Effect*/
#contactFrm input:focus,
/*Changing Colour of Text Box When Being Focused On*/
#contactFrm textarea:focus {
outline: none;
border-color: white;
background-color: rgba(255, 255, 255, 0.3);
}
/* Textarea Styles */
#contactFrm textarea {
resize: vertical;
height: 130px;
}
/*Submit Button*/
#contactFrm input[type="submit"] {
background-color: rgb(40, 40, 44);
color: white;
padding: 13px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 18px;
width: 100%;
transition: background-color 0.3s ease;
}
/*Changes colour of button when hovering*/
#contactFrm input[type="submit"]:hover {
background-color: rgb(0, 0, 0);
}
/* Footer Styles */
footer {
/*Background colour of footer*/
background-color: rgba(40, 40, 44);
/*text colour*/
color: white;
/*Aligning text in the center*/
text-align: center;
/*Padding for top and bottom of footer*/
padding: 2% 0;
/*Positions footer to be at the bottom of the page*/
position: relative;
/*Allows for full width*/
width: 100%;
}
.footer-container {
/*Centers the Footer*/
margin: 0 auto;
}
footer a {
/*Colour of the link*/
color: white;
/*Removes underlines from links*/
text-decoration: none;
}
footer a:hover {
/*Underlines on hover*/
text-decoration: underline;
}
/*Start of Design of Different Viewports*/
/*Mobile Screens*/
/*Setting to max 600px*/
@media only screen and (max-width: 600px){
body{
/*adjusting font for smaller screens*/
font-size: 14px;
}
/*Change nav bar from horizontal to vertical*/
.navlist ul {
flex-direction: column;
}
.navlist ul li {
padding: 10px;
}
/*Reduce size of h1 font for smaller screens*/
#Home h1 {
font-size: 2rem;
}
/*Resize Buttons*/
#Home .btn{
padding: 0.6rem 1rem;
font-size: 1rem;
}
/*Making Section Titles maller for smaller screens*/
#About h1, #Projects h1, #Contacts h1
{
font-size: 2rem;
}
/*Adjusting contact form*/
#contactFrm{
padding: 1%;
}
}
/*Start of Tablet Screen*/
@media only screen and (min-width: 601px) and (max-width: 1024px){
/*Change Font Size for Tablet Screens*/
body{
font-size: 16px;
}
.navlist ul {
flex-direction: row;
justify-content: space-between;
}
.navlist ul li {
padding: 15px;
}
/*Increase size of headers for tablet screens*/
#Home h1{
font-size: 2.5rem;
}
#About h1, #Projects h1, #Contacts h1
{
font-size: 2.5rem;
}
/*Adjust Form padding*/
#contactFrm{
padding: 2%;
}
}
/*Start of Laptop/Desktop Screen*/
@media only screen and (min-width: 1025px){
body{
font-size: 18px;
}
.navlist ul {
flex-direction: row;
justify-content: flex-end;
}
.navlist ul li{
padding: 20px;
}
#Home h1{
font-size: 3rem;
}
#About h1, #Projects h1, #Contacts h1
{
font-size: 3rem;
}
/*Adjusting form*/
#contactFrm{
padding: 3%;
max-width: 50%;
}
}