From: Gabriel Wicke Date: Tue, 8 Jul 2014 18:47:23 +0000 (-0700) Subject: Add unfloated thumb styling in Parsoid CSS X-Git-Tag: 1.31.0-rc.0~15056 X-Git-Url: http://git.cyclocoop.org//%27%40script%40/%27?a=commitdiff_plain;h=9573eb2967826dd10c4f4121076c03da21175d55;p=lhc%2Fweb%2Fwiklou.git Add unfloated thumb styling in Parsoid CSS This styles [[File:Wiki.png|thumb|none|An inline thumb]] Parsoid sets the mw-halign-none class in this case (see https://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images), and so far we didn't have the CSS to actually act on that. Change-Id: I5be19f144188a25dbe3f17c8745199cc0c7df70e --- diff --git a/resources/src/mediawiki.skinning/content.parsoid.less b/resources/src/mediawiki.skinning/content.parsoid.less index 6a35182abc..aeed611bdf 100644 --- a/resources/src/mediawiki.skinning/content.parsoid.less +++ b/resources/src/mediawiki.skinning/content.parsoid.less @@ -68,6 +68,15 @@ figure[typeof*='mw:Image'] { float: left; } + &.mw-halign-none { + /* @noflip */ + margin: 0; + /* @noflip */ + clear: none; + /* @noflip */ + float: none; + } + &.mw-halign-center { margin: 0 auto .5em auto; display: table;