blob: 3cd92aa35f838b0396b708fe1f6e76002bc7a33e [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) {
33 background-color: $dark-orange !important;
34 &:not(:target) div.flag {
35 border-right-color: $nearly-white;
36 }
37 > div > div.snippet {
38 color: $nearly-white;
39 text-shadow: none !important;
40 .class-3 {
41 border-color: $nearly-white;
42 }
43 }
44 }
Akronebc8d932015-05-28 18:19:35 +020045 position: relative;
Nils Diewalda944fab2015-04-08 21:02:04 +000046 border: {
47 style: solid;
48 color: $dark-orange;
49 width: 0;
50 }
51 &:not(.active):not(:target) {
52 width: 99999%;
53 margin-left: -49999.5%;
54 background-color: $kwic-line-noneven;
55 overflow-x: hidden;
56 overflow-y: visible;
57 white-space: no-wrap;
58 cursor: pointer;
59 padding: 5pt 0 6pt 0;
60 &:nth-of-type(even) {
61 background-color: $kwic-line-even;
62 }
63 .matchinfo {
64 display: none;
65 }
Akronebc8d932015-05-28 18:19:35 +020066 > div {
67 > div.snippet {
68 text-overflow: ellipsis;
69 text-indent: 0;
70 text-shadow: $light-shadow;
71 }
Nils Diewalda944fab2015-04-08 21:02:04 +000072 }
73 }
74 > div {
75 > div.snippet {
76 > span,
77 > mark {
78 white-space: no-wrap !important;
79 > span {
80 white-space: no-wrap !important;
81 }
Akron6a535d42015-08-26 20:16:58 +020082 // color: #666;
Nils Diewalda944fab2015-04-08 21:02:04 +000083 }
84 > mark,
85 > span.match {
86 font-weight: bold;
87 /* text-shadow: $kwic-match-shadow; */
Akron6a535d42015-08-26 20:16:58 +020088 // color: $kwic-match-color;
Nils Diewalda944fab2015-04-08 21:02:04 +000089 padding-left: 4pt;
90 padding-right: 2pt;
91 }
92 }
93 }
94 }
95
96 /* active view */
97 > li.active,
98 > li:target {
99 text-align: left;
100 width: auto;
101 cursor: normal;
102 white-space: wrap;
103 height: auto;
104 border-width: 2px;
Nils Diewald1c546922015-04-13 01:56:19 +0000105 background-color: $dark-orange;
Nils Diewald0e6992a2015-04-14 20:13:52 +0000106// @include light-noise;
Nils Diewalda944fab2015-04-08 21:02:04 +0000107 position: relative;
108 > div {
Nils Diewalda898dac2015-05-06 21:04:16 +0000109 min-height: 20pt;
Nils Diewalda944fab2015-04-08 21:02:04 +0000110 > div.snippet {
Nils Diewald1c546922015-04-13 01:56:19 +0000111 background-color: $light-orange;
112 > * {
113 background-color: transparent;
114 }
Nils Diewald4347ee92015-05-04 20:32:48 +0000115 padding: 2pt 0 5pt 5pt;
Nils Diewald1c546922015-04-13 01:56:19 +0000116 margin: {
117 top: 0;
118 right: $right-match-distance; // 3em;
119 bottom: 0;
120 left: 0; // 5pt margin-top
121 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000122 > span {
123 line-height: 1.4em;
124 width: auto;
125 &.context-left {
126 margin-left: 0;
127 display: inline;
128 overflow: visible;
129 text-align: left;
130 width: auto;
131 }
132 }
133 }
134 }
135 }
136
137 /* Actions */
138 > li {
139 ul.action {
140 display: none;
141 }
142
143 /* active actions */
144 &.active, &:target {
145 ul.action {
146 display: block;
147 }
148 }
149 &:not(.active):not(:target) p.ref {
150 display: none;
151 }
Akronebc8d932015-05-28 18:19:35 +0200152 &.active, &:target {
Akron894f7f12016-02-16 20:34:53 +0100153 overflow: hidden;
Akronebc8d932015-05-28 18:19:35 +0200154 p.ref {
155 color: white;
Akron894f7f12016-02-16 20:34:53 +0100156 padding: 3pt 10pt 3pt 3pt;
Akronebc8d932015-05-28 18:19:35 +0200157 padding-right: $right-match-distance;
158 margin: 0pt;
159 width: 100%;
160 bottom: 0;
161 z-index: 30;
Akron894f7f12016-02-16 20:34:53 +0100162 > span.sigle {
163 font-size: 75%;
164 vertical-align: top;
165 color: $light-orange;
166 float: right;
167 }
Akronebc8d932015-05-28 18:19:35 +0200168 }
169 }
170 }
171 > li.marked:not(.active):not(:target) {
172 div.flag {
173 position: absolute;
Akronebc8d932015-05-28 18:19:35 +0200174 top: 0;
175 width: 11px;
176 height: 100%;
177 margin-left: 50%;
Akron0669f2f2015-05-28 20:27:09 +0200178 background-color: $dark-orange;
179 border-right: 1px solid $darkest-orange;
Nils Diewalda944fab2015-04-08 21:02:04 +0000180 }
181 }
182 }
183}
184
Akronebc8d932015-05-28 18:19:35 +0200185
Nils Diewalda944fab2015-04-08 21:02:04 +0000186ul.action {
Nils Diewald1c546922015-04-13 01:56:19 +0000187// background-color: $dark-orange;
Nils Diewalda944fab2015-04-08 21:02:04 +0000188 font-size: 12pt;
189 color: white;
190 text: {
191 shadow: none;
192 indent: 0;
193 }
194 margin: 0;
195 padding: 0;
196 z-index: 5;
197
198 list-style: {
199 type: none;
200 position: inline;
201 }
202 &.right {
203 position: absolute;
204 width: $right-match-distance;
205 float: right;
206 text-align: center;
207 padding: 0pt 3pt;
208 height: 100%;
209 right: 0;
210 top: 0;
211 li {
212 cursor: pointer;
213 color: white;
214 text-decoration: none;
215
216 > span {
217 @include blind;
218 }
219 &.close::after {
220 font-family: "FontAwesome";
Nils Diewald2488d052015-04-09 21:46:02 +0000221 content: $fa-close;
Nils Diewalda944fab2015-04-08 21:02:04 +0000222 }
223 &.info::after {
224 font-family: "FontAwesome";
Nils Diewald2488d052015-04-09 21:46:02 +0000225 content: $fa-info;
Nils Diewalda944fab2015-04-08 21:02:04 +0000226 }
227 }
228 }
229}
230
231/*
232ol.align-free > li:not(.active):not(:target) > div > div.snippet > span.left {
233 display: inline-block;
234 text-align: right;
235 width: 50.046%;
236}
237
238ol.align-free > li:not(.active):not(:target) > div > div.snippet > span.separator {
239 width: 0px;
240 height: 1em;
241 margin-bottom: -2px;
242 display: inline-block;
243 line-height: 100%;
244 border: 1px solid #009EE0;
245 margin-left: 2px;
246 margin-right: 2px;
247}
248
249ol.align-free > li > div > div.snippet > span.right {
250 text-align: left;
251}
252*/
253
254ol.align-left > li > div > div.snippet > span.context-left {
255 display: inline-block;
256 text-align: right;
257 width: 50.01%;
258}
259
260ol.align-right {
261 text-align: right;
262 > li:not(.active):not(:target) > div > div.snippet > span.context-right {
263 display: inline-block;
264 text-align: left;
265 width: 49.915%;
266 }
267}
268
269/**
270 * Highlights
271 */
272mark {
273 background-color: inherit;
274 color: inherit;
275}
276
277mark > mark,
278em,
279.level-0 {
280 border-bottom-width: 2px;
281 border-bottom-style: solid;
282 padding-bottom: 0px;
283 font-style: normal;
284}
285
286mark > mark > mark,
287em > em,
288.level-1 {
289 padding-bottom: 3px;
290}
291
292mark > mark > mark > mark,
293em > em > em,
294.level-2 {
295 padding-bottom: 6px;
296}
297
298li {
299 &:not(.active) mark > mark > mark > mark,
300 &:not(.active) em > em > em {
301 line-height: 180%;
302 }
303 &.active mark > mark > mark > mark,
304 &.active em > em > em {
305 line-height: 250%;
306 }
307}
308
309.class-1 { border-color: $kwic-highlight-1; }
310.class-2 { border-color: $kwic-highlight-2; }
311.class-3 { border-color: $kwic-highlight-3; }
312.class-4 { border-color: $kwic-highlight-4; }
313
314/*
315span.more:before {
316 content: "…";
317 padding-left: 2pt;
318 padding-right: 2pt;
319}
320*/
321
322div.snippet.startMore:before,
323div.snippet.endMore:after {
324 content: "…";
325 padding-left: 2pt;
326 padding-right: 2pt;
327}
328
329