| 1 |
@import 'mediawiki.skin.variables.less'; |
| 2 |
@import 'mediawiki.mixins.less'; |
| 3 |
@import '../mmv.mixins.less'; |
| 4 |
|
| 5 |
.mw-mmv-permission-box { |
| 6 |
position: relative; |
| 7 |
width: 90%; |
| 8 |
margin: 10px 20px 0; |
| 9 |
|
| 10 |
&.empty { |
| 11 |
display: none; |
| 12 |
} |
| 13 |
|
| 14 |
h3 { |
| 15 |
margin: 10px; |
| 16 |
padding: 0; |
| 17 |
color: @color-subtle; |
| 18 |
font-size: 0.95em; |
| 19 |
} |
| 20 |
|
| 21 |
.mw-mmv-permission-close { |
| 22 |
position: absolute; |
| 23 |
top: 12px; |
| 24 |
right: 8px; |
| 25 |
.cdx-mixin-css-icon( @cdx-icon-close, @param-fill-color: @color-subtle, @param-size-icon: @size-icon-small ); |
| 26 |
cursor: pointer; |
| 27 |
display: none; // override display:inline-block from .cdx-mixin-css-icon |
| 28 |
} |
| 29 |
|
| 30 |
.mw-mmv-permission-text { |
| 31 |
@text-font-size: 0.9em; |
| 32 |
@text-line-height: 1.4; |
| 33 |
@lines-shown: 3; |
| 34 |
position: relative; |
| 35 |
max-height: @lines-shown * @text-line-height * @text-font-size; |
| 36 |
overflow: hidden; |
| 37 |
margin: 0 10px 10px; |
| 38 |
font-size: @text-font-size; |
| 39 |
line-height: @text-line-height; |
| 40 |
color: @color-subtle; |
| 41 |
|
| 42 |
.mw-mmv-permission-text-fader { |
| 43 |
position: absolute; |
| 44 |
top: ( @lines-shown - 1 ) * @text-line-height * @text-font-size; |
| 45 |
width: 100%; |
| 46 |
height: @text-line-height * @text-font-size; |
| 47 |
.fade-out-vertical(); |
| 48 |
text-align: right; |
| 49 |
|
| 50 |
a { |
| 51 |
padding: 3px 0 0 1em; |
| 52 |
background-color: @background-color-interactive-subtle; |
| 53 |
font-size: 1em; |
| 54 |
} |
| 55 |
} |
| 56 |
} |
| 57 |
|
| 58 |
.mw-mmv-permission-html { |
| 59 |
padding: 0 15px 15px; |
| 60 |
display: none; |
| 61 |
max-height: 400px; |
| 62 |
overflow: auto; |
| 63 |
} |
| 64 |
|
| 65 |
&.full-size { |
| 66 |
.mw-mmv-permission-close { |
| 67 |
display: block; |
| 68 |
} |
| 69 |
|
| 70 |
.mw-mmv-permission-text { |
| 71 |
display: none; |
| 72 |
} |
| 73 |
|
| 74 |
.mw-mmv-permission-html { |
| 75 |
display: block; |
| 76 |
border-top: 1px solid @border-color-base; |
| 77 |
} |
| 78 |
} |
| 79 |
} |