mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-12-19 09:11:05 +00:00
f0505d28a9
Only thumb and frame have visible captions. This matches core's mediawiki.skinning/content.media-common.less Bug: T318300 Change-Id: If5713c8d629ec3c84abdb5c99eedf6f0bb408ddf
67 lines
1.3 KiB
Plaintext
67 lines
1.3 KiB
Plaintext
@import 'mediawiki.mixins.less';
|
|
@import '../../../minerva.less/minerva.variables.less';
|
|
@import '../../../minerva.less/minerva.mixins.less';
|
|
|
|
// 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;
|
|
}
|
|
}
|
|
|
|
figcaption,
|
|
.thumbcaption {
|
|
margin: 0.5em 0 0;
|
|
font-size: @font-size-minerva-smallest;
|
|
line-height: 1.5;
|
|
padding: 0 !important;
|
|
color: @grayMediumDark;
|
|
}
|
|
|
|
.thumbcaption {
|
|
width: auto !important;
|
|
}
|
|
|
|
figure {
|
|
display: table;
|
|
margin: 0.6em auto;
|
|
}
|
|
|
|
figcaption {
|
|
display: table-caption;
|
|
caption-side: bottom;
|
|
}
|
|
|
|
figure[ typeof~='mw:File' ],
|
|
figure[ typeof~='mw:File/Frameless' ] {
|
|
/* Hide the caption for frameless and plain floated images */
|
|
> figcaption {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
// Parsoid class name is mw-image-border (T198534) and parser (PHP) class name is thumbborder
|
|
.mw-image-border,
|
|
.thumbborder {
|
|
border: 1px solid @colorGray12;
|
|
}
|
|
|
|
// Hide the image magnification icon normally displayed in image captions
|
|
.magnify {
|
|
display: none;
|
|
}
|
|
}
|