Skip to content

Commit

Permalink
Issue with hero image and text for small screen size around 936px
Browse files Browse the repository at this point in the history
Fixes #188
  • Loading branch information
bosschaert committed Apr 11, 2023
1 parent 08560a5 commit b4a90cf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions blocks/hero-home/hero-home.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ main .hero-home > div > div > h1 {
left: 0;
padding: 64px 0 0 22px;
}
}
@media (min-width: 1025px) {
main .hero-home img {
width: 100vw;
height: 500px;
object-fit: cover;
}
}
@media (min-width: 1025px) {
main .hero-home > div > div > h1 {
padding: 98px 0 0 105px;
font-size: 64px;
Expand Down
9 changes: 4 additions & 5 deletions blocks/hero-home/hero-home.less
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,16 @@ main {
}
}
}
}
}

@media (@width_1025) {
.hero-home {
img {
width: 100vw;
height: 500px;
object-fit: cover;
}
}
}

@media (@width_1025) {
.hero-home {
>div {
>div {
>h1 {
Expand Down

0 comments on commit b4a90cf

Please sign in to comment.