mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-29 02:14:21 +00:00
5e3808a14e
- rearrange DOM structure of above-fold part of the metadata panel: - rename .mw-mmv-controls to .mw-mmv-above-fold - the above-fold part is a single positioned div now, with height explitcitly set - less LESS gymnastics, above-fold height is a single variable - add paddings to the p elements instead of the containers - make all title elements align to baseline (except the logo which would look horrible) - discard some CSS which was superfluous - overspecified sizes/positions - some top/bottoms for staticly positioned elements - get rid of the .mw-mmv-drag-affordance div, since a full-width bar wouldn't really make sense on the bottom of the above-fold section - flip the chevron and place it to the bottom of the above-fold part; add colors etc. per spec - fix stripe button horizontal spacing Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/706 Change-Id: Ic37b4150288055c3fae8d22919ed7b1249db1f09
126 lines
1.9 KiB
Plaintext
126 lines
1.9 KiB
Plaintext
@import "../mmv.globals";
|
|
@import "../mmv.mixins";
|
|
|
|
@navbutton-width: 18px;
|
|
@buttons-offset: 5px;
|
|
|
|
.mw-mmv-close,
|
|
.mw-mmv-fullscreen,
|
|
.mw-mmv-viewfile,
|
|
.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-viewfile.hidden,
|
|
.mw-mmv-next-image.hidden,
|
|
.mw-mmv-prev-image.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.cursor-hidden {
|
|
.mw-mmv-close,
|
|
.mw-mmv-fullscreen,
|
|
.mw-mmv-viewfile,
|
|
.mw-mmv-next-image,
|
|
.mw-mmv-prev-image {
|
|
cursor: none;
|
|
}
|
|
}
|
|
|
|
.mw-mmv-viewfile,
|
|
.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;
|
|
}
|
|
|
|
.mw-mmv-viewfile {
|
|
bottom: (@buttons-offset + @metadatabar-above-fold-height);
|
|
/* @embed */
|
|
background-image: url(img/mw-open-control-ltr.svg);
|
|
width: 23px;
|
|
height: 23px;
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
|
|
.jq-fullscreened {
|
|
.mw-mmv-fullscreen {
|
|
/* @embed */
|
|
background-image: url(img/mw-defullscreen-ltr.svg);
|
|
}
|
|
|
|
.mw-mmv-viewfile {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.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;
|
|
}
|
|
}
|