blob: 3039d037965019c542f1015402ca5f822f261293 [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 +020034
Akronaeceda72018-02-02 20:44:06 +010035div.matchtable > div {
Akrone8ea0002017-06-28 18:51:52 +020036 z-index: 20;
37 margin-left: $left-distance - ($border-size / 2);
Akronfc8dbae2019-02-15 13:16:20 +010038 margin-right: $right-view-distance;
Akrone8ea0002017-06-28 18:51:52 +020039 padding: 0;
40 overflow-x: auto;
41 overflow-y: visible;
42 width: auto;
hebastaf95226b2019-09-19 11:37:00 +020043
Nils Diewalda944fab2015-04-08 21:02:04 +000044 table {
45 display: table;
46 border-collapse: separate;
47 border-spacing: 0px;
48 }
49 th {
50 color: $nearly-white;
51 }
Akronfbf3a782017-06-28 17:34:28 +020052
53 // Use matchinfo cells for query creation
54 td,
55 tbody th,
Akron083ec572019-05-16 18:30:40 +020056 thead th:not(:nth-child(1)):not(:nth-child(2)):not(.cutted) {
Akronfbf3a782017-06-28 17:34:28 +020057 cursor: pointer;
58 }
Akron78655d12017-06-28 18:56:57 +020059 td:empty {
60 cursor: default;
Akron158fce12019-12-17 14:43:29 +010061 // Fix for empty annotation lines:
62 &::after {
63 content: " ";
64 white-space: pre;
65 }
Akron78655d12017-06-28 18:56:57 +020066 }
Akronfbf3a782017-06-28 17:34:28 +020067 tr {
68 outline: none;
Akrond45a1702018-11-19 18:15:17 +010069 // equal to dd.chosen
Akron83b2b0e2017-07-03 15:17:38 +020070 td.chosen,
71 th.chosen,
72 div.chosen {
Akronfbf3a782017-06-28 17:34:28 +020073 background-color: $light-green !important;
74 color: $nearly-white;
75 // transition: color 0.1s, background-color 0.15s ease-out;
76 }
77 }
78
Nils Diewalda944fab2015-04-08 21:02:04 +000079 thead {
80 tr th {
81 background-color: $darker-orange;
82 border-top-width: 0px !important;
Akron2495ceb2016-02-13 17:17:52 +010083 text-align: center;
84 &:nth-of-type(1), &:nth-of-type(2) {
Akronfbf3a782017-06-28 17:34:28 +020085 text-align: left;
Akronad1e46a2018-09-19 15:55:40 +020086 }
87 &.mark {
88 background-color: $darkest-orange; // #f6a800;
Akron2495ceb2016-02-13 17:17:52 +010089 }
Akron083ec572019-05-16 18:30:40 +020090
91 &.cutted {
92 background-color: $light-orange;
93 &::after {
94 content: $fa-cut;
95 font-family: FontAwesome;
96 padding: {
97 left: 4pt;
98 right: 4pt;
99 }
100 color: $light-green;
101 }
102 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000103 }
104 }
Akronfbf3a782017-06-28 17:34:28 +0200105
Nils Diewalda944fab2015-04-08 21:02:04 +0000106 tbody {
107 > tr:nth-of-type(1) > th {
108 border-top-color: transparent;
109 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000110 }
111 tr {
112 /**
113 * The first two columns.
114 */
115 > th:nth-of-type(1),
116 > th:nth-of-type(2) {
117 position: absolute;
118 z-index: 80;
119 vertical-align: middle;
120 left: 0px;
121 @include matchinfo-head;
122 }
123 > th:nth-of-type(2) {
124 left: ($left-width / 2) + $border-size;
125 }
Akron0af14142017-06-30 14:58:27 +0200126
127 // Includes header line as well
Nils Diewalda944fab2015-04-08 21:02:04 +0000128 > * {
129 @include cell-info;
130 border: ($border-size / 2) solid $dark-orange;
131 }
132 }
133 tr > td {
134 background-color: $middle-orange; // $nearly-white;
135 white-space: nowrap;
136 vertical-align: top;
137 text-align: center;
Akronad1e46a2018-09-19 15:55:40 +0200138 &.mark {
139 background-color: $light-orange;
140 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000141 }
142 tr:nth-child(even) > td {
143 background-color: $light-orange;
Akronad1e46a2018-09-19 15:55:40 +0200144 &.mark {
145 background-color: $middle-orange;
146 }
Akron83b2b0e2017-07-03 15:17:38 +0200147 }
Akron83b2b0e2017-07-03 15:17:38 +0200148
149 // table for key-value pairs
150 td.matchkeyvalues {
151 padding: 0;
152 > div {
153 @include cell-info;
154 > span {
155 color: $darkest-orange;
156 text-align: right;
157 &::after {
158 content: ":"
159 }
160 padding-right: .5em;
161 }
162 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000163 }
164}
165
Akronbd342982018-01-25 18:01:46 +0100166
hebastaa7806882019-11-18 19:35:47 +0100167div.metatable, div.matchtable {
168 background-color: $dark-orange;
169 position: relative;
Akron41387d22018-02-02 18:10:06 +0100170}
171
Akron8b592d42018-01-26 18:33:06 +0100172/**
173 * Label
174 */
175// The metatable branch was experimental
Akron257aa852018-02-06 19:29:51 +0100176div.matchtree {
Akronbd342982018-01-25 18:01:46 +0100177 h6 {
178 display: inline;
179 font-size: inherit;
180 color: $nearly-white;
181 margin: 0;
182 padding: 0 !important;
183 float: left;
Akron8b592d42018-01-26 18:33:06 +0100184 > span { // , > div {
Akronbd342982018-01-25 18:01:46 +0100185 @include matchinfo-head;
186 @include cell-info;
187 display: inline-block !important;
188 margin: 0;
189 &:nth-of-type(2) {
190 margin-left: $border-size;
191 }
192 }
Akronbd342982018-01-25 18:01:46 +0100193 }
194}
195
Nils Diewalda944fab2015-04-08 21:02:04 +0000196/**
197 * Tree view
198 */
199div.matchtree {
200 position: relative;
201 overflow-x: hidden;
202 overflow-y: visible;
203 padding: 0;
204 margin-top: 1pt;
hebastaf95226b2019-09-19 11:37:00 +0200205 background-color: $dark-orange;
Nils Diewalda944fab2015-04-08 21:02:04 +0000206
Nils Diewalda944fab2015-04-08 21:02:04 +0000207 > div {
Akron3bb91bc2016-12-02 16:43:17 +0100208 position: unset;
209 z-index: 4;
Nils Diewalda944fab2015-04-08 21:02:04 +0000210 overflow-x: auto;
211 margin: $border-size;
212 margin-left: $left-distance;
Akronfc8dbae2019-02-15 13:16:20 +0100213 margin-right: $right-view-distance;
Nils Diewalda944fab2015-04-08 21:02:04 +0000214
Akron257aa852018-02-06 19:29:51 +0100215 background-color: $light-orange;
Akron41387d22018-02-02 18:10:06 +0100216 }
217}
Nils Diewalda944fab2015-04-08 21:02:04 +0000218
Akronbfe912c2018-07-17 19:30:52 +0200219div.button-group.button-panel.button-matchinfo {
220 display: inline-block;
221 margin-right: .5em;
222 > span {
223 position: relative;
224 box-shadow: none;
Nils Diewalda944fab2015-04-08 21:02:04 +0000225 }
226}
227
Akronbfe912c2018-07-17 19:30:52 +0200228div.matchinfo .view + .view {
Akron8b592d42018-01-26 18:33:06 +0100229 margin-top: 4 * $border-size !important;
Akronbd342982018-01-25 18:01:46 +0100230}
Akron24866cf2018-01-23 20:22:01 +0100231
Akronbfe912c2018-07-17 19:30:52 +0200232
233// Metatable
Akronbd342982018-01-25 18:01:46 +0100234div.metatable > dl {
Akronfc8dbae2019-02-15 13:16:20 +0100235 margin-right: $right-view-distance;
Akronbd342982018-01-25 18:01:46 +0100236 margin-top: $border-size;
237
Akron24866cf2018-01-23 20:22:01 +0100238 > div {
Akron2f979122018-07-25 17:00:23 +0200239 border-color: $dark-orange;
Akrond45a1702018-11-19 18:15:17 +0100240 > * {
241 padding: .2em;
242 }
Akron24866cf2018-01-23 20:22:01 +0100243 > dt {
Akron24866cf2018-01-23 20:22:01 +0100244 background: $darker-orange;
245 color: $nearly-white;
Akronca2c37c2018-03-06 20:18:47 +0100246 width: 12.5em;
Akron24866cf2018-01-23 20:22:01 +0100247 }
248 > dd {
Akron24866cf2018-01-23 20:22:01 +0100249 background-color: $light-orange;
Akrond45a1702018-11-19 18:15:17 +0100250 cursor: pointer;
251 }
Akrona0ea3c32018-12-14 18:33:48 +0100252 > dd[data-type="type:store"],
253 > dd[data-type="type:attachement"]{
Akrond45a1702018-11-19 18:15:17 +0100254 background-color: $middle-orange;
Akrond45a1702018-11-19 18:15:17 +0100255 cursor: default;
Akrond45a1702018-11-19 18:15:17 +0100256
Akrona0ea3c32018-12-14 18:33:48 +0100257 a {
258 color: inherit;
259 }
260 }
261
Akrond45a1702018-11-19 18:15:17 +0100262 > dd.metakeyvalues {
263 padding:0;
264 > div {
265 padding: .2em;
Akron7c70c892019-09-19 10:41:30 +0200266 &::before {
267 content: "\2022\00A0";
268 color: $dark-orange
269 }
Akrond45a1702018-11-19 18:15:17 +0100270 }
271 }
272
273 // equal to td.chosen
274 > dd.chosen, > dd > div.chosen {
275 background-color: $light-green !important;
276 color: $nearly-white;
Akron24866cf2018-01-23 20:22:01 +0100277 }
278 }
279}
280
Akron85c3c3e2018-11-21 12:58:54 +0100281// This is a temporary feature to disable
282// corpusByMatch assistant. See corpusByMatch.js
283// for reasons.
284div.metatable > dl.cbm-disabled > div > dd {
285 cursor: default !important;
286}