mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-17 12:53:24 +00:00
685f42f05f
I went for this option because it was the fastest to implement. I think we should wait until we make the change to core to expose image dimensions before we consider switching to another strategy. Change-Id: I61c9342a2d6d6fc24a24e0988b3cf7f9a06859a2 Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/248
28 lines
598 B
Plaintext
28 lines
598 B
Plaintext
.mlb-overlay {
|
|
position: fixed;
|
|
top: 0px;
|
|
left: 0px;
|
|
right: 0px;
|
|
bottom: 0px;
|
|
z-index: 1000;
|
|
background-color: rgb(0,0,0);
|
|
}
|
|
|
|
body.mw-mlb-lightbox-open {
|
|
overflow-y: auto;
|
|
}
|
|
|
|
body.mw-mlb-lightbox-open #mw-page-base,
|
|
body.mw-mlb-lightbox-open #mw-head-base,
|
|
body.mw-mlb-lightbox-open #mw-navigation,
|
|
body.mw-mlb-lightbox-open #mw-footer,
|
|
body.mw-mlb-lightbox-open #content {
|
|
/** Stop the article from scrolling in the background */
|
|
display: none;
|
|
}
|
|
|
|
body.mw-mlb-lightbox-open > :not(.mlb-overlay, .mlb-wrapper) {
|
|
/** Stop the article from scrolling in the background */
|
|
display: none;
|
|
}
|