blob: 0d257a3c2f93ae7027be6816e3b133ae94a2a469 [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
Nils Diewalda944fab2015-04-08 21:02:04 +00008/**
9 * Table view
10 *
11 * The table view is complicated, as the
12 * first column has to be static.
13 */
14@mixin matchinfo-head {
Akronbd342982018-01-25 18:01:46 +010015 // border-width: 0px;
Nils Diewald1c546922015-04-13 01:56:19 +000016 border-top: $border-size solid $darker-orange; // #ff8000;
Nils Diewalda944fab2015-04-08 21:02:04 +000017 width: $left-width / 2;
18}
19
Akroneaba63e2018-01-26 19:49:30 +010020div.matchinfo:empty {
21 display: none !important;
22}
23
Nils Diewalda944fab2015-04-08 21:02:04 +000024div.matchinfo {
25 position: relative;
26 width: 100%;
27 padding-top: $border-size;
Akron8b592d42018-01-26 18:33:06 +010028 // background-color: $dark-orange;
Nils Diewalda944fab2015-04-08 21:02:04 +000029 height: auto;
30 font-size: 10pt;
31 text-align: left;
Akronfbf3a782017-06-28 17:34:28 +020032 p.queryfragment {
33 position:relative;
34 @include choose-item;
35 border : {
36 width: $border-size;
37 style: solid;
38 radius: $standard-border-radius;
39 }
40 padding: 2pt 4pt !important;
Akrone8ea0002017-06-28 18:51:52 +020041 margin: {
42 // left: $border-size;
43 left: $left-distance;
44 top: .5em;
45 bottom: .5em;
46 right: $right-match-distance;
47 }
Akronfbf3a782017-06-28 17:34:28 +020048 &:hover {
49 cursor:pointer;
50 @include choose-hover;
51 }
52
53 // This is the description
54 > span:first-of-type {
55 font-weight: bold;
56 padding-right: 4pt;
57 }
58
59 // Query fragment
60 > span:nth-of-type(2) {
61 padding-right: 1.2em;
62 }
63
64 &::after {
65 font-family: 'FontAwesome';
66 content: $fa-to-query;
67 position: absolute;
68 right: 4pt;
Akrone8ea0002017-06-28 18:51:52 +020069 top: $border-size;
Akronfbf3a782017-06-28 17:34:28 +020070 }
71 }
Akrone8ea0002017-06-28 18:51:52 +020072}
Akron8b592d42018-01-26 18:33:06 +010073
Akronaeceda72018-02-02 20:44:06 +010074div.matchtable > div {
Akrone8ea0002017-06-28 18:51:52 +020075 z-index: 20;
76 margin-left: $left-distance - ($border-size / 2);
77 margin-right: $right-match-distance;
78 padding: 0;
79 overflow-x: auto;
80 overflow-y: visible;
81 width: auto;
Akronfbf3a782017-06-28 17:34:28 +020082
Nils Diewalda944fab2015-04-08 21:02:04 +000083 table {
84 display: table;
85 border-collapse: separate;
86 border-spacing: 0px;
87 }
88 th {
89 color: $nearly-white;
90 }
Akronfbf3a782017-06-28 17:34:28 +020091
92 // Use matchinfo cells for query creation
93 td,
94 tbody th,
95 thead th:not(:nth-child(1)):not(:nth-child(2)) {
96 cursor: pointer;
97 }
Akron78655d12017-06-28 18:56:57 +020098 td:empty {
99 cursor: default;
100 }
Akronfbf3a782017-06-28 17:34:28 +0200101 tr {
102 outline: none;
Akron83b2b0e2017-07-03 15:17:38 +0200103 td.chosen,
104 th.chosen,
105 div.chosen {
Akronfbf3a782017-06-28 17:34:28 +0200106 background-color: $light-green !important;
107 color: $nearly-white;
108 // transition: color 0.1s, background-color 0.15s ease-out;
109 }
110 }
111
Nils Diewalda944fab2015-04-08 21:02:04 +0000112 thead {
113 tr th {
114 background-color: $darker-orange;
115 border-top-width: 0px !important;
Akron2495ceb2016-02-13 17:17:52 +0100116 text-align: center;
117 &:nth-of-type(1), &:nth-of-type(2) {
Akronfbf3a782017-06-28 17:34:28 +0200118 text-align: left;
Akron2495ceb2016-02-13 17:17:52 +0100119 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000120 }
121 }
Akronfbf3a782017-06-28 17:34:28 +0200122
Nils Diewalda944fab2015-04-08 21:02:04 +0000123 tbody {
124 > tr:nth-of-type(1) > th {
125 border-top-color: transparent;
126 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000127 }
128 tr {
129 /**
130 * The first two columns.
131 */
132 > th:nth-of-type(1),
133 > th:nth-of-type(2) {
134 position: absolute;
135 z-index: 80;
136 vertical-align: middle;
137 left: 0px;
138 @include matchinfo-head;
139 }
140 > th:nth-of-type(2) {
141 left: ($left-width / 2) + $border-size;
142 }
Akron0af14142017-06-30 14:58:27 +0200143
144 // Includes header line as well
Nils Diewalda944fab2015-04-08 21:02:04 +0000145 > * {
146 @include cell-info;
147 border: ($border-size / 2) solid $dark-orange;
148 }
149 }
150 tr > td {
151 background-color: $middle-orange; // $nearly-white;
152 white-space: nowrap;
153 vertical-align: top;
154 text-align: center;
Akron257aa852018-02-06 19:29:51 +0100155
Nils Diewalda944fab2015-04-08 21:02:04 +0000156 }
157 tr:nth-child(even) > td {
158 background-color: $light-orange;
Akron83b2b0e2017-07-03 15:17:38 +0200159 }
Akron83b2b0e2017-07-03 15:17:38 +0200160
161 // table for key-value pairs
162 td.matchkeyvalues {
163 padding: 0;
164 > div {
165 @include cell-info;
166 > span {
167 color: $darkest-orange;
168 text-align: right;
169 &::after {
170 content: ":"
171 }
172 padding-right: .5em;
173 }
174 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000175 }
176}
177
Akronbd342982018-01-25 18:01:46 +0100178
Akronaeceda72018-02-02 20:44:06 +0100179div.metatable, div.matchtable {
Akron41387d22018-02-02 18:10:06 +0100180 position: relative;
181}
182
Akron8b592d42018-01-26 18:33:06 +0100183/**
184 * Label
185 */
186// The metatable branch was experimental
Akron257aa852018-02-06 19:29:51 +0100187div.matchtree {
Akronbd342982018-01-25 18:01:46 +0100188 h6 {
189 display: inline;
190 font-size: inherit;
191 color: $nearly-white;
192 margin: 0;
193 padding: 0 !important;
194 float: left;
Akron8b592d42018-01-26 18:33:06 +0100195 > span { // , > div {
Akronbd342982018-01-25 18:01:46 +0100196 @include matchinfo-head;
197 @include cell-info;
198 display: inline-block !important;
199 margin: 0;
200 &:nth-of-type(2) {
201 margin-left: $border-size;
202 }
203 }
Akronbd342982018-01-25 18:01:46 +0100204 }
205}
206
Nils Diewalda944fab2015-04-08 21:02:04 +0000207/**
208 * Tree view
209 */
210div.matchtree {
211 position: relative;
212 overflow-x: hidden;
213 overflow-y: visible;
214 padding: 0;
215 margin-top: 1pt;
216
Nils Diewalda944fab2015-04-08 21:02:04 +0000217 > div {
Akron3bb91bc2016-12-02 16:43:17 +0100218 position: unset;
219 z-index: 4;
Nils Diewalda944fab2015-04-08 21:02:04 +0000220 overflow-x: auto;
221 margin: $border-size;
222 margin-left: $left-distance;
223 margin-right: $right-match-distance;
224
Akron257aa852018-02-06 19:29:51 +0100225 background-color: $light-orange;
Akron41387d22018-02-02 18:10:06 +0100226 }
227}
Nils Diewalda944fab2015-04-08 21:02:04 +0000228
Akronbfe912c2018-07-17 19:30:52 +0200229div.button-group.button-panel.button-matchinfo {
230 display: inline-block;
231 margin-right: .5em;
232 > span {
233 position: relative;
234 box-shadow: none;
Nils Diewalda944fab2015-04-08 21:02:04 +0000235 }
236}
237
Akronbfe912c2018-07-17 19:30:52 +0200238div.matchinfo .view + .view {
Akron8b592d42018-01-26 18:33:06 +0100239 margin-top: 4 * $border-size !important;
Akronbd342982018-01-25 18:01:46 +0100240}
Akron24866cf2018-01-23 20:22:01 +0100241
Akronbfe912c2018-07-17 19:30:52 +0200242
243// Metatable
Akronbd342982018-01-25 18:01:46 +0100244div.metatable > dl {
Akronbd342982018-01-25 18:01:46 +0100245 margin-right: $right-match-distance;
246 margin-top: $border-size;
247
Akron24866cf2018-01-23 20:22:01 +0100248 > div {
Akron2f979122018-07-25 17:00:23 +0200249 border-color: $dark-orange;
Akron24866cf2018-01-23 20:22:01 +0100250 > dt {
Akron24866cf2018-01-23 20:22:01 +0100251 background: $darker-orange;
252 color: $nearly-white;
Akronca2c37c2018-03-06 20:18:47 +0100253 width: 12.5em;
Akron24866cf2018-01-23 20:22:01 +0100254 }
255 > dd {
Akron24866cf2018-01-23 20:22:01 +0100256 background-color: $light-orange;
Akron24866cf2018-01-23 20:22:01 +0100257 }
258 }
259}
260
Nils Diewald0ec142f2015-05-05 00:29:23 +0000261div.loading {
Nils Diewald61e6ff52015-05-07 17:26:50 +0000262 background-color: transparent !important;
Nils Diewald0ec142f2015-05-05 00:29:23 +0000263 height: 16px !important;
264 width: 16px !important;
265 margin: 0 auto !important;
266 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 +0000267
Nils Diewald0ec142f2015-05-05 00:29:23 +0000268}
269
270