blob: dce53a6a3e4a7280546c0ca875ef3683a687ccae [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$border-size: 2px;
5
Akron6a535d42015-08-26 20:16:58 +02006/*
7*:focus {
8 background-color: red !important;
9}
10*/
11
Nils Diewalda944fab2015-04-08 21:02:04 +000012#search {
13 position: relative;
Nils Diewalda898dac2015-05-06 21:04:16 +000014 margin-bottom: 30px;
Nils Diewalda944fab2015-04-08 21:02:04 +000015 overflow: visible;
16
17 &.match {
18 margin-top: 14pt;
19 }
20
21 ol {
22 width: auto;
23 overflow-x: hidden;
24 overflow-y: visible;
25 list-style-type: none;
26 margin: 0;
27 padding: 0;
28 text-indent: 0;
29 border: 1px solid $kwic-border;
30 font-size: 10pt;
31 > li {
Akron6a535d42015-08-26 20:16:58 +020032 &:focus:not(.active) {
Akron1f0d04c2016-11-18 22:51:20 +010033 background-color: $dark-orange !important;
34 &:not(:target) div.flag {
35 border-right-color: $nearly-white;
36 }
37 div.snippet {
38 color: $nearly-white;
39 text-shadow: none !important;
40 .class-3 {
41 border-color: $nearly-white;
42 }
43 }
Akron6a535d42015-08-26 20:16:58 +020044 }
Nils Diewalda944fab2015-04-08 21:02:04 +000045 border: {
Akron1f0d04c2016-11-18 22:51:20 +010046 style: solid;
47 color: $dark-orange;
48 width: 0;
Nils Diewalda944fab2015-04-08 21:02:04 +000049 }
Akron1f0d04c2016-11-18 22:51:20 +010050 div.main-col, div.left-col {
51 position: relative;
52 }
53 &:not(.active):not(:target) {
54 &:nth-of-type(even) div.main-col {
Nils Diewalda944fab2015-04-08 21:02:04 +000055 background-color: $kwic-line-even;
Akron1f0d04c2016-11-18 22:51:20 +010056 }
57 div.left-col {
58 z-index: 5;
59 display: table-cell;
60 background-color: green;
61 }
62 div.main-col {
63 display: table-cell;
64 z-index: 4;
65 > div {
66 width: 99999%;
67 margin-left: -49999.5%;
68 background-color: $kwic-line-noneven;
69 overflow-x: hidden;
70 overflow-y: visible;
71 white-space: no-wrap;
72 cursor: pointer;
73 padding: 5pt 0 6pt 0;
74 .matchinfo {
75 display: none;
76 }
77 div.snippet {
78 text-overflow: ellipsis;
79 text-indent: 0;
80 text-shadow: $light-shadow;
81 }
82 }
83 }
Nils Diewalda944fab2015-04-08 21:02:04 +000084 }
Akron1f0d04c2016-11-18 22:51:20 +010085 div.snippet {
86 > span,
87 > mark {
88 white-space: no-wrap !important;
89 > span {
Nils Diewalda944fab2015-04-08 21:02:04 +000090 white-space: no-wrap !important;
Nils Diewalda944fab2015-04-08 21:02:04 +000091 }
Akron1f0d04c2016-11-18 22:51:20 +010092 // color: #666;
93 }
94 > mark,
95 > span.match {
96 font-weight: bold;
Nils Diewalda944fab2015-04-08 21:02:04 +000097 /* text-shadow: $kwic-match-shadow; */
Akron1f0d04c2016-11-18 22:51:20 +010098 // color: $kwic-match-color;
99 padding-left: 4pt;
100 padding-right: 2pt;
101 }
102 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000103 }
104
105 /* active view */
106 > li.active,
107 > li:target {
108 text-align: left;
109 width: auto;
110 cursor: normal;
111 white-space: wrap;
112 height: auto;
113 border-width: 2px;
Nils Diewald1c546922015-04-13 01:56:19 +0000114 background-color: $dark-orange;
Akron1f0d04c2016-11-18 22:51:20 +0100115 // @include light-noise;
Nils Diewalda944fab2015-04-08 21:02:04 +0000116 position: relative;
117 > div {
Akron1f0d04c2016-11-18 22:51:20 +0100118 min-height: 20pt;
119 div.snippet {
120 background-color: $light-orange;
121 > * {
122 background-color: transparent;
123 }
124 padding: 2pt 0 5pt 5pt;
125 margin: {
126 top: 0;
127 right: $right-match-distance; // 3em;
128 bottom: 0;
129 left: 0; // 5pt margin-top
130 }
131 > span {
Nils Diewalda944fab2015-04-08 21:02:04 +0000132 line-height: 1.4em;
133 width: auto;
134 &.context-left {
135 margin-left: 0;
136 display: inline;
137 overflow: visible;
138 text-align: left;
139 width: auto;
140 }
Akron1f0d04c2016-11-18 22:51:20 +0100141 }
142 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000143 }
144 }
145
146 /* Actions */
147 > li {
148 ul.action {
Akron1f0d04c2016-11-18 22:51:20 +0100149 display: none;
Nils Diewalda944fab2015-04-08 21:02:04 +0000150 }
151
152 /* active actions */
153 &.active, &:target {
Akron1f0d04c2016-11-18 22:51:20 +0100154 ul.action {
155 display: block;
156 }
157 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000158 &:not(.active):not(:target) p.ref {
Akron1f0d04c2016-11-18 22:51:20 +0100159 display: none;
Nils Diewalda944fab2015-04-08 21:02:04 +0000160 }
Akron1f0d04c2016-11-18 22:51:20 +0100161 &.active,
162 &:target {
163 overflow: hidden;
164 p.ref {
165 color: white;
166 padding: 3pt 10pt 3pt 3pt;
167 padding-right: $right-match-distance;
168 margin: 0pt;
169 width: 100%;
170 bottom: 0;
171 z-index: 30;
172 > span.sigle {
173 font-size: 75%;
174 vertical-align: top;
175 color: $light-orange;
176 float: right;
177 }
178 }
Akronebc8d932015-05-28 18:19:35 +0200179 }
180 }
181 > li.marked:not(.active):not(:target) {
182 div.flag {
Akron1f0d04c2016-11-18 22:51:20 +0100183 position: absolute;
184 top: 0;
185 width: 11px;
186 height: 100%;
187 margin-left: 50%;
188 background-color: $dark-orange;
189 border-right: 1px solid $darkest-orange;
Nils Diewalda944fab2015-04-08 21:02:04 +0000190 }
191 }
192 }
193}
194
Akronebc8d932015-05-28 18:19:35 +0200195
Nils Diewalda944fab2015-04-08 21:02:04 +0000196ul.action {
Akron1f0d04c2016-11-18 22:51:20 +0100197 // background-color: $dark-orange;
Nils Diewalda944fab2015-04-08 21:02:04 +0000198 font-size: 12pt;
199 color: white;
200 text: {
201 shadow: none;
202 indent: 0;
203 }
204 margin: 0;
205 padding: 0;
206 z-index: 5;
207
208 list-style: {
209 type: none;
210 position: inline;
211 }
212 &.right {
213 position: absolute;
214 width: $right-match-distance;
215 float: right;
216 text-align: center;
217 padding: 0pt 3pt;
218 height: 100%;
219 right: 0;
220 top: 0;
221 li {
222 cursor: pointer;
223 color: white;
224 text-decoration: none;
225
226 > span {
Akron1f0d04c2016-11-18 22:51:20 +0100227 @include blind;
Nils Diewalda944fab2015-04-08 21:02:04 +0000228 }
229 &.close::after {
Akron1f0d04c2016-11-18 22:51:20 +0100230 font-family: "FontAwesome";
231 content: $fa-close;
Nils Diewalda944fab2015-04-08 21:02:04 +0000232 }
233 &.info::after {
Akron1f0d04c2016-11-18 22:51:20 +0100234 font-family: "FontAwesome";
235 content: $fa-info;
Nils Diewalda944fab2015-04-08 21:02:04 +0000236 }
237 }
238 }
239}
240
241/*
242ol.align-free > li:not(.active):not(:target) > div > div.snippet > span.left {
243 display: inline-block;
244 text-align: right;
245 width: 50.046%;
246}
247
248ol.align-free > li:not(.active):not(:target) > div > div.snippet > span.separator {
249 width: 0px;
250 height: 1em;
251 margin-bottom: -2px;
252 display: inline-block;
253 line-height: 100%;
254 border: 1px solid #009EE0;
255 margin-left: 2px;
256 margin-right: 2px;
257}
258
259ol.align-free > li > div > div.snippet > span.right {
260 text-align: left;
261}
262*/
263
Akron1f0d04c2016-11-18 22:51:20 +0100264ol.align-left > li div.snippet > span.context-left {
Nils Diewalda944fab2015-04-08 21:02:04 +0000265 display: inline-block;
266 text-align: right;
267 width: 50.01%;
268}
269
270ol.align-right {
271 text-align: right;
Akron1f0d04c2016-11-18 22:51:20 +0100272 > li:not(.active):not(:target) div.snippet > span.context-right {
Nils Diewalda944fab2015-04-08 21:02:04 +0000273 display: inline-block;
274 text-align: left;
275 width: 49.915%;
276 }
277}
278
279/**
280 * Highlights
281 */
282mark {
283 background-color: inherit;
284 color: inherit;
285}
286
287mark > mark,
288em,
289.level-0 {
290 border-bottom-width: 2px;
291 border-bottom-style: solid;
292 padding-bottom: 0px;
293 font-style: normal;
294}
295
296mark > mark > mark,
297em > em,
298.level-1 {
299 padding-bottom: 3px;
300}
301
302mark > mark > mark > mark,
303em > em > em,
304.level-2 {
305 padding-bottom: 6px;
306}
307
308li {
309 &:not(.active) mark > mark > mark > mark,
310 &:not(.active) em > em > em {
311 line-height: 180%;
312 }
313 &.active mark > mark > mark > mark,
314 &.active em > em > em {
315 line-height: 250%;
316 }
317}
318
319.class-1 { border-color: $kwic-highlight-1; }
320.class-2 { border-color: $kwic-highlight-2; }
321.class-3 { border-color: $kwic-highlight-3; }
322.class-4 { border-color: $kwic-highlight-4; }
323
324/*
325span.more:before {
326 content: "…";
327 padding-left: 2pt;
328 padding-right: 2pt;
329}
330*/
331
332div.snippet.startMore:before,
333div.snippet.endMore:after {
334 content: "…";
335 padding-left: 2pt;
336 padding-right: 2pt;
337}
338
339