From f15760234e6b2b6bae81769f2e80077fcf6d657d Mon Sep 17 00:00:00 2001 From: Pierre Gordon <16200219+pierlon@users.noreply.github.com> Date: Tue, 19 Nov 2019 11:57:42 -0500 Subject: [PATCH] Fix expanded menu when screen width is <1000px for Twenty Twenty theme (#3790) * Fix amp-lightbox when screen width is <1000px for Twenty Twenty theme * Use a more specific selector rather than using `!important` to apply the rule --- includes/sanitizers/class-amp-core-theme-sanitizer.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/includes/sanitizers/class-amp-core-theme-sanitizer.php b/includes/sanitizers/class-amp-core-theme-sanitizer.php index 8518f8d3db8..166a275ca43 100644 --- a/includes/sanitizers/class-amp-core-theme-sanitizer.php +++ b/includes/sanitizers/class-amp-core-theme-sanitizer.php @@ -1030,6 +1030,12 @@ static function() use ( $args ) { } } + @media (max-width: 999px) { + amp-lightbox.cover-modal.show-modal { + display: unset; + } + } + } /* Show the button*/