From f748267f6e177cba7cb4a91439e6fff037cb1d9c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Thu, 20 Jun 2013 09:49:40 +0200 Subject: [PATCH] documentCanvas: displaying lists and tables --- modules/documentCanvas/wlxml.less | 35 +++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) 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 -- 2.20.1