blob: ae730317e9c1bc1191b2177b8d2c07e27cb4bab6 [file] [log] [blame]
Nils Diewalda944fab2015-04-08 21:02:04 +00001@charset "utf-8";
Nils Diewaldab4d3ca2015-04-17 01:48:43 +00002@import "../util";
Nils Diewalda944fab2015-04-08 21:02:04 +00003
4$left-width: 176px;
5$border-size: 2px;
6$left-distance: $left-width + ($border-size * 2);
7
8@mixin cell-info {
9 text-overflow: ellipsis;
10 overflow: hidden;
11 padding: 1px 6px;
12 margin: 0px;
13}
14
15/**
16 * Table view
17 *
18 * The table view is complicated, as the
19 * first column has to be static.
20 */
21@mixin matchinfo-head {
22 border-width: 0px;
Nils Diewald1c546922015-04-13 01:56:19 +000023 border-top: $border-size solid $darker-orange; // #ff8000;
Nils Diewalda944fab2015-04-08 21:02:04 +000024 width: $left-width / 2;
25}
26
27div.matchinfo {
28 position: relative;
29 width: 100%;
30 padding-top: $border-size;
Nils Diewald1c546922015-04-13 01:56:19 +000031// background-color: $dark-orange;
Nils Diewalda944fab2015-04-08 21:02:04 +000032 height: auto;
33 font-size: 10pt;
34 text-align: left;
35 > p.addtree {
36 position: relative;
37 @include choose-item;
38 border: {
39 width: $border-size;
40 style: solid;
41 radius: $standard-border-radius;
42 }
43
44 font-size: inherit;
45 margin: $border-size $border-size 0 $border-size !important;
46 width: $left-width;
47 text-align: center;
48 cursor: pointer;
49 padding: 0 !important;
50
51 &:hover {
52 cursor:pointer;
53 @include choose-hover;
54 }
55
56 *.menu {
57 border-top-right-radius: 8px;
58 position: absolute;
59 width: $left-width;
60 left: 0;
61 bottom: 0;
62 text-align: left;
63 margin: -1* $border-size;
64 margin-top: 0;
65 > li:first-of-type {
Akronaba7a5a2016-08-15 21:58:33 +020066 border-top-right-radius: 5px;
Nils Diewalda944fab2015-04-08 21:02:04 +000067 }
68 }
69 }
70}
71
72div.matchtable {
73 z-index: 20;
74 margin-left: $left-distance - ($border-size / 2);
75 margin-right: $right-match-distance;
76 padding: 0;
77 overflow-x: auto;
78 overflow-y: visible;
79 width: auto;
Nils Diewald0ec142f2015-05-05 00:29:23 +000080
Akronfbf3a782017-06-28 17:34:28 +020081 p.queryfragment {
82 position:relative;
83 @include choose-item;
84 border : {
85 width: $border-size;
86 style: solid;
87 radius: $standard-border-radius;
88 }
89 padding: 2pt 4pt !important;
90 &:hover {
91 cursor:pointer;
92 @include choose-hover;
93 }
94
95 // This is the description
96 > span:first-of-type {
97 font-weight: bold;
98 padding-right: 4pt;
99 }
100
101 // Query fragment
102 > span:nth-of-type(2) {
103 padding-right: 1.2em;
104 }
105
106 &::after {
107 font-family: 'FontAwesome';
108 content: $fa-to-query;
109 position: absolute;
110 right: 4pt;
111 top: 4pt;
112 }
113 }
114
Nils Diewalda944fab2015-04-08 21:02:04 +0000115 table {
116 display: table;
117 border-collapse: separate;
118 border-spacing: 0px;
119 }
120 th {
121 color: $nearly-white;
122 }
Akronfbf3a782017-06-28 17:34:28 +0200123
124 // Use matchinfo cells for query creation
125 td,
126 tbody th,
127 thead th:not(:nth-child(1)):not(:nth-child(2)) {
128 cursor: pointer;
129 }
130 tr {
131 outline: none;
132 > td.chosen,
133 > th.chosen {
134 background-color: $light-green !important;
135 color: $nearly-white;
136 // transition: color 0.1s, background-color 0.15s ease-out;
137 }
138 }
139
Nils Diewalda944fab2015-04-08 21:02:04 +0000140 thead {
141 tr th {
142 background-color: $darker-orange;
143 border-top-width: 0px !important;
Akron2495ceb2016-02-13 17:17:52 +0100144 text-align: center;
145 &:nth-of-type(1), &:nth-of-type(2) {
Akronfbf3a782017-06-28 17:34:28 +0200146 text-align: left;
Akron2495ceb2016-02-13 17:17:52 +0100147 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000148 }
149 }
Akronfbf3a782017-06-28 17:34:28 +0200150
Nils Diewalda944fab2015-04-08 21:02:04 +0000151 tbody {
152 > tr:nth-of-type(1) > th {
153 border-top-color: transparent;
154 }
155 /**
156 * Click on a row and it's highlighted.
157 */
Akronfbf3a782017-06-28 17:34:28 +0200158 /*
Nils Diewalda944fab2015-04-08 21:02:04 +0000159 outline: (2 * $border-size) solid $light-green;
160 -moz-outline-radius: $border-size;
161 outline-radius: $border-size;
162 */
Akronfbf3a782017-06-28 17:34:28 +0200163 /*
164 > tr:focus {
165 outline: none;
Nils Diewalda944fab2015-04-08 21:02:04 +0000166 background-color: $light-green;
167 border-color: $light-green;
168 td {
169 background-color: inherit;
170 color: $nearly-white;
171 border-color: $light-green;
172 }
173 }
Akronfbf3a782017-06-28 17:34:28 +0200174 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000175 }
176 tr {
177 /**
178 * The first two columns.
179 */
180 > th:nth-of-type(1),
181 > th:nth-of-type(2) {
182 position: absolute;
183 z-index: 80;
184 vertical-align: middle;
185 left: 0px;
186 @include matchinfo-head;
187 }
188 > th:nth-of-type(2) {
189 left: ($left-width / 2) + $border-size;
190 }
191 > * {
192 @include cell-info;
193 border: ($border-size / 2) solid $dark-orange;
194 }
195 }
196 tr > td {
197 background-color: $middle-orange; // $nearly-white;
198 white-space: nowrap;
199 vertical-align: top;
200 text-align: center;
201 }
202 tr:nth-child(even) > td {
203 background-color: $light-orange;
204 }
205}
206
207/**
208 * Tree view
209 */
210div.matchtree {
211 position: relative;
212 overflow-x: hidden;
213 overflow-y: visible;
214 padding: 0;
215 margin-top: 1pt;
216
217 /**
218 * Label
219 */
220 h6 {
221 display: inline;
222 font-size: inherit;
223 color: $nearly-white;
224 margin: 0;
225 padding: 0 !important;
226 float: left;
227 > span {
228 @include matchinfo-head;
229 @include cell-info;
230 display: inline-block;
231 margin: 0;
232 &:nth-of-type(2) {
Akron3bb91bc2016-12-02 16:43:17 +0100233 margin-left: $border-size;
Nils Diewalda944fab2015-04-08 21:02:04 +0000234 }
235 }
236 }
237 > div {
Akron3bb91bc2016-12-02 16:43:17 +0100238 position: unset;
239 z-index: 4;
Nils Diewalda944fab2015-04-08 21:02:04 +0000240 overflow-x: auto;
241 margin: $border-size;
242 margin-left: $left-distance;
243 margin-right: $right-match-distance;
244
245 background-color: $light-orange; // $nearly-white; // $light-orange;
Akronc56cf2d2016-11-09 22:02:38 +0100246 > ul.action.image {
Nils Diewalda944fab2015-04-08 21:02:04 +0000247 display: block;
248 position: absolute;
Akron3bb91bc2016-12-02 16:43:17 +0100249 right: 0;
250 top: 0;
Akronc56cf2d2016-11-09 22:02:38 +0100251 z-index: 20;
Akronc56cf2d2016-11-09 22:02:38 +0100252 margin: 0;
253 padding: 0;
Akron3bb91bc2016-12-02 16:43:17 +0100254 // margin-right: -1 * $right-match-distance;
Nils Diewalda944fab2015-04-08 21:02:04 +0000255 width: $right-match-distance;
Akronc56cf2d2016-11-09 22:02:38 +0100256 li {
257 cursor: pointer;
258 color: $nearly-white;
259 text-decoration: none;
260 > span {
261 @include blind;
262 }
263 border-width: 0;
264 // z-index: 8;
265 text-decoration:none;
266 text-align: center;
Akronc56cf2d2016-11-09 22:02:38 +0100267 font-style: normal;
Nils Diewalda944fab2015-04-08 21:02:04 +0000268
Akronc56cf2d2016-11-09 22:02:38 +0100269 &.download::after {
270 font-family: 'FontAwesome';
271 content: $fa-download;
272 }
273
274 &.close::after {
275 font-family: 'FontAwesome';
276 content: $fa-close;
277 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000278 }
279 }
280 }
281}
282
Nils Diewald0ec142f2015-05-05 00:29:23 +0000283div.loading {
Nils Diewald61e6ff52015-05-07 17:26:50 +0000284 background-color: transparent !important;
Nils Diewald0ec142f2015-05-05 00:29:23 +0000285 height: 16px !important;
286 width: 16px !important;
287 margin: 0 auto !important;
288 background-image: url('data:image/gif;base64,R0lGODlhEAAQAIABAP///wAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQJBAABACwAAAAAEAAQAAACKYQPobt44QyM01VW0cVNPq48Hzh2UngyGvet6OpmKWmBb5TI+LlTOlAAACH5BAkEAAEALAAAAAAQABAAAAIohA+hu3gMnXyBqnkNw1XDnHThZ32bd6LUg0SOOIJsCaPmtOJvrctHAQAh+QQJBAABACwAAAAAEAAQAAACKYQPobt44QyM01VW0cVNPq48nxZKGLkxqGiungmyCXh9nRUleSZrO10AACH5BAkEAAEALAAAAAAQABAAAAIohA8RyKwN04pSWdumufp0niHghnkPyaWmqZLsKL3QWXUrJdpo66RKAQAh+QQJBAABACwAAAAAEAAQAAACJoQPEcisDdOKUlnbrp4IH989n1iBJUhK47itxkbGsEvRtXq/8B4UACH5BAkEAAEALAAAAAAQABAAAAIphA8RyKwN04pSWdvuNPto1HEX6G1YOYrain5im0pQ/GSnTIFr7eyhUQAAIfkECQQAAQAsAAAAABAAEAAAAiqMf6ALwWoelJFS5CbESTdeNUu3jWP4IWe2qS0TsmC8cuZFsrAkWrgtKQAAIfkECQQAAQAsAAAAABAAEAAAAiiMf6AL6LwMnDFQVG9SkrveWN6XjR82Mmi4cdMTvWsjnyIV4rIOgUwBACH5BAkEAAEALAAAAAAQABAAAAImjH+gC8HrXpNTxoeuzkltrkFg6BnMiJxpaYpWV76jDFKujV14LBUAIfkEAR4AAQAsAAAAABAAEAAAAiSEDxHIrA3TilJZ266eaN/8HJixdd4nailXgafrwSUVUqltQgUAOw==');
Nils Diewald61e6ff52015-05-07 17:26:50 +0000289
Nils Diewald0ec142f2015-05-05 00:29:23 +0000290}
291
292
Nils Diewalda944fab2015-04-08 21:02:04 +0000293/**
294 * SVG tree
295 */
296path.edge {
297 stroke: $darker-orange;
298 stroke-width: 2px;
299 fill: none;
300}
301
302g.root rect.empty {
303 stroke: $darker-orange;
304 fill: $darker-orange;
305 stroke-width: 2px;
306}
307
308g.middle rect {
309 stroke: $darker-orange;
310 stroke-width: 2px;
311 fill: $middle-orange;
312}
313
Akron98a933f2016-08-11 00:19:17 +0200314g.middle.mark {
315 rect {
316 fill: $darker-orange;
317 }
318 > text {
319 fill: $light-orange;
320 > tspan {
321 stroke: $light-orange;
322 }
323 }
324}
325
326
327g.leaf.mark text > tspan {
328 font-weight: bold;
329}
330
Nils Diewalda944fab2015-04-08 21:02:04 +0000331g.leaf > rect {
332 display: none;
333}
334
Akron98a933f2016-08-11 00:19:17 +0200335g > text > tspan {
Nils Diewalda944fab2015-04-08 21:02:04 +0000336 text-anchor: middle;
337 font-size: 9pt;
338}
339
Akron98a933f2016-08-11 00:19:17 +0200340g.leaf > text > tspan {
Nils Diewalda944fab2015-04-08 21:02:04 +0000341 font-size: 10pt;
342 overflow: visible;
343}