mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 06:24:08 +00:00
Remove display:inline-block highlight hacks
With getClientRects these are no longer necessary. Depends on I09f1c0850 in core. Bug: 51708 Change-Id: I7e6c6528f4dd23aee7fa61ecb38eb658e11a8356
This commit is contained in:
parent
1c0f331c70
commit
15bbcc6d63
|
@ -1170,7 +1170,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