blob: 60433865edd37da84d56f4e104b8be5384d76100 [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
29div.matchinfo {
30 position: relative;
31 width: 100%;
32 padding-top: $border-size;
Akron8b592d42018-01-26 18:33:06 +010033 // background-color: $dark-orange;
Nils Diewalda944fab2015-04-08 21:02:04 +000034 height: auto;
35 font-size: 10pt;
36 text-align: left;
Akronbd342982018-01-25 18:01:46 +010037
Akron8b592d42018-01-26 18:33:06 +010038 // TODO: This may not be necessary anymore
39 // REMOVE!
40 /*
Nils Diewalda944fab2015-04-08 21:02:04 +000041 > p.addtree {
42 position: relative;
43 @include choose-item;
44 border: {
45 width: $border-size;
46 style: solid;
47 radius: $standard-border-radius;
48 }
49
50 font-size: inherit;
Nils Diewalda944fab2015-04-08 21:02:04 +000051 width: $left-width;
Akron8b592d42018-01-26 18:33:06 +010052 margin: $border-size $border-size 0 $border-size !important;
Nils Diewalda944fab2015-04-08 21:02:04 +000053 text-align: center;
54 cursor: pointer;
55 padding: 0 !important;
56
57 &:hover {
58 cursor:pointer;
59 @include choose-hover;
60 }
Akron8b592d42018-01-26 18:33:06 +010061 */
62 /*
Nils Diewalda944fab2015-04-08 21:02:04 +000063 *.menu {
64 border-top-right-radius: 8px;
65 position: absolute;
66 width: $left-width;
67 left: 0;
68 bottom: 0;
69 text-align: left;
70 margin: -1* $border-size;
71 margin-top: 0;
72 > li:first-of-type {
Akronaba7a5a2016-08-15 21:58:33 +020073 border-top-right-radius: 5px;
Nils Diewalda944fab2015-04-08 21:02:04 +000074 }
75 }
Akron8b592d42018-01-26 18:33:06 +010076}
77*/
Nils Diewald0ec142f2015-05-05 00:29:23 +000078
Akronfbf3a782017-06-28 17:34:28 +020079 p.queryfragment {
80 position:relative;
81 @include choose-item;
82 border : {
83 width: $border-size;
84 style: solid;
85 radius: $standard-border-radius;
86 }
87 padding: 2pt 4pt !important;
Akrone8ea0002017-06-28 18:51:52 +020088 margin: {
89 // left: $border-size;
90 left: $left-distance;
91 top: .5em;
92 bottom: .5em;
93 right: $right-match-distance;
94 }
Akronfbf3a782017-06-28 17:34:28 +020095 &:hover {
96 cursor:pointer;
97 @include choose-hover;
98 }
99
100 // This is the description
101 > span:first-of-type {
102 font-weight: bold;
103 padding-right: 4pt;
104 }
105
106 // Query fragment
107 > span:nth-of-type(2) {
108 padding-right: 1.2em;
109 }
110
111 &::after {
112 font-family: 'FontAwesome';
113 content: $fa-to-query;
114 position: absolute;
115 right: 4pt;
Akrone8ea0002017-06-28 18:51:52 +0200116 top: $border-size;
Akronfbf3a782017-06-28 17:34:28 +0200117 }
118 }
Akrone8ea0002017-06-28 18:51:52 +0200119}
120
Akron8b592d42018-01-26 18:33:06 +0100121div.action.bottom span.tree .menu {
122 border-top-right-radius: 8px;
123 z-index: 200;
124 position: absolute;
125 width: $left-width;
126 left: 0;
127 bottom: 0;
128 text-align: left;
129 margin: -1* $border-size;
130 margin-top: 0;
131 > li:first-of-type {
132 border-top-right-radius: 5px;
133 }
134}
135
136
Akrone8ea0002017-06-28 18:51:52 +0200137div.matchtable {
138 z-index: 20;
139 margin-left: $left-distance - ($border-size / 2);
140 margin-right: $right-match-distance;
141 padding: 0;
142 overflow-x: auto;
143 overflow-y: visible;
144 width: auto;
Akronfbf3a782017-06-28 17:34:28 +0200145
Nils Diewalda944fab2015-04-08 21:02:04 +0000146 table {
147 display: table;
148 border-collapse: separate;
149 border-spacing: 0px;
150 }
151 th {
152 color: $nearly-white;
153 }
Akronfbf3a782017-06-28 17:34:28 +0200154
155 // Use matchinfo cells for query creation
156 td,
157 tbody th,
158 thead th:not(:nth-child(1)):not(:nth-child(2)) {
159 cursor: pointer;
160 }
Akron78655d12017-06-28 18:56:57 +0200161 td:empty {
162 cursor: default;
163 }
Akronfbf3a782017-06-28 17:34:28 +0200164 tr {
165 outline: none;
Akron83b2b0e2017-07-03 15:17:38 +0200166 td.chosen,
167 th.chosen,
168 div.chosen {
Akronfbf3a782017-06-28 17:34:28 +0200169 background-color: $light-green !important;
170 color: $nearly-white;
171 // transition: color 0.1s, background-color 0.15s ease-out;
172 }
173 }
174
Nils Diewalda944fab2015-04-08 21:02:04 +0000175 thead {
176 tr th {
177 background-color: $darker-orange;
178 border-top-width: 0px !important;
Akron2495ceb2016-02-13 17:17:52 +0100179 text-align: center;
180 &:nth-of-type(1), &:nth-of-type(2) {
Akronfbf3a782017-06-28 17:34:28 +0200181 text-align: left;
Akron2495ceb2016-02-13 17:17:52 +0100182 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000183 }
184 }
Akronfbf3a782017-06-28 17:34:28 +0200185
Nils Diewalda944fab2015-04-08 21:02:04 +0000186 tbody {
187 > tr:nth-of-type(1) > th {
188 border-top-color: transparent;
189 }
190 /**
191 * Click on a row and it's highlighted.
192 */
Akronfbf3a782017-06-28 17:34:28 +0200193 /*
Nils Diewalda944fab2015-04-08 21:02:04 +0000194 outline: (2 * $border-size) solid $light-green;
195 -moz-outline-radius: $border-size;
196 outline-radius: $border-size;
197 */
Akronfbf3a782017-06-28 17:34:28 +0200198 /*
199 > tr:focus {
200 outline: none;
Nils Diewalda944fab2015-04-08 21:02:04 +0000201 background-color: $light-green;
202 border-color: $light-green;
203 td {
204 background-color: inherit;
205 color: $nearly-white;
206 border-color: $light-green;
207 }
208 }
Akronfbf3a782017-06-28 17:34:28 +0200209 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000210 }
211 tr {
212 /**
213 * The first two columns.
214 */
215 > th:nth-of-type(1),
216 > th:nth-of-type(2) {
217 position: absolute;
218 z-index: 80;
219 vertical-align: middle;
220 left: 0px;
221 @include matchinfo-head;
222 }
223 > th:nth-of-type(2) {
224 left: ($left-width / 2) + $border-size;
225 }
Akron0af14142017-06-30 14:58:27 +0200226
227 // Includes header line as well
Nils Diewalda944fab2015-04-08 21:02:04 +0000228 > * {
229 @include cell-info;
230 border: ($border-size / 2) solid $dark-orange;
231 }
232 }
233 tr > td {
234 background-color: $middle-orange; // $nearly-white;
235 white-space: nowrap;
236 vertical-align: top;
237 text-align: center;
Akronc3605872017-07-03 20:52:02 +0200238 /*
Akron83b2b0e2017-07-03 15:17:38 +0200239 div {
Akron856af1e2017-07-03 19:57:46 +0200240 background-color: $light-orange; // $nearly-white;
Akron83b2b0e2017-07-03 15:17:38 +0200241 }
Akronc3605872017-07-03 20:52:02 +0200242 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000243 }
244 tr:nth-child(even) > td {
245 background-color: $light-orange;
Akronc3605872017-07-03 20:52:02 +0200246 /*
Akron83b2b0e2017-07-03 15:17:38 +0200247 div:nth-child(even) {
Akron856af1e2017-07-03 19:57:46 +0200248 background-color: $middle-orange;
Akron83b2b0e2017-07-03 15:17:38 +0200249 }
Akronc3605872017-07-03 20:52:02 +0200250*/
Akron83b2b0e2017-07-03 15:17:38 +0200251 }
Akronc3605872017-07-03 20:52:02 +0200252 /*
Akron83b2b0e2017-07-03 15:17:38 +0200253 tr:nth-child(odd) > td > div:nth-child(odd) {
Akron856af1e2017-07-03 19:57:46 +0200254 background-color: $middle-orange;
Akron83b2b0e2017-07-03 15:17:38 +0200255 }
Akronc3605872017-07-03 20:52:02 +0200256 */
Akron83b2b0e2017-07-03 15:17:38 +0200257
258 // table for key-value pairs
259 td.matchkeyvalues {
260 padding: 0;
261 > div {
262 @include cell-info;
263 > span {
264 color: $darkest-orange;
265 text-align: right;
266 &::after {
267 content: ":"
268 }
269 padding-right: .5em;
270 }
271 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000272 }
273}
274
Akronbd342982018-01-25 18:01:46 +0100275
Akron8b592d42018-01-26 18:33:06 +0100276/**
277 * Label
278 */
279// The metatable branch was experimental
280div.matchtree { //, div.metatable {
Akronbd342982018-01-25 18:01:46 +0100281 h6 {
282 display: inline;
283 font-size: inherit;
284 color: $nearly-white;
285 margin: 0;
286 padding: 0 !important;
287 float: left;
Akron8b592d42018-01-26 18:33:06 +0100288 > span { // , > div {
Akronbd342982018-01-25 18:01:46 +0100289 @include matchinfo-head;
290 @include cell-info;
291 display: inline-block !important;
292 margin: 0;
293 &:nth-of-type(2) {
294 margin-left: $border-size;
295 }
296 }
Akron8b592d42018-01-26 18:33:06 +0100297 /*
Akronbd342982018-01-25 18:01:46 +0100298 > div {
299
300 // Override half width !
301 width: $left-width;
302 }
Akron8b592d42018-01-26 18:33:06 +0100303 */
Akronbd342982018-01-25 18:01:46 +0100304 }
305}
306
Nils Diewalda944fab2015-04-08 21:02:04 +0000307/**
308 * Tree view
309 */
310div.matchtree {
311 position: relative;
312 overflow-x: hidden;
313 overflow-y: visible;
314 padding: 0;
315 margin-top: 1pt;
316
Nils Diewalda944fab2015-04-08 21:02:04 +0000317 > div {
Akron3bb91bc2016-12-02 16:43:17 +0100318 position: unset;
319 z-index: 4;
Nils Diewalda944fab2015-04-08 21:02:04 +0000320 overflow-x: auto;
321 margin: $border-size;
322 margin-left: $left-distance;
323 margin-right: $right-match-distance;
324
325 background-color: $light-orange; // $nearly-white; // $light-orange;
Akronc56cf2d2016-11-09 22:02:38 +0100326 > ul.action.image {
Nils Diewalda944fab2015-04-08 21:02:04 +0000327 display: block;
328 position: absolute;
Akron3bb91bc2016-12-02 16:43:17 +0100329 right: 0;
330 top: 0;
Akronc56cf2d2016-11-09 22:02:38 +0100331 z-index: 20;
Akronc56cf2d2016-11-09 22:02:38 +0100332 margin: 0;
333 padding: 0;
Akron3bb91bc2016-12-02 16:43:17 +0100334 // margin-right: -1 * $right-match-distance;
Nils Diewalda944fab2015-04-08 21:02:04 +0000335 width: $right-match-distance;
Akronc56cf2d2016-11-09 22:02:38 +0100336 li {
337 cursor: pointer;
338 color: $nearly-white;
339 text-decoration: none;
340 > span {
341 @include blind;
342 }
343 border-width: 0;
344 // z-index: 8;
345 text-decoration:none;
346 text-align: center;
Akronc56cf2d2016-11-09 22:02:38 +0100347 font-style: normal;
Nils Diewalda944fab2015-04-08 21:02:04 +0000348
Akronc56cf2d2016-11-09 22:02:38 +0100349 &.download::after {
350 font-family: 'FontAwesome';
351 content: $fa-download;
352 }
353
354 &.close::after {
355 font-family: 'FontAwesome';
356 content: $fa-close;
357 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000358 }
359 }
360 }
361}
362
Akronbd342982018-01-25 18:01:46 +0100363div.metatable + div.matchtable {
Akron8b592d42018-01-26 18:33:06 +0100364 margin-top: 4 * $border-size !important;
Akronbd342982018-01-25 18:01:46 +0100365}
Akron24866cf2018-01-23 20:22:01 +0100366
Akronbd342982018-01-25 18:01:46 +0100367
368div.metatable > dl {
Akron24866cf2018-01-23 20:22:01 +0100369 display: flex;
370 flex-direction: row;
371 flex-wrap: wrap;
372 justify-content: flex-start;
373 align-items: stretch;
Akronbd342982018-01-25 18:01:46 +0100374 width: auto;
375 padding-bottom: 0;
Akron8b592d42018-01-26 18:33:06 +0100376 // margin-left: $left-distance;
Akronbd342982018-01-25 18:01:46 +0100377 margin-right: $right-match-distance;
378 margin-top: $border-size;
379
Akron24866cf2018-01-23 20:22:01 +0100380 > div {
381 display: flex;
382 flex-direction: row;
383 text-align: center;
384 width: 100%;
385 border: ($border-size / 2) solid $dark-orange;
386 align-items: stretch;
387 > * {
388 @include cell-info;
389 }
390 > dt {
391 text-align: left;
392 background: $darker-orange;
393 color: $nearly-white;
Akron04905352018-01-24 02:06:32 +0100394 width: 9em;
Akron24866cf2018-01-23 20:22:01 +0100395 margin: 0;
396 }
397 > dd {
398 text-align: left;
399 background-color: $light-orange;
400 padding: 2px;
401 margin: 0;
402 width: 100%;
Akronbd342982018-01-25 18:01:46 +0100403 max-width: none;
Akrone7679692018-01-26 12:06:33 +0100404 max-height: 6em;
Akron24866cf2018-01-23 20:22:01 +0100405 margin-left: $border-size;
Akrone7679692018-01-26 12:06:33 +0100406 white-space: normal;
407 overflow: visible;
Akron24866cf2018-01-23 20:22:01 +0100408 }
409 }
410}
411
412@media (min-width:640px) {
Akronbd342982018-01-25 18:01:46 +0100413 div.metatable > dl {
414 > div {
415 width: 50%; // 2*
416 }
Akron24866cf2018-01-23 20:22:01 +0100417 }
418}
419
420@media (min-width:800px) {
Akronbd342982018-01-25 18:01:46 +0100421 div.metatable > dl > div {
422 width: 33%; // 3*
Akron24866cf2018-01-23 20:22:01 +0100423 }
424}
425
426@media (min-width:1200px) {
Akronbd342982018-01-25 18:01:46 +0100427 div.metatable > dl > div {
428 width: 25%; // 4*
429 }
430}
431
432@media (min-width:1680px) {
433 div.metatable > dl > div {
434 width: 20%; // 5*
Akron24866cf2018-01-23 20:22:01 +0100435 }
436}
437
438
Nils Diewald0ec142f2015-05-05 00:29:23 +0000439div.loading {
Nils Diewald61e6ff52015-05-07 17:26:50 +0000440 background-color: transparent !important;
Nils Diewald0ec142f2015-05-05 00:29:23 +0000441 height: 16px !important;
442 width: 16px !important;
443 margin: 0 auto !important;
444 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 +0000445
Nils Diewald0ec142f2015-05-05 00:29:23 +0000446}
447
448