mediawiki-skins-MinervaNeue/resources/skins.minerva.content.styles/thumbnails.less
jdlrobson 81bbd6eb48 Use consistent small font sizes
* Add @font-size-minerva-smallest and use it in place
of font-size: 0.8em across the site so that we get a round
number for our font sizes.

Bug: T229568
Change-Id: I4270225c07941b4c164d5e044f70d4b131dbc19d
2019-10-01 22:29:55 +00:00

53 lines
1,008 B
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>
//
// Styleguide 1.2.
.content {
figure,
.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;
}
// Parsoid class name (T198534)
.mw-image-border,
// parser (PHP) class name
.thumbborder {
border: 1px solid @colorGray12;
}
// Hide the image magnification icon normally displayed in image captions
.magnify {
display: none;
}
}