Fix rendering of centered caption-less images
authorGabriel Wicke <gwicke@wikimedia.org>
Mon, 23 Jun 2014 17:18:58 +0000 (10:18 -0700)
committerGWicke <gwicke@wikimedia.org>
Mon, 23 Jun 2014 17:59:42 +0000 (17:59 +0000)
These were not actually centered before. Setting the display mode to table as
for captioned thumbs fixes this issue.

Bug: 51245

Change-Id: I18e0c173109a2184f9785f7f2a390a4582c7a881

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

index af18eea..775b249 100644 (file)
@@ -66,6 +66,7 @@ figure[typeof*='mw:Image'] {
 
        &.mw-halign-center {
                margin: 0 auto .5em auto;
+               display: table;
                clear: none;
                float: none;
        }