blob: 09bc90b7bcae03bf0c5a4eb11945acf2c6a38082 [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 }
Akron78655d12017-06-28 18:56:57 +0200137 td:empty {
138 cursor: default;
139 }
Akronfbf3a782017-06-28 17:34:28 +0200140 tr {
141 outline: none;
142 > td.chosen,
143 > th.chosen {
144 background-color: $light-green !important;
145 color: $nearly-white;
146 // transition: color 0.1s, background-color 0.15s ease-out;
147 }
148 }
149
Nils Diewalda944fab2015-04-08 21:02:04 +0000150 thead {
151 tr th {
152 background-color: $darker-orange;
153 border-top-width: 0px !important;
Akron2495ceb2016-02-13 17:17:52 +0100154 text-align: center;
155 &:nth-of-type(1), &:nth-of-type(2) {
Akronfbf3a782017-06-28 17:34:28 +0200156 text-align: left;
Akron2495ceb2016-02-13 17:17:52 +0100157 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000158 }
159 }
Akronfbf3a782017-06-28 17:34:28 +0200160
Nils Diewalda944fab2015-04-08 21:02:04 +0000161 tbody {
162 > tr:nth-of-type(1) > th {
163 border-top-color: transparent;
164 }
165 /**
166 * Click on a row and it's highlighted.
167 */
Akronfbf3a782017-06-28 17:34:28 +0200168 /*
Nils Diewalda944fab2015-04-08 21:02:04 +0000169 outline: (2 * $border-size) solid $light-green;
170 -moz-outline-radius: $border-size;
171 outline-radius: $border-size;
172 */
Akronfbf3a782017-06-28 17:34:28 +0200173 /*
174 > tr:focus {
175 outline: none;
Nils Diewalda944fab2015-04-08 21:02:04 +0000176 background-color: $light-green;
177 border-color: $light-green;
178 td {
179 background-color: inherit;
180 color: $nearly-white;
181 border-color: $light-green;
182 }
183 }
Akronfbf3a782017-06-28 17:34:28 +0200184 */
Nils Diewalda944fab2015-04-08 21:02:04 +0000185 }
186 tr {
187 /**
188 * The first two columns.
189 */
190 > th:nth-of-type(1),
191 > th:nth-of-type(2) {
192 position: absolute;
193 z-index: 80;
194 vertical-align: middle;
195 left: 0px;
196 @include matchinfo-head;
197 }
198 > th:nth-of-type(2) {
199 left: ($left-width / 2) + $border-size;
200 }
201 > * {
202 @include cell-info;
203 border: ($border-size / 2) solid $dark-orange;
204 }
205 }
206 tr > td {
207 background-color: $middle-orange; // $nearly-white;
208 white-space: nowrap;
209 vertical-align: top;
210 text-align: center;
211 }
212 tr:nth-child(even) > td {
213 background-color: $light-orange;
214 }
215}
216
217/**
218 * Tree view
219 */
220div.matchtree {
221 position: relative;
222 overflow-x: hidden;
223 overflow-y: visible;
224 padding: 0;
225 margin-top: 1pt;
226
227 /**
228 * Label
229 */
230 h6 {
231 display: inline;
232 font-size: inherit;
233 color: $nearly-white;
234 margin: 0;
235 padding: 0 !important;
236 float: left;
237 > span {
238 @include matchinfo-head;
239 @include cell-info;
240 display: inline-block;
241 margin: 0;
242 &:nth-of-type(2) {
Akron3bb91bc2016-12-02 16:43:17 +0100243 margin-left: $border-size;
Nils Diewalda944fab2015-04-08 21:02:04 +0000244 }
245 }
246 }
247 > div {
Akron3bb91bc2016-12-02 16:43:17 +0100248 position: unset;
249 z-index: 4;
Nils Diewalda944fab2015-04-08 21:02:04 +0000250 overflow-x: auto;
251 margin: $border-size;
252 margin-left: $left-distance;
253 margin-right: $right-match-distance;
254
255 background-color: $light-orange; // $nearly-white; // $light-orange;
Akronc56cf2d2016-11-09 22:02:38 +0100256 > ul.action.image {
Nils Diewalda944fab2015-04-08 21:02:04 +0000257 display: block;
258 position: absolute;
Akron3bb91bc2016-12-02 16:43:17 +0100259 right: 0;
260 top: 0;
Akronc56cf2d2016-11-09 22:02:38 +0100261 z-index: 20;
Akronc56cf2d2016-11-09 22:02:38 +0100262 margin: 0;
263 padding: 0;
Akron3bb91bc2016-12-02 16:43:17 +0100264 // margin-right: -1 * $right-match-distance;
Nils Diewalda944fab2015-04-08 21:02:04 +0000265 width: $right-match-distance;
Akronc56cf2d2016-11-09 22:02:38 +0100266 li {
267 cursor: pointer;
268 color: $nearly-white;
269 text-decoration: none;
270 > span {
271 @include blind;
272 }
273 border-width: 0;
274 // z-index: 8;
275 text-decoration:none;
276 text-align: center;
Akronc56cf2d2016-11-09 22:02:38 +0100277 font-style: normal;
Nils Diewalda944fab2015-04-08 21:02:04 +0000278
Akronc56cf2d2016-11-09 22:02:38 +0100279 &.download::after {
280 font-family: 'FontAwesome';
281 content: $fa-download;
282 }
283
284 &.close::after {
285 font-family: 'FontAwesome';
286 content: $fa-close;
287 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000288 }
289 }
290 }
291}
292
Nils Diewald0ec142f2015-05-05 00:29:23 +0000293div.loading {
Nils Diewald61e6ff52015-05-07 17:26:50 +0000294 background-color: transparent !important;
Nils Diewald0ec142f2015-05-05 00:29:23 +0000295 height: 16px !important;
296 width: 16px !important;
297 margin: 0 auto !important;
298 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 +0000299
Nils Diewald0ec142f2015-05-05 00:29:23 +0000300}
301
302
Nils Diewalda944fab2015-04-08 21:02:04 +0000303/**
304 * SVG tree
305 */
306path.edge {
307 stroke: $darker-orange;
308 stroke-width: 2px;
309 fill: none;
310}
311
312g.root rect.empty {
313 stroke: $darker-orange;
314 fill: $darker-orange;
315 stroke-width: 2px;
316}
317
318g.middle rect {
319 stroke: $darker-orange;
320 stroke-width: 2px;
321 fill: $middle-orange;
322}
323
Akron98a933f2016-08-11 00:19:17 +0200324g.middle.mark {
325 rect {
326 fill: $darker-orange;
327 }
328 > text {
329 fill: $light-orange;
330 > tspan {
331 stroke: $light-orange;
332 }
333 }
334}
335
336
337g.leaf.mark text > tspan {
338 font-weight: bold;
339}
340
Nils Diewalda944fab2015-04-08 21:02:04 +0000341g.leaf > rect {
342 display: none;
343}
344
Akron98a933f2016-08-11 00:19:17 +0200345g > text > tspan {
Nils Diewalda944fab2015-04-08 21:02:04 +0000346 text-anchor: middle;
347 font-size: 9pt;
348}
349
Akron98a933f2016-08-11 00:19:17 +0200350g.leaf > text > tspan {
Nils Diewalda944fab2015-04-08 21:02:04 +0000351 font-size: 10pt;
352 overflow: visible;
353}