Skip to content

Commit

Permalink
fix: scroll-triggered campaigns (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
adekbadek authored Sep 29, 2020
1 parent cff67c6 commit 79b654a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/view/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ $color__secondary-variation: darken( $color__secondary, 10% );

// Alignment
.entry-content {
/* stylelint-disable-next-line no-duplicate-selectors */
.newspack-lightbox {
.newspack-popup {
.alignfull,
Expand Down Expand Up @@ -234,3 +235,10 @@ $color__secondary-variation: darken( $color__secondary, 10% );
}
}
}

// This is needed for the scroll-triggered popups to function properly.
// (#page-position-marker element is an absolutely-placed child of .entry-content)
/* stylelint-disable-next-line no-duplicate-selectors */
.entry-content {
position: relative !important;
}

0 comments on commit 79b654a

Please sign in to comment.