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; +}