Add border and background styling to the Parsoid styles for images
authorRoan Kattouw <roan.kattouw@gmail.com>
Thu, 29 May 2014 01:32:10 +0000 (18:32 -0700)
committerRoan Kattouw <roan.kattouw@gmail.com>
Thu, 29 May 2014 01:32:10 +0000 (18:32 -0700)
Without these, framed images aren't actually framed in the Parsoid HTML.

Change-Id: Ie19f1c9b4652562aef1a92de8c52c484c4407c95

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

index 7bfb642..081524a 100644 (file)
@@ -38,7 +38,6 @@ figure[typeof*='mw:Image'] {
                float: right;
        }
 
-       /* @noflip */
        &.mw-halign-left {
                /* @noflip */
                margin: .5em 1.4em 1.3em 0;
@@ -68,9 +67,17 @@ figure[typeof*='mw:Image'] {
        }
 }
 
-figure[typeof~='mw:Image/Thumb'], figure[typeof~='mw:Image/Frame'] {
+figure[typeof~='mw:Image/Thumb'],
+figure[typeof~='mw:Image/Frame'] {
        display: table;
        overflow: hidden;
        text-align: center;
        padding: 3px;
+       border: 1px solid #ccc;
+       background-color: #f9f9f9;
 }
+
+figure[typeof~='mw:Image/Thumb'] img,
+.mw-image-border img {
+       border: 1px solid #cccccc;
+}
\ No newline at end of file