mediawiki-extensions-Multim.../resources/mmv/ui/mmv.ui.permission.less
Gergő Tisza 976ffc76d3 Make it obvious that the permission text is cut off; add expand link
Fades out the bottom of the text and adds a link to replace it
with the full HTML version. Due to the way it is positioned,
the fade + link will be invisible if the text is less then 3 lines.
The implementation is not very polished; since this will be
replaced by some JS-based ellipsis thing, I didn't want to spend
too much time on it.

Change-Id: Ib30e40fe845b85bfcf9557970efb886d28b3e5c7
Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/118
2014-02-27 01:06:25 +00:00

84 lines
1.2 KiB
Plaintext

@import "mediawiki.mixins";
@import "mmv.mixins";
.mw-mlb-permission-box {
position: relative;
width: 90%;
margin: 10px 5% 0;
&.empty {
display: none;
}
h3 {
margin: 10px;
padding: 0;
color: #565656;
}
.mw-mlb-permission-close {
display: none;
position: absolute;
top: 5px;
right: 5px;
width: 16px;
height: 16px;
.background-image('img/x_gray.svg');
cursor: pointer;
}
.mw-mlb-permission-text {
@text-font-size: 1em;
@text-line-height: 1.2;
@lines-shown: 3;
position: relative;
max-height: @lines-shown * @text-line-height * @text-font-size;
overflow: hidden;
margin: 0 10px 10px;
font-size: @text-font-size;
line-height: @text-line-height;
.mw-mlb-permission-text-fader {
position: absolute;
top: (@lines-shown - 1) * @text-line-height * @text-font-size;
width: 100%;
height: @text-line-height * @text-font-size;
.fade-out();
text-align: right;
a {
padding: 3px 0 0 1em;
background-color: white;
font-size: small;
}
}
}
.mw-mlb-permission-html {
margin: 0 10px 10px;
display: none;
}
&.full-size {
.mw-mlb-permission-close {
display: block;
}
.mw-mlb-permission-text {
display: none;
}
.mw-mlb-permission-html {
display: block;
}
}
}