Skip to content

Commit

Permalink
Made reasons section responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
easybulb committed Jul 17, 2024
1 parent e59c684 commit a059186
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions assets/CSS/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,56 @@ main {
width: 300px;
right: 50px;
}

/* Reasons section */
#benefits-physical, #benefits-mental {
display: flex;
flex-direction: column;
width: 100%;
}

#benefits-physical > div,
#benefits-mental > div {
width: 75%;
}

#benefits-mental > div {
text-align: end;
align-self: flex-end;
}
}

/* Large devices (laptops and desktops, 992px and up) */
@media screen and (min-width: 992px) {
#menu a:hover{
border-bottom: 1px solid #3a3a3a;
}
}

@media screen and (min-width: 1200px) {
/* Reasons section */
#benefits {
display: flex;
flex-direction: row;
}

#benefits > div {
flex: 1;
}

#benefits-image {
order: 0;
}

#benefits-mental {
order: 1;
}

#benefits-mental > div {
align-self: flex-start;
}

#benefits-physical > div {
align-self: flex-endadd;
}
}

0 comments on commit a059186

Please sign in to comment.