blob: 212fad0711975e8327e9c5db157d60c4467cb883 [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
Akron4d926f12018-07-16 15:30:25 +020033// TODO:
34// This is now a view
Nils Diewalda944fab2015-04-08 21:02:04 +000035div.matchinfo {
36 position: relative;
37 width: 100%;
38 padding-top: $border-size;
Akron8b592d42018-01-26 18:33:06 +010039 // background-color: $dark-orange;
Nils Diewalda944fab2015-04-08 21:02:04 +000040 height: auto;
41 font-size: 10pt;
42 text-align: left;
Akronfbf3a782017-06-28 17:34:28 +020043 p.queryfragment {
44 position:relative;
45 @include choose-item;
46 border : {
47 width: $border-size;
48 style: solid;
49 radius: $standard-border-radius;
50 }
51 padding: 2pt 4pt !important;
Akrone8ea0002017-06-28 18:51:52 +020052 margin: {
53 // left: $border-size;
54 left: $left-distance;
55 top: .5em;
56 bottom: .5em;
57 right: $right-match-distance;
58 }
Akronfbf3a782017-06-28 17:34:28 +020059 &:hover {
60 cursor:pointer;
61 @include choose-hover;
62 }
63
64 // This is the description
65 > span:first-of-type {
66 font-weight: bold;
67 padding-right: 4pt;
68 }
69
70 // Query fragment
71 > span:nth-of-type(2) {
72 padding-right: 1.2em;
73 }
74
75 &::after {
76 font-family: 'FontAwesome';
77 content: $fa-to-query;
78 position: absolute;
79 right: 4pt;
Akrone8ea0002017-06-28 18:51:52 +020080 top: $border-size;
Akronfbf3a782017-06-28 17:34:28 +020081 }
82 }
Akrone8ea0002017-06-28 18:51:52 +020083}
Akron8b592d42018-01-26 18:33:06 +010084
Akronaeceda72018-02-02 20:44:06 +010085div.matchtable > div {
Akrone8ea0002017-06-28 18:51:52 +020086 z-index: 20;
87 margin-left: $left-distance - ($border-size / 2);
88 margin-right: $right-match-distance;
89 padding: 0;
90 overflow-x: auto;
91 overflow-y: visible;
92 width: auto;
Akronfbf3a782017-06-28 17:34:28 +020093
Nils Diewalda944fab2015-04-08 21:02:04 +000094 table {
95 display: table;
96 border-collapse: separate;
97 border-spacing: 0px;
98 }
99 th {
100 color: $nearly-white;
101 }
Akronfbf3a782017-06-28 17:34:28 +0200102
103 // Use matchinfo cells for query creation
104 td,
105 tbody th,
106 thead th:not(:nth-child(1)):not(:nth-child(2)) {
107 cursor: pointer;
108 }
Akron78655d12017-06-28 18:56:57 +0200109 td:empty {
110 cursor: default;
111 }
Akronfbf3a782017-06-28 17:34:28 +0200112 tr {
113 outline: none;
Akron83b2b0e2017-07-03 15:17:38 +0200114 td.chosen,
115 th.chosen,
116 div.chosen {
Akronfbf3a782017-06-28 17:34:28 +0200117 background-color: $light-green !important;
118 color: $nearly-white;
119 // transition: color 0.1s, background-color 0.15s ease-out;
120 }
121 }
122
Nils Diewalda944fab2015-04-08 21:02:04 +0000123 thead {
124 tr th {
125 background-color: $darker-orange;
126 border-top-width: 0px !important;
Akron2495ceb2016-02-13 17:17:52 +0100127 text-align: center;
128 &:nth-of-type(1), &:nth-of-type(2) {
Akronfbf3a782017-06-28 17:34:28 +0200129 text-align: left;
Akron2495ceb2016-02-13 17:17:52 +0100130 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000131 }
132 }
Akronfbf3a782017-06-28 17:34:28 +0200133
Nils Diewalda944fab2015-04-08 21:02:04 +0000134 tbody {
135 > tr:nth-of-type(1) > th {
136 border-top-color: transparent;
137 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000138 }
139 tr {
140 /**
141 * The first two columns.
142 */
143 > th:nth-of-type(1),
144 > th:nth-of-type(2) {
145 position: absolute;
146 z-index: 80;
147 vertical-align: middle;
148 left: 0px;
149 @include matchinfo-head;
150 }
151 > th:nth-of-type(2) {
152 left: ($left-width / 2) + $border-size;
153 }
Akron0af14142017-06-30 14:58:27 +0200154
155 // Includes header line as well
Nils Diewalda944fab2015-04-08 21:02:04 +0000156 > * {
157 @include cell-info;
158 border: ($border-size / 2) solid $dark-orange;
159 }
160 }
161 tr > td {
162 background-color: $middle-orange; // $nearly-white;
163 white-space: nowrap;
164 vertical-align: top;
165 text-align: center;
Akron257aa852018-02-06 19:29:51 +0100166
Nils Diewalda944fab2015-04-08 21:02:04 +0000167 }
168 tr:nth-child(even) > td {
169 background-color: $light-orange;
Akron83b2b0e2017-07-03 15:17:38 +0200170 }
Akron83b2b0e2017-07-03 15:17:38 +0200171
172 // table for key-value pairs
173 td.matchkeyvalues {
174 padding: 0;
175 > div {
176 @include cell-info;
177 > span {
178 color: $darkest-orange;
179 text-align: right;
180 &::after {
181 content: ":"
182 }
183 padding-right: .5em;
184 }
185 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000186 }
187}
188
Akronbd342982018-01-25 18:01:46 +0100189
Akronaeceda72018-02-02 20:44:06 +0100190div.metatable, div.matchtable {
Akron41387d22018-02-02 18:10:06 +0100191 position: relative;
192}
193
Akron8b592d42018-01-26 18:33:06 +0100194/**
195 * Label
196 */
197// The metatable branch was experimental
Akron257aa852018-02-06 19:29:51 +0100198div.matchtree {
Akronbd342982018-01-25 18:01:46 +0100199 h6 {
200 display: inline;
201 font-size: inherit;
202 color: $nearly-white;
203 margin: 0;
204 padding: 0 !important;
205 float: left;
Akron8b592d42018-01-26 18:33:06 +0100206 > span { // , > div {
Akronbd342982018-01-25 18:01:46 +0100207 @include matchinfo-head;
208 @include cell-info;
209 display: inline-block !important;
210 margin: 0;
211 &:nth-of-type(2) {
212 margin-left: $border-size;
213 }
214 }
Akronbd342982018-01-25 18:01:46 +0100215 }
216}
217
Nils Diewalda944fab2015-04-08 21:02:04 +0000218/**
219 * Tree view
220 */
221div.matchtree {
222 position: relative;
223 overflow-x: hidden;
224 overflow-y: visible;
225 padding: 0;
226 margin-top: 1pt;
227
Nils Diewalda944fab2015-04-08 21:02:04 +0000228 > div {
Akron3bb91bc2016-12-02 16:43:17 +0100229 position: unset;
230 z-index: 4;
Nils Diewalda944fab2015-04-08 21:02:04 +0000231 overflow-x: auto;
232 margin: $border-size;
233 margin-left: $left-distance;
234 margin-right: $right-match-distance;
235
Akron257aa852018-02-06 19:29:51 +0100236 background-color: $light-orange;
Akron41387d22018-02-02 18:10:06 +0100237 }
238}
Nils Diewalda944fab2015-04-08 21:02:04 +0000239
Akron537bc522018-07-13 19:06:27 +0200240// TODO:
241// Probably obsolete now, as it will become part of the panel system
Akron41387d22018-02-02 18:10:06 +0100242div.matchinfo ul.action.image {
243 display: block;
244 position: absolute;
245 right: 0;
246 top: 0;
247 z-index: 20;
248 margin: 0;
249 padding: 0;
Akron41387d22018-02-02 18:10:06 +0100250 width: $right-match-distance;
251 li {
252 cursor: pointer;
253 color: $nearly-white;
254 text-decoration: none;
255 > span {
256 @include blind;
257 }
258 border-width: 0;
259 // z-index: 8;
260 text-decoration:none;
261 text-align: center;
262 font-style: normal;
263
264 &.download::after {
265 font-family: 'FontAwesome';
266 content: $fa-download;
267 }
268
269 &.close::after {
270 font-family: 'FontAwesome';
271 content: $fa-close;
Nils Diewalda944fab2015-04-08 21:02:04 +0000272 }
273 }
274}
275
Akron41387d22018-02-02 18:10:06 +0100276
277div.metatable + div.matchtable,
278div.metatable + div.matchtree {
Akron8b592d42018-01-26 18:33:06 +0100279 margin-top: 4 * $border-size !important;
Akronbd342982018-01-25 18:01:46 +0100280}
Akron24866cf2018-01-23 20:22:01 +0100281
Akronbd342982018-01-25 18:01:46 +0100282div.metatable > dl {
Akron24866cf2018-01-23 20:22:01 +0100283 display: flex;
284 flex-direction: row;
285 flex-wrap: wrap;
Akronc8eb4a12018-02-03 00:39:58 +0100286 justify-content: flex-start;
Akron24866cf2018-01-23 20:22:01 +0100287 align-items: stretch;
Akronbd342982018-01-25 18:01:46 +0100288 width: auto;
289 padding-bottom: 0;
Akronbd342982018-01-25 18:01:46 +0100290 margin-right: $right-match-distance;
291 margin-top: $border-size;
292
Akron24866cf2018-01-23 20:22:01 +0100293 > div {
294 display: flex;
295 flex-direction: row;
296 text-align: center;
297 width: 100%;
298 border: ($border-size / 2) solid $dark-orange;
299 align-items: stretch;
300 > * {
301 @include cell-info;
302 }
303 > dt {
304 text-align: left;
305 background: $darker-orange;
306 color: $nearly-white;
Akronca2c37c2018-03-06 20:18:47 +0100307 width: 12.5em;
Akron24866cf2018-01-23 20:22:01 +0100308 margin: 0;
309 }
310 > dd {
311 text-align: left;
312 background-color: $light-orange;
313 padding: 2px;
314 margin: 0;
315 width: 100%;
Akronbd342982018-01-25 18:01:46 +0100316 max-width: none;
Akrone7679692018-01-26 12:06:33 +0100317 max-height: 6em;
Akron24866cf2018-01-23 20:22:01 +0100318 margin-left: $border-size;
Akrone7679692018-01-26 12:06:33 +0100319 white-space: normal;
Akronb5d05d72018-02-12 15:09:12 +0100320 overflow-y: auto;
321 overflow-x: hidden;
322 text-overflow: ellipsis;
Akron24866cf2018-01-23 20:22:01 +0100323 }
324 }
325}
326
327@media (min-width:640px) {
Akronbd342982018-01-25 18:01:46 +0100328 div.metatable > dl {
329 > div {
330 width: 50%; // 2*
331 }
Akron24866cf2018-01-23 20:22:01 +0100332 }
333}
334
335@media (min-width:800px) {
Akronbd342982018-01-25 18:01:46 +0100336 div.metatable > dl > div {
Akronc8eb4a12018-02-03 00:39:58 +0100337 width: 33.3333333333333%; // 3*
Akron24866cf2018-01-23 20:22:01 +0100338 }
339}
340
341@media (min-width:1200px) {
Akronbd342982018-01-25 18:01:46 +0100342 div.metatable > dl > div {
343 width: 25%; // 4*
344 }
345}
346
347@media (min-width:1680px) {
348 div.metatable > dl > div {
349 width: 20%; // 5*
Akron24866cf2018-01-23 20:22:01 +0100350 }
351}
352
353
Nils Diewald0ec142f2015-05-05 00:29:23 +0000354div.loading {
Nils Diewald61e6ff52015-05-07 17:26:50 +0000355 background-color: transparent !important;
Nils Diewald0ec142f2015-05-05 00:29:23 +0000356 height: 16px !important;
357 width: 16px !important;
358 margin: 0 auto !important;
359 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 +0000360
Nils Diewald0ec142f2015-05-05 00:29:23 +0000361}
362
363