integration wip: marking element as current
[fnpeditor.git] / modules / documentCanvas / nodes.less
1 [wlxml-text] {
2     display: inline;
3     margin: 0 1px;
4 }
5
6 [wlxml-tag] {
7     float: none !important; /* temporaty workaround for Bootstrap's influence via [class*="span"] { float: left; } */
8     border-color: white;
9     border-style:solid;
10     border-width:1px;
11     min-height:20px;
12     position:relative;
13     text-indent: 0;
14     padding: 1px 1px;
15 }
16
17 [wlxml-tag=span] {
18     display:inline;
19     min-width: 10px;
20 }
21
22 [wlxml-tag=header] {
23     font-size: 13px;
24     font-weight: bold;
25     margin: 10px 0;
26 }
27
28 [wlxml-tag=section] {
29     margin-top: 10px;
30     margin-bottom: 10px;
31 }
32
33 [wlxml-tag=section] [wlxml-tag=section] {
34     margin-left:10px;
35 }
36
37 [wlxml-class|="cite"] {
38     font-style: italic;
39 }
40
41 [wlxml-class|="cite-code"] {
42     font-family: monospace;
43 }
44
45 [wlxml-class|="cite-code-xml"] {
46     color: blue;
47 }
48
49 [wlxml-tag=header] > [wlxml-class=author] {
50     font-size: 14px;
51 }
52
53 [wlxml-tag=header] > [wlxml-class=title] {
54     font-size:18px;
55 }
56
57 [wlxml-class|="uri"] {
58     color: blue;
59     text-decoration: underline;
60 }
61
62 [wlxml-class|="p"] {
63     text-indent: 1.5em;
64 }
65
66 [wlxml-class|="emph-tech"] {
67     font-style: italic;
68 }
69
70 [wlxml-tag=metadata] {
71     display:none;
72 }
73
74 [wlxml-class="list-items"] {
75
76     > [wlxml-class="item"] {
77         display: list-item;
78         margin-left: 10px;
79         padding-left: 5px;
80     }
81 }
82
83 [wlxml-class="item"] {
84     > [wlxml-class="list-items"] {
85         display: block;
86     }
87 }
88
89
90 [wlxml-class="list-items-enum"] {
91
92     counter-reset: myitem;
93
94     > [wlxml-class="item"] {
95         counter-increment: myitem;
96         margin-left: 10px;
97         padding-left: 5px;
98         
99         &:before {
100             content: counter(myitem) '. ';
101             margin-right:10px;
102             padding-right:10px;
103         }
104     }
105 }
106
107 .canvas-silent-item {
108     display: block !important;
109     counter-increment: none !important;
110     &:before {
111         content: normal !important;
112     }
113 }
114
115 [wlxml-class="table"] {
116
117     display: table;
118     border: 1px solid black;
119
120     [wlxml-class="row"] {
121         display: table-row;
122         border: 1px solid black;
123     }
124     [wlxml-class="cell"] {
125         display: table-cell;
126         border: 1px solid black;
127         padding: 5px;
128     }
129
130 }