Skip to content

Commit

Permalink
Fix expanded menu when screen width is <1000px for Twenty Twenty theme (
Browse files Browse the repository at this point in the history
#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
  • Loading branch information
pierlon authored and westonruter committed Nov 19, 2019
1 parent 451dd22 commit f157602
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions includes/sanitizers/class-amp-core-theme-sanitizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -1030,6 +1030,12 @@ static function() use ( $args ) {
}
}

@media (max-width: 999px) {
amp-lightbox.cover-modal.show-modal {
display: unset;
}
}

}
<?php elseif ( 'twentyseventeen' === get_template() ) : ?>
/* Show the button*/
Expand Down

0 comments on commit f157602

Please sign in to comment.