Add unfloated thumb styling in Parsoid CSS
authorGabriel Wicke <gwicke@wikimedia.org>
Tue, 8 Jul 2014 18:47:23 +0000 (11:47 -0700)
committerGabriel Wicke <gwicke@wikimedia.org>
Tue, 8 Jul 2014 18:47:23 +0000 (11:47 -0700)
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

resources/src/mediawiki.skinning/content.parsoid.less

index 6a35182..aeed611 100644 (file)
@@ -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;