blob: 20820d26baa5052ccdc06fa851ac36791de7693a [file] [log] [blame]
Akron49bfdbf2016-11-22 21:47:33 +01001@charset "utf-8";
2@import "../util";
3
4$border-size: 2px;
Akron08b82d62016-12-05 15:06:05 +01005$font-size: 10pt;
Akron49bfdbf2016-11-22 21:47:33 +01006
7#search {
8 position: relative;
9 margin-bottom: 30px;
10 overflow: visible;
Akron3bb91bc2016-12-02 16:43:17 +010011// margin-top: 14pt;
Akron49bfdbf2016-11-22 21:47:33 +010012}
13
14#search > ol {
15 overflow-x: hidden;
16 overflow-y: visible;
17 width: auto;
18 border: 1px solid black;
19 text-indent: 0;
20 list-style-type: none;
21 margin: 0;
22 padding: 0;
23 border: 1px solid $kwic-border;
Akron08b82d62016-12-05 15:06:05 +010024 font-size: $font-size;
Akron49bfdbf2016-11-22 21:47:33 +010025
26 > li {
27 display: table-row;
28 table-layout: auto;
29 div.meta {
30 position: relative;
31 display: table-cell;
Akron97d42802016-11-26 22:45:46 +010032 width: 2px;
Akron49bfdbf2016-11-22 21:47:33 +010033 z-index: 5;
34 overflow-y: visible;
Akron3bb91bc2016-12-02 16:43:17 +010035 white-space: nowrap;
Akron46b9f212017-05-01 13:55:17 +020036 background-color: $middle-grey;
Akron08b82d62016-12-05 15:06:05 +010037 border: {
Akron46b9f212017-05-01 13:55:17 +020038 color: $dark-grey;
Akron08b82d62016-12-05 15:06:05 +010039 style: solid;
Akron46b9f212017-05-01 13:55:17 +020040 width: 2px 1px 0 0;
41 }
42 &:empty {
43 border-width: 0 1px 0 0;
44 }
45 &.flip {
46 background-color: lighten($middle-grey, 10%);
Akron08b82d62016-12-05 15:06:05 +010047 }
Akron3bb91bc2016-12-02 16:43:17 +010048 color: $nearly-white;
Akron46b9f212017-05-01 13:55:17 +020049 font-size: 75%;
Akron3bb91bc2016-12-02 16:43:17 +010050 padding: 0 5pt;
Akron49bfdbf2016-11-22 21:47:33 +010051 }
Akron97d42802016-11-26 22:45:46 +010052 &:first-of-type div.meta {
Akron08b82d62016-12-05 15:06:05 +010053 border-top-width: 0;
Akron97d42802016-11-26 22:45:46 +010054 }
Akron08b82d62016-12-05 15:06:05 +010055 &:last-of-type div.meta {
56 border-bottom-width: 0;
57 }
Akron49bfdbf2016-11-22 21:47:33 +010058 }
59}
60
61#search > ol > li {
62 border: {
63 style: solid;
64 color: $dark-orange;
65 width: 0;
66 }
67}
68
69#search {
70 div.meta, div.match-main {
71 position: relative;
Akron08b82d62016-12-05 15:06:05 +010072 cursor: pointer;
Akron49bfdbf2016-11-22 21:47:33 +010073 }
74 /*
75 &:not(.active):not(:target) {
76 &:nth-of-type(even) div.main-col {
77 */
78 div.match-main {
79 display: table-cell;
80 z-index: 4;
81 > div.match-wrap {
82 width: 99999%;
83 margin-left: -49999.5%;
84 background-color: $kwic-line-noneven;
85 overflow-x: hidden;
86 overflow-y: visible;
Akron3bb91bc2016-12-02 16:43:17 +010087 white-space: normal;
Akron49bfdbf2016-11-22 21:47:33 +010088 }
89 }
90}
91
92#search ol li:nth-of-type(even) div.match-main div.match-wrap {
93 background-color: $kwic-line-even;
94}
95
96
97div.snippet {
98 text-overflow: ellipsis;
99 text-indent: 0;
100 text-shadow: $light-shadow;
Akron08b82d62016-12-05 15:06:05 +0100101 font-size: 0;
Akron49bfdbf2016-11-22 21:47:33 +0100102 > span, mark {
Akron08b82d62016-12-05 15:06:05 +0100103 font-size: $font-size;
Akron49bfdbf2016-11-22 21:47:33 +0100104 padding: 5pt 0 6pt 0;
105 white-space: no-wrap !important;
106 > span {
107 white-space: no-wrap !important;
108 }
109 }
110 > mark, > span.match {
111 font-weight: bold;
Akron08b82d62016-12-05 15:06:05 +0100112 color: $black;
113 text-shadow: none;
Akron49bfdbf2016-11-22 21:47:33 +0100114 padding-left: 4pt;
115 padding-right: 2pt;
116 }
117}
118
119
120
121#search div.matchinfo {
122 display: none;
123}
124
Akron3bb91bc2016-12-02 16:43:17 +0100125#search li.active div.matchinfo {
126 display: block;
127}
128
129
130
Akron49bfdbf2016-11-22 21:47:33 +0100131/*
132#search ol > li:focus:not(.active) {
133 background-color: $dark-orange !important;
134 &:not(:target) div.flag {
135 border-right-color: $nearly-white;
136 }
137 div.snippet {
138 color: $nearly-white;
139 text-shadow: none !important;
140 .class-3 {
141 border-color: $nearly-white;
142 }
143 }
144 }
145*/
146
147#search div.match-main {
148 position: relative;
149 z-index: 4;
150 > div.match-wrap {
151 margin-left: -49999.5%;
152 width: 99999%;
153 overflow-x: hidden;
154 overflow-y: visible;
155 position: relative;
156 box-sizing: border-box;
157 }
158}
159
160div.snippet.startMore:before,
161div.snippet.endMore:after {
162 content: "…";
163 padding-left: 2pt;
164 padding-right: 2pt;
165}
166
167/**
168 * flag
169 */
170div.snippet div.flag {
171 position: absolute;
172 height: 100%;
Akron3bb91bc2016-12-02 16:43:17 +0100173 top: 0;
174 // margin-left: -49999.5%;
175 // margin-left: 50%;
Akron49bfdbf2016-11-22 21:47:33 +0100176 margin-left: 50%;
177 width: 11px;
178 background-color: $dark-orange;
179 border-right-color: $nearly-white;
180 border-right: 1px solid $darkest-orange;
181}
182
183/**
184 * References
185 */
186#search > ol > li p.ref {
187 display: none;
188}
189
190/**
191 * Active
192 */
193#search > ol {
194 > li.active,
195 > li:target {
Akron3bb91bc2016-12-02 16:43:17 +0100196 background-color: $dark-orange;
197 display: block;
Akron49bfdbf2016-11-22 21:47:33 +0100198 text-align: left;
Akron49bfdbf2016-11-22 21:47:33 +0100199 position: relative;
200 border-width: 2px;
201 white-space: wrap;
202 height: auto;
203 width: auto;
Akron3bb91bc2016-12-02 16:43:17 +0100204
205 div.match-main > div.match-wrap {
206 cursor: default;
207 }
Akron49bfdbf2016-11-22 21:47:33 +0100208 }
209}
210
211#search > ol > li.active {
Akron3bb91bc2016-12-02 16:43:17 +0100212 span {
213 display: inline !important;
214 }
215 ul.action {
216 display: block;
217 }
Akron49bfdbf2016-11-22 21:47:33 +0100218 div.match-wrap {
219 min-height: 20pt;
220 div.snippet {
221 background-color: $light-orange;
222 > * {
223 background-color: transparent;
224 }
225 div.flag {
226 display: none;
227 }
228 padding: 2pt 0 5pt 5pt;
229 margin: {
230 top: 0;
231 right: $right-match-distance; // 3em;
232 bottom: 0;
233 left: 0; // 5pt margin-top
234 }
235 > span {
Akron08b82d62016-12-05 15:06:05 +0100236 // color: black;
Akron49bfdbf2016-11-22 21:47:33 +0100237 line-height: 1.4em;
238 width: auto;
239 &.context-left {
240 margin-left: 0;
241 display: inline;
242 overflow: visible;
243 text-align: left;
244 width: auto;
245 }
246 }
247 }
248 }
249}
250
251#search > ol > li.active {
252 overflow: hidden;
253 div.meta {
Akron97d42802016-11-26 22:45:46 +0100254 display: none;
255 // visibility: hidden;
Akron49bfdbf2016-11-22 21:47:33 +0100256 }
257 div.match-main {
Akron3bb91bc2016-12-02 16:43:17 +0100258 width: 100%;
Akron97d42802016-11-26 22:45:46 +0100259 display: block;
Akron49bfdbf2016-11-22 21:47:33 +0100260 div.match-wrap {
Akron3bb91bc2016-12-02 16:43:17 +0100261 background-color: $dark-orange;
262 width: 100%;
Akron49bfdbf2016-11-22 21:47:33 +0100263 margin-left: 0;
264 overflow-x: visible;
265 white-space: wrap;
266 }
267 }
268 p.ref {
269 display: block;
Akron08b82d62016-12-05 15:06:05 +0100270 color: $nearly-white;
Akron49bfdbf2016-11-22 21:47:33 +0100271 padding: 3pt 10pt 3pt 3pt;
272 padding-right: $right-match-distance;
273 margin: 0pt;
274 width: 100%;
275 bottom: 0;
276 z-index: 30;
277 > span.sigle {
278 font-size: 75%;
279 vertical-align: top;
280 color: $light-orange;
281 float: right;
282 }
283 }
284}
285
286
287
288/**
289 * Right aligned
290 */
291
292#search ol span.context-left {
293 display: inline-block;
294 width: 50.01%;
295 text-align: right;
296}
297
298#search ol.align-right {
299 text-align: right;
300 div.match-main span.context-right {
301 display: inline-block;
302 width: 49.915%;
303 text-align: left;
304 }
305}
306
307
308/**
309 * Highlights
310 */
311mark {
312 background-color: inherit;
313 color: inherit;
314}
315
316mark > mark,
317em,
318.level-0 {
319 border-bottom-width: 2px;
320 border-bottom-style: solid;
Akron3bb91bc2016-12-02 16:43:17 +0100321 padding-bottom: 0px !important;
Akron49bfdbf2016-11-22 21:47:33 +0100322 font-style: normal;
323}
324
325mark > mark > mark,
326em > em,
327.level-1 {
Akron3bb91bc2016-12-02 16:43:17 +0100328 padding-bottom: 3px !important;
Akron49bfdbf2016-11-22 21:47:33 +0100329}
330
331mark > mark > mark > mark,
332em > em > em,
333.level-2 {
Akron3bb91bc2016-12-02 16:43:17 +0100334 padding-bottom: 6px !important;
Akron49bfdbf2016-11-22 21:47:33 +0100335}
336
337
338#search > ol > li {
339 &:not(.active) mark > mark > mark > mark,
340 &:not(.active) em > em > em {
341 line-height: 180%;
342 }
343 &.active mark > mark > mark > mark,
344 &.active em > em > em {
345 line-height: 250%;
346 }
347}
348
349.class-1 { border-color: $kwic-highlight-1; }
350.class-2 { border-color: $kwic-highlight-2; }
351.class-3 { border-color: $kwic-highlight-3; }
352.class-4 { border-color: $kwic-highlight-4; }
Akron3bb91bc2016-12-02 16:43:17 +0100353
354
355/**
356 * Actions
357 */
358
359ul.action {
360 display: none;
361 // background-color: $dark-orange;
362 font-size: 12pt;
Akron08b82d62016-12-05 15:06:05 +0100363 color: $nearly-white;
Akron3bb91bc2016-12-02 16:43:17 +0100364 text: {
365 shadow: none;
366 indent: 0;
367 }
368 margin: 0;
369 padding: 0;
370 z-index: 5;
371
372 list-style: {
373 type: none;
374 position: inline;
375 }
376 &.right {
377 position: absolute;
Akron08b82d62016-12-05 15:06:05 +0100378 z-index: 4;
Akron3bb91bc2016-12-02 16:43:17 +0100379 width: $right-match-distance;
380 float: right;
381 text-align: center;
382 padding: 0pt 3pt;
383 height: 100%;
384 right: 0;
385 top: 0;
386 li {
387 cursor: pointer;
Akron08b82d62016-12-05 15:06:05 +0100388 color: $nearly-white;
Akron3bb91bc2016-12-02 16:43:17 +0100389 text-decoration: none;
390
391 > span {
392 @include blind;
393 }
394 &.close::after {
395 font-family: "FontAwesome";
396 content: $fa-close;
397 }
398 &.info::after {
399 font-family: "FontAwesome";
400 content: $fa-info;
401 }
402 }
403 }
404}
405