blob: dab1d8316186619726bcb667770f4c4b6da94dcf [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;
Akron0af14142017-06-30 14:58:27 +020010 white-space: nowrap;
11 max-width: 25em;
Nils Diewalda944fab2015-04-08 21:02:04 +000012 overflow: hidden;
13 padding: 1px 6px;
14 margin: 0px;
15}
16
17/**
18 * Table view
19 *
20 * The table view is complicated, as the
21 * first column has to be static.
22 */
23@mixin matchinfo-head {
24 border-width: 0px;
Nils Diewald1c546922015-04-13 01:56:19 +000025 border-top: $border-size solid $darker-orange; // #ff8000;
Nils Diewalda944fab2015-04-08 21:02:04 +000026 width: $left-width / 2;
27}
28
29div.matchinfo {
30 position: relative;
31 width: 100%;
32 padding-top: $border-size;
Nils Diewald1c546922015-04-13 01:56:19 +000033// background-color: $dark-orange;
Nils Diewalda944fab2015-04-08 21:02:04 +000034 height: auto;
35 font-size: 10pt;
36 text-align: left;
37 > p.addtree {
38 position: relative;
39 @include choose-item;
40 border: {
41 width: $border-size;
42 style: solid;
43 radius: $standard-border-radius;
44 }
45
46 font-size: inherit;
47 margin: $border-size $border-size 0 $border-size !important;
48 width: $left-width;
49 text-align: center;
50 cursor: pointer;
51 padding: 0 !important;
52
53 &:hover {
54 cursor:pointer;
55 @include choose-hover;
56 }
57
58 *.menu {
59 border-top-right-radius: 8px;
60 position: absolute;
61 width: $left-width;
62 left: 0;
63 bottom: 0;
64 text-align: left;
65 margin: -1* $border-size;
66 margin-top: 0;
67 > li:first-of-type {
Akronaba7a5a2016-08-15 21:58:33 +020068 border-top-right-radius: 5px;
Nils Diewalda944fab2015-04-08 21:02:04 +000069 }
70 }
71 }
Nils Diewald0ec142f2015-05-05 00:29:23 +000072
Akronfbf3a782017-06-28 17:34:28 +020073 p.queryfragment {
74 position:relative;
75 @include choose-item;
76 border : {
77 width: $border-size;
78 style: solid;
79 radius: $standard-border-radius;
80 }
81 padding: 2pt 4pt !important;
Akrone8ea0002017-06-28 18:51:52 +020082 margin: {
83 // left: $border-size;
84 left: $left-distance;
85 top: .5em;
86 bottom: .5em;
87 right: $right-match-distance;
88 }
Akronfbf3a782017-06-28 17:34:28 +020089 &:hover {
90 cursor:pointer;
91 @include choose-hover;
92 }
93
94 // This is the description
95 > span:first-of-type {
96 font-weight: bold;
97 padding-right: 4pt;
98 }
99
100 // Query fragment
101 > span:nth-of-type(2) {
102 padding-right: 1.2em;
103 }
104
105 &::after {
106 font-family: 'FontAwesome';
107 content: $fa-to-query;
108 position: absolute;
109 right: 4pt;
Akrone8ea0002017-06-28 18:51:52 +0200110 top: $border-size;
Akronfbf3a782017-06-28 17:34:28 +0200111 }
112 }
Akrone8ea0002017-06-28 18:51:52 +0200113}
114
115div.matchtable {
116 z-index: 20;
117 margin-left: $left-distance - ($border-size / 2);
118 margin-right: $right-match-distance;
119 padding: 0;
120 overflow-x: auto;
121 overflow-y: visible;
122 width: auto;
Akronfbf3a782017-06-28 17:34:28 +0200123
Nils Diewalda944fab2015-04-08 21:02:04 +0000124 table {
125 display: table;
126 border-collapse: separate;
127 border-spacing: 0px;
128 }
129 th {
130 color: $nearly-white;
131 }
Akronfbf3a782017-06-28 17:34:28 +0200132
133 // Use matchinfo cells for query creation
134 td,
135 tbody th,
136 thead th:not(:nth-child(1)):not(:nth-child(2)) {
137 cursor: pointer;
138 }
Akron78655d12017-06-28 18:56:57 +0200139 td:empty {
140 cursor: default;
141 }
Akronfbf3a782017-06-28 17:34:28 +0200142 tr {
143 outline: none;
Akron83b2b0e2017-07-03 15:17:38 +0200144 td.chosen,
145 th.chosen,
146 div.chosen {
Akronfbf3a782017-06-28 17:34:28 +0200147 background-color: $light-green !important;
148 color: $nearly-white;
149 // transition: color 0.1s, background-color 0.15s ease-out;
150 }
151 }
152
Nils Diewalda944fab2015-04-08 21:02:04 +0000153 thead {
154 tr th {
155 background-color: $darker-orange;
156 border-top-width: 0px !important;
Akron2495ceb2016-02-13 17:17:52 +0100157 text-align: center;
158 &:nth-of-type(1), &:nth-of-type(2) {
Akronfbf3a782017-06-28 17:34:28 +0200159 text-align: left;
Akron2495ceb2016-02-13 17:17:52 +0100160 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000161 }
162 }
Akronfbf3a782017-06-28 17:34:28 +0200163
Nils Diewalda944fab2015-04-08 21:02:04 +0000164 tbody {
165 > tr:nth-of-type(1) > th {
166 border-top-color: transparent;
167 }
168 /**
169 * Click on a row and it's highlighted.
170 */
Akronfbf3a782017-06-28 17:34:28 +0200171 /*
Nils Diewalda944fab2015-04-08 21:02:04 +0000172 outline: (2 * $border-size) solid $light-green;
173 -moz-outline-radius: $border-size;
174 outline-radius: $border-size;
175 */
Akronfbf3a782017-06-28 17:34:28 +0200176 /*
177 > tr:focus {
178 outline: none;
Nils Diewalda944fab2015-04-08 21:02:04 +0000179 background-color: $light-green;
180 border-color: $light-green;
181 td {
182 background-color: inherit;
183 color: $nearly-white;
184 border-color: $light-green;
185 }
186 }
Akronfbf3a782017-06-28 17:34:28 +0200187 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000188 }
189 tr {
190 /**
191 * The first two columns.
192 */
193 > th:nth-of-type(1),
194 > th:nth-of-type(2) {
195 position: absolute;
196 z-index: 80;
197 vertical-align: middle;
198 left: 0px;
199 @include matchinfo-head;
200 }
201 > th:nth-of-type(2) {
202 left: ($left-width / 2) + $border-size;
203 }
Akron0af14142017-06-30 14:58:27 +0200204
205 // Includes header line as well
Nils Diewalda944fab2015-04-08 21:02:04 +0000206 > * {
207 @include cell-info;
208 border: ($border-size / 2) solid $dark-orange;
209 }
210 }
211 tr > td {
212 background-color: $middle-orange; // $nearly-white;
213 white-space: nowrap;
214 vertical-align: top;
215 text-align: center;
Akron83b2b0e2017-07-03 15:17:38 +0200216 div {
Akron856af1e2017-07-03 19:57:46 +0200217 background-color: $light-orange; // $nearly-white;
Akron83b2b0e2017-07-03 15:17:38 +0200218 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000219 }
220 tr:nth-child(even) > td {
221 background-color: $light-orange;
Akron83b2b0e2017-07-03 15:17:38 +0200222 div:nth-child(even) {
Akron856af1e2017-07-03 19:57:46 +0200223 background-color: $middle-orange;
Akron83b2b0e2017-07-03 15:17:38 +0200224 }
225 }
226
227 tr:nth-child(odd) > td > div:nth-child(odd) {
Akron856af1e2017-07-03 19:57:46 +0200228 background-color: $middle-orange;
Akron83b2b0e2017-07-03 15:17:38 +0200229 }
230
231
232 // table for key-value pairs
233 td.matchkeyvalues {
234 padding: 0;
235 > div {
236 @include cell-info;
237 > span {
238 color: $darkest-orange;
239 text-align: right;
240 &::after {
241 content: ":"
242 }
243 padding-right: .5em;
244 }
245 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000246 }
247}
248
249/**
250 * Tree view
251 */
252div.matchtree {
253 position: relative;
254 overflow-x: hidden;
255 overflow-y: visible;
256 padding: 0;
257 margin-top: 1pt;
258
259 /**
260 * Label
261 */
262 h6 {
263 display: inline;
264 font-size: inherit;
265 color: $nearly-white;
266 margin: 0;
267 padding: 0 !important;
268 float: left;
269 > span {
270 @include matchinfo-head;
271 @include cell-info;
272 display: inline-block;
273 margin: 0;
274 &:nth-of-type(2) {
Akron3bb91bc2016-12-02 16:43:17 +0100275 margin-left: $border-size;
Nils Diewalda944fab2015-04-08 21:02:04 +0000276 }
277 }
278 }
279 > div {
Akron3bb91bc2016-12-02 16:43:17 +0100280 position: unset;
281 z-index: 4;
Nils Diewalda944fab2015-04-08 21:02:04 +0000282 overflow-x: auto;
283 margin: $border-size;
284 margin-left: $left-distance;
285 margin-right: $right-match-distance;
286
287 background-color: $light-orange; // $nearly-white; // $light-orange;
Akronc56cf2d2016-11-09 22:02:38 +0100288 > ul.action.image {
Nils Diewalda944fab2015-04-08 21:02:04 +0000289 display: block;
290 position: absolute;
Akron3bb91bc2016-12-02 16:43:17 +0100291 right: 0;
292 top: 0;
Akronc56cf2d2016-11-09 22:02:38 +0100293 z-index: 20;
Akronc56cf2d2016-11-09 22:02:38 +0100294 margin: 0;
295 padding: 0;
Akron3bb91bc2016-12-02 16:43:17 +0100296 // margin-right: -1 * $right-match-distance;
Nils Diewalda944fab2015-04-08 21:02:04 +0000297 width: $right-match-distance;
Akronc56cf2d2016-11-09 22:02:38 +0100298 li {
299 cursor: pointer;
300 color: $nearly-white;
301 text-decoration: none;
302 > span {
303 @include blind;
304 }
305 border-width: 0;
306 // z-index: 8;
307 text-decoration:none;
308 text-align: center;
Akronc56cf2d2016-11-09 22:02:38 +0100309 font-style: normal;
Nils Diewalda944fab2015-04-08 21:02:04 +0000310
Akronc56cf2d2016-11-09 22:02:38 +0100311 &.download::after {
312 font-family: 'FontAwesome';
313 content: $fa-download;
314 }
315
316 &.close::after {
317 font-family: 'FontAwesome';
318 content: $fa-close;
319 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000320 }
321 }
322 }
323}
324
Nils Diewald0ec142f2015-05-05 00:29:23 +0000325div.loading {
Nils Diewald61e6ff52015-05-07 17:26:50 +0000326 background-color: transparent !important;
Nils Diewald0ec142f2015-05-05 00:29:23 +0000327 height: 16px !important;
328 width: 16px !important;
329 margin: 0 auto !important;
330 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 +0000331
Nils Diewald0ec142f2015-05-05 00:29:23 +0000332}
333
334
Nils Diewalda944fab2015-04-08 21:02:04 +0000335/**
336 * SVG tree
337 */
338path.edge {
339 stroke: $darker-orange;
340 stroke-width: 2px;
341 fill: none;
342}
343
344g.root rect.empty {
345 stroke: $darker-orange;
346 fill: $darker-orange;
347 stroke-width: 2px;
348}
349
350g.middle rect {
351 stroke: $darker-orange;
352 stroke-width: 2px;
353 fill: $middle-orange;
354}
355
Akron98a933f2016-08-11 00:19:17 +0200356g.middle.mark {
357 rect {
358 fill: $darker-orange;
359 }
360 > text {
361 fill: $light-orange;
362 > tspan {
363 stroke: $light-orange;
364 }
365 }
366}
367
368
369g.leaf.mark text > tspan {
370 font-weight: bold;
371}
372
Nils Diewalda944fab2015-04-08 21:02:04 +0000373g.leaf > rect {
374 display: none;
375}
376
Akron98a933f2016-08-11 00:19:17 +0200377g > text > tspan {
Nils Diewalda944fab2015-04-08 21:02:04 +0000378 text-anchor: middle;
379 font-size: 9pt;
380}
381
Akron98a933f2016-08-11 00:19:17 +0200382g.leaf > text > tspan {
Nils Diewalda944fab2015-04-08 21:02:04 +0000383 font-size: 10pt;
384 overflow: visible;
385}