Merge "Fix CSS for hiding content"

This commit is contained in:
jenkins-bot 2014-06-11 23:47:55 +00:00 committed by Gerrit Code Review
commit a4e64c27e1
2 changed files with 17 additions and 6 deletions

View file

@ -17,16 +17,22 @@ body.mw-mmv-lightbox-open {
body.mw-mmv-lightbox-open #mw-page-base,
body.mw-mmv-lightbox-open #mw-head-base,
body.mw-mmv-lightbox-open #mw-navigation,
body.mw-mmv-lightbox-open #mw-footer,
body.mw-mmv-lightbox-open #content {
/** Stop the article from scrolling in the background */
body.mw-mmv-lightbox-open #content,
body.mw-mmv-lightbox-open #footer,
body.mw-mmv-lightbox-open #globalWrapper // monobook
{
/** Stop the article from scrolling in the background - skin-specific but works in any browser */
display: none;
}
body.mw-mmv-lightbox-open > :not(.mw-mmv-overlay, .mw-mmv-wrapper) {
/** Stop the article from scrolling in the background */
body.mw-mmv-lightbox-open > * {
/** Stop the article from scrolling in the background - works with any skin but needs modern browser */
display: none;
}
body.mw-mmv-lightbox-open > .mw-mmv-overlay,
body.mw-mmv-lightbox-open > .mw-mmv-wrapper {
display: block;
}
.mw-mmv-view-expanded {
display: inline-block;

View file

@ -1,3 +1,8 @@
.mw-mmv-has-been-loaded {
display: inline;
}
}
/* Makes sure this has more specificity than the display: none in mmv.bootstrap.less; keep separate from previous
block for maximum browser compatibility */
body.mw-mmv-lightbox-open > .mw-mmv-has-been-loaded {
display: inline;
}