-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
1575 lines (1324 loc) · 28.4 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
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
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
header('Content-type: text/css');
*,
*::before,
*::after {
box-sizing: border-box;
}
/* Custom Properties*/
:root {
--ff-primary: "Source Sans Pro", sans-serif;
--ff-secondary: "Source Code Pro", monospace;
--ff-subtitle: "Fira Code";
--fw-reg: 300;
--fw-bold: 900;
--clr-light: rgba(255, 255, 255, 1);
--clr-dark: rgba(38, 0, 77, 1);
--clr-accent: rgba(223, 117, 0, 1);
--clr-light-purple: #9678b6;
--clr-light-orange: #ef962e; /* was #ffae42; #ffb347, #ffb732, #ffa500, #f5bc5e, #fcae1e #f4ab56*/
--clr-lighter-orange: #ffae42;
--fs-h1: 3rem;
--fs-h2: 2.25rem;
--fs-h3: 1.25rem;
--fs-body: 1rem;
--bs: 30px 0 40px rgba(0, 0, 0, 0.3), -30px 0px 40px rgba(0, 0, 0, 0.3);
/* 0.25em 0.25em 0.75em rgba(0, 0, 0, 0.25),
0.125em 0.125em 0.25em rgba(0, 0, 0, 0.15); */
}
/* * {
border: 1px solid red;
} */
@media (min-width: 800px) {
:root {
--fs-h1: 4.5rem;
--fs-h2: 3.75rem;
--fs-h3: 1.5rem;
--fs-body: 1.125rem;
}
}
/* General Styles */
html {
scroll-behavior: smooth;
}
body {
background: var(--clr-light);
color: var(--clr-dark);
margin: 0;
font-family: var(--ff-primary);
font-size: var(--fs-body);
line-height: 1.6;
}
section {
padding: 5em 2em;
}
img {
display: block;
max-width: 100%;
}
.logo {
max-width: 120px;
vertical-align: middle;
padding-top: 0px; /* was 7px */
padding-left: 10px;
}
strong {
font-weight: var(--fw-bold);
}
/* This causes things that are focused on to have an outline: */
:focus {
outline: 3px solid var(--clr-accent);
outline-offset: 3px;
}
/* Buttons */
.btn {
display: inline-block;
padding: 0.5em 2.5em;
border-radius: 3px;
border: 2px solid var(--clr-dark);
background: var(--clr-light-orange);
color: var(--clr-dark);
text-decoration: none;
cursor: pointer;
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 1.5px;
font-weight: var(--fw-bold);
transition: transform 200ms ease-in-out;
}
.btn:hover {
transform: scale(1.1);
background: var(--clr-lighter-orange);
border: 2px solid var(--clr-light-purple);
}
/* Typography */
h1,
h2,
h3 {
line-height: 1;
margin: 0;
}
h2,
h3 {
font-family: "Poppins", sans-serif;
}
h1 {
font-size: var(--fs-h1);
/* font-family: var(--ff-primary); */
}
h2 {
font-size: var(--fs-h2);
}
h3 {
font-size: var(--fs-h3);
}
.section__title {
margin-bottom: 0.25em; /* was 0.25 em */
}
.section__title--intro {
font-weight: var(--fw-reg);
transform: initial !important;
}
.section__title--intro strong {
display: block;
}
.section__subtitle {
margin: 0;
font-size: var(--fs-h3);
}
.section__subtitle--intro,
.section__subtitle--about {
background: var(--clr-light-orange);
font-family: var(--ff-subtitle);
padding: 0.25em 1em;
margin-bottom: 1em;
box-shadow: 5px 0 10px rgba(0, 0, 0, 0.4);
}
.section__subtitle--work {
color: var(--clr-accent);
font-weight: var(--fw-bold);
margin-bottom: 2em;
}
/* Header (mobile-first)*/
header {
display: flex;
position: relative;
justify-content: space-between;
padding: 1em 0; /* need this for mobile*/
}
/* Mobile nav box with items */
.nav {
position: fixed; /* position: absolute messes it up */
background: rgba(38, 0, 77, 0.7);
color: var(--clr-light);
top: 0;
bottom: 30%; /* was 60% */
left: 50%;
right: 0;
z-index: 895; /* * was 1005 - was on top of modal background */
padding-bottom: 2.7em;
clip-path: circle(0px at top right);
transition: clip-path ease-in-out 700ms;
}
.nav__list {
list-style: none;
display: flex;
border: 2px solid var(--clr-accent);
height: 100%;
flex-direction: column;
justify-content: space-evenly;
align-items: center;
margin: 0;
padding: 0;
padding-top: 2.5em;
}
.nav__link {
color: inherit;
font-weight: var(--fw-bold);
font-size: var(--fs-h3);
text-decoration: none;
}
.nav__link:hover,
.nav__link:focus {
color: var(--clr-accent);
/* outline: 3px solid var(--clr-accent);
outline-offset: 3px; */
}
.nav-toggle {
padding: 0.75em;
position: absolute;
right: 1em;
top: 1em;
background: transparent;
border: 0;
z-index: 898; /* was 1005 - was on top of modal background */
cursor: pointer;
}
/* ------ creating hamburger button ------ */
.hamburger {
display: block;
position: relative;
}
.hamburger,
.hamburger::before,
.hamburger::after {
content: "";
display: block;
background: var(--clr-accent);
width: 2em;
height: 3px;
left: 0;
right: 0;
border-radius: 1em;
transition: all ease-in-out 500ms;
}
.hamburger::before {
transform: translateY(-6px);
}
.hamburger::after {
transform: translateY(3px);
}
/* For when nav-open class has been applied: */
.nav-open .nav {
clip-path: circle(150% at top right);
}
.nav-open .nav-toggle {
position: fixed;
}
/* nav-open rotate feature */
.nav-open .hamburger {
transform: rotate(45deg);
}
.nav-open .hamburger::before {
opacity: 0;
}
.nav-open .hamburger::after {
transform: translateY(-3px) rotate(-90deg);
}
/* .nav-close {
display: none;
} */
/* Intro section */
.intro {
position: relative;
padding: 5em 2em 0 2em; /* top right bottom left - clockwise */
margin-bottom: 0;
z-index: 100;
}
span {
font-family: "Poiret One", sans-serif; /* Was Tenor Sans, Poiret One*/
font-weight: bold;
letter-spacing: +2px;
}
.span2 {
font-family: "Tenor Sans", sans-serif;
font-weight: normal;
letter-spacing: -1px;
}
/* img is 2238 x 3245 */
.intro__img {
box-shadow: var(--bs);
transform: initial !important;
}
.intro a {
color: #551A8B;
}
.intro a:hover {
color: #660033;
}
/* causes intro subtitle to be size of itself when small */
.section__subtitle--intro {
display: inline-block;
transform: initial !important;
}
.contact-info-top {
display: flex;
align-items: center;
justify-content: space-evenly;
}
.intro-background {
position: absolute;
width: 100%;
height: 1100px; /* fixed white space when small - was 100% */
top: 30px;
padding-bottom: 0px;
margin: 0;
margin-bottom: 0; /* was 3em */
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
}
.intro-background:before {
content: "";
position: absolute;
top: 7vh;
margin: 0; /* was left: 0; bottom: 0px; */
width: 100%;
height: 100%; /* was 100% */
background: linear-gradient(
180deg,
#26004d,
#660033,
#ffa82a,
#fff,
#fff
);
border-radius: 50% 50% 0 0 / 100% 100% 0 0; /* This changes the curve */
transform: scaleX(3); /* This changes the curve; was 1.5 */
opacity: 55%;
z-index: 2;
}
.contact-info-top {
display: grid;
align-items: center;
justify-content: space-evenly;
margin: 0;
padding: 2em 0 0 0;
}
.contact-info-top .btn {
border-radius: 20px;
padding: 0.5em;
margin: 0 20px 0 20px;
}
/* .contact-info-top .btn, .contact-info-top .social-list {
color: var(--clr-dark);
}
*/
.contact-info-top .btn:focus {
outline: 3px solid var(--clr-accent);
outline-offset: 3px;
}
.contact-info-top .contact-info__link {
color: inherit;
text-decoration: none;
font-weight: var(--fw-bold);
text-align: center;
margin-top: 1.5em;
}
.contact-info__link {
color: #551A8B;
}
.contact-info__link:hover {
text-decoration: underline;
}
.contact-info-top .social-list {
margin: 0.5em 0.4em;
}
.social-list {
font-size: 25px;
background-color: transparent;
}
@media (max-width: 700px) {
.intro__img {
align-self: center;
}
.mountains {
position: absolute;
top: 70vh;
/* bottom: 50px; */
width: 100%;
right: 0;
/* overflow: hidden; */
z-index: 1;
transform: initial !important;
}
}
@media (min-width: 600px) {
/* TODO: Fix contact form validation*/
/* TODO: Figure out how to add a recaptcha that doesn't mess up the contact form */
/* TODO: Get MentorHelper project online */
/* Navigation menu changes here*/
.nav-toggle {
display: none;
}
header {
position: relative;
justify-content: space-between;
padding: 1em 0 1em;
padding-right: 40px;
}
.logo {
padding-top: 7px; /* was 7px */
padding-left: 2em;
}
.logo img {
min-width: 100px;
}
.nav {
height: auto;
position: relative;
background: transparent;
clip-path: initial;
left: 0;
right: 0;
}
/* The a tag container div */
/* This is the div to control for flexbox items */
.nav__list {
flex-flow: row nowrap;
color: var(--clr-accent);
border: none;
transform: translate(-2%, -30%);
}
/* The list items */
.nav__item {
position: relative;
margin-left: 50px;
}
/* The a tag elements: */
.nav__link {
font-weight: var(--fw-bold);
font-size: var(--fs-body);
padding: 0;
margin: 0; /* centered items in their flexbox sections. The logo size sets size of flexbox */
transition: 0.2s;
}
.nav__link:hover,
.nav__link:focus {
background: transparent;
color: var(--clr-dark);
}
/* Adds underline effect when hovered over */
.nav__link::after {
content: "";
display: block;
height: 4px;
background-color: var(--clr-accent);
/* border-radius: 4px; */
opacity: 75%;
position: absolute;
bottom: -15px;
width: 0%;
transition: all ease-in-out 250ms;
}
.nav__link:hover::after {
width: 100%;
}
/* Setting Intro section elements */
.intro {
display: grid;
position: relative;
width: min-content;
margin: 0 auto;
padding-top: 9em;
padding-bottom: 15%;
grid-column-gap: 1.5em; /* was 1.5em */
grid-template-areas:
"img title"
"img subtitle";
grid-template-columns: min-content max-content;
}
.intro__img {
grid-area: img;
min-width: 250px;
position: relative;
z-index: 2;
}
.section__subtitle--intro {
align-self: start;
grid-column: -1 / 1;
grid-row: 2;
text-align: right;
position: relative;
/* top: -7em; */
left: -1.5em;
width: calc(100% + 1em);
}
.contact-info-top {
position: absolute;
display: inline-block;
grid-column: -1 / 2;
grid-row: 3;
align-items: center;
justify-content: space-between;
margin: -30px 0 0 5px; /* top was -30px and -25vh */
padding: 0 0 0 1.5em;
}
.contact-info-top .btn {
border-radius: 3px;
padding: 0.5em;
margin: 0 20px 0 0;
}
.btn__link {
text-decoration: none;
}
.contact-info-top .contact-info__link {
color: inherit;
text-decoration: none;
font-size: var(--fs-body);
font-weight: var(--fw-bold);
}
.contact-info__link:hover {
text-decoration: underline;
color: var(--clr-light-purple);
}
.social-list {
font-size: 25px;
}
.mountains {
position: absolute;
margin-bottom: -100px;
width: 100%;
top: 20vh;
right: 0;
margin-bottom: 1em;
padding-bottom: 10px;
overflow: hidden;
z-index: 1;
}
}
/* My Services / What I Do section */
.my-services {
position: relative;
margin: 0; /* was 100% */
background-color: var(--clr-dark);
background-image: url(img/services-bg-1.png);
background-size: cover;
/* background-blend-mode: multiply; */ /* visibility of bg image */
border: 2px solid var(--clr-accent);
color: var(--clr-light);
text-align: center;
z-index: 100;
}
.section__title--services {
color: var(--clr-accent);
position: relative;
}
/* Line under My Services title */
.section__title--services::after {
content: "";
display: block;
width: 3em;
height: 2px;
margin: 0.5em auto 1em; /* top, left/right, bottom */
background: var(--clr-light);
opacity: 0.5;
}
.services {
margin-bottom: 4em;
}
.service {
max-width: 500px;
margin: 0 auto;
}
@media (min-width: 800px) {
.services {
display: flex;
max-width: 1000px;
margin-left: auto;
margin-right: auto;
}
/* for service sibling paragraphs */
.service + .service {
margin-left: 2em;
}
}
/* About Me Section */
.about__border {
border: 2px solid var(--clr-light-purple);
box-shadow: var(--bs);
}
.about-me {
max-width: 1000px;
margin: 0 auto;
}
.about-me__img {
box-shadow: var(--bs);
}
@media (min-width: 600px) {
.about-me {
display: grid;
grid-template-columns: 1fr 200px;
grid-template-areas:
"title img"
"subtitle img"
"text img";
grid-column-gap: 2em;
}
.section__title--about {
grid-area: title;
}
.section__subtitle--about {
grid-column: 1 / -1;
grid-row: 2;
position: relative;
margin-right: 1em;
left: -1em;
width: calc(70% + 1em);
padding-left: 1em;
padding-right: 30%; /* was calc(200px + 4em)*/
}
.about-me__img {
grid-area: img;
position: relative;
z-index: 2;
}
/* Portfolio modal mobile styles under 600px */
.portfolio-subtitle {
font-size: 1.3rem;
padding: 0;
}
/* .tool-img {
width: 100px;
} */
}
/* Tools I Use */
.tools-I-use {
justify-content: center;
}
.tools-I-use .section__title--tools {
text-align: center;
margin-bottom: 80px;
}
.section__title--tools {
color: var(--clr-accent);
position: relative;
}
/* fix column width with a media query on Tools*/
/* This creates columns for mobile */
.tools {
display: flex;
flex-direction: column;
margin: 0 12%;
padding: 0;
align-items: center;
justify-items: center;
}
/* line after title */
.section__title--tools::after {
content: "";
display: block;
width: 3em;
height: 2px;
margin: 0.5em auto 1em; /* top, left/right, bottom */
background: var(--clr-dark);
opacity: 0.5;
}
.tool-img {
width: 150px;
margin: 10px;
padding: 10px;
background: #f8f8ff;
border-radius: 10px;
border: 2px solid var(--clr-light-purple);
box-shadow: 30px 0 40px rgba(0, 0, 0, 0.2), -30px 0px 40px rgba(0, 0, 0, 0.2);
}
.tool-img .github {
padding: 15px 0 15px 0; /* was 19px 10px */
}
@media (min-width: 800px) { /* was 1132px */
.tools {
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr; /* was 250px 250px 250px 250px; */
grid-template-rows: 1fr 1fr;
grid-column-gap: 1.5em;
grid-row-gap: 1em;
margin: 0;
}
}
/* My Work (Portfolio) */
/* background and container settings */
.my-work {
background: linear-gradient(135deg, var(--clr-light-purple), var(--clr-dark));
border: 2px solid var(--clr-accent);
color: var(--clr-light);
text-align: center;
padding-bottom: 170px;
}
/* Still My Work - this is where you toggle background color showing when expanded: had to change picture size */
.portfolio {
position: relative;
/* width: 1100px */
/* display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
display: flex;
flex-flow: row wrap;
color: var(--clr-dark);
column-gap: 5%;
top: 60px;
align-items: center;
justify-content: center;
/* do not use padding */
}
.portfolio .card {
position: relative;
max-width: 280px;
height: 380px;
background: #fff;
margin: 60px 10px; /* was 40px */
padding: 5px 15px;
border-radius: 0.5em;
display: flex;
flex-direction: column;
box-shadow: 0 5px 50px rgba(0, 0, 0, 0.5);
transition: 0.3s ease-in-out;
}
.portfolio .card .imgBx {
position: relative;
width: 240px;
height: 180px;
top: -90px;
z-index: 1;
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}
.portfolio .card .imgBx img {
max-width: 100%;
border-radius: 4px;
}
/* This is the text content */
.portfolio .card .content {
position: relative;
margin-top: -80px;
text-align: center;
top: 20px;
transition: 0.3s ease-in-out;
}
.portfolio .card .content-1 {
position: relative;
margin-top: -95px;
text-align: center;
top: 20px;
transition: 0.3s ease-in-out;
}
/* Centers things */
.card {
align-items: center;
justify-content: center;
}
.item1 .imgBx {
top: -87px;
}
.item1 .content-1 {
padding: 1em 20px 13% 20px;
}
.item2 .content,
.item3 .content {
padding: 1em 20px 29% 20px; /* was 10px 20px */
}
.card .portfolio-btn,
.project-btn {
position: relative;
border-radius: 100vw;
bottom: 0;
display: inline-block;
padding: 0.5em 2.5em;
border: 2px solid var(--clr-dark);
background: var(--clr-light-orange);
color: var(--clr-dark);
text-decoration: none;
cursor: pointer;
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 1.5px;
font-weight: var(--fw-bold);
transition: transform 200ms ease-in-out;
}
/* This brings the orange tab highlight to in front of item */
.card .portfolio-btn:focus {
outline: 3px solid var(--clr-accent);
outline-offset: 3px;
}
/* --Portfolio Modal-- */
.modal-bg {
position: fixed;
width: 100%;
height: 100vh;
top: 0;
left: 0;
background-color: rgba(0, 0, 0, 0.7);
z-index: 900;
visibility: hidden;
}
.portfolio-modal {
position: fixed;
z-index: 1010;
top: 2em; /* make these 20% for big media query*/
bottom: 2em;
left: 2em;
right: 2em;
border-radius: 1em;
background: white;
overflow-y: scroll;
}
.is-open {
visibility: visible;
}
.portfolio-header {
padding: 1em 0 1em;
margin-bottom: 1em;
text-align: center;
}
.portfolio-title {
font-size: 2rem;
display: inline-block;
/* padding: 3em; */
}
.portfolio-title::after {
content: "";
display: block;
background: var(--clr-light-orange);
height: 1px;
margin: 0.5em auto; /* had a last value of 1em */
justify-items: center;
width: 100%;
}
.portfolio-imgBx {
background: linear-gradient(135deg, #eee, var(--clr-light-purple));
border: 2px solid var(--clr-accent);
width: 100%;
height: 100%;
margin: 1em 0 1em 0;
overflow: hidden;
}
.modal-close {
background: white;
position: fixed;
right: 0.4em;
top: 1.4em;
border: 0;
width: 2em;
height: 2em;
padding: 4px 0 0;
border-radius: 50%;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
cursor: pointer;
}
.portfolio-content {
text-align: left;
align-items: center;
justify-content: center;
width: 80%;
margin: 0 auto;
padding-bottom: 1em;
}
.modal-1 .project-btn-div {
width: 51%;
margin: 0.5em auto;
}
.modal-2 .project-btn-div {
width: 51%;
margin: 2em auto;
}
.modal-3 .project-btn-div {
width: 51%;