| 1 |
/*! |
| 2 |
* VisualEditor MediaWiki UserInterface MWMediaDialog styles. |
| 3 |
* |
| 4 |
* @copyright See AUTHORS.txt |
| 5 |
* @license The MIT License (MIT); see LICENSE.txt |
| 6 |
*/ |
| 7 |
@import 'mediawiki.skin.variables.less'; |
| 8 |
|
| 9 |
.ve-ui-mwMediaDialog { |
| 10 |
&-panel-imageinfo { |
| 11 |
padding-top: 2em; |
| 12 |
padding-left: 2em; |
| 13 |
padding-right: 2em; |
| 14 |
|
| 15 |
&-thumb { |
| 16 |
text-align: center; |
| 17 |
} |
| 18 |
|
| 19 |
&-loadingthumb img { |
| 20 |
opacity: 0.8; |
| 21 |
} |
| 22 |
|
| 23 |
&-info { |
| 24 |
padding: 1em 2em; |
| 25 |
|
| 26 |
@media ( max-width: 400px ) { |
| 27 |
padding: 1em 0; |
| 28 |
} |
| 29 |
} |
| 30 |
|
| 31 |
&-main { |
| 32 |
margin-bottom: 1em; |
| 33 |
} |
| 34 |
|
| 35 |
&-portrait .ve-ui-mwMediaDialog-panel-imageinfo { |
| 36 |
&-thumb img { |
| 37 |
margin-bottom: 1em; |
| 38 |
max-height: none; |
| 39 |
} |
| 40 |
|
| 41 |
&-thumb, |
| 42 |
&-info { |
| 43 |
float: left; |
| 44 |
} |
| 45 |
|
| 46 |
&-info { |
| 47 |
padding-left: 2em; |
| 48 |
box-sizing: border-box; |
| 49 |
} |
| 50 |
} |
| 51 |
|
| 52 |
&-title { |
| 53 |
font-size: 1.5em; |
| 54 |
line-height: 1.5em; |
| 55 |
margin-top: -0.2em; |
| 56 |
margin-bottom: 0.5em; |
| 57 |
} |
| 58 |
|
| 59 |
&-details { |
| 60 |
color: @color-subtle; |
| 61 |
} |
| 62 |
|
| 63 |
&-separator { |
| 64 |
margin: 0 0.5em; |
| 65 |
display: inline-block; |
| 66 |
} |
| 67 |
} |
| 68 |
|
| 69 |
&-altText { |
| 70 |
width: auto; |
| 71 |
} |
| 72 |
|
| 73 |
/* HACK: Override ooui specific 2em top margin */ |
| 74 |
&-caption-fieldset.oo-ui-labelElement.oo-ui-fieldsetLayout { |
| 75 |
margin-top: 0; |
| 76 |
} |
| 77 |
|
| 78 |
&-description-link { |
| 79 |
font-size: 75%; |
| 80 |
} |
| 81 |
} |
| 82 |
|
| 83 |
.mw-widget-mediaSearchWidget .oo-ui-searchWidget-results { |
| 84 |
padding-right: 0; |
| 85 |
} |