From: Gabriel Wicke Date: Fri, 13 Jun 2014 20:10:03 +0000 (-0700) Subject: Hide the caption of frameless or inline images in Parsoid HTML X-Git-Tag: 1.31.0-rc.0~15281^2~1 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/ajouter.php?a=commitdiff_plain;h=26a39ecc80685cb79d4f6cdac64c5bb712d8595e;p=lhc%2Fweb%2Fwiklou.git Hide the caption of frameless or inline images in Parsoid HTML Bug: 51245 Change-Id: Ia88bf58e647e2e53b83e86c841d45001f9fb0333 --- diff --git a/resources/src/mediawiki.skinning/content.parsoid.less b/resources/src/mediawiki.skinning/content.parsoid.less index 15f53f0a8e..af18eeaf93 100644 --- a/resources/src/mediawiki.skinning/content.parsoid.less +++ b/resources/src/mediawiki.skinning/content.parsoid.less @@ -113,6 +113,10 @@ figure[typeof~='mw:Image/Frame'] > *:first-child > img, margin: 4px; } +/* Hide the caption for frameless and plain floated images */ +figure[typeof~="mw:Image/Frameless"] > figcaption, +figure[typeof~="mw:Image"] > figcaption { display: none } + /* * Finally, some basic styling for Parsoid render testing. * Only Parsoid directly sets .mw-body-content directly on the body, so this