blob: 48834234c0853c46f38f051ad05e9b47ff060397 [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 {
153 p.ref {
154 color: white;
155 padding: 3pt 10pt;
156 padding-right: $right-match-distance;
157 margin: 0pt;
158 width: 100%;
159 bottom: 0;
160 z-index: 30;
161 }
162 }
163 }
164 > li.marked:not(.active):not(:target) {
165 div.flag {
166 position: absolute;
Akronebc8d932015-05-28 18:19:35 +0200167 top: 0;
168 width: 11px;
169 height: 100%;
170 margin-left: 50%;
Akron0669f2f2015-05-28 20:27:09 +0200171 background-color: $dark-orange;
172 border-right: 1px solid $darkest-orange;
Nils Diewalda944fab2015-04-08 21:02:04 +0000173 }
174 }
175 }
176}
177
Akronebc8d932015-05-28 18:19:35 +0200178
Nils Diewalda944fab2015-04-08 21:02:04 +0000179ul.action {
Nils Diewald1c546922015-04-13 01:56:19 +0000180// background-color: $dark-orange;
Nils Diewalda944fab2015-04-08 21:02:04 +0000181 font-size: 12pt;
182 color: white;
183 text: {
184 shadow: none;
185 indent: 0;
186 }
187 margin: 0;
188 padding: 0;
189 z-index: 5;
190
191 list-style: {
192 type: none;
193 position: inline;
194 }
195 &.right {
196 position: absolute;
197 width: $right-match-distance;
198 float: right;
199 text-align: center;
200 padding: 0pt 3pt;
201 height: 100%;
202 right: 0;
203 top: 0;
204 li {
205 cursor: pointer;
206 color: white;
207 text-decoration: none;
208
209 > span {
210 @include blind;
211 }
212 &.close::after {
213 font-family: "FontAwesome";
Nils Diewald2488d052015-04-09 21:46:02 +0000214 content: $fa-close;
Nils Diewalda944fab2015-04-08 21:02:04 +0000215 }
216 &.info::after {
217 font-family: "FontAwesome";
Nils Diewald2488d052015-04-09 21:46:02 +0000218 content: $fa-info;
Nils Diewalda944fab2015-04-08 21:02:04 +0000219 }
220 }
221 }
222}
223
224/*
225ol.align-free > li:not(.active):not(:target) > div > div.snippet > span.left {
226 display: inline-block;
227 text-align: right;
228 width: 50.046%;
229}
230
231ol.align-free > li:not(.active):not(:target) > div > div.snippet > span.separator {
232 width: 0px;
233 height: 1em;
234 margin-bottom: -2px;
235 display: inline-block;
236 line-height: 100%;
237 border: 1px solid #009EE0;
238 margin-left: 2px;
239 margin-right: 2px;
240}
241
242ol.align-free > li > div > div.snippet > span.right {
243 text-align: left;
244}
245*/
246
247ol.align-left > li > div > div.snippet > span.context-left {
248 display: inline-block;
249 text-align: right;
250 width: 50.01%;
251}
252
253ol.align-right {
254 text-align: right;
255 > li:not(.active):not(:target) > div > div.snippet > span.context-right {
256 display: inline-block;
257 text-align: left;
258 width: 49.915%;
259 }
260}
261
262/**
263 * Highlights
264 */
265mark {
266 background-color: inherit;
267 color: inherit;
268}
269
270mark > mark,
271em,
272.level-0 {
273 border-bottom-width: 2px;
274 border-bottom-style: solid;
275 padding-bottom: 0px;
276 font-style: normal;
277}
278
279mark > mark > mark,
280em > em,
281.level-1 {
282 padding-bottom: 3px;
283}
284
285mark > mark > mark > mark,
286em > em > em,
287.level-2 {
288 padding-bottom: 6px;
289}
290
291li {
292 &:not(.active) mark > mark > mark > mark,
293 &:not(.active) em > em > em {
294 line-height: 180%;
295 }
296 &.active mark > mark > mark > mark,
297 &.active em > em > em {
298 line-height: 250%;
299 }
300}
301
302.class-1 { border-color: $kwic-highlight-1; }
303.class-2 { border-color: $kwic-highlight-2; }
304.class-3 { border-color: $kwic-highlight-3; }
305.class-4 { border-color: $kwic-highlight-4; }
306
307/*
308span.more:before {
309 content: "…";
310 padding-left: 2pt;
311 padding-right: 2pt;
312}
313*/
314
315div.snippet.startMore:before,
316div.snippet.endMore:after {
317 content: "…";
318 padding-left: 2pt;
319 padding-right: 2pt;
320}
321
322