blob: e0263d9242f45bc0f93cb01354721bad14e5b1e3 [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;
Akron67b51812017-05-01 14:10:55 +020032 cursor: initial;
Akron97d42802016-11-26 22:45:46 +010033 width: 2px;
Akron49bfdbf2016-11-22 21:47:33 +010034 z-index: 5;
35 overflow-y: visible;
Akron3bb91bc2016-12-02 16:43:17 +010036 white-space: nowrap;
Akron67b51812017-05-01 14:10:55 +020037 background-color: lighten($middle-grey, 5%);
38 // @include light-noise;
Akron08b82d62016-12-05 15:06:05 +010039 border: {
Akron46b9f212017-05-01 13:55:17 +020040 color: $dark-grey;
Akron08b82d62016-12-05 15:06:05 +010041 style: solid;
Akron46b9f212017-05-01 13:55:17 +020042 width: 2px 1px 0 0;
43 }
44 &:empty {
45 border-width: 0 1px 0 0;
46 }
47 &.flip {
Akron67b51812017-05-01 14:10:55 +020048 background-color: lighten($middle-grey, 17%);
Akron08b82d62016-12-05 15:06:05 +010049 }
Akron3bb91bc2016-12-02 16:43:17 +010050 color: $nearly-white;
Akron46b9f212017-05-01 13:55:17 +020051 font-size: 75%;
Akron3bb91bc2016-12-02 16:43:17 +010052 padding: 0 5pt;
Akron49bfdbf2016-11-22 21:47:33 +010053 }
Akron97d42802016-11-26 22:45:46 +010054 &:first-of-type div.meta {
Akron08b82d62016-12-05 15:06:05 +010055 border-top-width: 0;
Akron97d42802016-11-26 22:45:46 +010056 }
Akron08b82d62016-12-05 15:06:05 +010057 &:last-of-type div.meta {
58 border-bottom-width: 0;
59 }
Akron49bfdbf2016-11-22 21:47:33 +010060 }
61}
62
63#search > ol > li {
64 border: {
65 style: solid;
66 color: $dark-orange;
67 width: 0;
68 }
69}
70
71#search {
72 div.meta, div.match-main {
73 position: relative;
Akron08b82d62016-12-05 15:06:05 +010074 cursor: pointer;
Akron49bfdbf2016-11-22 21:47:33 +010075 }
76 /*
77 &:not(.active):not(:target) {
78 &:nth-of-type(even) div.main-col {
79 */
80 div.match-main {
81 display: table-cell;
82 z-index: 4;
83 > div.match-wrap {
84 width: 99999%;
85 margin-left: -49999.5%;
86 background-color: $kwic-line-noneven;
87 overflow-x: hidden;
88 overflow-y: visible;
Akron3bb91bc2016-12-02 16:43:17 +010089 white-space: normal;
Akron49bfdbf2016-11-22 21:47:33 +010090 }
91 }
92}
93
94#search ol li:nth-of-type(even) div.match-main div.match-wrap {
95 background-color: $kwic-line-even;
96}
97
98
99div.snippet {
100 text-overflow: ellipsis;
101 text-indent: 0;
102 text-shadow: $light-shadow;
Akron08b82d62016-12-05 15:06:05 +0100103 font-size: 0;
Akron49bfdbf2016-11-22 21:47:33 +0100104 > span, mark {
Akron08b82d62016-12-05 15:06:05 +0100105 font-size: $font-size;
Akron49bfdbf2016-11-22 21:47:33 +0100106 padding: 5pt 0 6pt 0;
107 white-space: no-wrap !important;
108 > span {
109 white-space: no-wrap !important;
110 }
111 }
112 > mark, > span.match {
113 font-weight: bold;
Akron08b82d62016-12-05 15:06:05 +0100114 color: $black;
115 text-shadow: none;
Akron49bfdbf2016-11-22 21:47:33 +0100116 padding-left: 4pt;
117 padding-right: 2pt;
118 }
119}
120
121
122
123#search div.matchinfo {
124 display: none;
125}
126
Akron3bb91bc2016-12-02 16:43:17 +0100127#search li.active div.matchinfo {
128 display: block;
129}
130
131
132
Akron49bfdbf2016-11-22 21:47:33 +0100133/*
134#search ol > li:focus:not(.active) {
135 background-color: $dark-orange !important;
136 &:not(:target) div.flag {
137 border-right-color: $nearly-white;
138 }
139 div.snippet {
140 color: $nearly-white;
141 text-shadow: none !important;
142 .class-3 {
143 border-color: $nearly-white;
144 }
145 }
146 }
147*/
148
149#search div.match-main {
150 position: relative;
151 z-index: 4;
152 > div.match-wrap {
153 margin-left: -49999.5%;
154 width: 99999%;
155 overflow-x: hidden;
156 overflow-y: visible;
157 position: relative;
158 box-sizing: border-box;
159 }
160}
161
162div.snippet.startMore:before,
163div.snippet.endMore:after {
164 content: "…";
165 padding-left: 2pt;
166 padding-right: 2pt;
167}
168
169/**
170 * flag
171 */
172div.snippet div.flag {
173 position: absolute;
174 height: 100%;
Akron3bb91bc2016-12-02 16:43:17 +0100175 top: 0;
176 // margin-left: -49999.5%;
177 // margin-left: 50%;
Akron49bfdbf2016-11-22 21:47:33 +0100178 margin-left: 50%;
179 width: 11px;
180 background-color: $dark-orange;
181 border-right-color: $nearly-white;
182 border-right: 1px solid $darkest-orange;
183}
184
185/**
186 * References
187 */
188#search > ol > li p.ref {
189 display: none;
190}
191
192/**
193 * Active
194 */
195#search > ol {
196 > li.active,
197 > li:target {
Akron3bb91bc2016-12-02 16:43:17 +0100198 background-color: $dark-orange;
199 display: block;
Akron49bfdbf2016-11-22 21:47:33 +0100200 text-align: left;
Akron49bfdbf2016-11-22 21:47:33 +0100201 position: relative;
202 border-width: 2px;
203 white-space: wrap;
204 height: auto;
205 width: auto;
Akron3bb91bc2016-12-02 16:43:17 +0100206
207 div.match-main > div.match-wrap {
208 cursor: default;
209 }
Akron49bfdbf2016-11-22 21:47:33 +0100210 }
211}
212
213#search > ol > li.active {
Akron3bb91bc2016-12-02 16:43:17 +0100214 span {
215 display: inline !important;
216 }
217 ul.action {
218 display: block;
219 }
Akron49bfdbf2016-11-22 21:47:33 +0100220 div.match-wrap {
221 min-height: 20pt;
222 div.snippet {
223 background-color: $light-orange;
224 > * {
225 background-color: transparent;
226 }
227 div.flag {
228 display: none;
229 }
230 padding: 2pt 0 5pt 5pt;
231 margin: {
232 top: 0;
233 right: $right-match-distance; // 3em;
234 bottom: 0;
235 left: 0; // 5pt margin-top
236 }
237 > span {
Akron08b82d62016-12-05 15:06:05 +0100238 // color: black;
Akron49bfdbf2016-11-22 21:47:33 +0100239 line-height: 1.4em;
240 width: auto;
241 &.context-left {
242 margin-left: 0;
243 display: inline;
244 overflow: visible;
245 text-align: left;
246 width: auto;
247 }
248 }
249 }
250 }
251}
252
253#search > ol > li.active {
254 overflow: hidden;
255 div.meta {
Akron97d42802016-11-26 22:45:46 +0100256 display: none;
257 // visibility: hidden;
Akron49bfdbf2016-11-22 21:47:33 +0100258 }
259 div.match-main {
Akron3bb91bc2016-12-02 16:43:17 +0100260 width: 100%;
Akron97d42802016-11-26 22:45:46 +0100261 display: block;
Akron49bfdbf2016-11-22 21:47:33 +0100262 div.match-wrap {
Akron3bb91bc2016-12-02 16:43:17 +0100263 background-color: $dark-orange;
264 width: 100%;
Akron49bfdbf2016-11-22 21:47:33 +0100265 margin-left: 0;
266 overflow-x: visible;
267 white-space: wrap;
268 }
269 }
270 p.ref {
271 display: block;
Akron08b82d62016-12-05 15:06:05 +0100272 color: $nearly-white;
Akron49bfdbf2016-11-22 21:47:33 +0100273 padding: 3pt 10pt 3pt 3pt;
274 padding-right: $right-match-distance;
275 margin: 0pt;
276 width: 100%;
277 bottom: 0;
278 z-index: 30;
279 > span.sigle {
280 font-size: 75%;
281 vertical-align: top;
282 color: $light-orange;
283 float: right;
284 }
285 }
286}
287
288
289
290/**
291 * Right aligned
292 */
293
294#search ol span.context-left {
295 display: inline-block;
296 width: 50.01%;
297 text-align: right;
298}
299
300#search ol.align-right {
301 text-align: right;
302 div.match-main span.context-right {
303 display: inline-block;
304 width: 49.915%;
305 text-align: left;
306 }
307}
308
309
310/**
311 * Highlights
312 */
313mark {
314 background-color: inherit;
315 color: inherit;
316}
317
318mark > mark,
319em,
320.level-0 {
321 border-bottom-width: 2px;
322 border-bottom-style: solid;
Akron3bb91bc2016-12-02 16:43:17 +0100323 padding-bottom: 0px !important;
Akron49bfdbf2016-11-22 21:47:33 +0100324 font-style: normal;
325}
326
327mark > mark > mark,
328em > em,
329.level-1 {
Akron3bb91bc2016-12-02 16:43:17 +0100330 padding-bottom: 3px !important;
Akron49bfdbf2016-11-22 21:47:33 +0100331}
332
333mark > mark > mark > mark,
334em > em > em,
335.level-2 {
Akron3bb91bc2016-12-02 16:43:17 +0100336 padding-bottom: 6px !important;
Akron49bfdbf2016-11-22 21:47:33 +0100337}
338
339
340#search > ol > li {
341 &:not(.active) mark > mark > mark > mark,
342 &:not(.active) em > em > em {
343 line-height: 180%;
344 }
345 &.active mark > mark > mark > mark,
346 &.active em > em > em {
347 line-height: 250%;
348 }
349}
350
351.class-1 { border-color: $kwic-highlight-1; }
352.class-2 { border-color: $kwic-highlight-2; }
353.class-3 { border-color: $kwic-highlight-3; }
354.class-4 { border-color: $kwic-highlight-4; }
Akron3bb91bc2016-12-02 16:43:17 +0100355
356
357/**
358 * Actions
359 */
360
361ul.action {
362 display: none;
363 // background-color: $dark-orange;
364 font-size: 12pt;
Akron08b82d62016-12-05 15:06:05 +0100365 color: $nearly-white;
Akron3bb91bc2016-12-02 16:43:17 +0100366 text: {
367 shadow: none;
368 indent: 0;
369 }
370 margin: 0;
371 padding: 0;
372 z-index: 5;
373
374 list-style: {
375 type: none;
376 position: inline;
377 }
378 &.right {
379 position: absolute;
Akron08b82d62016-12-05 15:06:05 +0100380 z-index: 4;
Akron3bb91bc2016-12-02 16:43:17 +0100381 width: $right-match-distance;
382 float: right;
383 text-align: center;
384 padding: 0pt 3pt;
385 height: 100%;
386 right: 0;
387 top: 0;
388 li {
389 cursor: pointer;
Akron08b82d62016-12-05 15:06:05 +0100390 color: $nearly-white;
Akron3bb91bc2016-12-02 16:43:17 +0100391 text-decoration: none;
392
393 > span {
394 @include blind;
395 }
396 &.close::after {
397 font-family: "FontAwesome";
398 content: $fa-close;
399 }
400 &.info::after {
401 font-family: "FontAwesome";
402 content: $fa-info;
403 }
404 }
405 }
406}
407