blob: 0062131064a67aaf580af28ffce2e77ac425bdf9 [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;
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;
Akronbd342982018-01-25 18:01:46 +010037
Nils Diewalda944fab2015-04-08 21:02:04 +000038 > p.addtree {
39 position: relative;
40 @include choose-item;
41 border: {
42 width: $border-size;
43 style: solid;
44 radius: $standard-border-radius;
45 }
46
47 font-size: inherit;
48 margin: $border-size $border-size 0 $border-size !important;
49 width: $left-width;
50 text-align: center;
51 cursor: pointer;
52 padding: 0 !important;
53
54 &:hover {
55 cursor:pointer;
56 @include choose-hover;
57 }
58
59 *.menu {
60 border-top-right-radius: 8px;
61 position: absolute;
62 width: $left-width;
63 left: 0;
64 bottom: 0;
65 text-align: left;
66 margin: -1* $border-size;
67 margin-top: 0;
68 > li:first-of-type {
Akronaba7a5a2016-08-15 21:58:33 +020069 border-top-right-radius: 5px;
Nils Diewalda944fab2015-04-08 21:02:04 +000070 }
71 }
72 }
Nils Diewald0ec142f2015-05-05 00:29:23 +000073
Akronfbf3a782017-06-28 17:34:28 +020074 p.queryfragment {
75 position:relative;
76 @include choose-item;
77 border : {
78 width: $border-size;
79 style: solid;
80 radius: $standard-border-radius;
81 }
82 padding: 2pt 4pt !important;
Akrone8ea0002017-06-28 18:51:52 +020083 margin: {
84 // left: $border-size;
85 left: $left-distance;
86 top: .5em;
87 bottom: .5em;
88 right: $right-match-distance;
89 }
Akronfbf3a782017-06-28 17:34:28 +020090 &: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;
Akrone8ea0002017-06-28 18:51:52 +0200111 top: $border-size;
Akronfbf3a782017-06-28 17:34:28 +0200112 }
113 }
Akrone8ea0002017-06-28 18:51:52 +0200114}
115
116div.matchtable {
117 z-index: 20;
118 margin-left: $left-distance - ($border-size / 2);
119 margin-right: $right-match-distance;
120 padding: 0;
121 overflow-x: auto;
122 overflow-y: visible;
123 width: auto;
Akronfbf3a782017-06-28 17:34:28 +0200124
Nils Diewalda944fab2015-04-08 21:02:04 +0000125 table {
126 display: table;
127 border-collapse: separate;
128 border-spacing: 0px;
129 }
130 th {
131 color: $nearly-white;
132 }
Akronfbf3a782017-06-28 17:34:28 +0200133
134 // Use matchinfo cells for query creation
135 td,
136 tbody th,
137 thead th:not(:nth-child(1)):not(:nth-child(2)) {
138 cursor: pointer;
139 }
Akron78655d12017-06-28 18:56:57 +0200140 td:empty {
141 cursor: default;
142 }
Akronfbf3a782017-06-28 17:34:28 +0200143 tr {
144 outline: none;
Akron83b2b0e2017-07-03 15:17:38 +0200145 td.chosen,
146 th.chosen,
147 div.chosen {
Akronfbf3a782017-06-28 17:34:28 +0200148 background-color: $light-green !important;
149 color: $nearly-white;
150 // transition: color 0.1s, background-color 0.15s ease-out;
151 }
152 }
153
Nils Diewalda944fab2015-04-08 21:02:04 +0000154 thead {
155 tr th {
156 background-color: $darker-orange;
157 border-top-width: 0px !important;
Akron2495ceb2016-02-13 17:17:52 +0100158 text-align: center;
159 &:nth-of-type(1), &:nth-of-type(2) {
Akronfbf3a782017-06-28 17:34:28 +0200160 text-align: left;
Akron2495ceb2016-02-13 17:17:52 +0100161 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000162 }
163 }
Akronfbf3a782017-06-28 17:34:28 +0200164
Nils Diewalda944fab2015-04-08 21:02:04 +0000165 tbody {
166 > tr:nth-of-type(1) > th {
167 border-top-color: transparent;
168 }
169 /**
170 * Click on a row and it's highlighted.
171 */
Akronfbf3a782017-06-28 17:34:28 +0200172 /*
Nils Diewalda944fab2015-04-08 21:02:04 +0000173 outline: (2 * $border-size) solid $light-green;
174 -moz-outline-radius: $border-size;
175 outline-radius: $border-size;
176 */
Akronfbf3a782017-06-28 17:34:28 +0200177 /*
178 > tr:focus {
179 outline: none;
Nils Diewalda944fab2015-04-08 21:02:04 +0000180 background-color: $light-green;
181 border-color: $light-green;
182 td {
183 background-color: inherit;
184 color: $nearly-white;
185 border-color: $light-green;
186 }
187 }
Akronfbf3a782017-06-28 17:34:28 +0200188 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000189 }
190 tr {
191 /**
192 * The first two columns.
193 */
194 > th:nth-of-type(1),
195 > th:nth-of-type(2) {
196 position: absolute;
197 z-index: 80;
198 vertical-align: middle;
199 left: 0px;
200 @include matchinfo-head;
201 }
202 > th:nth-of-type(2) {
203 left: ($left-width / 2) + $border-size;
204 }
Akron0af14142017-06-30 14:58:27 +0200205
206 // Includes header line as well
Nils Diewalda944fab2015-04-08 21:02:04 +0000207 > * {
208 @include cell-info;
209 border: ($border-size / 2) solid $dark-orange;
210 }
211 }
212 tr > td {
213 background-color: $middle-orange; // $nearly-white;
214 white-space: nowrap;
215 vertical-align: top;
216 text-align: center;
Akronc3605872017-07-03 20:52:02 +0200217 /*
Akron83b2b0e2017-07-03 15:17:38 +0200218 div {
Akron856af1e2017-07-03 19:57:46 +0200219 background-color: $light-orange; // $nearly-white;
Akron83b2b0e2017-07-03 15:17:38 +0200220 }
Akronc3605872017-07-03 20:52:02 +0200221 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000222 }
223 tr:nth-child(even) > td {
224 background-color: $light-orange;
Akronc3605872017-07-03 20:52:02 +0200225 /*
Akron83b2b0e2017-07-03 15:17:38 +0200226 div:nth-child(even) {
Akron856af1e2017-07-03 19:57:46 +0200227 background-color: $middle-orange;
Akron83b2b0e2017-07-03 15:17:38 +0200228 }
Akronc3605872017-07-03 20:52:02 +0200229*/
Akron83b2b0e2017-07-03 15:17:38 +0200230 }
Akronc3605872017-07-03 20:52:02 +0200231 /*
Akron83b2b0e2017-07-03 15:17:38 +0200232 tr:nth-child(odd) > td > div:nth-child(odd) {
Akron856af1e2017-07-03 19:57:46 +0200233 background-color: $middle-orange;
Akron83b2b0e2017-07-03 15:17:38 +0200234 }
Akronc3605872017-07-03 20:52:02 +0200235 */
Akron83b2b0e2017-07-03 15:17:38 +0200236
237 // table for key-value pairs
238 td.matchkeyvalues {
239 padding: 0;
240 > div {
241 @include cell-info;
242 > span {
243 color: $darkest-orange;
244 text-align: right;
245 &::after {
246 content: ":"
247 }
248 padding-right: .5em;
249 }
250 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000251 }
252}
253
Akronbd342982018-01-25 18:01:46 +0100254
255 /**
256 * Label
257 */
258div.matchtree, div.metatable {
259 h6 {
260 display: inline;
261 font-size: inherit;
262 color: $nearly-white;
263 margin: 0;
264 padding: 0 !important;
265 float: left;
266 > span, > div {
267 @include matchinfo-head;
268 @include cell-info;
269 display: inline-block !important;
270 margin: 0;
271 &:nth-of-type(2) {
272 margin-left: $border-size;
273 }
274 }
275 > div {
276
277 // Override half width !
278 width: $left-width;
279 }
280 }
281}
282
Nils Diewalda944fab2015-04-08 21:02:04 +0000283/**
284 * Tree view
285 */
286div.matchtree {
287 position: relative;
288 overflow-x: hidden;
289 overflow-y: visible;
290 padding: 0;
291 margin-top: 1pt;
292
Nils Diewalda944fab2015-04-08 21:02:04 +0000293 > div {
Akron3bb91bc2016-12-02 16:43:17 +0100294 position: unset;
295 z-index: 4;
Nils Diewalda944fab2015-04-08 21:02:04 +0000296 overflow-x: auto;
297 margin: $border-size;
298 margin-left: $left-distance;
299 margin-right: $right-match-distance;
300
301 background-color: $light-orange; // $nearly-white; // $light-orange;
Akronc56cf2d2016-11-09 22:02:38 +0100302 > ul.action.image {
Nils Diewalda944fab2015-04-08 21:02:04 +0000303 display: block;
304 position: absolute;
Akron3bb91bc2016-12-02 16:43:17 +0100305 right: 0;
306 top: 0;
Akronc56cf2d2016-11-09 22:02:38 +0100307 z-index: 20;
Akronc56cf2d2016-11-09 22:02:38 +0100308 margin: 0;
309 padding: 0;
Akron3bb91bc2016-12-02 16:43:17 +0100310 // margin-right: -1 * $right-match-distance;
Nils Diewalda944fab2015-04-08 21:02:04 +0000311 width: $right-match-distance;
Akronc56cf2d2016-11-09 22:02:38 +0100312 li {
313 cursor: pointer;
314 color: $nearly-white;
315 text-decoration: none;
316 > span {
317 @include blind;
318 }
319 border-width: 0;
320 // z-index: 8;
321 text-decoration:none;
322 text-align: center;
Akronc56cf2d2016-11-09 22:02:38 +0100323 font-style: normal;
Nils Diewalda944fab2015-04-08 21:02:04 +0000324
Akronc56cf2d2016-11-09 22:02:38 +0100325 &.download::after {
326 font-family: 'FontAwesome';
327 content: $fa-download;
328 }
329
330 &.close::after {
331 font-family: 'FontAwesome';
332 content: $fa-close;
333 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000334 }
335 }
336 }
337}
338
Akronbd342982018-01-25 18:01:46 +0100339div.metatable + div.matchtable {
340 /*
341 padding-top: 5 * $border-size;
342 border-top: $border-size solid $middle-orange;
343 */
344 margin-top: 5 * $border-size;
345}
Akron24866cf2018-01-23 20:22:01 +0100346
Akronbd342982018-01-25 18:01:46 +0100347
348div.metatable > dl {
Akron24866cf2018-01-23 20:22:01 +0100349 display: flex;
350 flex-direction: row;
351 flex-wrap: wrap;
352 justify-content: flex-start;
353 align-items: stretch;
Akronbd342982018-01-25 18:01:46 +0100354 width: auto;
355 padding-bottom: 0;
356 margin-left: $left-distance;
357 margin-right: $right-match-distance;
358 margin-top: $border-size;
359
Akron24866cf2018-01-23 20:22:01 +0100360 > div {
361 display: flex;
362 flex-direction: row;
363 text-align: center;
364 width: 100%;
365 border: ($border-size / 2) solid $dark-orange;
366 align-items: stretch;
367 > * {
368 @include cell-info;
369 }
370 > dt {
371 text-align: left;
372 background: $darker-orange;
373 color: $nearly-white;
Akron04905352018-01-24 02:06:32 +0100374 width: 9em;
Akron24866cf2018-01-23 20:22:01 +0100375 margin: 0;
376 }
377 > dd {
378 text-align: left;
379 background-color: $light-orange;
380 padding: 2px;
381 margin: 0;
382 width: 100%;
Akronbd342982018-01-25 18:01:46 +0100383 max-width: none;
Akron24866cf2018-01-23 20:22:01 +0100384 margin-left: $border-size;
385 // padding-left: 2 * $border-size;
386 }
387 }
388}
389
390@media (min-width:640px) {
Akronbd342982018-01-25 18:01:46 +0100391 div.metatable > dl {
392 > div {
393 width: 50%; // 2*
394 }
Akron24866cf2018-01-23 20:22:01 +0100395 }
396}
397
398@media (min-width:800px) {
Akronbd342982018-01-25 18:01:46 +0100399 div.metatable > dl > div {
400 width: 33%; // 3*
Akron24866cf2018-01-23 20:22:01 +0100401 }
402}
403
404@media (min-width:1200px) {
Akronbd342982018-01-25 18:01:46 +0100405 div.metatable > dl > div {
406 width: 25%; // 4*
407 }
408}
409
410@media (min-width:1680px) {
411 div.metatable > dl > div {
412 width: 20%; // 5*
Akron24866cf2018-01-23 20:22:01 +0100413 }
414}
415
416
Nils Diewald0ec142f2015-05-05 00:29:23 +0000417div.loading {
Nils Diewald61e6ff52015-05-07 17:26:50 +0000418 background-color: transparent !important;
Nils Diewald0ec142f2015-05-05 00:29:23 +0000419 height: 16px !important;
420 width: 16px !important;
421 margin: 0 auto !important;
422 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 +0000423
Nils Diewald0ec142f2015-05-05 00:29:23 +0000424}
425
426