From 79b654a5b83afb59dca8bf80b81e135a6e1d5fc2 Mon Sep 17 00:00:00 2001 From: Adam Boro Date: Tue, 29 Sep 2020 22:02:52 +0200 Subject: [PATCH] fix: scroll-triggered campaigns (#236) --- src/view/style.scss | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/view/style.scss b/src/view/style.scss index 311e2f28..1264a421 100644 --- a/src/view/style.scss +++ b/src/view/style.scss @@ -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, @@ -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; +}