Hide the caption of frameless or inline images in Parsoid HTML
authorGabriel Wicke <gwicke@wikimedia.org>
Fri, 13 Jun 2014 20:10:03 +0000 (13:10 -0700)
committerGWicke <gwicke@wikimedia.org>
Mon, 23 Jun 2014 17:04:43 +0000 (17:04 +0000)
Bug: 51245
Change-Id: Ia88bf58e647e2e53b83e86c841d45001f9fb0333

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

index 15f53f0..af18eea 100644 (file)
@@ -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