diff --git a/MultimediaViewer.php b/MultimediaViewer.php index 199a785d8..31643a30c 100644 --- a/MultimediaViewer.php +++ b/MultimediaViewer.php @@ -647,7 +647,6 @@ $wgResourceModules += array( ), 'styles' => array( - 'mmv/mmv.less', // Always make this one the last of the list (Bug 61852) 'mmv/mmv.loaded.css', ), diff --git a/resources/mmv/mmv.less b/resources/mmv/mmv.less deleted file mode 100644 index 4ece2eded..000000000 --- a/resources/mmv/mmv.less +++ /dev/null @@ -1,92 +0,0 @@ -@import "mmv.globals"; -@import "mmv.mixins"; - -/** - * Override multilightbox styles that don't apply to us - */ -.mw-mmv-wrapper { - position: absolute; - bottom: auto; -} - -.mw-mmv-main { - height: auto; - - .jq-fullscreened { - background-color: black; - } -} - -/** - * Some variables - */ -@bottom-height: (@metadatabar-top-content-height + @metadatabar-drag-height); -@metadata-background: rgb(251, 251, 251); - -.mw-mmv-image-wrapper, -.mw-mmv-controls { - top: 0px; - bottom: @bottom-height; -} - -.jq-fullscreened { - .mw-mmv-image-wrapper, - .mw-mmv-post-image, - .mw-mmv-controls { - bottom: 0px; - } - - .mw-mmv-drag-affordance { - display: none; - } - - .mw-mmv-post-image, - .mw-mmv-controls { - @fullscreen-padding: 10px; - padding: (@fullscreen-padding / 2) 0; - height: (@metadatabar-top-content-height + @fullscreen-padding); - background-color: rgba(251, 251, 251, 0); - transition: background-color 0.25s; - min-height: 0; - - &:hover { - background-color: @metadata-background; - } - } - - .mw-mmv-post-image { - position: fixed; - } - - .mw-mmv-controls { - opacity: 0; - transition: opacity 0.25s; - - &:hover { - opacity: 1; - } - } -} - -.cursor-hidden { - cursor: none; -} - -.mw-mmv-image-wrapper { - position: fixed; -} - -.mw-mmv-post-image { - bottom: auto; - height: auto; - color: #333333; - background-color: @metadata-background; - position: absolute; - min-height: (@bottom-height + 1); - opacity: 0; -} - -.mw-mmv-controls { - height: auto; - border-bottom: 1px solid #cccccc; -} diff --git a/resources/mmv/mmv.lightboxinterface.js b/resources/mmv/mmv.lightboxinterface.js index 5a1810afc..339bf502e 100644 --- a/resources/mmv/mmv.lightboxinterface.js +++ b/resources/mmv/mmv.lightboxinterface.js @@ -49,9 +49,6 @@ * Initialize the entire interface - helper method. */ LIP.init = function () { - var addToPre = [], - addToPost = []; - // SVG filter, needed to achieve blur in Firefox this.$filter = $( '' ); @@ -71,11 +68,12 @@ this.$preDiv = $( '