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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.thumbcaption {
|
2023-02-03 19:38:25 +00:00
|
|
|
width: auto !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.thumbcaption,
|
|
|
|
figure[ typeof~='mw:File/Thumb' ] > figcaption,
|
|
|
|
figure[ typeof~='mw:File/Frame' ] > figcaption {
|
2017-07-12 15:12:40 +00:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2023-02-03 19:38:25 +00:00
|
|
|
figure[ typeof~='mw:File/Thumb' ],
|
|
|
|
figure[ typeof~='mw:File/Frame' ] {
|
2022-09-22 16:20:08 +00:00
|
|
|
margin: 0.6em auto;
|
2023-02-03 19:38:25 +00:00
|
|
|
display: table;
|
|
|
|
border-collapse: collapse;
|
2022-09-22 16:20:08 +00:00
|
|
|
|
2022-09-23 18:28:47 +00:00
|
|
|
> figcaption {
|
2023-02-03 19:38:25 +00:00
|
|
|
display: table-caption;
|
|
|
|
caption-side: bottom;
|
2022-09-23 18:28:47 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-01-27 20:42:37 +00:00
|
|
|
// Parsoid class name is mw-image-border (T198534) and parser (PHP) class name is thumbborder
|
2022-11-02 16:34:00 +00:00
|
|
|
// However, Parsoid places the class on the wrapper, whereas the legacy parser placed it on the img
|
|
|
|
.mw-image-border img,
|
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;
|
|
|
|
}
|
|
|
|
}
|