Skip to content

Commit

Permalink
make cost estimator project responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholeuf committed Jan 27, 2024
1 parent 7366c20 commit 1422e00
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions html-css-bootcamp/CostEstimatorProject/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ h1 {
text-transform: uppercase;
margin: 16px 0;
border-radius: 10px;
box-sizing: border-box;
}

.sessions-card p {
Expand Down Expand Up @@ -269,3 +270,40 @@ h1 {
.card .savings p {
padding: 0;
}

@media only screen and (max-width: 750px) {
.card-wrapper {
flex-wrap: wrap-reverse;
}

.card {
width: 100%;
}

.sessions-card {
width: 80%;
}
}

@media only screen and (max-width: 600px) {
body {
padding: 16px;
}

h1 {
margin: 0 0 16px 0;
}

.container {
padding: 0 16px;
}

.sessions-card {
width: 100%;
}

.toggle-wrapper {
width: 90%;
justify-content: space-around;
}
}

0 comments on commit 1422e00

Please sign in to comment.