MinervaNeue/resources/skins.minerva.content.styles/thumbnails.less
jdlrobson a6a093faab Blank parsoid styles, update thumbnail selectors for Parsoid content
This brings Parsoid styles when viewed in Minerva consistent with
MediaWiki parser output styles.

You can verify this with:
https://gerrit.wikimedia.org/r/#/c/368287/

Bug: T171727
Change-Id: If4bd7671a99aefdf074061dd1d5b0bac93620e9e
2017-07-27 14:27:47 -07:00

50 lines
868 B
Plaintext

@import 'mediawiki.mixins.less';
@import 'minerva.variables.less';
@import '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: 0.8em;
line-height: 1.5;
padding: 0 !important;
color: @grayMediumDark;
}
.thumbcaption {
width: auto !important;
}
.thumbborder {
border: 1px solid @colorGray12;
}
// Hide the image magnification icon normally displayed in image captions
.magnify {
display: none;
}
}