From: Aleksander Ɓukasz Date: Thu, 6 Jun 2013 14:09:57 +0000 (+0200) Subject: Fixing documentCanvas styles X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/9fbae252bc7b30502f214e42b1d8f932c02a2d05?ds=inline Fixing documentCanvas styles --- diff --git a/modules/documentCanvas/documentCanvas.js b/modules/documentCanvas/documentCanvas.js index 031ca1f..ea44955 100644 --- a/modules/documentCanvas/documentCanvas.js +++ b/modules/documentCanvas/documentCanvas.js @@ -182,7 +182,7 @@ return function(sandbox) { }, highlightNode: function(node) { if(!this.gridToggled) { - node.addClass('rng-hover'); + node.addClass('rng-common-hoveredNode'); var label = node.attr('wlxml-tag'); if(node.attr('wlxml-class')) label += ' / ' + node.attr('wlxml-class'); @@ -192,7 +192,7 @@ return function(sandbox) { }, dimNode: function(node) { if(!this.gridToggled) { - node.removeClass('rng-hover'); + node.removeClass('rng-common-hoveredNode'); node.find('.rng-module-documentCanvas-hoveredNodeTag').remove(); } }, @@ -219,7 +219,7 @@ return function(sandbox) { this.selectNode(node); }, toggleGrid: function(toggle) { - this.node.find('[wlxml-tag]').toggleClass('rng-hover', toggle); + this.node.find('[wlxml-tag]').toggleClass('rng-common-hoveredNode', toggle); this.gridToggled = toggle; } }; diff --git a/styles/common.less b/styles/common.less index 1b9ef18..901e006 100644 --- a/styles/common.less +++ b/styles/common.less @@ -1,5 +1,5 @@ .rng-common-hoveredNode { - border-color: red; + border-color: red !important; border-style:solid; border-width:1px; }