From 5c8c1676ef0036d6feceee576423ed0f1d28ae7c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Thu, 6 Jun 2013 15:53:35 +0200 Subject: [PATCH 1/1] Moving documentCanvas style from old stylesheet --- modules/documentCanvas/documentCanvas.js | 4 ++-- modules/documentCanvas/documentCanvas.less | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) 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 -- 2.20.1