Slug Todos

Setting display of block slugs with CSS.

Change-Id: I249015618f934f8c162912883dbd4452fa266b3f
This commit is contained in:
Christian Williams 2013-01-17 14:38:16 -08:00
parent 391760fbc0
commit 81e061eb9d
2 changed files with 4 additions and 12 deletions

View file

@ -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,

View file

@ -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 ? '&nbsp;' : '&#xFEFF;' );
/**
* 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 */