editor: canvas - removing borders and spaces around text and spans
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Fri, 25 Apr 2014 13:56:32 +0000 (15:56 +0200)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Fri, 25 Apr 2014 13:56:32 +0000 (15:56 +0200)
src/editor/modules/documentCanvas/documentCanvas.less
src/editor/modules/documentCanvas/nodes.less

index 626704b..9421482 100644 (file)
         border-width: 1px;
     }
 
+    .current-node-element[wlxml-tag="span"] {
+        border: none;
+    }
+
     .highlighted-element {
         border: 1px solid lighten(#000, 15%);
     }
+    
+    .highlighted-element[wlxml-tag="span"] {
+        border: none;
+    }
 
     counter-reset: footnote;
 }
index 42f09ea..3b47209 100644 (file)
@@ -1,7 +1,6 @@
 [document-text-element] {
     font-size: 14px;
     display: inline;
-    margin: 0 1px;
     white-space: pre-wrap;
 }
 
     padding: 1px 1px;
 }
 
+[wlxml-tag="span"] {
+    padding: 0;
+    border: none;
+}
+
 .grid-on {
     [wlxml-tag] {
         .rng-common-hoveredNode;