mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-28 08:00:32 +00:00
Apply tablet restrictions to image floating in Parsoid
Behaviour now matches that of PHP-generated images. Bug: T205474 Change-Id: If6a8970c95ec5486a79afcef6480dfbc78c17a10
This commit is contained in:
parent
1976ef87be
commit
75662dd774
|
@ -2,6 +2,8 @@
|
|||
* Style Parsoid HTML+RDFa output consistent with wikitext from PHP parser.
|
||||
*/
|
||||
|
||||
@import '../../minerva.less/minerva.variables';
|
||||
|
||||
/*
|
||||
* Auto-numbered external links
|
||||
* (copied from MediaWiki's content.parsoid.less)
|
||||
|
@ -23,6 +25,14 @@ figure[ typeof*='mw:Image' ],
|
|||
figure[ typeof*='mw:Video' ],
|
||||
figure[ typeof*='mw:Audio' ] {
|
||||
max-width: 100%;
|
||||
// Centered on non-tablet
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
@media screen and ( min-width: @width-breakpoint-tablet ) {
|
||||
figure[ typeof*='mw:Image' ],
|
||||
figure[ typeof*='mw:Video' ],
|
||||
figure[ typeof*='mw:Audio' ] {
|
||||
// Defaults to right alignment when not explicitly set. Should be flippable.
|
||||
margin: 0.6em 0 0.6em 1.4em;
|
||||
|
||||
|
@ -50,3 +60,4 @@ figure[ typeof*='mw:Audio' ] {
|
|||
float: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue