Debian Codegraph @

skins/MinervaNeue/resources/skins.minerva.base.styles/content/thumbnails.less

raw
1 @import 'mediawiki.mixins.less';
2 @import '../../../minerva.less/minerva.variables.less';
3 @import '../../../minerva.less/minerva.mixins.less';
4
5 // Thumbnails
6 //
7 // Thumbnail images should be rendered within a thumb class
8 //
9 // Markup:
10 // <div class="content">
11 // <div class="thumb"><img src="images/arrow-left.png"></div>
12 // </div>
13 .content {
14 .thumb {
15 margin: 0.6em 0;
16
17 // Linker.php
18 .thumbinner {
19 margin: 0 auto;
20 // !important is needed because of Bug T87198 for example
21 max-width: 100% !important;
22 }
23 }
24
25 .thumbcaption {
26 width: auto !important;
27 }
28
29 .thumbcaption,
30 figure[ typeof~='mw:File/Thumb' ] > figcaption,
31 figure[ typeof~='mw:File/Frame' ] > figcaption {
32 margin: 0.5em 0 0;
33 font-size: @font-size-minerva-smallest;
34 line-height: 1.5;
35 padding: 0 !important;
36 color: @color-subtle;
37 }
38
39 figure[ typeof~='mw:File/Thumb' ],
40 figure[ typeof~='mw:File/Frame' ] {
41 margin: 0.6em auto;
42 display: table;
43 border-collapse: collapse;
44
45 > figcaption {
46 display: table-caption;
47 caption-side: bottom;
48 }
49 }
50
51 // Parsoid class name is mw-image-border (T198534) and parser (PHP) class name is thumbborder
52 // However, Parsoid places the class on the wrapper, whereas the legacy parser placed it on
53 // the file element.
54 .mw-image-border .mw-file-element,
55 .thumbborder {
56 border: @border-subtle;
57 }
58
59 // Hide the image magnification icon normally displayed in image captions
60 .magnify {
61 display: none;
62 }
63 }