Fixing documentCanvas styles
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Thu, 6 Jun 2013 14:09:57 +0000 (16:09 +0200)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Thu, 6 Jun 2013 14:09:57 +0000 (16:09 +0200)
modules/documentCanvas/documentCanvas.js
styles/common.less

index 031ca1f..ea44955 100644 (file)
@@ -182,7 +182,7 @@ return function(sandbox) {
         },\r
         highlightNode: function(node) {\r
             if(!this.gridToggled) {\r
-                node.addClass('rng-hover');\r
+                node.addClass('rng-common-hoveredNode');\r
                 var label = node.attr('wlxml-tag');\r
                 if(node.attr('wlxml-class'))\r
                     label += ' / ' + node.attr('wlxml-class');\r
@@ -192,7 +192,7 @@ return function(sandbox) {
         },\r
         dimNode: function(node) {\r
             if(!this.gridToggled) {\r
-                node.removeClass('rng-hover');\r
+                node.removeClass('rng-common-hoveredNode');\r
                 node.find('.rng-module-documentCanvas-hoveredNodeTag').remove();\r
             }\r
         },\r
@@ -219,7 +219,7 @@ return function(sandbox) {
             this.selectNode(node);\r
         },\r
         toggleGrid: function(toggle) {\r
-            this.node.find('[wlxml-tag]').toggleClass('rng-hover', toggle);\r
+            this.node.find('[wlxml-tag]').toggleClass('rng-common-hoveredNode', toggle);\r
             this.gridToggled = toggle;\r
         }\r
     };\r
index 1b9ef18..901e006 100644 (file)
@@ -1,5 +1,5 @@
 .rng-common-hoveredNode {\r
-    border-color: red;\r
+    border-color: red !important;\r
     border-style:solid;\r
     border-width:1px;\r
 }\r