Skip to content

Commit

Permalink
Allow proper vertical axis alignment of text in the Image Banner (#3402)
Browse files Browse the repository at this point in the history
* Remove left/right padding for transparent banner_box.

* Fix padding on mobile as well.
  • Loading branch information
kjellr committed Apr 9, 2024
1 parent 2061f4f commit b8f8b9c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion assets/section-image-banner.css
Expand Up @@ -339,7 +339,7 @@
}

.banner__box {
padding: 4rem 3.5rem;
padding: 4rem 1.5rem;
position: relative;
height: fit-content;
align-items: center;
Expand All @@ -349,8 +349,17 @@
z-index: 1;
}

.banner--mobile-bottom .banner__box {
padding: 4rem 3.5rem;
}

@media screen and (min-width: 750px) {
.banner__box {
padding: 4rem 3.5rem;
}

.banner--desktop-transparent .banner__box {
padding: 4rem 0;
background: transparent;
max-width: 89rem;
border: none;
Expand Down

0 comments on commit b8f8b9c

Please sign in to comment.