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
52 lines
1.2 KiB
Plaintext
52 lines
1.2 KiB
Plaintext
@import "../mmv.globals";
|
|
@import "../mmv.mixins";
|
|
|
|
@button-vertical-padding: 15px;
|
|
@button-height: 25px;
|
|
|
|
// The buttons need to be positioned to the bottom right corner of .mw-mmv-title-contain, and
|
|
// other text in that element must not overlap them. Their width is not known (depends on the
|
|
// translation) so we float them to the right and calculate the top margin required to make them
|
|
// full height.
|
|
.mw-mmv-stripe-button {
|
|
@button-text-color: rgb(136, 136, 136);
|
|
@border-text-color: #cccccc;
|
|
|
|
float: right;
|
|
height: @button-height;
|
|
margin-top: @metadatabar-top-content-height - ( @button-height + 2 * @button-vertical-padding );
|
|
border-left: 1px solid @border-text-color;
|
|
padding: @button-vertical-padding 20px;
|
|
|
|
.unselectable;
|
|
font-size: 1.25em;
|
|
color: @button-text-color;
|
|
cursor: pointer;
|
|
opacity: 0.8;
|
|
transition: opacity 0.25s;
|
|
|
|
&.open,
|
|
&:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
&:before {
|
|
display: inline-block;
|
|
width: 1em;
|
|
height: 1em;
|
|
|
|
// fix odd position caused by bottom of icon and bottom of SVG not being aligned
|
|
position: relative;
|
|
top: 0.1em;
|
|
|
|
background-size: 1em 1em;
|
|
margin-right: 0.25em;
|
|
content: ' ';
|
|
vertical-align: baseline;
|
|
}
|
|
}
|
|
|
|
.mw-mmv-stripe-button-reuse:before {
|
|
/* @embed */
|
|
background-image: url(img/use-ltr.svg);
|
|
} |