2017-07-12 15:12:40 +00:00
|
|
|
@import 'mediawiki.mixins.less';
|
2018-05-19 18:17:31 +00:00
|
|
|
@import '../../minerva.less/minerva.variables';
|
|
|
|
@import '../../minerva.less/minerva.mixins';
|
2017-07-12 15:12:40 +00:00
|
|
|
|
|
|
|
// Thumbnails
|
|
|
|
//
|
|
|
|
// Thumbnail images should be rendered within a thumb class
|
|
|
|
//
|
|
|
|
// Markup:
|
|
|
|
// <div class="content">
|
|
|
|
// <div class="thumb"><img src="images/arrow-left.png"></div>
|
|
|
|
// </div>
|
|
|
|
//
|
|
|
|
// Styleguide 1.2.
|
|
|
|
.content {
|
2017-07-27 20:50:49 +00:00
|
|
|
figure,
|
2017-07-12 15:12:40 +00:00
|
|
|
.thumb {
|
|
|
|
margin: 0.6em 0;
|
|
|
|
|
|
|
|
// Linker.php
|
|
|
|
.thumbinner {
|
|
|
|
margin: 0 auto;
|
|
|
|
// !important is needed because of Bug T87198 for example
|
|
|
|
max-width: 100% !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-07-27 20:50:49 +00:00
|
|
|
figcaption,
|
2017-07-12 15:12:40 +00:00
|
|
|
.thumbcaption {
|
|
|
|
margin: 0.5em 0 0;
|
|
|
|
font-size: 0.8em;
|
|
|
|
line-height: 1.5;
|
|
|
|
padding: 0 !important;
|
|
|
|
color: @grayMediumDark;
|
2017-07-27 20:50:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.thumbcaption {
|
2017-07-12 15:12:40 +00:00
|
|
|
width: auto !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.thumbborder {
|
|
|
|
border: 1px solid @colorGray12;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Hide the image magnification icon normally displayed in image captions
|
2017-07-25 19:01:34 +00:00
|
|
|
.magnify,
|
|
|
|
// Parsoid version of magnification icon (T160960)
|
2018-09-11 13:13:41 +00:00
|
|
|
figure[ typeof*='mw:Image/Thumb' ] > a:after,
|
|
|
|
figure[ typeof*='mw:Video/Thumb' ] > a:after,
|
|
|
|
figure[ typeof*='mw:Audio/Thumb' ] > a:after {
|
2017-07-12 15:12:40 +00:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|