blob: a4e69bacd9125bc50cfb391d498cca772ebf082f [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;
61 }
Akronfbf3a782017-06-28 17:34:28 +020062 tr {
63 outline: none;
Akrond45a1702018-11-19 18:15:17 +010064 // equal to dd.chosen
Akron83b2b0e2017-07-03 15:17:38 +020065 td.chosen,
66 th.chosen,
67 div.chosen {
Akronfbf3a782017-06-28 17:34:28 +020068 background-color: $light-green !important;
69 color: $nearly-white;
70 // transition: color 0.1s, background-color 0.15s ease-out;
71 }
72 }
73
Nils Diewalda944fab2015-04-08 21:02:04 +000074 thead {
75 tr th {
76 background-color: $darker-orange;
77 border-top-width: 0px !important;
Akron2495ceb2016-02-13 17:17:52 +010078 text-align: center;
79 &:nth-of-type(1), &:nth-of-type(2) {
Akronfbf3a782017-06-28 17:34:28 +020080 text-align: left;
Akronad1e46a2018-09-19 15:55:40 +020081 }
82 &.mark {
83 background-color: $darkest-orange; // #f6a800;
Akron2495ceb2016-02-13 17:17:52 +010084 }
Akron083ec572019-05-16 18:30:40 +020085
86 &.cutted {
87 background-color: $light-orange;
88 &::after {
89 content: $fa-cut;
90 font-family: FontAwesome;
91 padding: {
92 left: 4pt;
93 right: 4pt;
94 }
95 color: $light-green;
96 }
97 }
Nils Diewalda944fab2015-04-08 21:02:04 +000098 }
99 }
Akronfbf3a782017-06-28 17:34:28 +0200100
Nils Diewalda944fab2015-04-08 21:02:04 +0000101 tbody {
102 > tr:nth-of-type(1) > th {
103 border-top-color: transparent;
104 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000105 }
106 tr {
107 /**
108 * The first two columns.
109 */
110 > th:nth-of-type(1),
111 > th:nth-of-type(2) {
112 position: absolute;
113 z-index: 80;
114 vertical-align: middle;
115 left: 0px;
116 @include matchinfo-head;
117 }
118 > th:nth-of-type(2) {
119 left: ($left-width / 2) + $border-size;
120 }
Akron0af14142017-06-30 14:58:27 +0200121
122 // Includes header line as well
Nils Diewalda944fab2015-04-08 21:02:04 +0000123 > * {
124 @include cell-info;
125 border: ($border-size / 2) solid $dark-orange;
126 }
127 }
128 tr > td {
129 background-color: $middle-orange; // $nearly-white;
130 white-space: nowrap;
131 vertical-align: top;
132 text-align: center;
Akronad1e46a2018-09-19 15:55:40 +0200133 &.mark {
134 background-color: $light-orange;
135 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000136 }
137 tr:nth-child(even) > td {
138 background-color: $light-orange;
Akronad1e46a2018-09-19 15:55:40 +0200139 &.mark {
140 background-color: $middle-orange;
141 }
Akron83b2b0e2017-07-03 15:17:38 +0200142 }
Akron83b2b0e2017-07-03 15:17:38 +0200143
144 // table for key-value pairs
145 td.matchkeyvalues {
146 padding: 0;
147 > div {
148 @include cell-info;
149 > span {
150 color: $darkest-orange;
151 text-align: right;
152 &::after {
153 content: ":"
154 }
155 padding-right: .5em;
156 }
157 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000158 }
159}
160
Akronbd342982018-01-25 18:01:46 +0100161
hebastaa7806882019-11-18 19:35:47 +0100162div.metatable, div.matchtable {
163 background-color: $dark-orange;
164 position: relative;
Akron41387d22018-02-02 18:10:06 +0100165}
166
Akron8b592d42018-01-26 18:33:06 +0100167/**
168 * Label
169 */
170// The metatable branch was experimental
Akron257aa852018-02-06 19:29:51 +0100171div.matchtree {
Akronbd342982018-01-25 18:01:46 +0100172 h6 {
173 display: inline;
174 font-size: inherit;
175 color: $nearly-white;
176 margin: 0;
177 padding: 0 !important;
178 float: left;
Akron8b592d42018-01-26 18:33:06 +0100179 > span { // , > div {
Akronbd342982018-01-25 18:01:46 +0100180 @include matchinfo-head;
181 @include cell-info;
182 display: inline-block !important;
183 margin: 0;
184 &:nth-of-type(2) {
185 margin-left: $border-size;
186 }
187 }
Akronbd342982018-01-25 18:01:46 +0100188 }
189}
190
Nils Diewalda944fab2015-04-08 21:02:04 +0000191/**
192 * Tree view
193 */
194div.matchtree {
195 position: relative;
196 overflow-x: hidden;
197 overflow-y: visible;
198 padding: 0;
199 margin-top: 1pt;
hebastaf95226b2019-09-19 11:37:00 +0200200 background-color: $dark-orange;
Nils Diewalda944fab2015-04-08 21:02:04 +0000201
Nils Diewalda944fab2015-04-08 21:02:04 +0000202 > div {
Akron3bb91bc2016-12-02 16:43:17 +0100203 position: unset;
204 z-index: 4;
Nils Diewalda944fab2015-04-08 21:02:04 +0000205 overflow-x: auto;
206 margin: $border-size;
207 margin-left: $left-distance;
Akronfc8dbae2019-02-15 13:16:20 +0100208 margin-right: $right-view-distance;
Nils Diewalda944fab2015-04-08 21:02:04 +0000209
Akron257aa852018-02-06 19:29:51 +0100210 background-color: $light-orange;
Akron41387d22018-02-02 18:10:06 +0100211 }
212}
Nils Diewalda944fab2015-04-08 21:02:04 +0000213
Akronbfe912c2018-07-17 19:30:52 +0200214div.button-group.button-panel.button-matchinfo {
215 display: inline-block;
216 margin-right: .5em;
217 > span {
218 position: relative;
219 box-shadow: none;
Nils Diewalda944fab2015-04-08 21:02:04 +0000220 }
221}
222
Akronbfe912c2018-07-17 19:30:52 +0200223div.matchinfo .view + .view {
Akron8b592d42018-01-26 18:33:06 +0100224 margin-top: 4 * $border-size !important;
Akronbd342982018-01-25 18:01:46 +0100225}
Akron24866cf2018-01-23 20:22:01 +0100226
Akronbfe912c2018-07-17 19:30:52 +0200227
228// Metatable
Akronbd342982018-01-25 18:01:46 +0100229div.metatable > dl {
Akronfc8dbae2019-02-15 13:16:20 +0100230 margin-right: $right-view-distance;
Akronbd342982018-01-25 18:01:46 +0100231 margin-top: $border-size;
232
Akron24866cf2018-01-23 20:22:01 +0100233 > div {
Akron2f979122018-07-25 17:00:23 +0200234 border-color: $dark-orange;
Akrond45a1702018-11-19 18:15:17 +0100235 > * {
236 padding: .2em;
237 }
Akron24866cf2018-01-23 20:22:01 +0100238 > dt {
Akron24866cf2018-01-23 20:22:01 +0100239 background: $darker-orange;
240 color: $nearly-white;
Akronca2c37c2018-03-06 20:18:47 +0100241 width: 12.5em;
Akron24866cf2018-01-23 20:22:01 +0100242 }
243 > dd {
Akron24866cf2018-01-23 20:22:01 +0100244 background-color: $light-orange;
Akrond45a1702018-11-19 18:15:17 +0100245 cursor: pointer;
246 }
Akrona0ea3c32018-12-14 18:33:48 +0100247 > dd[data-type="type:store"],
248 > dd[data-type="type:attachement"]{
Akrond45a1702018-11-19 18:15:17 +0100249 background-color: $middle-orange;
Akrond45a1702018-11-19 18:15:17 +0100250 cursor: default;
Akrond45a1702018-11-19 18:15:17 +0100251
Akrona0ea3c32018-12-14 18:33:48 +0100252 a {
253 color: inherit;
254 }
255 }
256
Akrond45a1702018-11-19 18:15:17 +0100257 > dd.metakeyvalues {
258 padding:0;
259 > div {
260 padding: .2em;
Akron7c70c892019-09-19 10:41:30 +0200261 &::before {
262 content: "\2022\00A0";
263 color: $dark-orange
264 }
Akrond45a1702018-11-19 18:15:17 +0100265 }
266 }
267
268 // equal to td.chosen
269 > dd.chosen, > dd > div.chosen {
270 background-color: $light-green !important;
271 color: $nearly-white;
Akron24866cf2018-01-23 20:22:01 +0100272 }
273 }
274}
275
Akron85c3c3e2018-11-21 12:58:54 +0100276// This is a temporary feature to disable
277// corpusByMatch assistant. See corpusByMatch.js
278// for reasons.
279div.metatable > dl.cbm-disabled > div > dd {
280 cursor: default !important;
281}
282
Nils Diewald0ec142f2015-05-05 00:29:23 +0000283div.loading {
Nils Diewald61e6ff52015-05-07 17:26:50 +0000284 background-color: transparent !important;
Nils Diewald0ec142f2015-05-05 00:29:23 +0000285 height: 16px !important;
286 width: 16px !important;
287 margin: 0 auto !important;
288 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 +0000289
Nils Diewald0ec142f2015-05-05 00:29:23 +0000290}
291
292