From: Aleksander Ɓukasz Date: Thu, 20 Jun 2013 07:49:40 +0000 (+0200) Subject: documentCanvas: displaying lists and tables X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/f748267f6e177cba7cb4a91439e6fff037cb1d9c?ds=sidebyside documentCanvas: displaying lists and tables --- diff --git a/modules/documentCanvas/wlxml.less b/modules/documentCanvas/wlxml.less index 41b3365..215d36b 100644 --- a/modules/documentCanvas/wlxml.less +++ b/modules/documentCanvas/wlxml.less @@ -63,4 +63,39 @@ span[wlxml-tag] { [wlxml-tag] metadata { display:none; +} + +[wlxml-class="list-items"] { + + counter-reset: myitem; + + > [wlxml-class="item"] { + counter-increment: myitem; + display: list-item; + margin-left: 10px; + padding-left: 5px; + + &:before { + content: counter(myitem) '. '; + margin-right:10px; + padding-right:10px; + } + } +} + +[wlxml-class="table"] { + + display: table; + border: 1px solid black; + + [wlxml-class="row"] { + display: table-row; + border: 1px solid black; + } + [wlxml-class="cell"] { + display: table-cell; + border: 1px solid black; + padding: 5px; + } + } \ No newline at end of file