Merge "Remove display:inline-block highlight hacks"

This commit is contained in:
jenkins-bot 2014-06-17 23:27:10 +00:00 committed by Gerrit Code Review
commit 115c1b6be9
4 changed files with 11 additions and 16 deletions

View file

@ -1169,7 +1169,6 @@ $wgResourceModules += array(
'modules/ve-mw/ui/tools/ve.ui.MWGalleryInspectorTool.js',
),
'styles' => array(
'modules/ve-mw/ce/styles/nodes/ve.ce.MWGalleryNode.css',
'modules/ve-mw/ui/styles/inspectors/ve.ui.MWGalleryInspector.css',
),
'dependencies' => array(

View file

@ -35,6 +35,17 @@ ve.ce.MWGalleryNode.static.tagName = 'div';
ve.ce.MWGalleryNode.static.primaryCommandName = 'gallery';
/* Methods */
/**
* @inheritdoc
*/
ve.ce.MWGalleryNode.prototype.onSetup = function () {
ve.ce.MWGalleryNode.super.prototype.onSetup.apply( this, arguments );
// The ul.gallery is 100% width, so don't give it a highlight
this.$element.find( '.gallery' ).addClass( 've-ce-noHighlight' );
};
/* Registration */
ve.ce.nodeFactory.register( ve.ce.MWGalleryNode );

View file

@ -1,11 +0,0 @@
/*!
* VisualEditor ContentEditable MediaWiki MWGalleryNode styles.
*
* @copyright 2011-2014 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
.ve-ce-mwGalleryNode .mw-gallery-traditional {
/* Use inline-block to avoid over-sized shields */
display: inline-block
}

View file

@ -5,10 +5,6 @@
* @license The MIT License (MIT); see LICENSE.txt
*/
.ve-ce-mwTransclusionInlineNode {
display: inline-block;
}
/* HACK: Hide Ref errors in templates */
.ve-ce-mwTransclusionNode .mw-ext-cite-error {
display: none;