blob: 801503f587b3f255adb240f67a7fa73c6751fc99 [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;
10 overflow: hidden;
11 padding: 1px 6px;
12 margin: 0px;
13}
14
15/**
16 * Table view
17 *
18 * The table view is complicated, as the
19 * first column has to be static.
20 */
21@mixin matchinfo-head {
22 border-width: 0px;
Nils Diewald1c546922015-04-13 01:56:19 +000023 border-top: $border-size solid $darker-orange; // #ff8000;
Nils Diewalda944fab2015-04-08 21:02:04 +000024 width: $left-width / 2;
25}
26
27div.matchinfo {
28 position: relative;
29 width: 100%;
30 padding-top: $border-size;
Nils Diewald1c546922015-04-13 01:56:19 +000031// background-color: $dark-orange;
Nils Diewalda944fab2015-04-08 21:02:04 +000032 height: auto;
33 font-size: 10pt;
34 text-align: left;
35 > p.addtree {
36 position: relative;
37 @include choose-item;
38 border: {
39 width: $border-size;
40 style: solid;
41 radius: $standard-border-radius;
42 }
43
44 font-size: inherit;
45 margin: $border-size $border-size 0 $border-size !important;
46 width: $left-width;
47 text-align: center;
48 cursor: pointer;
49 padding: 0 !important;
50
51 &:hover {
52 cursor:pointer;
53 @include choose-hover;
54 }
55
56 *.menu {
57 border-top-right-radius: 8px;
58 position: absolute;
59 width: $left-width;
60 left: 0;
61 bottom: 0;
62 text-align: left;
63 margin: -1* $border-size;
64 margin-top: 0;
65 > li:first-of-type {
Akronaba7a5a2016-08-15 21:58:33 +020066 border-top-right-radius: 5px;
Nils Diewalda944fab2015-04-08 21:02:04 +000067 }
68 }
69 }
Nils Diewald0ec142f2015-05-05 00:29:23 +000070
Akronfbf3a782017-06-28 17:34:28 +020071 p.queryfragment {
72 position:relative;
73 @include choose-item;
74 border : {
75 width: $border-size;
76 style: solid;
77 radius: $standard-border-radius;
78 }
79 padding: 2pt 4pt !important;
Akrone8ea0002017-06-28 18:51:52 +020080 margin: {
81 // left: $border-size;
82 left: $left-distance;
83 top: .5em;
84 bottom: .5em;
85 right: $right-match-distance;
86 }
Akronfbf3a782017-06-28 17:34:28 +020087 &:hover {
88 cursor:pointer;
89 @include choose-hover;
90 }
91
92 // This is the description
93 > span:first-of-type {
94 font-weight: bold;
95 padding-right: 4pt;
96 }
97
98 // Query fragment
99 > span:nth-of-type(2) {
100 padding-right: 1.2em;
101 }
102
103 &::after {
104 font-family: 'FontAwesome';
105 content: $fa-to-query;
106 position: absolute;
107 right: 4pt;
Akrone8ea0002017-06-28 18:51:52 +0200108 top: $border-size;
Akronfbf3a782017-06-28 17:34:28 +0200109 }
110 }
Akrone8ea0002017-06-28 18:51:52 +0200111}
112
113div.matchtable {
114 z-index: 20;
115 margin-left: $left-distance - ($border-size / 2);
116 margin-right: $right-match-distance;
117 padding: 0;
118 overflow-x: auto;
119 overflow-y: visible;
120 width: auto;
Akronfbf3a782017-06-28 17:34:28 +0200121
Nils Diewalda944fab2015-04-08 21:02:04 +0000122 table {
123 display: table;
124 border-collapse: separate;
125 border-spacing: 0px;
126 }
127 th {
128 color: $nearly-white;
129 }
Akronfbf3a782017-06-28 17:34:28 +0200130
131 // Use matchinfo cells for query creation
132 td,
133 tbody th,
134 thead th:not(:nth-child(1)):not(:nth-child(2)) {
135 cursor: pointer;
136 }
137 tr {
138 outline: none;
139 > td.chosen,
140 > th.chosen {
141 background-color: $light-green !important;
142 color: $nearly-white;
143 // transition: color 0.1s, background-color 0.15s ease-out;
144 }
145 }
146
Nils Diewalda944fab2015-04-08 21:02:04 +0000147 thead {
148 tr th {
149 background-color: $darker-orange;
150 border-top-width: 0px !important;
Akron2495ceb2016-02-13 17:17:52 +0100151 text-align: center;
152 &:nth-of-type(1), &:nth-of-type(2) {
Akronfbf3a782017-06-28 17:34:28 +0200153 text-align: left;
Akron2495ceb2016-02-13 17:17:52 +0100154 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000155 }
156 }
Akronfbf3a782017-06-28 17:34:28 +0200157
Nils Diewalda944fab2015-04-08 21:02:04 +0000158 tbody {
159 > tr:nth-of-type(1) > th {
160 border-top-color: transparent;
161 }
162 /**
163 * Click on a row and it's highlighted.
164 */
Akronfbf3a782017-06-28 17:34:28 +0200165 /*
Nils Diewalda944fab2015-04-08 21:02:04 +0000166 outline: (2 * $border-size) solid $light-green;
167 -moz-outline-radius: $border-size;
168 outline-radius: $border-size;
169 */
Akronfbf3a782017-06-28 17:34:28 +0200170 /*
171 > tr:focus {
172 outline: none;
Nils Diewalda944fab2015-04-08 21:02:04 +0000173 background-color: $light-green;
174 border-color: $light-green;
175 td {
176 background-color: inherit;
177 color: $nearly-white;
178 border-color: $light-green;
179 }
180 }
Akronfbf3a782017-06-28 17:34:28 +0200181 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000182 }
183 tr {
184 /**
185 * The first two columns.
186 */
187 > th:nth-of-type(1),
188 > th:nth-of-type(2) {
189 position: absolute;
190 z-index: 80;
191 vertical-align: middle;
192 left: 0px;
193 @include matchinfo-head;
194 }
195 > th:nth-of-type(2) {
196 left: ($left-width / 2) + $border-size;
197 }
198 > * {
199 @include cell-info;
200 border: ($border-size / 2) solid $dark-orange;
201 }
202 }
203 tr > td {
204 background-color: $middle-orange; // $nearly-white;
205 white-space: nowrap;
206 vertical-align: top;
207 text-align: center;
208 }
209 tr:nth-child(even) > td {
210 background-color: $light-orange;
211 }
212}
213
214/**
215 * Tree view
216 */
217div.matchtree {
218 position: relative;
219 overflow-x: hidden;
220 overflow-y: visible;
221 padding: 0;
222 margin-top: 1pt;
223
224 /**
225 * Label
226 */
227 h6 {
228 display: inline;
229 font-size: inherit;
230 color: $nearly-white;
231 margin: 0;
232 padding: 0 !important;
233 float: left;
234 > span {
235 @include matchinfo-head;
236 @include cell-info;
237 display: inline-block;
238 margin: 0;
239 &:nth-of-type(2) {
Akron3bb91bc2016-12-02 16:43:17 +0100240 margin-left: $border-size;
Nils Diewalda944fab2015-04-08 21:02:04 +0000241 }
242 }
243 }
244 > div {
Akron3bb91bc2016-12-02 16:43:17 +0100245 position: unset;
246 z-index: 4;
Nils Diewalda944fab2015-04-08 21:02:04 +0000247 overflow-x: auto;
248 margin: $border-size;
249 margin-left: $left-distance;
250 margin-right: $right-match-distance;
251
252 background-color: $light-orange; // $nearly-white; // $light-orange;
Akronc56cf2d2016-11-09 22:02:38 +0100253 > ul.action.image {
Nils Diewalda944fab2015-04-08 21:02:04 +0000254 display: block;
255 position: absolute;
Akron3bb91bc2016-12-02 16:43:17 +0100256 right: 0;
257 top: 0;
Akronc56cf2d2016-11-09 22:02:38 +0100258 z-index: 20;
Akronc56cf2d2016-11-09 22:02:38 +0100259 margin: 0;
260 padding: 0;
Akron3bb91bc2016-12-02 16:43:17 +0100261 // margin-right: -1 * $right-match-distance;
Nils Diewalda944fab2015-04-08 21:02:04 +0000262 width: $right-match-distance;
Akronc56cf2d2016-11-09 22:02:38 +0100263 li {
264 cursor: pointer;
265 color: $nearly-white;
266 text-decoration: none;
267 > span {
268 @include blind;
269 }
270 border-width: 0;
271 // z-index: 8;
272 text-decoration:none;
273 text-align: center;
Akronc56cf2d2016-11-09 22:02:38 +0100274 font-style: normal;
Nils Diewalda944fab2015-04-08 21:02:04 +0000275
Akronc56cf2d2016-11-09 22:02:38 +0100276 &.download::after {
277 font-family: 'FontAwesome';
278 content: $fa-download;
279 }
280
281 &.close::after {
282 font-family: 'FontAwesome';
283 content: $fa-close;
284 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000285 }
286 }
287 }
288}
289
Nils Diewald0ec142f2015-05-05 00:29:23 +0000290div.loading {
Nils Diewald61e6ff52015-05-07 17:26:50 +0000291 background-color: transparent !important;
Nils Diewald0ec142f2015-05-05 00:29:23 +0000292 height: 16px !important;
293 width: 16px !important;
294 margin: 0 auto !important;
295 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 +0000296
Nils Diewald0ec142f2015-05-05 00:29:23 +0000297}
298
299
Nils Diewalda944fab2015-04-08 21:02:04 +0000300/**
301 * SVG tree
302 */
303path.edge {
304 stroke: $darker-orange;
305 stroke-width: 2px;
306 fill: none;
307}
308
309g.root rect.empty {
310 stroke: $darker-orange;
311 fill: $darker-orange;
312 stroke-width: 2px;
313}
314
315g.middle rect {
316 stroke: $darker-orange;
317 stroke-width: 2px;
318 fill: $middle-orange;
319}
320
Akron98a933f2016-08-11 00:19:17 +0200321g.middle.mark {
322 rect {
323 fill: $darker-orange;
324 }
325 > text {
326 fill: $light-orange;
327 > tspan {
328 stroke: $light-orange;
329 }
330 }
331}
332
333
334g.leaf.mark text > tspan {
335 font-weight: bold;
336}
337
Nils Diewalda944fab2015-04-08 21:02:04 +0000338g.leaf > rect {
339 display: none;
340}
341
Akron98a933f2016-08-11 00:19:17 +0200342g > text > tspan {
Nils Diewalda944fab2015-04-08 21:02:04 +0000343 text-anchor: middle;
344 font-size: 9pt;
345}
346
Akron98a933f2016-08-11 00:19:17 +0200347g.leaf > text > tspan {
Nils Diewalda944fab2015-04-08 21:02:04 +0000348 font-size: 10pt;
349 overflow: visible;
350}