Skip to content

Commit 8fd79a4

Browse files
committed
Enhanced the height responsiveness
1 parent d1866c1 commit 8fd79a4

File tree

1 file changed

+19
-86
lines changed

1 file changed

+19
-86
lines changed

style.css

Lines changed: 19 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -408,9 +408,17 @@ section {
408408
z-index: 100;
409409
}
410410

411+
.comp-section {
412+
height: 100vh;
413+
display: grid;
414+
color: var(--secondary);
415+
justify-content: center;
416+
align-items: center;
417+
text-align: center;
418+
}
419+
411420
.comp-section .compcontainer .logo img {
412-
width: 250px;
413-
margin-bottom: -25px;
421+
width: clamp(200px, 20vw, 250px);
414422
}
415423

416424
.comp-section .compcontainer h1,
@@ -422,7 +430,8 @@ section {
422430
}
423431

424432
.comp-section .compcontainer h1 {
425-
font-size: 7rem;
433+
margin-top: -25px;
434+
font-size: clamp(4rem, 4vw, 7rem);
426435
text-shadow: 2px 2px 3px black, 1px 1px 2px white;
427436
animation: lights 5s 750ms linear infinite;
428437
}
@@ -475,15 +484,15 @@ section {
475484
}
476485

477486
.comp-section .compcontainer h3 {
478-
font-weight: 300;
479-
font-size: 2.8rem;
480-
margin: 0.5%;
487+
font-weight: 600;
488+
font-size: clamp(2rem, 3vw, 3rem);
489+
margin: 10px 10px 20px;
481490
text-shadow: 2px 2px 2px black, 0.5px 0.5px 1px white;
482491
}
483492

484493
.paragraph {
485-
font-size: 2rem;
486-
width: 70%;
494+
font-size: clamp(1.5rem, 2vw, 2rem);
495+
width: 80%;
487496
text-align: center;
488497
margin: auto;
489498
padding: 10px;
@@ -497,7 +506,7 @@ section {
497506

498507
.comp-section .compcontainer .started {
499508
height: auto;
500-
font-size: 25px;
509+
font-size: clamp(1.5rem, 4vw, 2.5rem);
501510
font-weight: 600;
502511
margin-top: 20px;
503512
padding: 10px 45px;
@@ -988,7 +997,7 @@ footer {
988997
text-align: center;
989998
}
990999

991-
/* Media Queries */
1000+
/* Media queries for responsiveness */
9921001

9931002
@media (max-width: 1200px) {
9941003
nav ul {
@@ -1018,23 +1027,6 @@ footer {
10181027
}
10191028
}
10201029

1021-
@media (max-width: 1030px) {
1022-
.comp-section {
1023-
flex-direction: column;
1024-
text-align: center;
1025-
width: auto;
1026-
height: 90vh;
1027-
}
1028-
1029-
.started {
1030-
height: 7vh;
1031-
font-size: 22px;
1032-
font-weight: 500;
1033-
margin-top: 19px;
1034-
padding: 8px 40px;
1035-
}
1036-
}
1037-
10381030
@media (min-width: 925px) and (max-width: 970px) {
10391031
.navbar .nav-link {
10401032
font-size: 16px;
@@ -1059,28 +1051,6 @@ footer {
10591051
}
10601052
}
10611053

1062-
@media (max-width: 925px) {
1063-
.comp-section {
1064-
flex-direction: column;
1065-
text-align: center;
1066-
width: auto;
1067-
height: fit-content;
1068-
}
1069-
1070-
.compcontainer {
1071-
border: 1px transparent;
1072-
padding-bottom: 10px;
1073-
}
1074-
1075-
.started {
1076-
height: 6vh;
1077-
font-size: 20px;
1078-
font-weight: 400;
1079-
margin-top: 19px;
1080-
padding: 6px 35px;
1081-
}
1082-
}
1083-
10841054
@media (min-width: 790px) and (max-width: 855px) {
10851055
nav {
10861056
padding: 0;
@@ -1122,30 +1092,10 @@ footer {
11221092
}
11231093

11241094
@media (max-width: 786px) {
1125-
.comp-section {
1126-
flex-direction: column;
1127-
text-align: center;
1128-
width: auto;
1129-
height: fit-content;
1130-
}
1131-
1132-
.compcontainer {
1133-
border: 1px transparent;
1134-
padding-bottom: 10px;
1135-
}
1136-
11371095
#mySearch {
11381096
height: 6rem;
11391097
width: 50rem;
11401098
}
1141-
1142-
.started {
1143-
height: 6vh;
1144-
font-size: 20px;
1145-
font-weight: 300;
1146-
margin-top: 15vh;
1147-
padding: 8px 30px;
1148-
}
11491099
}
11501100

11511101
@media (max-width: 650px) {
@@ -1156,15 +1106,6 @@ footer {
11561106
}
11571107

11581108
@media (max-width: 500px) {
1159-
.comp-section {
1160-
height: fit-content;
1161-
}
1162-
1163-
.compcontainer {
1164-
border: 1px transparent;
1165-
padding-bottom: 0px;
1166-
}
1167-
11681109
#mySearch {
11691110
height: 5rem;
11701111
width: 30rem;
@@ -1335,14 +1276,6 @@ footer {
13351276
padding: 2px;
13361277
}
13371278

1338-
.started {
1339-
height: 5vh;
1340-
font-size: 20px;
1341-
font-weight: 100;
1342-
margin-top: 6vh;
1343-
padding: 5px 30px;
1344-
}
1345-
13461279
.box {
13471280
width: 280px !important;
13481281
margin: 15px !important;

0 commit comments

Comments
 (0)