blob: ad25a6379827cd8f31d044c8bd495e3a76759c5a [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
Akron8b592d42018-01-26 18:33:06 +0100281/**
282 * Label
283 */
284// The metatable branch was experimental
285div.matchtree { //, div.metatable {
Akronbd342982018-01-25 18:01:46 +0100286 h6 {
287 display: inline;
288 font-size: inherit;
289 color: $nearly-white;
290 margin: 0;
291 padding: 0 !important;
292 float: left;
Akron8b592d42018-01-26 18:33:06 +0100293 > span { // , > div {
Akronbd342982018-01-25 18:01:46 +0100294 @include matchinfo-head;
295 @include cell-info;
296 display: inline-block !important;
297 margin: 0;
298 &:nth-of-type(2) {
299 margin-left: $border-size;
300 }
301 }
Akron8b592d42018-01-26 18:33:06 +0100302 /*
Akronbd342982018-01-25 18:01:46 +0100303 > div {
304
305 // Override half width !
306 width: $left-width;
307 }
Akron8b592d42018-01-26 18:33:06 +0100308 */
Akronbd342982018-01-25 18:01:46 +0100309 }
310}
311
Nils Diewalda944fab2015-04-08 21:02:04 +0000312/**
313 * Tree view
314 */
315div.matchtree {
316 position: relative;
317 overflow-x: hidden;
318 overflow-y: visible;
319 padding: 0;
320 margin-top: 1pt;
321
Nils Diewalda944fab2015-04-08 21:02:04 +0000322 > div {
Akron3bb91bc2016-12-02 16:43:17 +0100323 position: unset;
324 z-index: 4;
Nils Diewalda944fab2015-04-08 21:02:04 +0000325 overflow-x: auto;
326 margin: $border-size;
327 margin-left: $left-distance;
328 margin-right: $right-match-distance;
329
330 background-color: $light-orange; // $nearly-white; // $light-orange;
Akronc56cf2d2016-11-09 22:02:38 +0100331 > ul.action.image {
Nils Diewalda944fab2015-04-08 21:02:04 +0000332 display: block;
333 position: absolute;
Akron3bb91bc2016-12-02 16:43:17 +0100334 right: 0;
335 top: 0;
Akronc56cf2d2016-11-09 22:02:38 +0100336 z-index: 20;
Akronc56cf2d2016-11-09 22:02:38 +0100337 margin: 0;
338 padding: 0;
Akron3bb91bc2016-12-02 16:43:17 +0100339 // margin-right: -1 * $right-match-distance;
Nils Diewalda944fab2015-04-08 21:02:04 +0000340 width: $right-match-distance;
Akronc56cf2d2016-11-09 22:02:38 +0100341 li {
342 cursor: pointer;
343 color: $nearly-white;
344 text-decoration: none;
345 > span {
346 @include blind;
347 }
348 border-width: 0;
349 // z-index: 8;
350 text-decoration:none;
351 text-align: center;
Akronc56cf2d2016-11-09 22:02:38 +0100352 font-style: normal;
Nils Diewalda944fab2015-04-08 21:02:04 +0000353
Akronc56cf2d2016-11-09 22:02:38 +0100354 &.download::after {
355 font-family: 'FontAwesome';
356 content: $fa-download;
357 }
358
359 &.close::after {
360 font-family: 'FontAwesome';
361 content: $fa-close;
362 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000363 }
364 }
365 }
366}
367
Akronbd342982018-01-25 18:01:46 +0100368div.metatable + div.matchtable {
Akron8b592d42018-01-26 18:33:06 +0100369 margin-top: 4 * $border-size !important;
Akronbd342982018-01-25 18:01:46 +0100370}
Akron24866cf2018-01-23 20:22:01 +0100371
Akronbd342982018-01-25 18:01:46 +0100372
373div.metatable > dl {
Akron24866cf2018-01-23 20:22:01 +0100374 display: flex;
375 flex-direction: row;
376 flex-wrap: wrap;
377 justify-content: flex-start;
378 align-items: stretch;
Akronbd342982018-01-25 18:01:46 +0100379 width: auto;
380 padding-bottom: 0;
Akron8b592d42018-01-26 18:33:06 +0100381 // margin-left: $left-distance;
Akronbd342982018-01-25 18:01:46 +0100382 margin-right: $right-match-distance;
383 margin-top: $border-size;
384
Akron24866cf2018-01-23 20:22:01 +0100385 > div {
386 display: flex;
387 flex-direction: row;
388 text-align: center;
389 width: 100%;
390 border: ($border-size / 2) solid $dark-orange;
391 align-items: stretch;
392 > * {
393 @include cell-info;
394 }
395 > dt {
396 text-align: left;
397 background: $darker-orange;
398 color: $nearly-white;
Akron04905352018-01-24 02:06:32 +0100399 width: 9em;
Akron24866cf2018-01-23 20:22:01 +0100400 margin: 0;
401 }
402 > dd {
403 text-align: left;
404 background-color: $light-orange;
405 padding: 2px;
406 margin: 0;
407 width: 100%;
Akronbd342982018-01-25 18:01:46 +0100408 max-width: none;
Akrone7679692018-01-26 12:06:33 +0100409 max-height: 6em;
Akron24866cf2018-01-23 20:22:01 +0100410 margin-left: $border-size;
Akrone7679692018-01-26 12:06:33 +0100411 white-space: normal;
412 overflow: visible;
Akron24866cf2018-01-23 20:22:01 +0100413 }
414 }
415}
416
417@media (min-width:640px) {
Akronbd342982018-01-25 18:01:46 +0100418 div.metatable > dl {
419 > div {
420 width: 50%; // 2*
421 }
Akron24866cf2018-01-23 20:22:01 +0100422 }
423}
424
425@media (min-width:800px) {
Akronbd342982018-01-25 18:01:46 +0100426 div.metatable > dl > div {
427 width: 33%; // 3*
Akron24866cf2018-01-23 20:22:01 +0100428 }
429}
430
431@media (min-width:1200px) {
Akronbd342982018-01-25 18:01:46 +0100432 div.metatable > dl > div {
433 width: 25%; // 4*
434 }
435}
436
437@media (min-width:1680px) {
438 div.metatable > dl > div {
439 width: 20%; // 5*
Akron24866cf2018-01-23 20:22:01 +0100440 }
441}
442
443
Nils Diewald0ec142f2015-05-05 00:29:23 +0000444div.loading {
Nils Diewald61e6ff52015-05-07 17:26:50 +0000445 background-color: transparent !important;
Nils Diewald0ec142f2015-05-05 00:29:23 +0000446 height: 16px !important;
447 width: 16px !important;
448 margin: 0 auto !important;
449 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 +0000450
Nils Diewald0ec142f2015-05-05 00:29:23 +0000451}
452
453