blob: c48a856adb14fc003d8233cebf81002c93fb0e1c [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
hebastaf95226b2019-09-19 11:37:00 +020034div.matchtable {
35 background-color: $dark-orange;
36 }
37
Akronaeceda72018-02-02 20:44:06 +010038div.matchtable > div {
Akrone8ea0002017-06-28 18:51:52 +020039 z-index: 20;
40 margin-left: $left-distance - ($border-size / 2);
Akronfc8dbae2019-02-15 13:16:20 +010041 margin-right: $right-view-distance;
Akrone8ea0002017-06-28 18:51:52 +020042 padding: 0;
43 overflow-x: auto;
44 overflow-y: visible;
45 width: auto;
hebastaf95226b2019-09-19 11:37:00 +020046
Nils Diewalda944fab2015-04-08 21:02:04 +000047 table {
48 display: table;
49 border-collapse: separate;
50 border-spacing: 0px;
51 }
52 th {
53 color: $nearly-white;
54 }
Akronfbf3a782017-06-28 17:34:28 +020055
56 // Use matchinfo cells for query creation
57 td,
58 tbody th,
Akron083ec572019-05-16 18:30:40 +020059 thead th:not(:nth-child(1)):not(:nth-child(2)):not(.cutted) {
Akronfbf3a782017-06-28 17:34:28 +020060 cursor: pointer;
61 }
Akron78655d12017-06-28 18:56:57 +020062 td:empty {
63 cursor: default;
64 }
Akronfbf3a782017-06-28 17:34:28 +020065 tr {
66 outline: none;
Akrond45a1702018-11-19 18:15:17 +010067 // equal to dd.chosen
Akron83b2b0e2017-07-03 15:17:38 +020068 td.chosen,
69 th.chosen,
70 div.chosen {
Akronfbf3a782017-06-28 17:34:28 +020071 background-color: $light-green !important;
72 color: $nearly-white;
73 // transition: color 0.1s, background-color 0.15s ease-out;
74 }
75 }
76
Nils Diewalda944fab2015-04-08 21:02:04 +000077 thead {
78 tr th {
79 background-color: $darker-orange;
80 border-top-width: 0px !important;
Akron2495ceb2016-02-13 17:17:52 +010081 text-align: center;
82 &:nth-of-type(1), &:nth-of-type(2) {
Akronfbf3a782017-06-28 17:34:28 +020083 text-align: left;
Akronad1e46a2018-09-19 15:55:40 +020084 }
85 &.mark {
86 background-color: $darkest-orange; // #f6a800;
Akron2495ceb2016-02-13 17:17:52 +010087 }
Akron083ec572019-05-16 18:30:40 +020088
89 &.cutted {
90 background-color: $light-orange;
91 &::after {
92 content: $fa-cut;
93 font-family: FontAwesome;
94 padding: {
95 left: 4pt;
96 right: 4pt;
97 }
98 color: $light-green;
99 }
100 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000101 }
102 }
Akronfbf3a782017-06-28 17:34:28 +0200103
Nils Diewalda944fab2015-04-08 21:02:04 +0000104 tbody {
105 > tr:nth-of-type(1) > th {
106 border-top-color: transparent;
107 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000108 }
109 tr {
110 /**
111 * The first two columns.
112 */
113 > th:nth-of-type(1),
114 > th:nth-of-type(2) {
115 position: absolute;
116 z-index: 80;
117 vertical-align: middle;
118 left: 0px;
119 @include matchinfo-head;
120 }
121 > th:nth-of-type(2) {
122 left: ($left-width / 2) + $border-size;
123 }
Akron0af14142017-06-30 14:58:27 +0200124
125 // Includes header line as well
Nils Diewalda944fab2015-04-08 21:02:04 +0000126 > * {
127 @include cell-info;
128 border: ($border-size / 2) solid $dark-orange;
129 }
130 }
131 tr > td {
132 background-color: $middle-orange; // $nearly-white;
133 white-space: nowrap;
134 vertical-align: top;
135 text-align: center;
Akronad1e46a2018-09-19 15:55:40 +0200136 &.mark {
137 background-color: $light-orange;
138 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000139 }
140 tr:nth-child(even) > td {
141 background-color: $light-orange;
Akronad1e46a2018-09-19 15:55:40 +0200142 &.mark {
143 background-color: $middle-orange;
144 }
Akron83b2b0e2017-07-03 15:17:38 +0200145 }
Akron83b2b0e2017-07-03 15:17:38 +0200146
147 // table for key-value pairs
148 td.matchkeyvalues {
149 padding: 0;
150 > div {
151 @include cell-info;
152 > span {
153 color: $darkest-orange;
154 text-align: right;
155 &::after {
156 content: ":"
157 }
158 padding-right: .5em;
159 }
160 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000161 }
162}
163
Akronbd342982018-01-25 18:01:46 +0100164
Akronaeceda72018-02-02 20:44:06 +0100165div.metatable, div.matchtable {
Akron41387d22018-02-02 18:10:06 +0100166 position: relative;
167}
168
Akron8b592d42018-01-26 18:33:06 +0100169/**
170 * Label
171 */
172// The metatable branch was experimental
Akron257aa852018-02-06 19:29:51 +0100173div.matchtree {
Akronbd342982018-01-25 18:01:46 +0100174 h6 {
175 display: inline;
176 font-size: inherit;
177 color: $nearly-white;
178 margin: 0;
179 padding: 0 !important;
180 float: left;
Akron8b592d42018-01-26 18:33:06 +0100181 > span { // , > div {
Akronbd342982018-01-25 18:01:46 +0100182 @include matchinfo-head;
183 @include cell-info;
184 display: inline-block !important;
185 margin: 0;
186 &:nth-of-type(2) {
187 margin-left: $border-size;
188 }
189 }
Akronbd342982018-01-25 18:01:46 +0100190 }
191}
192
Nils Diewalda944fab2015-04-08 21:02:04 +0000193/**
194 * Tree view
195 */
196div.matchtree {
197 position: relative;
198 overflow-x: hidden;
199 overflow-y: visible;
200 padding: 0;
201 margin-top: 1pt;
hebastaf95226b2019-09-19 11:37:00 +0200202 background-color: $dark-orange;
Nils Diewalda944fab2015-04-08 21:02:04 +0000203
Nils Diewalda944fab2015-04-08 21:02:04 +0000204 > div {
Akron3bb91bc2016-12-02 16:43:17 +0100205 position: unset;
206 z-index: 4;
Nils Diewalda944fab2015-04-08 21:02:04 +0000207 overflow-x: auto;
208 margin: $border-size;
209 margin-left: $left-distance;
Akronfc8dbae2019-02-15 13:16:20 +0100210 margin-right: $right-view-distance;
Nils Diewalda944fab2015-04-08 21:02:04 +0000211
Akron257aa852018-02-06 19:29:51 +0100212 background-color: $light-orange;
Akron41387d22018-02-02 18:10:06 +0100213 }
214}
Nils Diewalda944fab2015-04-08 21:02:04 +0000215
Akronbfe912c2018-07-17 19:30:52 +0200216div.button-group.button-panel.button-matchinfo {
217 display: inline-block;
218 margin-right: .5em;
219 > span {
220 position: relative;
221 box-shadow: none;
Nils Diewalda944fab2015-04-08 21:02:04 +0000222 }
223}
224
Akronbfe912c2018-07-17 19:30:52 +0200225div.matchinfo .view + .view {
Akron8b592d42018-01-26 18:33:06 +0100226 margin-top: 4 * $border-size !important;
Akronbd342982018-01-25 18:01:46 +0100227}
Akron24866cf2018-01-23 20:22:01 +0100228
Akronbfe912c2018-07-17 19:30:52 +0200229
230// Metatable
Akronbd342982018-01-25 18:01:46 +0100231div.metatable > dl {
Akronfc8dbae2019-02-15 13:16:20 +0100232 margin-right: $right-view-distance;
Akronbd342982018-01-25 18:01:46 +0100233 margin-top: $border-size;
234
Akron24866cf2018-01-23 20:22:01 +0100235 > div {
Akron2f979122018-07-25 17:00:23 +0200236 border-color: $dark-orange;
Akrond45a1702018-11-19 18:15:17 +0100237 > * {
238 padding: .2em;
239 }
Akron24866cf2018-01-23 20:22:01 +0100240 > dt {
Akron24866cf2018-01-23 20:22:01 +0100241 background: $darker-orange;
242 color: $nearly-white;
Akronca2c37c2018-03-06 20:18:47 +0100243 width: 12.5em;
Akron24866cf2018-01-23 20:22:01 +0100244 }
245 > dd {
Akron24866cf2018-01-23 20:22:01 +0100246 background-color: $light-orange;
Akrond45a1702018-11-19 18:15:17 +0100247 cursor: pointer;
248 }
Akrona0ea3c32018-12-14 18:33:48 +0100249 > dd[data-type="type:store"],
250 > dd[data-type="type:attachement"]{
Akrond45a1702018-11-19 18:15:17 +0100251 background-color: $middle-orange;
Akrond45a1702018-11-19 18:15:17 +0100252 cursor: default;
Akrond45a1702018-11-19 18:15:17 +0100253
Akrona0ea3c32018-12-14 18:33:48 +0100254 a {
255 color: inherit;
256 }
257 }
258
Akrond45a1702018-11-19 18:15:17 +0100259 > dd.metakeyvalues {
260 padding:0;
261 > div {
262 padding: .2em;
Akron7c70c892019-09-19 10:41:30 +0200263 &::before {
264 content: "\2022\00A0";
265 color: $dark-orange
266 }
Akrond45a1702018-11-19 18:15:17 +0100267 }
268 }
269
270 // equal to td.chosen
271 > dd.chosen, > dd > div.chosen {
272 background-color: $light-green !important;
273 color: $nearly-white;
Akron24866cf2018-01-23 20:22:01 +0100274 }
275 }
276}
277
Akron85c3c3e2018-11-21 12:58:54 +0100278// This is a temporary feature to disable
279// corpusByMatch assistant. See corpusByMatch.js
280// for reasons.
281div.metatable > dl.cbm-disabled > div > dd {
282 cursor: default !important;
283}
284
Nils Diewald0ec142f2015-05-05 00:29:23 +0000285div.loading {
Nils Diewald61e6ff52015-05-07 17:26:50 +0000286 background-color: transparent !important;
Nils Diewald0ec142f2015-05-05 00:29:23 +0000287 height: 16px !important;
288 width: 16px !important;
289 margin: 0 auto !important;
290 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 +0000291
Nils Diewald0ec142f2015-05-05 00:29:23 +0000292}
293
294