Align image frame padding with core
authorGabriel Wicke <gwicke@wikimedia.org>
Wed, 2 Jul 2014 20:53:45 +0000 (13:53 -0700)
committerGabriel Wicke <gwicke@wikimedia.org>
Wed, 2 Jul 2014 20:53:45 +0000 (13:53 -0700)
The Parsoid padding was 1px wider, which was discovered by
https://github.com/subbuss/parsoid_visual_diffs.

Change-Id: I1c63ad0daf434ebe5a234109578ddd5ddc2bc909

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

index ebd6b92..6a35182 100644 (file)
@@ -99,7 +99,6 @@ figure[typeof~='mw:Image/Frame'] {
        display: table;
        overflow: auto;
        text-align: center;
-       padding: 3px;
        border: 1px solid #ccc;
        border-bottom: 0; // No border to caption
        border-collapse: collapse;
@@ -115,7 +114,7 @@ figure[typeof~='mw:Image/Thumb'] > *:first-child > img,
 figure[typeof~='mw:Image/Frame'] > *:first-child > img,
 .mw-image-border > *:first-child > img {
        border: 1px solid #cccccc;
-       margin: 4px;
+       margin: 3px;
 }
 
 /* Hide the caption for frameless and plain floated images */