Skip to content

Commit cf9742a

Browse files
dev-kamilmoT01
andauthored
fix(curriculum): responsive issues for Weather app (freeCodeCamp#60552)
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
1 parent 1b033ce commit cf9742a

1 file changed

Lines changed: 15 additions & 8 deletions

File tree

curriculum/challenges/english/25-front-end-development/lab-weather-app/66f12a88741aeb16b9246c59.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -819,22 +819,29 @@ body {
819819
justify-content: center;
820820
align-items: center;
821821
row-gap: 40px;
822-
font-size: 20px;
822+
font-size: 1.25em;
823823
font-family: sans-serif;
824824
}
825825

826826
.btn-wrap {
827-
min-width: 700px;
827+
min-width: 100%;
828828
display: flex;
829829
justify-content: space-evenly;
830-
column-gap: 20px;
830+
align-items: center;
831+
gap: 20px;
831832
border: 2px solid black;
832833
padding: 20px;
833834
border-radius: 10px;
834835
background-color: #6cd488;
835836
box-shadow: 6px 6px 6px rgba(0, 0, 0, 0.5);
836837
}
837838

839+
@media (max-width: 768px) {
840+
.btn-wrap {
841+
flex-direction: column;
842+
}
843+
}
844+
838845
.btn-wrap > span {
839846
text-transform: uppercase;
840847
text-align: center;
@@ -848,17 +855,17 @@ body {
848855
#location-selector {
849856
width: 200px;
850857
height: 50px;
851-
font-size: 20px;
858+
font-size: 1.25em;
852859
}
853860

854861
#get-forecast {
855-
font-size: 20px;
862+
font-size: 1.25em;
856863
height: 50px;
857864
width: 200px;
858865
}
859866

860867
.weather-info-wrap {
861-
min-width: 700px;
868+
min-width: 100%;
862869
max-width: 700px;
863870
min-height: 300px;
864871
padding: 20px 0px;
@@ -876,14 +883,14 @@ body {
876883
}
877884

878885
#location {
879-
font-size: 30px;
886+
font-size: 1.875em;
880887
}
881888

882889
.primary-info {
883890
display: flex;
884891
justify-content: space-evenly;
885892
margin: 20px;
886-
font-size: 25px;
893+
font-size: 1.5625em;
887894
}
888895

889896
.primary-info-left {

0 commit comments

Comments
 (0)