From e82629895b38dbc21bdd5fa21679eb3a8714809a Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Wed, 28 May 2014 18:32:10 -0700 Subject: [PATCH] Add border and background styling to the Parsoid styles for images Without these, framed images aren't actually framed in the Parsoid HTML. Change-Id: Ie19f1c9b4652562aef1a92de8c52c484c4407c95 --- resources/src/mediawiki.skinning/content.parsoid.less | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/resources/src/mediawiki.skinning/content.parsoid.less b/resources/src/mediawiki.skinning/content.parsoid.less index 7bfb642337..081524a44b 100644 --- a/resources/src/mediawiki.skinning/content.parsoid.less +++ b/resources/src/mediawiki.skinning/content.parsoid.less @@ -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 -- 2.20.1