2017-07-12 15:12:40 +00:00
|
|
|
@import 'mediawiki.mixins.less';
|
2021-04-29 01:01:54 +00:00
|
|
|
@import '../../../minerva.less/minerva.variables.less';
|
|
|
|
@import '../../../minerva.less/minerva.mixins.less';
|
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>
|
|
|
|
.content {
|
|
|
|
.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;
|
2019-09-23 22:02:16 +00:00
|
|
|
font-size: @font-size-minerva-smallest;
|
2017-07-12 15:12:40 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2022-09-22 16:20:08 +00:00
|
|
|
figure {
|
|
|
|
display: table;
|
|
|
|
margin: 0.6em auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
figcaption {
|
|
|
|
display: table-caption;
|
|
|
|
caption-side: bottom;
|
|
|
|
}
|
|
|
|
|
2020-01-27 20:42:37 +00:00
|
|
|
// Parsoid class name is mw-image-border (T198534) and parser (PHP) class name is thumbborder
|
2019-03-18 18:23:40 +00:00
|
|
|
.mw-image-border,
|
2017-07-12 15:12:40 +00:00
|
|
|
.thumbborder {
|
|
|
|
border: 1px solid @colorGray12;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Hide the image magnification icon normally displayed in image captions
|
2018-09-17 20:56:57 +00:00
|
|
|
.magnify {
|
2017-07-12 15:12:40 +00:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|