From: Aleksander Ɓukasz Date: Thu, 6 Jun 2013 13:53:35 +0000 (+0200) Subject: Moving documentCanvas style from old stylesheet X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/5c8c1676ef0036d6feceee576423ed0f1d28ae7c?hp=b5a1f98a2118706355925314bfe3027ba45464e8 Moving documentCanvas style from old stylesheet --- diff --git a/modules/documentCanvas/documentCanvas.js b/modules/documentCanvas/documentCanvas.js index f9a8b7a..031ca1f 100644 --- a/modules/documentCanvas/documentCanvas.js +++ b/modules/documentCanvas/documentCanvas.js @@ -186,14 +186,14 @@ return function(sandbox) { var label = node.attr('wlxml-tag'); if(node.attr('wlxml-class')) label += ' / ' + node.attr('wlxml-class'); - var tag = $('
').addClass('rng-visualEditor-nodeHoverTag').text(label); + var tag = $('
').addClass('rng-module-documentCanvas-hoveredNodeTag').text(label); node.append(tag); } }, dimNode: function(node) { if(!this.gridToggled) { node.removeClass('rng-hover'); - node.find('.rng-visualEditor-nodeHoverTag').remove(); + node.find('.rng-module-documentCanvas-hoveredNodeTag').remove(); } }, highlightNodeById: function(id) { diff --git a/modules/documentCanvas/documentCanvas.less b/modules/documentCanvas/documentCanvas.less index c0eca1e..fc50d85 100644 --- a/modules/documentCanvas/documentCanvas.less +++ b/modules/documentCanvas/documentCanvas.less @@ -29,4 +29,19 @@ border-color: grey; border-style:dashed; border-width:1px; +} + +.rng-module-documentCanvas-hoveredNodeTag { + position:absolute; + height:20px; + top:-20px; + left:0; + background: #bd362f; + color: white; + font-size:9px; + font-weight: normal; + font-style: normal; + font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; + padding: 0 5px; + text-indent: 0; } \ No newline at end of file