blob: de6bcf35fb9b8094e8eafb7f84950a460bec484c [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;
36 background-color: $light-green;
Akron08b82d62016-12-05 15:06:05 +010037 // border-top: 1px solid lighten($light-green, 10%);
38 border: {
39 color: $dark-green;
40 style: solid;
41 width: 1px 0;
42 }
Akron3bb91bc2016-12-02 16:43:17 +010043 color: $nearly-white;
44 font-size: 80%;
45 padding: 0 5pt;
Akron49bfdbf2016-11-22 21:47:33 +010046 }
Akron97d42802016-11-26 22:45:46 +010047 &:first-of-type div.meta {
Akron08b82d62016-12-05 15:06:05 +010048 border-top-width: 0;
Akron97d42802016-11-26 22:45:46 +010049 }
Akron08b82d62016-12-05 15:06:05 +010050 &:last-of-type div.meta {
51 border-bottom-width: 0;
52 }
Akron49bfdbf2016-11-22 21:47:33 +010053 }
54}
55
56#search > ol > li {
57 border: {
58 style: solid;
59 color: $dark-orange;
60 width: 0;
61 }
62}
63
64#search {
65 div.meta, div.match-main {
66 position: relative;
Akron08b82d62016-12-05 15:06:05 +010067 cursor: pointer;
Akron49bfdbf2016-11-22 21:47:33 +010068 }
69 /*
70 &:not(.active):not(:target) {
71 &:nth-of-type(even) div.main-col {
72 */
73 div.match-main {
74 display: table-cell;
75 z-index: 4;
76 > div.match-wrap {
77 width: 99999%;
78 margin-left: -49999.5%;
79 background-color: $kwic-line-noneven;
80 overflow-x: hidden;
81 overflow-y: visible;
Akron3bb91bc2016-12-02 16:43:17 +010082 white-space: normal;
Akron49bfdbf2016-11-22 21:47:33 +010083 }
84 }
85}
86
87#search ol li:nth-of-type(even) div.match-main div.match-wrap {
88 background-color: $kwic-line-even;
89}
90
91
92div.snippet {
93 text-overflow: ellipsis;
94 text-indent: 0;
95 text-shadow: $light-shadow;
Akron08b82d62016-12-05 15:06:05 +010096 font-size: 0;
Akron49bfdbf2016-11-22 21:47:33 +010097 > span, mark {
Akron08b82d62016-12-05 15:06:05 +010098 font-size: $font-size;
Akron49bfdbf2016-11-22 21:47:33 +010099 padding: 5pt 0 6pt 0;
100 white-space: no-wrap !important;
101 > span {
102 white-space: no-wrap !important;
103 }
104 }
105 > mark, > span.match {
106 font-weight: bold;
Akron08b82d62016-12-05 15:06:05 +0100107 color: $black;
108 text-shadow: none;
Akron49bfdbf2016-11-22 21:47:33 +0100109 padding-left: 4pt;
110 padding-right: 2pt;
111 }
112}
113
114
115
116#search div.matchinfo {
117 display: none;
118}
119
Akron3bb91bc2016-12-02 16:43:17 +0100120#search li.active div.matchinfo {
121 display: block;
122}
123
124
125
Akron49bfdbf2016-11-22 21:47:33 +0100126/*
127#search ol > li:focus:not(.active) {
128 background-color: $dark-orange !important;
129 &:not(:target) div.flag {
130 border-right-color: $nearly-white;
131 }
132 div.snippet {
133 color: $nearly-white;
134 text-shadow: none !important;
135 .class-3 {
136 border-color: $nearly-white;
137 }
138 }
139 }
140*/
141
142#search div.match-main {
143 position: relative;
144 z-index: 4;
145 > div.match-wrap {
146 margin-left: -49999.5%;
147 width: 99999%;
148 overflow-x: hidden;
149 overflow-y: visible;
150 position: relative;
151 box-sizing: border-box;
152 }
153}
154
155div.snippet.startMore:before,
156div.snippet.endMore:after {
157 content: "…";
158 padding-left: 2pt;
159 padding-right: 2pt;
160}
161
162/**
163 * flag
164 */
165div.snippet div.flag {
166 position: absolute;
167 height: 100%;
Akron3bb91bc2016-12-02 16:43:17 +0100168 top: 0;
169 // margin-left: -49999.5%;
170 // margin-left: 50%;
Akron49bfdbf2016-11-22 21:47:33 +0100171 margin-left: 50%;
172 width: 11px;
173 background-color: $dark-orange;
174 border-right-color: $nearly-white;
175 border-right: 1px solid $darkest-orange;
176}
177
178/**
179 * References
180 */
181#search > ol > li p.ref {
182 display: none;
183}
184
185/**
186 * Active
187 */
188#search > ol {
189 > li.active,
190 > li:target {
Akron3bb91bc2016-12-02 16:43:17 +0100191 background-color: $dark-orange;
192 display: block;
Akron49bfdbf2016-11-22 21:47:33 +0100193 text-align: left;
Akron49bfdbf2016-11-22 21:47:33 +0100194 position: relative;
195 border-width: 2px;
196 white-space: wrap;
197 height: auto;
198 width: auto;
Akron3bb91bc2016-12-02 16:43:17 +0100199
200 div.match-main > div.match-wrap {
201 cursor: default;
202 }
Akron49bfdbf2016-11-22 21:47:33 +0100203 }
204}
205
206#search > ol > li.active {
Akron3bb91bc2016-12-02 16:43:17 +0100207 span {
208 display: inline !important;
209 }
210 ul.action {
211 display: block;
212 }
Akron49bfdbf2016-11-22 21:47:33 +0100213 div.match-wrap {
214 min-height: 20pt;
215 div.snippet {
216 background-color: $light-orange;
217 > * {
218 background-color: transparent;
219 }
220 div.flag {
221 display: none;
222 }
223 padding: 2pt 0 5pt 5pt;
224 margin: {
225 top: 0;
226 right: $right-match-distance; // 3em;
227 bottom: 0;
228 left: 0; // 5pt margin-top
229 }
230 > span {
Akron08b82d62016-12-05 15:06:05 +0100231 // color: black;
Akron49bfdbf2016-11-22 21:47:33 +0100232 line-height: 1.4em;
233 width: auto;
234 &.context-left {
235 margin-left: 0;
236 display: inline;
237 overflow: visible;
238 text-align: left;
239 width: auto;
240 }
241 }
242 }
243 }
244}
245
246#search > ol > li.active {
247 overflow: hidden;
248 div.meta {
Akron97d42802016-11-26 22:45:46 +0100249 display: none;
250 // visibility: hidden;
Akron49bfdbf2016-11-22 21:47:33 +0100251 }
252 div.match-main {
Akron3bb91bc2016-12-02 16:43:17 +0100253 width: 100%;
Akron97d42802016-11-26 22:45:46 +0100254 display: block;
Akron49bfdbf2016-11-22 21:47:33 +0100255 div.match-wrap {
Akron3bb91bc2016-12-02 16:43:17 +0100256 background-color: $dark-orange;
257 width: 100%;
Akron49bfdbf2016-11-22 21:47:33 +0100258 margin-left: 0;
259 overflow-x: visible;
260 white-space: wrap;
261 }
262 }
263 p.ref {
264 display: block;
Akron08b82d62016-12-05 15:06:05 +0100265 color: $nearly-white;
Akron49bfdbf2016-11-22 21:47:33 +0100266 padding: 3pt 10pt 3pt 3pt;
267 padding-right: $right-match-distance;
268 margin: 0pt;
269 width: 100%;
270 bottom: 0;
271 z-index: 30;
272 > span.sigle {
273 font-size: 75%;
274 vertical-align: top;
275 color: $light-orange;
276 float: right;
277 }
278 }
279}
280
281
282
283/**
284 * Right aligned
285 */
286
287#search ol span.context-left {
288 display: inline-block;
289 width: 50.01%;
290 text-align: right;
291}
292
293#search ol.align-right {
294 text-align: right;
295 div.match-main span.context-right {
296 display: inline-block;
297 width: 49.915%;
298 text-align: left;
299 }
300}
301
302
303/**
304 * Highlights
305 */
306mark {
307 background-color: inherit;
308 color: inherit;
309}
310
311mark > mark,
312em,
313.level-0 {
314 border-bottom-width: 2px;
315 border-bottom-style: solid;
Akron3bb91bc2016-12-02 16:43:17 +0100316 padding-bottom: 0px !important;
Akron49bfdbf2016-11-22 21:47:33 +0100317 font-style: normal;
318}
319
320mark > mark > mark,
321em > em,
322.level-1 {
Akron3bb91bc2016-12-02 16:43:17 +0100323 padding-bottom: 3px !important;
Akron49bfdbf2016-11-22 21:47:33 +0100324}
325
326mark > mark > mark > mark,
327em > em > em,
328.level-2 {
Akron3bb91bc2016-12-02 16:43:17 +0100329 padding-bottom: 6px !important;
Akron49bfdbf2016-11-22 21:47:33 +0100330}
331
332
333#search > ol > li {
334 &:not(.active) mark > mark > mark > mark,
335 &:not(.active) em > em > em {
336 line-height: 180%;
337 }
338 &.active mark > mark > mark > mark,
339 &.active em > em > em {
340 line-height: 250%;
341 }
342}
343
344.class-1 { border-color: $kwic-highlight-1; }
345.class-2 { border-color: $kwic-highlight-2; }
346.class-3 { border-color: $kwic-highlight-3; }
347.class-4 { border-color: $kwic-highlight-4; }
Akron3bb91bc2016-12-02 16:43:17 +0100348
349
350/**
351 * Actions
352 */
353
354ul.action {
355 display: none;
356 // background-color: $dark-orange;
357 font-size: 12pt;
Akron08b82d62016-12-05 15:06:05 +0100358 color: $nearly-white;
Akron3bb91bc2016-12-02 16:43:17 +0100359 text: {
360 shadow: none;
361 indent: 0;
362 }
363 margin: 0;
364 padding: 0;
365 z-index: 5;
366
367 list-style: {
368 type: none;
369 position: inline;
370 }
371 &.right {
372 position: absolute;
Akron08b82d62016-12-05 15:06:05 +0100373 z-index: 4;
Akron3bb91bc2016-12-02 16:43:17 +0100374 width: $right-match-distance;
375 float: right;
376 text-align: center;
377 padding: 0pt 3pt;
378 height: 100%;
379 right: 0;
380 top: 0;
381 li {
382 cursor: pointer;
Akron08b82d62016-12-05 15:06:05 +0100383 color: $nearly-white;
Akron3bb91bc2016-12-02 16:43:17 +0100384 text-decoration: none;
385
386 > span {
387 @include blind;
388 }
389 &.close::after {
390 font-family: "FontAwesome";
391 content: $fa-close;
392 }
393 &.info::after {
394 font-family: "FontAwesome";
395 content: $fa-info;
396 }
397 }
398 }
399}
400