From: Aleksander Ɓukasz Date: Fri, 25 Apr 2014 13:56:32 +0000 (+0200) Subject: editor: canvas - removing borders and spaces around text and spans X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/7868dda583569339a88ef875d50fd88f85241547?hp=4b2e5f26a2bf27ea2cf41c0d4818e5b85785cd67 editor: canvas - removing borders and spaces around text and spans --- diff --git a/src/editor/modules/documentCanvas/documentCanvas.less b/src/editor/modules/documentCanvas/documentCanvas.less index 626704b..9421482 100644 --- a/src/editor/modules/documentCanvas/documentCanvas.less +++ b/src/editor/modules/documentCanvas/documentCanvas.less @@ -46,9 +46,17 @@ 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; } diff --git a/src/editor/modules/documentCanvas/nodes.less b/src/editor/modules/documentCanvas/nodes.less index 42f09ea..3b47209 100644 --- a/src/editor/modules/documentCanvas/nodes.less +++ b/src/editor/modules/documentCanvas/nodes.less @@ -1,7 +1,6 @@ [document-text-element] { font-size: 14px; display: inline; - margin: 0 1px; white-space: pre-wrap; } @@ -16,6 +15,11 @@ padding: 1px 1px; } +[wlxml-tag="span"] { + padding: 0; + border: none; +} + .grid-on { [wlxml-tag] { .rng-common-hoveredNode;