From: Gabriel Wicke Date: Mon, 23 Jun 2014 17:18:58 +0000 (-0700) Subject: Fix rendering of centered caption-less images X-Git-Tag: 1.31.0-rc.0~15281^2 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=6f45ac4479b501d528993fb64377200541444f79;p=lhc%2Fweb%2Fwiklou.git Fix rendering of centered caption-less images These were not actually centered before. Setting the display mode to table as for captioned thumbs fixes this issue. Bug: 51245 Change-Id: I18e0c173109a2184f9785f7f2a390a4582c7a881 --- diff --git a/resources/src/mediawiki.skinning/content.parsoid.less b/resources/src/mediawiki.skinning/content.parsoid.less index af18eeaf93..775b2490ec 100644 --- a/resources/src/mediawiki.skinning/content.parsoid.less +++ b/resources/src/mediawiki.skinning/content.parsoid.less @@ -66,6 +66,7 @@ figure[typeof*='mw:Image'] { &.mw-halign-center { margin: 0 auto .5em auto; + display: table; clear: none; float: none; }