blob: 3709b59e0006c07d05d5a143536e45d2c1d69bb9 [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 {
Akronbd342982018-01-25 18:01:46 +010024 // 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
Akroneaba63e2018-01-26 19:49:30 +010029div.matchinfo:empty {
30 display: none !important;
31}
32
Nils Diewalda944fab2015-04-08 21:02:04 +000033div.matchinfo {
34 position: relative;
35 width: 100%;
36 padding-top: $border-size;
Akron8b592d42018-01-26 18:33:06 +010037 // background-color: $dark-orange;
Nils Diewalda944fab2015-04-08 21:02:04 +000038 height: auto;
39 font-size: 10pt;
40 text-align: left;
Akronbd342982018-01-25 18:01:46 +010041
Akron8b592d42018-01-26 18:33:06 +010042 // TODO: This may not be necessary anymore
43 // REMOVE!
44 /*
Nils Diewalda944fab2015-04-08 21:02:04 +000045 > p.addtree {
46 position: relative;
47 @include choose-item;
48 border: {
49 width: $border-size;
50 style: solid;
51 radius: $standard-border-radius;
52 }
53
54 font-size: inherit;
Nils Diewalda944fab2015-04-08 21:02:04 +000055 width: $left-width;
Akron8b592d42018-01-26 18:33:06 +010056 margin: $border-size $border-size 0 $border-size !important;
Nils Diewalda944fab2015-04-08 21:02:04 +000057 text-align: center;
58 cursor: pointer;
59 padding: 0 !important;
60
61 &:hover {
62 cursor:pointer;
63 @include choose-hover;
64 }
Akron8b592d42018-01-26 18:33:06 +010065 */
66 /*
Nils Diewalda944fab2015-04-08 21:02:04 +000067 *.menu {
68 border-top-right-radius: 8px;
69 position: absolute;
70 width: $left-width;
71 left: 0;
72 bottom: 0;
73 text-align: left;
74 margin: -1* $border-size;
75 margin-top: 0;
76 > li:first-of-type {
Akronaba7a5a2016-08-15 21:58:33 +020077 border-top-right-radius: 5px;
Nils Diewalda944fab2015-04-08 21:02:04 +000078 }
79 }
Akron8b592d42018-01-26 18:33:06 +010080}
81*/
Nils Diewald0ec142f2015-05-05 00:29:23 +000082
Akronfbf3a782017-06-28 17:34:28 +020083 p.queryfragment {
84 position:relative;
85 @include choose-item;
86 border : {
87 width: $border-size;
88 style: solid;
89 radius: $standard-border-radius;
90 }
91 padding: 2pt 4pt !important;
Akrone8ea0002017-06-28 18:51:52 +020092 margin: {
93 // left: $border-size;
94 left: $left-distance;
95 top: .5em;
96 bottom: .5em;
97 right: $right-match-distance;
98 }
Akronfbf3a782017-06-28 17:34:28 +020099 &:hover {
100 cursor:pointer;
101 @include choose-hover;
102 }
103
104 // This is the description
105 > span:first-of-type {
106 font-weight: bold;
107 padding-right: 4pt;
108 }
109
110 // Query fragment
111 > span:nth-of-type(2) {
112 padding-right: 1.2em;
113 }
114
115 &::after {
116 font-family: 'FontAwesome';
117 content: $fa-to-query;
118 position: absolute;
119 right: 4pt;
Akrone8ea0002017-06-28 18:51:52 +0200120 top: $border-size;
Akronfbf3a782017-06-28 17:34:28 +0200121 }
122 }
Akrone8ea0002017-06-28 18:51:52 +0200123}
124
Akroneaba63e2018-01-26 19:49:30 +0100125ul#treeMenu {
Akron8b592d42018-01-26 18:33:06 +0100126 border-top-right-radius: 8px;
127 z-index: 200;
Akroneaba63e2018-01-26 19:49:30 +0100128 font-size: 10pt;
129 position: fixed;
130 // width: $left-width;
Akron8b592d42018-01-26 18:33:06 +0100131 left: 0;
Akroneaba63e2018-01-26 19:49:30 +0100132 // bottom: 0;
Akron8b592d42018-01-26 18:33:06 +0100133 text-align: left;
134 margin: -1* $border-size;
135 margin-top: 0;
136 > li:first-of-type {
137 border-top-right-radius: 5px;
138 }
139}
140
141
Akrone8ea0002017-06-28 18:51:52 +0200142div.matchtable {
143 z-index: 20;
144 margin-left: $left-distance - ($border-size / 2);
145 margin-right: $right-match-distance;
146 padding: 0;
147 overflow-x: auto;
148 overflow-y: visible;
149 width: auto;
Akronfbf3a782017-06-28 17:34:28 +0200150
Nils Diewalda944fab2015-04-08 21:02:04 +0000151 table {
152 display: table;
153 border-collapse: separate;
154 border-spacing: 0px;
155 }
156 th {
157 color: $nearly-white;
158 }
Akronfbf3a782017-06-28 17:34:28 +0200159
160 // Use matchinfo cells for query creation
161 td,
162 tbody th,
163 thead th:not(:nth-child(1)):not(:nth-child(2)) {
164 cursor: pointer;
165 }
Akron78655d12017-06-28 18:56:57 +0200166 td:empty {
167 cursor: default;
168 }
Akronfbf3a782017-06-28 17:34:28 +0200169 tr {
170 outline: none;
Akron83b2b0e2017-07-03 15:17:38 +0200171 td.chosen,
172 th.chosen,
173 div.chosen {
Akronfbf3a782017-06-28 17:34:28 +0200174 background-color: $light-green !important;
175 color: $nearly-white;
176 // transition: color 0.1s, background-color 0.15s ease-out;
177 }
178 }
179
Nils Diewalda944fab2015-04-08 21:02:04 +0000180 thead {
181 tr th {
182 background-color: $darker-orange;
183 border-top-width: 0px !important;
Akron2495ceb2016-02-13 17:17:52 +0100184 text-align: center;
185 &:nth-of-type(1), &:nth-of-type(2) {
Akronfbf3a782017-06-28 17:34:28 +0200186 text-align: left;
Akron2495ceb2016-02-13 17:17:52 +0100187 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000188 }
189 }
Akronfbf3a782017-06-28 17:34:28 +0200190
Nils Diewalda944fab2015-04-08 21:02:04 +0000191 tbody {
192 > tr:nth-of-type(1) > th {
193 border-top-color: transparent;
194 }
195 /**
196 * Click on a row and it's highlighted.
197 */
Akronfbf3a782017-06-28 17:34:28 +0200198 /*
Nils Diewalda944fab2015-04-08 21:02:04 +0000199 outline: (2 * $border-size) solid $light-green;
200 -moz-outline-radius: $border-size;
201 outline-radius: $border-size;
202 */
Akronfbf3a782017-06-28 17:34:28 +0200203 /*
204 > tr:focus {
205 outline: none;
Nils Diewalda944fab2015-04-08 21:02:04 +0000206 background-color: $light-green;
207 border-color: $light-green;
208 td {
209 background-color: inherit;
210 color: $nearly-white;
211 border-color: $light-green;
212 }
213 }
Akronfbf3a782017-06-28 17:34:28 +0200214 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000215 }
216 tr {
217 /**
218 * The first two columns.
219 */
220 > th:nth-of-type(1),
221 > th:nth-of-type(2) {
222 position: absolute;
223 z-index: 80;
224 vertical-align: middle;
225 left: 0px;
226 @include matchinfo-head;
227 }
228 > th:nth-of-type(2) {
229 left: ($left-width / 2) + $border-size;
230 }
Akron0af14142017-06-30 14:58:27 +0200231
232 // Includes header line as well
Nils Diewalda944fab2015-04-08 21:02:04 +0000233 > * {
234 @include cell-info;
235 border: ($border-size / 2) solid $dark-orange;
236 }
237 }
238 tr > td {
239 background-color: $middle-orange; // $nearly-white;
240 white-space: nowrap;
241 vertical-align: top;
242 text-align: center;
Akronc3605872017-07-03 20:52:02 +0200243 /*
Akron83b2b0e2017-07-03 15:17:38 +0200244 div {
Akron856af1e2017-07-03 19:57:46 +0200245 background-color: $light-orange; // $nearly-white;
Akron83b2b0e2017-07-03 15:17:38 +0200246 }
Akronc3605872017-07-03 20:52:02 +0200247 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000248 }
249 tr:nth-child(even) > td {
250 background-color: $light-orange;
Akronc3605872017-07-03 20:52:02 +0200251 /*
Akron83b2b0e2017-07-03 15:17:38 +0200252 div:nth-child(even) {
Akron856af1e2017-07-03 19:57:46 +0200253 background-color: $middle-orange;
Akron83b2b0e2017-07-03 15:17:38 +0200254 }
Akronc3605872017-07-03 20:52:02 +0200255*/
Akron83b2b0e2017-07-03 15:17:38 +0200256 }
Akronc3605872017-07-03 20:52:02 +0200257 /*
Akron83b2b0e2017-07-03 15:17:38 +0200258 tr:nth-child(odd) > td > div:nth-child(odd) {
Akron856af1e2017-07-03 19:57:46 +0200259 background-color: $middle-orange;
Akron83b2b0e2017-07-03 15:17:38 +0200260 }
Akronc3605872017-07-03 20:52:02 +0200261 */
Akron83b2b0e2017-07-03 15:17:38 +0200262
263 // table for key-value pairs
264 td.matchkeyvalues {
265 padding: 0;
266 > div {
267 @include cell-info;
268 > span {
269 color: $darkest-orange;
270 text-align: right;
271 &::after {
272 content: ":"
273 }
274 padding-right: .5em;
275 }
276 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000277 }
278}
279
Akronbd342982018-01-25 18:01:46 +0100280
Akron41387d22018-02-02 18:10:06 +0100281div.metatable {
282 position: relative;
283}
284
Akron8b592d42018-01-26 18:33:06 +0100285/**
286 * Label
287 */
288// The metatable branch was experimental
289div.matchtree { //, div.metatable {
Akronbd342982018-01-25 18:01:46 +0100290 h6 {
291 display: inline;
292 font-size: inherit;
293 color: $nearly-white;
294 margin: 0;
295 padding: 0 !important;
296 float: left;
Akron8b592d42018-01-26 18:33:06 +0100297 > span { // , > div {
Akronbd342982018-01-25 18:01:46 +0100298 @include matchinfo-head;
299 @include cell-info;
300 display: inline-block !important;
301 margin: 0;
302 &:nth-of-type(2) {
303 margin-left: $border-size;
304 }
305 }
Akron8b592d42018-01-26 18:33:06 +0100306 /*
Akronbd342982018-01-25 18:01:46 +0100307 > div {
308
309 // Override half width !
310 width: $left-width;
311 }
Akron8b592d42018-01-26 18:33:06 +0100312 */
Akronbd342982018-01-25 18:01:46 +0100313 }
314}
315
Nils Diewalda944fab2015-04-08 21:02:04 +0000316/**
317 * Tree view
318 */
319div.matchtree {
320 position: relative;
321 overflow-x: hidden;
322 overflow-y: visible;
323 padding: 0;
324 margin-top: 1pt;
325
Nils Diewalda944fab2015-04-08 21:02:04 +0000326 > div {
Akron3bb91bc2016-12-02 16:43:17 +0100327 position: unset;
328 z-index: 4;
Nils Diewalda944fab2015-04-08 21:02:04 +0000329 overflow-x: auto;
330 margin: $border-size;
331 margin-left: $left-distance;
332 margin-right: $right-match-distance;
333
334 background-color: $light-orange; // $nearly-white; // $light-orange;
Akron41387d22018-02-02 18:10:06 +0100335 }
336}
Nils Diewalda944fab2015-04-08 21:02:04 +0000337
Akron41387d22018-02-02 18:10:06 +0100338div.matchinfo ul.action.image {
339 display: block;
340 position: absolute;
341 right: 0;
342 top: 0;
343 z-index: 20;
344 margin: 0;
345 padding: 0;
346 // margin-right: -1 * $right-match-distance;
347 width: $right-match-distance;
348 li {
349 cursor: pointer;
350 color: $nearly-white;
351 text-decoration: none;
352 > span {
353 @include blind;
354 }
355 border-width: 0;
356 // z-index: 8;
357 text-decoration:none;
358 text-align: center;
359 font-style: normal;
360
361 &.download::after {
362 font-family: 'FontAwesome';
363 content: $fa-download;
364 }
365
366 &.close::after {
367 font-family: 'FontAwesome';
368 content: $fa-close;
Nils Diewalda944fab2015-04-08 21:02:04 +0000369 }
370 }
371}
372
Akron41387d22018-02-02 18:10:06 +0100373
374div.metatable + div.matchtable,
375div.metatable + div.matchtree {
Akron8b592d42018-01-26 18:33:06 +0100376 margin-top: 4 * $border-size !important;
Akronbd342982018-01-25 18:01:46 +0100377}
Akron24866cf2018-01-23 20:22:01 +0100378
Akronbd342982018-01-25 18:01:46 +0100379div.metatable > dl {
Akron24866cf2018-01-23 20:22:01 +0100380 display: flex;
381 flex-direction: row;
382 flex-wrap: wrap;
Akron151bc872018-02-02 14:04:15 +0100383 justify-content: space-between;
Akron24866cf2018-01-23 20:22:01 +0100384 align-items: stretch;
Akronbd342982018-01-25 18:01:46 +0100385 width: auto;
386 padding-bottom: 0;
Akron8b592d42018-01-26 18:33:06 +0100387 // margin-left: $left-distance;
Akronbd342982018-01-25 18:01:46 +0100388 margin-right: $right-match-distance;
389 margin-top: $border-size;
390
Akron24866cf2018-01-23 20:22:01 +0100391 > div {
392 display: flex;
393 flex-direction: row;
394 text-align: center;
395 width: 100%;
396 border: ($border-size / 2) solid $dark-orange;
397 align-items: stretch;
398 > * {
399 @include cell-info;
400 }
401 > dt {
402 text-align: left;
403 background: $darker-orange;
404 color: $nearly-white;
Akron04905352018-01-24 02:06:32 +0100405 width: 9em;
Akron24866cf2018-01-23 20:22:01 +0100406 margin: 0;
407 }
408 > dd {
409 text-align: left;
410 background-color: $light-orange;
411 padding: 2px;
412 margin: 0;
413 width: 100%;
Akronbd342982018-01-25 18:01:46 +0100414 max-width: none;
Akrone7679692018-01-26 12:06:33 +0100415 max-height: 6em;
Akron24866cf2018-01-23 20:22:01 +0100416 margin-left: $border-size;
Akrone7679692018-01-26 12:06:33 +0100417 white-space: normal;
418 overflow: visible;
Akron24866cf2018-01-23 20:22:01 +0100419 }
420 }
421}
422
423@media (min-width:640px) {
Akronbd342982018-01-25 18:01:46 +0100424 div.metatable > dl {
425 > div {
426 width: 50%; // 2*
427 }
Akron24866cf2018-01-23 20:22:01 +0100428 }
429}
430
431@media (min-width:800px) {
Akronbd342982018-01-25 18:01:46 +0100432 div.metatable > dl > div {
433 width: 33%; // 3*
Akron24866cf2018-01-23 20:22:01 +0100434 }
435}
436
437@media (min-width:1200px) {
Akronbd342982018-01-25 18:01:46 +0100438 div.metatable > dl > div {
439 width: 25%; // 4*
440 }
441}
442
443@media (min-width:1680px) {
444 div.metatable > dl > div {
445 width: 20%; // 5*
Akron24866cf2018-01-23 20:22:01 +0100446 }
447}
448
449
Nils Diewald0ec142f2015-05-05 00:29:23 +0000450div.loading {
Nils Diewald61e6ff52015-05-07 17:26:50 +0000451 background-color: transparent !important;
Nils Diewald0ec142f2015-05-05 00:29:23 +0000452 height: 16px !important;
453 width: 16px !important;
454 margin: 0 auto !important;
455 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 +0000456
Nils Diewald0ec142f2015-05-05 00:29:23 +0000457}
458
459