blob: 3abe31907ef33362588cc76151ec7175ada38d3d [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}
82
Akroneaba63e2018-01-26 19:49:30 +010083ul#treeMenu {
Akron8b592d42018-01-26 18:33:06 +010084 border-top-right-radius: 8px;
85 z-index: 200;
Akroneaba63e2018-01-26 19:49:30 +010086 font-size: 10pt;
87 position: fixed;
88 // width: $left-width;
Akron8b592d42018-01-26 18:33:06 +010089 left: 0;
Akroneaba63e2018-01-26 19:49:30 +010090 // bottom: 0;
Akron8b592d42018-01-26 18:33:06 +010091 text-align: left;
92 margin: -1* $border-size;
93 margin-top: 0;
94 > li:first-of-type {
95 border-top-right-radius: 5px;
96 }
97}
98
99
Akronaeceda72018-02-02 20:44:06 +0100100div.matchtable > div {
Akrone8ea0002017-06-28 18:51:52 +0200101 z-index: 20;
102 margin-left: $left-distance - ($border-size / 2);
103 margin-right: $right-match-distance;
104 padding: 0;
105 overflow-x: auto;
106 overflow-y: visible;
107 width: auto;
Akronfbf3a782017-06-28 17:34:28 +0200108
Nils Diewalda944fab2015-04-08 21:02:04 +0000109 table {
110 display: table;
111 border-collapse: separate;
112 border-spacing: 0px;
113 }
114 th {
115 color: $nearly-white;
116 }
Akronfbf3a782017-06-28 17:34:28 +0200117
118 // Use matchinfo cells for query creation
119 td,
120 tbody th,
121 thead th:not(:nth-child(1)):not(:nth-child(2)) {
122 cursor: pointer;
123 }
Akron78655d12017-06-28 18:56:57 +0200124 td:empty {
125 cursor: default;
126 }
Akronfbf3a782017-06-28 17:34:28 +0200127 tr {
128 outline: none;
Akron83b2b0e2017-07-03 15:17:38 +0200129 td.chosen,
130 th.chosen,
131 div.chosen {
Akronfbf3a782017-06-28 17:34:28 +0200132 background-color: $light-green !important;
133 color: $nearly-white;
134 // transition: color 0.1s, background-color 0.15s ease-out;
135 }
136 }
137
Nils Diewalda944fab2015-04-08 21:02:04 +0000138 thead {
139 tr th {
140 background-color: $darker-orange;
141 border-top-width: 0px !important;
Akron2495ceb2016-02-13 17:17:52 +0100142 text-align: center;
143 &:nth-of-type(1), &:nth-of-type(2) {
Akronfbf3a782017-06-28 17:34:28 +0200144 text-align: left;
Akron2495ceb2016-02-13 17:17:52 +0100145 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000146 }
147 }
Akronfbf3a782017-06-28 17:34:28 +0200148
Nils Diewalda944fab2015-04-08 21:02:04 +0000149 tbody {
150 > tr:nth-of-type(1) > th {
151 border-top-color: transparent;
152 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000153 }
154 tr {
155 /**
156 * The first two columns.
157 */
158 > th:nth-of-type(1),
159 > th:nth-of-type(2) {
160 position: absolute;
161 z-index: 80;
162 vertical-align: middle;
163 left: 0px;
164 @include matchinfo-head;
165 }
166 > th:nth-of-type(2) {
167 left: ($left-width / 2) + $border-size;
168 }
Akron0af14142017-06-30 14:58:27 +0200169
170 // Includes header line as well
Nils Diewalda944fab2015-04-08 21:02:04 +0000171 > * {
172 @include cell-info;
173 border: ($border-size / 2) solid $dark-orange;
174 }
175 }
176 tr > td {
177 background-color: $middle-orange; // $nearly-white;
178 white-space: nowrap;
179 vertical-align: top;
180 text-align: center;
Akron257aa852018-02-06 19:29:51 +0100181
Nils Diewalda944fab2015-04-08 21:02:04 +0000182 }
183 tr:nth-child(even) > td {
184 background-color: $light-orange;
Akron83b2b0e2017-07-03 15:17:38 +0200185 }
Akron83b2b0e2017-07-03 15:17:38 +0200186
187 // table for key-value pairs
188 td.matchkeyvalues {
189 padding: 0;
190 > div {
191 @include cell-info;
192 > span {
193 color: $darkest-orange;
194 text-align: right;
195 &::after {
196 content: ":"
197 }
198 padding-right: .5em;
199 }
200 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000201 }
202}
203
Akronbd342982018-01-25 18:01:46 +0100204
Akronaeceda72018-02-02 20:44:06 +0100205div.metatable, div.matchtable {
Akron41387d22018-02-02 18:10:06 +0100206 position: relative;
207}
208
Akron8b592d42018-01-26 18:33:06 +0100209/**
210 * Label
211 */
212// The metatable branch was experimental
Akron257aa852018-02-06 19:29:51 +0100213div.matchtree {
Akronbd342982018-01-25 18:01:46 +0100214 h6 {
215 display: inline;
216 font-size: inherit;
217 color: $nearly-white;
218 margin: 0;
219 padding: 0 !important;
220 float: left;
Akron8b592d42018-01-26 18:33:06 +0100221 > span { // , > div {
Akronbd342982018-01-25 18:01:46 +0100222 @include matchinfo-head;
223 @include cell-info;
224 display: inline-block !important;
225 margin: 0;
226 &:nth-of-type(2) {
227 margin-left: $border-size;
228 }
229 }
Akronbd342982018-01-25 18:01:46 +0100230 }
231}
232
Nils Diewalda944fab2015-04-08 21:02:04 +0000233/**
234 * Tree view
235 */
236div.matchtree {
237 position: relative;
238 overflow-x: hidden;
239 overflow-y: visible;
240 padding: 0;
241 margin-top: 1pt;
242
Nils Diewalda944fab2015-04-08 21:02:04 +0000243 > div {
Akron3bb91bc2016-12-02 16:43:17 +0100244 position: unset;
245 z-index: 4;
Nils Diewalda944fab2015-04-08 21:02:04 +0000246 overflow-x: auto;
247 margin: $border-size;
248 margin-left: $left-distance;
249 margin-right: $right-match-distance;
250
Akron257aa852018-02-06 19:29:51 +0100251 background-color: $light-orange;
Akron41387d22018-02-02 18:10:06 +0100252 }
253}
Nils Diewalda944fab2015-04-08 21:02:04 +0000254
Akron41387d22018-02-02 18:10:06 +0100255div.matchinfo ul.action.image {
256 display: block;
257 position: absolute;
258 right: 0;
259 top: 0;
260 z-index: 20;
261 margin: 0;
262 padding: 0;
Akron41387d22018-02-02 18:10:06 +0100263 width: $right-match-distance;
264 li {
265 cursor: pointer;
266 color: $nearly-white;
267 text-decoration: none;
268 > span {
269 @include blind;
270 }
271 border-width: 0;
272 // z-index: 8;
273 text-decoration:none;
274 text-align: center;
275 font-style: normal;
276
277 &.download::after {
278 font-family: 'FontAwesome';
279 content: $fa-download;
280 }
281
282 &.close::after {
283 font-family: 'FontAwesome';
284 content: $fa-close;
Nils Diewalda944fab2015-04-08 21:02:04 +0000285 }
286 }
287}
288
Akron41387d22018-02-02 18:10:06 +0100289
290div.metatable + div.matchtable,
291div.metatable + div.matchtree {
Akron8b592d42018-01-26 18:33:06 +0100292 margin-top: 4 * $border-size !important;
Akronbd342982018-01-25 18:01:46 +0100293}
Akron24866cf2018-01-23 20:22:01 +0100294
Akronbd342982018-01-25 18:01:46 +0100295div.metatable > dl {
Akron24866cf2018-01-23 20:22:01 +0100296 display: flex;
297 flex-direction: row;
298 flex-wrap: wrap;
Akronc8eb4a12018-02-03 00:39:58 +0100299 justify-content: flex-start;
Akron24866cf2018-01-23 20:22:01 +0100300 align-items: stretch;
Akronbd342982018-01-25 18:01:46 +0100301 width: auto;
302 padding-bottom: 0;
Akronbd342982018-01-25 18:01:46 +0100303 margin-right: $right-match-distance;
304 margin-top: $border-size;
305
Akron24866cf2018-01-23 20:22:01 +0100306 > div {
307 display: flex;
308 flex-direction: row;
309 text-align: center;
310 width: 100%;
311 border: ($border-size / 2) solid $dark-orange;
312 align-items: stretch;
313 > * {
314 @include cell-info;
315 }
316 > dt {
317 text-align: left;
318 background: $darker-orange;
319 color: $nearly-white;
Akron04905352018-01-24 02:06:32 +0100320 width: 9em;
Akron24866cf2018-01-23 20:22:01 +0100321 margin: 0;
322 }
323 > dd {
324 text-align: left;
325 background-color: $light-orange;
326 padding: 2px;
327 margin: 0;
328 width: 100%;
Akronbd342982018-01-25 18:01:46 +0100329 max-width: none;
Akrone7679692018-01-26 12:06:33 +0100330 max-height: 6em;
Akron24866cf2018-01-23 20:22:01 +0100331 margin-left: $border-size;
Akrone7679692018-01-26 12:06:33 +0100332 white-space: normal;
333 overflow: visible;
Akron24866cf2018-01-23 20:22:01 +0100334 }
335 }
336}
337
338@media (min-width:640px) {
Akronbd342982018-01-25 18:01:46 +0100339 div.metatable > dl {
340 > div {
341 width: 50%; // 2*
342 }
Akron24866cf2018-01-23 20:22:01 +0100343 }
344}
345
346@media (min-width:800px) {
Akronbd342982018-01-25 18:01:46 +0100347 div.metatable > dl > div {
Akronc8eb4a12018-02-03 00:39:58 +0100348 width: 33.3333333333333%; // 3*
Akron24866cf2018-01-23 20:22:01 +0100349 }
350}
351
352@media (min-width:1200px) {
Akronbd342982018-01-25 18:01:46 +0100353 div.metatable > dl > div {
354 width: 25%; // 4*
355 }
356}
357
358@media (min-width:1680px) {
359 div.metatable > dl > div {
360 width: 20%; // 5*
Akron24866cf2018-01-23 20:22:01 +0100361 }
362}
363
364
Nils Diewald0ec142f2015-05-05 00:29:23 +0000365div.loading {
Nils Diewald61e6ff52015-05-07 17:26:50 +0000366 background-color: transparent !important;
Nils Diewald0ec142f2015-05-05 00:29:23 +0000367 height: 16px !important;
368 width: 16px !important;
369 margin: 0 auto !important;
370 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 +0000371
Nils Diewald0ec142f2015-05-05 00:29:23 +0000372}
373
374