mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
Slug Todos
Setting display of block slugs with CSS. Change-Id: I249015618f934f8c162912883dbd4452fa266b3f
This commit is contained in:
parent
391760fbc0
commit
81e061eb9d
|
@ -61,12 +61,8 @@
|
|||
display: inline;
|
||||
}
|
||||
|
||||
.ve-ce-slug {
|
||||
/*
|
||||
display: inline-block;
|
||||
margin-right: -1px;
|
||||
width: 1px;
|
||||
*/
|
||||
.ve-ce-slugBlock {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.ve-ce-branchNode h1:empty:before,
|
||||
|
|
|
@ -61,8 +61,6 @@ ve.mixinClass( ve.ce.BranchNode, ve.BranchNode );
|
|||
/**
|
||||
* Inline slug template.
|
||||
*
|
||||
* TODO: Consider adding a CSS class.
|
||||
*
|
||||
* @static
|
||||
* @property
|
||||
* @type {jQuery}
|
||||
|
@ -71,16 +69,14 @@ ve.ce.BranchNode.$inlineSlugTemplate = $( '<span class="ve-ce-slug"></span>' )
|
|||
.html( $.browser.msie ? ' ' : '' );
|
||||
|
||||
/**
|
||||
* Inline slug template.
|
||||
*
|
||||
* TODO: Consider adding a CSS class.
|
||||
* Block slug template.
|
||||
*
|
||||
* @static
|
||||
* @property
|
||||
* @type {jQuery}
|
||||
*/
|
||||
ve.ce.BranchNode.$blockSlugTemplate =
|
||||
ve.ce.BranchNode.$inlineSlugTemplate.clone().css( 'display', 'block' );
|
||||
ve.ce.BranchNode.$inlineSlugTemplate.clone().addClass( 've-ce-slugBlock' );
|
||||
|
||||
/* Static Methods */
|
||||
|
||||
|
|
Loading…
Reference in a new issue