mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 03:08:42 +00:00
Merge "Remove display:inline-block highlight hacks"
This commit is contained in:
commit
115c1b6be9
|
@ -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(
|
||||
|
|
|
@ -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 );
|
||||
|
|
|
@ -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
|
||||
}
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue