mediawiki-extensions-Visual.../modules/ve-mw/ce/styles/nodes/ve.ce.MWBlockImageNode.css
Roan Kattouw 9e9a671fc1 Make images look better, account for e82629895b38 in MW core
Prevent images from getting double borders due to slugs,
and prevent extraneous margins from piling up in captions.

Also add the ve-ce-mwBlockImageNode class which shockingly
wasn't being set (only ve-ce-mwBlockImageNode-TYPE was set).

Change-Id: I86b95aa0c0def92a9790b7cdb4b05837fb8f65e2
2014-05-28 18:35:07 -07:00

22 lines
635 B
CSS

/*!
* VisualEditor ContentEditable MediaWiki MWBlockImageNode styles.
*
* @copyright 2011-2014 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
/*csslint regex-selectors:false, overqualified-elements:false */
/* Hide outer shield for centered images */
figure[typeof~='mw:Image'].mw-halign-center + .ve-ce-protectedNode-shield {
display: none;
}
/* Override border on shields for images */
.ve-ce-mwBlockImageNode .ve-ce-protectedNode-shield {
border: none;
}
/* Override paragraph margins inside of captions */
.ve-ce-mwBlockImageNode figcaption p {
margin: 0 !important;
}