-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.scss
653 lines (562 loc) Β· 14.3 KB
/
main.scss
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
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
:root {
--mainColor: rgb(7, 37, 20);
--secondaryColor: rgb(8, 41, 23);
--lightColor: #32ff7e;
--mainText: #e5eeea;
--secondaryText: #cdecde;
--darkColor: rgb(2, 17, 8);
}
body * {
-webkit-transition: 0.3s;
transition: 0.3s;
box-sizing: border-box;
}
html, body {
padding: 0; //distance between border & inside element
margin: 0; // distance between border & outside element
scroll-behavior: smooth;
}
h1, h2, h3, h4, h5, h6, strong {
color: var(--mainText);
font-family: NTR;
margin: 0;
}
p, li, label, input, textarea {
color: var(--secondaryText);
font-family: NTR;
font-size: 1.125rem; //1 rem = 1 default (16) px
}
p {
margin:0;
margin-bottom: 1rem;
line-height: 1.875rem;
}
a {
font-family: NTR;
font-size: 1.125rem;
text-decoration: none;
color: var(--lightColor);
}
a:hover {
color: var(--mainText);
}
ul {
list-style: none;
}
h1 { font-size: 4.75rem;}
h2 { font-size: 2.125rem;}
h3 { font-size: 1.625rem;}
h4 { font-size: 1.5rem;}
h5 { font-size: 1.2rem;}
h6 { font-size: 1.125rem;}
::-moz-selection {
background: rgb(10, 53, 29);
}
::selection {
background: rgb(10, 53, 29);
}
.section-tittle{
text-align: center;
}
.s1 {
background-color: var(--mainColor);
border-bottom: 1px solid var(--lightColor);
overflow: auto;
}
.s2 {
background-color: var(--secondaryColor);
border-bottom: 1px solid var(--lightColor);
overflow: auto;
}
.footer {
border-bottom: none;
}
.main-container{
width: 1200px;
margin: 0 auto;
}
.mobile-navigation {
display: none;
}
.greeting-wrapper{
display: grid;
min-height: 8em;
text-align: center;
align-content: center;
h1 {
color: var(--mainText);
font-weight: lighter;
}
span {
color: var(--lightColor);
font-weight: bold;
}
#cursor { // edit
animation: blink 0.9s infinite;
font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
@keyframes blink {
from { opacity: 1; }
to { opacity: 0; }
}
}
}
.intro-wrapper {
-webkit-box-shadow: -1px 10px 30px -1px rgba(0, 0, 0, 0.01);
-moz-box-shadow: -1px 10px 30px -1px rgba(0, 0, 0, 0.01);
box-shadow: -1px 10px 30px -1px rgba(0, 0, 0, 0.01);
background-color: var(--secondaryColor);
border: 1px solid var(--lightColor);
border-bottom: none;
align-items: center;
border-radius: 20px 20px 0 0;
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-template-areas:
'nav-wrapper nav-wrapper'
'left-col right-col'
;
}
.nav-wrapper{
grid-area: nav-wrapper;
border-bottom: 1px solid var(--lightColor);
background-color: var(--mainColor);
display: flex; //to make justify, align easier which is FLEXible (default: horizonal)
justify-content: space-between; //separate items with the max space
align-items: center;
border-radius: 20px 20px 0 0;
}
.title-wrapper {
margin:0;
padding:0;
padding-left:20px;
}
.web-navigation {
display: flex; //to make it horizontal
padding-right: 20px;
li {
//display: inline-block;
margin-left: 20px;
margin-left: 20px;
letter-spacing: 2px;
}
}
.hamburger {
display: none; //hide the hamburger menu on the non-mobile screen
}
.left-col{
grid-area: left-col;
text-align: center;
padding: 50px 0; //top+bottom left+right
}
#profile-pic{
display: block;
margin:auto;
height: 275px;
width: 275px;
object-fit: cover;
border: 2px solid var(--lightColor);
border-radius: 8px;
background-color: var(--mainColor);
-webkit-box-shadow: inset 0px 0px 5px -1px var(--lightColor);
-moz-box-shadow: inset 0px 0px 5px -1px var(--lightColor);
box-shadow: inset 0px 0px 5px -1px var(--lightColor);
}
#profile-pic:hover{
transform: translateY(-5px);
}
.social-icon {
display: flex;
align-items: center;
li {
margin-left: 8px;
margin-right: 8px;
i {
color: #fff;
opacity:75%;
}
a :hover {
opacity: 100%;
}
}
}
.first-icon {
justify-content: center;
padding: 0;
margin-top: 25px;
margin-bottom: 10px;
}
.second-icon {
padding:0;
margin:0;
margin-bottom: 20px;
li {
margin-left: 0px;
margin-right: 20px;
}
}
.say-hello {
display: inline-block; //a default display is inline so we can't change margin
background-color: var(--darkColor);
color: var(--mainText);
border-radius: 50px;
padding: 0 30px;
margin: 0;
font-size: 1.375rem;
}
.say-hello:hover {
transform: scale(1.03);
box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
color: var(--mainText);
//border: 1px solid var(--lightColor);
}
.right-col{
grid-area: right-col;
display: grid;
align-content: center;
padding: 50px 50px 50px 0; //top right bottom left
//max-width: 600px; limit the width
h3 {
margin:0;
margin-bottom: 6px;
}
.skills {
display: flex;
justify-content: space-evenly; //separate items with same space
background-color: var(--darkColor);
border-radius: 8px;
ul {
margin: 15px;
list-style: none;
}
li {
margin:0;
color: var(--mainText);
}
ul li::before {
content: "\2023"; /* Add content: \2023 is the CSS Code/unicode for a triangle */
color: var(--lightColor); /* Change the color */
font-weight: bold; /* If you want it to be bold */
display: inline-block; /* Needed to add space between the triangle and the text */
width: 1em; /* Also needed for space (tweak if needed) */
margin-left: -1em; /* Also needed for space (tweak if needed) */
}
}
}
.experience-wrapper {
padding-bottom: 50px;
display: grid;
grid-template-columns: 200px 1fr;
grid-template-areas:
'selection experience-desc';
.selection {
margin: 0;
grid-area: selection;
display: grid;
a {
cursor: pointer;
color: var(--mainText);
}
a:hover {
color: var(--lightColor);
}
}
.mobile-selection {
display: none;
}
.experience-desc {
grid-area: experience-desc;
ul {
list-style: none;
padding-left: 25px;
list-style-position: outside;
}
ul li::before {
content: "\2023"; /* Add content: \2022 is the CSS Code/unicode for a bullet */
color: var(--lightColor); /* Change the color */
font-weight: bold; /* If you want it to be bold */
display: inline-block; /* Needed to add space between the bullet and the text */
width: 1em; /* Also needed for space (tweak if needed) */
margin-left: -1em; /* Also needed for space (tweak if needed) */
}
span {
color: var(--lightColor);
}
&#Div1 {
display: block;
}
&#Div2 {
display: none;
}
&#Div3 {
display: none;
}
&#Div4 {
display: none;
}
}
}
.projects{
display: grid;
grid-template-columns: repeat(auto-fit,320px);
gap: 20px;
justify-content: center;
padding-bottom: 50px;
padding-top:10px;
}
.project:hover{
transform: scale(1.03);
}
.project-preview {
background-color: var(--secondaryColor);
border-radius: 20px;
padding: 20px;
border-radius: 0 0 20px 20px;
-webkit-box-shadow: inset 0px 0px 10px -5px var(--lightColor);
-moz-box-shadow: inset 0px 0px 10px -5px var(--lightColor);
box-shadow: inset 0px 0px 10px -5px var(--lightColor);
cursor: default;
}
.thumbnail-container{
position: relative;
}
.external-link {
top:0px;
right:20px;
position: absolute;
.link-items{
display: flex;
align-items:center;
padding: 0;
li:not(:last-child) { //apply this to all items in the list except the last item
margin-right: 10px;
}
a {
opacity: 0.75;
}
a:hover {
opacity: 1;
}
}
i {
color: #fff;
}
}
.thumbnail{
border-bottom: 1px solid var(--lightColor);
display: block;
width: 100%; //fill 100% of the container which is .project
height:180px;
object-fit: cover;
border-radius: 20px 20px 0 0;
}
.footer-wrapper {
display: flex;
align-items: center;
justify-content: center;
p {
color:var(--mainText);
margin: 15px 0px;
}
}
.bottomMenu {
display: none;
}
@media screen and (max-width: 1200px){
.main-container{
width:95%;
}
}
@media screen and (max-width: 800px){
h1 { font-size: 2.5rem;}
h2 { font-size: 1.75rem;}
h3 { font-size: 1.25rem;}
.greeting-wrapper{
min-height: 3em;
}
.mobile-wrapper {
display: flex;
justify-content: flex-end;
padding: 10px;
}
.mobile-navigation {
position: absolute; //its position is in front of other element
border: 1px solid var(--lightColor);
border-radius: 10px;
//grid-template-columns: auto;
text-align: right;
margin: 0px;
padding-right: 20px;
width: auto;
height: auto;
background-color: rgba(0, 0, 0, 0.1);
letter-spacing: 2.5px;
a {
color: var(--mainText);
}
a:hover{
color: #fff;
}
&.fade-out{
display: none;
}
&.fade-in{
display: block;
}
&.close {
display: block;
}
}
.fade-in {animation: fade-in 300ms ease-in-out forwards;}
@keyframes fade-in {
from {
visibility: hidden;
opacity: 0;
}
to {
visibility: visible;
opacity: 1;
}
}
.fade-out {animation: fade-out 300ms ease-in-out forwards;}
@keyframes fade-out {
from {
visibility: visible;
opacity: 1;
}
to {
visibility: hidden;
opacity: 0;
}
}
.web-navigation{
display: none;
}
.hamburger {
padding: 20px;
display: grid;
> span {
display: block;
width: 25px;
height: 3px;
background-color: var(--mainText);
transition: all 0.3s ease-in-out;
position: relative;
&:not(:last-child){
margin-bottom: 5px;
}
}
&.open { //another condition if this class is added to main class in html (for javascript) and it will be 'hamburger open'
> span:first-child {
transform: translateY(8px) rotate(45deg);
}
> span:nth-child(2) {
opacity: 0;
}
> span:last-child {
transform: translateY(-8px) rotate(-45deg);
}
}
}
.intro-wrapper {
grid-template-columns: 1fr;
grid-template-areas:
'nav-wrapper'
'mobile-wrapper'
'left-col'
'right-col'
;
#profile-pic{
margin-top:0;
}
.mobile-wrapper{
grid-area: mobile-wrapper;
}
.nav-wrapper{
grid-area: nav-wrapper;
}
.left-col{
grid-area: left-col;
padding-bottom: 0;
}
.right-col{
grid-area: right-col;
justify-content: center;
padding-top:30px;
padding-left: 20px;
padding-right: 20px;
}
}
.experience-wrapper {
grid-template-columns: 1fr;
grid-template-areas:
'selection'
'experience-desc'
;
.selection {
grid-area: selection;
display: none;
}
.mobile-selection {
margin: 0;
margin-bottom: 15px;
padding:0;
grid-area: selection;
display: flex;
justify-content: space-evenly;
a {
cursor: pointer;
color: var(--mainText);
}
a:hover {
color: var(--lightColor);
}
}
.experience-desc {
padding: 0 20px;
grid-area: experience-desc;
}
}
.footer {
//margin-bottom: 35px;
padding: 0 15px 0px 15px;
}
.footer-wrapper {
padding: 0px 0px 35px 0px;
}
.bottomMenu {
display: block;
visibility: hidden;
opacity: 0;
position: fixed; //stay in the position eventhough the page is scrolled
bottom: 0;
width: 100%;
height: 40px;
border-top: 1px solid var(--lightColor);
background: var(--secondaryColor);
z-index: 1; //higher the value, closer to the screen
transition: all 0.5s;
ul {
margin: 0;
display: flex;
padding:0;
justify-content: space-evenly;
li {
padding-bottom: 20px;
a {
color: var(--mainText);
}
}
//li:not(:last-child) {padding-right: 25px;}
}
}
.hide {
visibility: hidden;
opacity: 0;
//bottom: -100%;
}
.show {
visibility: visible;
opacity: 1;
//bottom: 0;
}
}