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
102 lines
1.6 KiB
Plaintext
102 lines
1.6 KiB
Plaintext
@import "../mmv.mixins";
|
|
|
|
@navbutton-width: 18px;
|
|
@buttons-offset: 5px;
|
|
|
|
.mw-mmv-close,
|
|
.mw-mmv-fullscreen,
|
|
.mw-mmv-next-image,
|
|
.mw-mmv-prev-image {
|
|
cursor: pointer;
|
|
position: fixed;
|
|
background-repeat: no-repeat;
|
|
opacity: 0.8;
|
|
border: none;
|
|
z-index: 1003;
|
|
|
|
&:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
.unselectable;
|
|
}
|
|
|
|
.mw-mmv-close.hidden,
|
|
.mw-mmv-fullscreen.hidden,
|
|
.mw-mmv-next-image.hidden,
|
|
.mw-mmv-prev-image.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.cursor-hidden {
|
|
.mw-mmv-close, .mw-mmv-fullscreen, .mw-mmv-next-image, .mw-mmv-prev-image {
|
|
cursor: none;
|
|
}
|
|
}
|
|
|
|
.mw-mmv-close,
|
|
.mw-mmv-fullscreen {
|
|
right: @buttons-offset;
|
|
left: auto;
|
|
transition: opacity 0.25s;
|
|
background-position: center;
|
|
margin-top: 14px;
|
|
margin-right: 14px;
|
|
}
|
|
|
|
.mw-mmv-next-image,
|
|
.mw-mmv-prev-image {
|
|
top: -999px;
|
|
width: 80px;
|
|
height: 120px;
|
|
transition: opacity 0.25s, margin 0.25s;
|
|
|
|
&.disabled {
|
|
display: none;
|
|
cursor: none;
|
|
}
|
|
}
|
|
|
|
.mw-mmv-close {
|
|
top: @buttons-offset;
|
|
/* @embed */
|
|
background-image: url(img/mw-close.svg);
|
|
height: 23px;
|
|
width: 23px;
|
|
}
|
|
|
|
.mw-mmv-fullscreen {
|
|
top: (@buttons-offset + 37px);
|
|
/* @embed */
|
|
background-image: url(img/mw-fullscreen-ltr.svg);
|
|
width: 21px;
|
|
height: 22px;
|
|
}
|
|
|
|
.jq-fullscreened .mw-mmv-fullscreen {
|
|
/* @embed */
|
|
background-image: url(img/mw-defullscreen-ltr.svg);
|
|
}
|
|
|
|
.mw-mmv-next-image {
|
|
/* @embed */
|
|
background-image: url(img/next-ltr.svg);
|
|
background-position: right;
|
|
right: @navbutton-width;
|
|
|
|
&:hover {
|
|
margin-right: -4px;
|
|
}
|
|
}
|
|
|
|
.mw-mmv-prev-image {
|
|
/* @embed */
|
|
background-image: url(img/prev-ltr.svg);
|
|
background-position: left;
|
|
left: @navbutton-width;
|
|
|
|
&:hover {
|
|
margin-left: -4px;
|
|
}
|
|
}
|