| 1 |
@import 'variables-content.less'; |
| 2 |
|
| 3 |
figure[ typeof~='mw:File/Thumb' ], |
| 4 |
figure[ typeof~='mw:File/Frame' ] { |
| 5 |
border: @border-thumbinner-screen; |
| 6 |
border-bottom: 0; // No border to figcaption |
| 7 |
border-width: 1px 1px 0.2em; // From .box |
| 8 |
box-shadow: 0 1px 2px 1px rgba( 0, 0, 0, 0.02 ); // From .box |
| 9 |
background-color: @background-color-thumbinner-screen; |
| 10 |
|
| 11 |
> :not( figcaption ) .mw-file-element { |
| 12 |
border: @border-thumbimage-screen; |
| 13 |
} |
| 14 |
|
| 15 |
> figcaption { |
| 16 |
border: @border-thumbinner-screen; |
| 17 |
border-top: 0; |
| 18 |
border-width: 1px 1px 0.2em; // From .box |
| 19 |
box-shadow: 0 1px 2px 1px rgba( 0, 0, 0, 0.02 ); // From .box |
| 20 |
background-color: @background-color-thumbinner-screen; |
| 21 |
font-size: @font-size-thumbcaption-screen; |
| 22 |
} |
| 23 |
} |
| 24 |
|
| 25 |
.mw-image-border .mw-file-element { |
| 26 |
border: @border-thumbborder-screen; |
| 27 |
} |
| 28 |
|
| 29 |
figure[ typeof~='mw:File/Thumb' ] { |
| 30 |
> figcaption::before { |
| 31 |
content: ''; |
| 32 |
width: 20px; |
| 33 |
height: 20px; |
| 34 |
|
| 35 |
// Default where page content language is not set |
| 36 |
// Allow to flip |
| 37 |
margin: 0 0 0.5em 0.5em; |
| 38 |
float: right; |
| 39 |
|
| 40 |
// Defaults for page content language |
| 41 |
|
| 42 |
.mw-content-ltr & { |
| 43 |
/* @noflip */ |
| 44 |
margin: 0 0 0.5em 0.5em; |
| 45 |
/* @noflip */ |
| 46 |
float: right; |
| 47 |
} |
| 48 |
|
| 49 |
.mw-content-rtl & { |
| 50 |
/* @noflip */ |
| 51 |
margin: 0 0.5em 0.5em 0; |
| 52 |
/* @noflip */ |
| 53 |
float: left; |
| 54 |
} |
| 55 |
} |
| 56 |
|
| 57 |
> .mw-file-description, |
| 58 |
> .mw-file-magnify { |
| 59 |
display: block; |
| 60 |
position: relative; |
| 61 |
|
| 62 |
&::after { |
| 63 |
content: ''; |
| 64 |
width: 20px; |
| 65 |
height: 20px; |
| 66 |
position: absolute; |
| 67 |
bottom: -20px; |
| 68 |
|
| 69 |
// Default where page content language is not set |
| 70 |
// Allow to flip |
| 71 |
right: 0.75em; |
| 72 |
background-image: @background-image-magnify-ltr; |
| 73 |
|
| 74 |
// Defaults for page content language |
| 75 |
|
| 76 |
.mw-content-ltr & { |
| 77 |
/* @noflip */ |
| 78 |
right: 0.75em; |
| 79 |
/* @noflip */ |
| 80 |
left: auto; |
| 81 |
/* @noflip */ |
| 82 |
background-image: @background-image-magnify-ltr; |
| 83 |
} |
| 84 |
|
| 85 |
.mw-content-rtl & { |
| 86 |
/* @noflip */ |
| 87 |
right: auto; |
| 88 |
/* @noflip */ |
| 89 |
left: 0.75em; |
| 90 |
/* @noflip */ |
| 91 |
background-image: @background-image-magnify-rtl; |
| 92 |
} |
| 93 |
} |
| 94 |
} |
| 95 |
} |