mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-17 12:53:24 +00:00
47a8bda392
Also do a bunch of refactoring to: * keep LESS rules in more sane locations so it is not as hard to get an overview (most of the metadata panel rules were in mmv.less) * move mmv.mixins.less up one directory as it is not specific to the UI * move the SVG icons as all of them were related to the UI * remove the marging-right hack which was used to keep the title text from overflowing the button; instead use a float and overflow properties to make sure text that is too long gets hidden Change-Id: Icc8ea2e766be67d86ae98c734721b2185bd6c36e
93 lines
1.4 KiB
Plaintext
93 lines
1.4 KiB
Plaintext
@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;
|
|
}
|