Skip to content

Commit

Permalink
fix(banners): move image to pseudoelement
Browse files Browse the repository at this point in the history
  • Loading branch information
yoyurec committed Aug 16, 2022
1 parent 23ebe5d commit ceaf3f8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/banners.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@
/* Banner */
body:is([data-page="page"], [data-page="home"]).is-banner-active #banner {
height: var(--bannerHeight);
}
body:is([data-page="page"], [data-page="home"]).is-banner-active #banner::before {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
content: "";
background-image: var(--pageBanner);
background-position-y: var(--bannerAlign);
}
Expand Down

0 comments on commit ceaf3f8

Please sign in to comment.