blob: 334ac744f706d9a7b1860d00ea49baf91bcc74df [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;
Akronfbf3a782017-06-28 17:34:28 +020041 p.queryfragment {
42 position:relative;
43 @include choose-item;
44 border : {
45 width: $border-size;
46 style: solid;
47 radius: $standard-border-radius;
48 }
49 padding: 2pt 4pt !important;
Akrone8ea0002017-06-28 18:51:52 +020050 margin: {
51 // left: $border-size;
52 left: $left-distance;
53 top: .5em;
54 bottom: .5em;
55 right: $right-match-distance;
56 }
Akronfbf3a782017-06-28 17:34:28 +020057 &:hover {
58 cursor:pointer;
59 @include choose-hover;
60 }
61
62 // This is the description
63 > span:first-of-type {
64 font-weight: bold;
65 padding-right: 4pt;
66 }
67
68 // Query fragment
69 > span:nth-of-type(2) {
70 padding-right: 1.2em;
71 }
72
73 &::after {
74 font-family: 'FontAwesome';
75 content: $fa-to-query;
76 position: absolute;
77 right: 4pt;
Akrone8ea0002017-06-28 18:51:52 +020078 top: $border-size;
Akronfbf3a782017-06-28 17:34:28 +020079 }
80 }
Akrone8ea0002017-06-28 18:51:52 +020081}
Akron8b592d42018-01-26 18:33:06 +010082
Akronaeceda72018-02-02 20:44:06 +010083div.matchtable > div {
Akrone8ea0002017-06-28 18:51:52 +020084 z-index: 20;
85 margin-left: $left-distance - ($border-size / 2);
86 margin-right: $right-match-distance;
87 padding: 0;
88 overflow-x: auto;
89 overflow-y: visible;
90 width: auto;
Akronfbf3a782017-06-28 17:34:28 +020091
Nils Diewalda944fab2015-04-08 21:02:04 +000092 table {
93 display: table;
94 border-collapse: separate;
95 border-spacing: 0px;
96 }
97 th {
98 color: $nearly-white;
99 }
Akronfbf3a782017-06-28 17:34:28 +0200100
101 // Use matchinfo cells for query creation
102 td,
103 tbody th,
104 thead th:not(:nth-child(1)):not(:nth-child(2)) {
105 cursor: pointer;
106 }
Akron78655d12017-06-28 18:56:57 +0200107 td:empty {
108 cursor: default;
109 }
Akronfbf3a782017-06-28 17:34:28 +0200110 tr {
111 outline: none;
Akron83b2b0e2017-07-03 15:17:38 +0200112 td.chosen,
113 th.chosen,
114 div.chosen {
Akronfbf3a782017-06-28 17:34:28 +0200115 background-color: $light-green !important;
116 color: $nearly-white;
117 // transition: color 0.1s, background-color 0.15s ease-out;
118 }
119 }
120
Nils Diewalda944fab2015-04-08 21:02:04 +0000121 thead {
122 tr th {
123 background-color: $darker-orange;
124 border-top-width: 0px !important;
Akron2495ceb2016-02-13 17:17:52 +0100125 text-align: center;
126 &:nth-of-type(1), &:nth-of-type(2) {
Akronfbf3a782017-06-28 17:34:28 +0200127 text-align: left;
Akron2495ceb2016-02-13 17:17:52 +0100128 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000129 }
130 }
Akronfbf3a782017-06-28 17:34:28 +0200131
Nils Diewalda944fab2015-04-08 21:02:04 +0000132 tbody {
133 > tr:nth-of-type(1) > th {
134 border-top-color: transparent;
135 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000136 }
137 tr {
138 /**
139 * The first two columns.
140 */
141 > th:nth-of-type(1),
142 > th:nth-of-type(2) {
143 position: absolute;
144 z-index: 80;
145 vertical-align: middle;
146 left: 0px;
147 @include matchinfo-head;
148 }
149 > th:nth-of-type(2) {
150 left: ($left-width / 2) + $border-size;
151 }
Akron0af14142017-06-30 14:58:27 +0200152
153 // Includes header line as well
Nils Diewalda944fab2015-04-08 21:02:04 +0000154 > * {
155 @include cell-info;
156 border: ($border-size / 2) solid $dark-orange;
157 }
158 }
159 tr > td {
160 background-color: $middle-orange; // $nearly-white;
161 white-space: nowrap;
162 vertical-align: top;
163 text-align: center;
Akron257aa852018-02-06 19:29:51 +0100164
Nils Diewalda944fab2015-04-08 21:02:04 +0000165 }
166 tr:nth-child(even) > td {
167 background-color: $light-orange;
Akron83b2b0e2017-07-03 15:17:38 +0200168 }
Akron83b2b0e2017-07-03 15:17:38 +0200169
170 // table for key-value pairs
171 td.matchkeyvalues {
172 padding: 0;
173 > div {
174 @include cell-info;
175 > span {
176 color: $darkest-orange;
177 text-align: right;
178 &::after {
179 content: ":"
180 }
181 padding-right: .5em;
182 }
183 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000184 }
185}
186
Akronbd342982018-01-25 18:01:46 +0100187
Akronaeceda72018-02-02 20:44:06 +0100188div.metatable, div.matchtable {
Akron41387d22018-02-02 18:10:06 +0100189 position: relative;
190}
191
Akron8b592d42018-01-26 18:33:06 +0100192/**
193 * Label
194 */
195// The metatable branch was experimental
Akron257aa852018-02-06 19:29:51 +0100196div.matchtree {
Akronbd342982018-01-25 18:01:46 +0100197 h6 {
198 display: inline;
199 font-size: inherit;
200 color: $nearly-white;
201 margin: 0;
202 padding: 0 !important;
203 float: left;
Akron8b592d42018-01-26 18:33:06 +0100204 > span { // , > div {
Akronbd342982018-01-25 18:01:46 +0100205 @include matchinfo-head;
206 @include cell-info;
207 display: inline-block !important;
208 margin: 0;
209 &:nth-of-type(2) {
210 margin-left: $border-size;
211 }
212 }
Akronbd342982018-01-25 18:01:46 +0100213 }
214}
215
Nils Diewalda944fab2015-04-08 21:02:04 +0000216/**
217 * Tree view
218 */
219div.matchtree {
220 position: relative;
221 overflow-x: hidden;
222 overflow-y: visible;
223 padding: 0;
224 margin-top: 1pt;
225
Nils Diewalda944fab2015-04-08 21:02:04 +0000226 > div {
Akron3bb91bc2016-12-02 16:43:17 +0100227 position: unset;
228 z-index: 4;
Nils Diewalda944fab2015-04-08 21:02:04 +0000229 overflow-x: auto;
230 margin: $border-size;
231 margin-left: $left-distance;
232 margin-right: $right-match-distance;
233
Akron257aa852018-02-06 19:29:51 +0100234 background-color: $light-orange;
Akron41387d22018-02-02 18:10:06 +0100235 }
236}
Nils Diewalda944fab2015-04-08 21:02:04 +0000237
Akron537bc522018-07-13 19:06:27 +0200238// TODO:
239// Probably obsolete now, as it will become part of the panel system
Akron41387d22018-02-02 18:10:06 +0100240div.matchinfo ul.action.image {
241 display: block;
242 position: absolute;
243 right: 0;
244 top: 0;
245 z-index: 20;
246 margin: 0;
247 padding: 0;
Akron41387d22018-02-02 18:10:06 +0100248 width: $right-match-distance;
249 li {
250 cursor: pointer;
251 color: $nearly-white;
252 text-decoration: none;
253 > span {
254 @include blind;
255 }
256 border-width: 0;
257 // z-index: 8;
258 text-decoration:none;
259 text-align: center;
260 font-style: normal;
261
262 &.download::after {
263 font-family: 'FontAwesome';
264 content: $fa-download;
265 }
266
267 &.close::after {
268 font-family: 'FontAwesome';
269 content: $fa-close;
Nils Diewalda944fab2015-04-08 21:02:04 +0000270 }
271 }
272}
273
Akron41387d22018-02-02 18:10:06 +0100274
275div.metatable + div.matchtable,
276div.metatable + div.matchtree {
Akron8b592d42018-01-26 18:33:06 +0100277 margin-top: 4 * $border-size !important;
Akronbd342982018-01-25 18:01:46 +0100278}
Akron24866cf2018-01-23 20:22:01 +0100279
Akronbd342982018-01-25 18:01:46 +0100280div.metatable > dl {
Akron24866cf2018-01-23 20:22:01 +0100281 display: flex;
282 flex-direction: row;
283 flex-wrap: wrap;
Akronc8eb4a12018-02-03 00:39:58 +0100284 justify-content: flex-start;
Akron24866cf2018-01-23 20:22:01 +0100285 align-items: stretch;
Akronbd342982018-01-25 18:01:46 +0100286 width: auto;
287 padding-bottom: 0;
Akronbd342982018-01-25 18:01:46 +0100288 margin-right: $right-match-distance;
289 margin-top: $border-size;
290
Akron24866cf2018-01-23 20:22:01 +0100291 > div {
292 display: flex;
293 flex-direction: row;
294 text-align: center;
295 width: 100%;
296 border: ($border-size / 2) solid $dark-orange;
297 align-items: stretch;
298 > * {
299 @include cell-info;
300 }
301 > dt {
302 text-align: left;
303 background: $darker-orange;
304 color: $nearly-white;
Akronca2c37c2018-03-06 20:18:47 +0100305 width: 12.5em;
Akron24866cf2018-01-23 20:22:01 +0100306 margin: 0;
307 }
308 > dd {
309 text-align: left;
310 background-color: $light-orange;
311 padding: 2px;
312 margin: 0;
313 width: 100%;
Akronbd342982018-01-25 18:01:46 +0100314 max-width: none;
Akrone7679692018-01-26 12:06:33 +0100315 max-height: 6em;
Akron24866cf2018-01-23 20:22:01 +0100316 margin-left: $border-size;
Akrone7679692018-01-26 12:06:33 +0100317 white-space: normal;
Akronb5d05d72018-02-12 15:09:12 +0100318 overflow-y: auto;
319 overflow-x: hidden;
320 text-overflow: ellipsis;
Akron24866cf2018-01-23 20:22:01 +0100321 }
322 }
323}
324
325@media (min-width:640px) {
Akronbd342982018-01-25 18:01:46 +0100326 div.metatable > dl {
327 > div {
328 width: 50%; // 2*
329 }
Akron24866cf2018-01-23 20:22:01 +0100330 }
331}
332
333@media (min-width:800px) {
Akronbd342982018-01-25 18:01:46 +0100334 div.metatable > dl > div {
Akronc8eb4a12018-02-03 00:39:58 +0100335 width: 33.3333333333333%; // 3*
Akron24866cf2018-01-23 20:22:01 +0100336 }
337}
338
339@media (min-width:1200px) {
Akronbd342982018-01-25 18:01:46 +0100340 div.metatable > dl > div {
341 width: 25%; // 4*
342 }
343}
344
345@media (min-width:1680px) {
346 div.metatable > dl > div {
347 width: 20%; // 5*
Akron24866cf2018-01-23 20:22:01 +0100348 }
349}
350
351
Nils Diewald0ec142f2015-05-05 00:29:23 +0000352div.loading {
Nils Diewald61e6ff52015-05-07 17:26:50 +0000353 background-color: transparent !important;
Nils Diewald0ec142f2015-05-05 00:29:23 +0000354 height: 16px !important;
355 width: 16px !important;
356 margin: 0 auto !important;
357 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 +0000358
Nils Diewald0ec142f2015-05-05 00:29:23 +0000359}
360
361