blob: b7ce4633f015bcb6062a5722a1d8ef443f423199 [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;
Akrone8ea0002017-06-28 18:51:52 +020032}
Akron49f88cc2018-09-11 11:06:19 +020033
Akronaeceda72018-02-02 20:44:06 +010034div.matchtable > div {
Akrone8ea0002017-06-28 18:51:52 +020035 z-index: 20;
36 margin-left: $left-distance - ($border-size / 2);
Akronfc8dbae2019-02-15 13:16:20 +010037 margin-right: $right-view-distance;
Akrone8ea0002017-06-28 18:51:52 +020038 padding: 0;
39 overflow-x: auto;
40 overflow-y: visible;
41 width: auto;
Akronfbf3a782017-06-28 17:34:28 +020042
Nils Diewalda944fab2015-04-08 21:02:04 +000043 table {
44 display: table;
45 border-collapse: separate;
46 border-spacing: 0px;
47 }
48 th {
49 color: $nearly-white;
50 }
Akronfbf3a782017-06-28 17:34:28 +020051
52 // Use matchinfo cells for query creation
53 td,
54 tbody th,
Akron083ec572019-05-16 18:30:40 +020055 thead th:not(:nth-child(1)):not(:nth-child(2)):not(.cutted) {
Akronfbf3a782017-06-28 17:34:28 +020056 cursor: pointer;
57 }
Akron78655d12017-06-28 18:56:57 +020058 td:empty {
59 cursor: default;
60 }
Akronfbf3a782017-06-28 17:34:28 +020061 tr {
62 outline: none;
Akrond45a1702018-11-19 18:15:17 +010063 // equal to dd.chosen
Akron83b2b0e2017-07-03 15:17:38 +020064 td.chosen,
65 th.chosen,
66 div.chosen {
Akronfbf3a782017-06-28 17:34:28 +020067 background-color: $light-green !important;
68 color: $nearly-white;
69 // transition: color 0.1s, background-color 0.15s ease-out;
70 }
71 }
72
Nils Diewalda944fab2015-04-08 21:02:04 +000073 thead {
74 tr th {
75 background-color: $darker-orange;
76 border-top-width: 0px !important;
Akron2495ceb2016-02-13 17:17:52 +010077 text-align: center;
78 &:nth-of-type(1), &:nth-of-type(2) {
Akronfbf3a782017-06-28 17:34:28 +020079 text-align: left;
Akronad1e46a2018-09-19 15:55:40 +020080 }
81 &.mark {
82 background-color: $darkest-orange; // #f6a800;
Akron2495ceb2016-02-13 17:17:52 +010083 }
Akron083ec572019-05-16 18:30:40 +020084
85 &.cutted {
86 background-color: $light-orange;
87 &::after {
88 content: $fa-cut;
89 font-family: FontAwesome;
90 padding: {
91 left: 4pt;
92 right: 4pt;
93 }
94 color: $light-green;
95 }
96 }
Nils Diewalda944fab2015-04-08 21:02:04 +000097 }
98 }
Akronfbf3a782017-06-28 17:34:28 +020099
Nils Diewalda944fab2015-04-08 21:02:04 +0000100 tbody {
101 > tr:nth-of-type(1) > th {
102 border-top-color: transparent;
103 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000104 }
105 tr {
106 /**
107 * The first two columns.
108 */
109 > th:nth-of-type(1),
110 > th:nth-of-type(2) {
111 position: absolute;
112 z-index: 80;
113 vertical-align: middle;
114 left: 0px;
115 @include matchinfo-head;
116 }
117 > th:nth-of-type(2) {
118 left: ($left-width / 2) + $border-size;
119 }
Akron0af14142017-06-30 14:58:27 +0200120
121 // Includes header line as well
Nils Diewalda944fab2015-04-08 21:02:04 +0000122 > * {
123 @include cell-info;
124 border: ($border-size / 2) solid $dark-orange;
125 }
126 }
127 tr > td {
128 background-color: $middle-orange; // $nearly-white;
129 white-space: nowrap;
130 vertical-align: top;
131 text-align: center;
Akronad1e46a2018-09-19 15:55:40 +0200132 &.mark {
133 background-color: $light-orange;
134 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000135 }
136 tr:nth-child(even) > td {
137 background-color: $light-orange;
Akronad1e46a2018-09-19 15:55:40 +0200138 &.mark {
139 background-color: $middle-orange;
140 }
Akron83b2b0e2017-07-03 15:17:38 +0200141 }
Akron83b2b0e2017-07-03 15:17:38 +0200142
143 // table for key-value pairs
144 td.matchkeyvalues {
145 padding: 0;
146 > div {
147 @include cell-info;
148 > span {
149 color: $darkest-orange;
150 text-align: right;
151 &::after {
152 content: ":"
153 }
154 padding-right: .5em;
155 }
156 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000157 }
158}
159
Akronbd342982018-01-25 18:01:46 +0100160
Akronaeceda72018-02-02 20:44:06 +0100161div.metatable, div.matchtable {
Akron41387d22018-02-02 18:10:06 +0100162 position: relative;
163}
164
Akron8b592d42018-01-26 18:33:06 +0100165/**
166 * Label
167 */
168// The metatable branch was experimental
Akron257aa852018-02-06 19:29:51 +0100169div.matchtree {
Akronbd342982018-01-25 18:01:46 +0100170 h6 {
171 display: inline;
172 font-size: inherit;
173 color: $nearly-white;
174 margin: 0;
175 padding: 0 !important;
176 float: left;
Akron8b592d42018-01-26 18:33:06 +0100177 > span { // , > div {
Akronbd342982018-01-25 18:01:46 +0100178 @include matchinfo-head;
179 @include cell-info;
180 display: inline-block !important;
181 margin: 0;
182 &:nth-of-type(2) {
183 margin-left: $border-size;
184 }
185 }
Akronbd342982018-01-25 18:01:46 +0100186 }
187}
188
Nils Diewalda944fab2015-04-08 21:02:04 +0000189/**
190 * Tree view
191 */
192div.matchtree {
193 position: relative;
194 overflow-x: hidden;
195 overflow-y: visible;
196 padding: 0;
197 margin-top: 1pt;
198
Nils Diewalda944fab2015-04-08 21:02:04 +0000199 > div {
Akron3bb91bc2016-12-02 16:43:17 +0100200 position: unset;
201 z-index: 4;
Nils Diewalda944fab2015-04-08 21:02:04 +0000202 overflow-x: auto;
203 margin: $border-size;
204 margin-left: $left-distance;
Akronfc8dbae2019-02-15 13:16:20 +0100205 margin-right: $right-view-distance;
Nils Diewalda944fab2015-04-08 21:02:04 +0000206
Akron257aa852018-02-06 19:29:51 +0100207 background-color: $light-orange;
Akron41387d22018-02-02 18:10:06 +0100208 }
209}
Nils Diewalda944fab2015-04-08 21:02:04 +0000210
Akronbfe912c2018-07-17 19:30:52 +0200211div.button-group.button-panel.button-matchinfo {
212 display: inline-block;
213 margin-right: .5em;
214 > span {
215 position: relative;
216 box-shadow: none;
Nils Diewalda944fab2015-04-08 21:02:04 +0000217 }
218}
219
Akronbfe912c2018-07-17 19:30:52 +0200220div.matchinfo .view + .view {
Akron8b592d42018-01-26 18:33:06 +0100221 margin-top: 4 * $border-size !important;
Akronbd342982018-01-25 18:01:46 +0100222}
Akron24866cf2018-01-23 20:22:01 +0100223
Akronbfe912c2018-07-17 19:30:52 +0200224
225// Metatable
Akronbd342982018-01-25 18:01:46 +0100226div.metatable > dl {
Akronfc8dbae2019-02-15 13:16:20 +0100227 margin-right: $right-view-distance;
Akronbd342982018-01-25 18:01:46 +0100228 margin-top: $border-size;
229
Akron24866cf2018-01-23 20:22:01 +0100230 > div {
Akron2f979122018-07-25 17:00:23 +0200231 border-color: $dark-orange;
Akrond45a1702018-11-19 18:15:17 +0100232 > * {
233 padding: .2em;
234 }
Akron24866cf2018-01-23 20:22:01 +0100235 > dt {
Akron24866cf2018-01-23 20:22:01 +0100236 background: $darker-orange;
237 color: $nearly-white;
Akronca2c37c2018-03-06 20:18:47 +0100238 width: 12.5em;
Akron24866cf2018-01-23 20:22:01 +0100239 }
240 > dd {
Akron24866cf2018-01-23 20:22:01 +0100241 background-color: $light-orange;
Akrond45a1702018-11-19 18:15:17 +0100242 cursor: pointer;
243 }
Akrona0ea3c32018-12-14 18:33:48 +0100244 > dd[data-type="type:store"],
245 > dd[data-type="type:attachement"]{
Akrond45a1702018-11-19 18:15:17 +0100246 background-color: $middle-orange;
Akrond45a1702018-11-19 18:15:17 +0100247 cursor: default;
Akrond45a1702018-11-19 18:15:17 +0100248
Akrona0ea3c32018-12-14 18:33:48 +0100249 a {
250 color: inherit;
251 }
252 }
253
Akrond45a1702018-11-19 18:15:17 +0100254 > dd.metakeyvalues {
255 padding:0;
256 > div {
257 padding: .2em;
258 }
259 }
260
261 // equal to td.chosen
262 > dd.chosen, > dd > div.chosen {
263 background-color: $light-green !important;
264 color: $nearly-white;
Akron24866cf2018-01-23 20:22:01 +0100265 }
266 }
267}
268
Akron85c3c3e2018-11-21 12:58:54 +0100269// This is a temporary feature to disable
270// corpusByMatch assistant. See corpusByMatch.js
271// for reasons.
272div.metatable > dl.cbm-disabled > div > dd {
273 cursor: default !important;
274}
275
Nils Diewald0ec142f2015-05-05 00:29:23 +0000276div.loading {
Nils Diewald61e6ff52015-05-07 17:26:50 +0000277 background-color: transparent !important;
Nils Diewald0ec142f2015-05-05 00:29:23 +0000278 height: 16px !important;
279 width: 16px !important;
280 margin: 0 auto !important;
281 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 +0000282
Nils Diewald0ec142f2015-05-05 00:29:23 +0000283}
284
285