blob: 7284311bfc0831129747ac2747dbcb5b99116073 [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
6#search {
7 position: relative;
Nils Diewalda898dac2015-05-06 21:04:16 +00008 margin-bottom: 30px;
Nils Diewalda944fab2015-04-08 21:02:04 +00009 overflow: visible;
10
11 &.match {
12 margin-top: 14pt;
13 }
14
15 ol {
16 width: auto;
17 overflow-x: hidden;
18 overflow-y: visible;
19 list-style-type: none;
20 margin: 0;
21 padding: 0;
22 text-indent: 0;
23 border: 1px solid $kwic-border;
24 font-size: 10pt;
25 > li {
26 border: {
27 style: solid;
28 color: $dark-orange;
29 width: 0;
30 }
31 &:not(.active):not(:target) {
32 width: 99999%;
33 margin-left: -49999.5%;
34 background-color: $kwic-line-noneven;
35 overflow-x: hidden;
36 overflow-y: visible;
37 white-space: no-wrap;
38 cursor: pointer;
39 padding: 5pt 0 6pt 0;
40 &:nth-of-type(even) {
41 background-color: $kwic-line-even;
42 }
43 .matchinfo {
44 display: none;
45 }
46 > div > div.snippet {
47 text-overflow: ellipsis;
48 text-indent: 0;
49 text-shadow: $light-shadow;
50 }
51 }
52 > div {
53 > div.snippet {
54 > span,
55 > mark {
56 white-space: no-wrap !important;
57 > span {
58 white-space: no-wrap !important;
59 }
60 color: #666;
61 }
62 > mark,
63 > span.match {
64 font-weight: bold;
65 /* text-shadow: $kwic-match-shadow; */
66 color: $kwic-match-color;
67 padding-left: 4pt;
68 padding-right: 2pt;
69 }
70 }
71 }
72 }
73
74 /* active view */
75 > li.active,
76 > li:target {
77 text-align: left;
78 width: auto;
79 cursor: normal;
80 white-space: wrap;
81 height: auto;
82 border-width: 2px;
Nils Diewald1c546922015-04-13 01:56:19 +000083 background-color: $dark-orange;
Nils Diewald0e6992a2015-04-14 20:13:52 +000084// @include light-noise;
Nils Diewalda944fab2015-04-08 21:02:04 +000085 position: relative;
86 > div {
Nils Diewalda898dac2015-05-06 21:04:16 +000087 min-height: 20pt;
Nils Diewalda944fab2015-04-08 21:02:04 +000088 > div.snippet {
Nils Diewald1c546922015-04-13 01:56:19 +000089 background-color: $light-orange;
90 > * {
91 background-color: transparent;
92 }
Nils Diewald4347ee92015-05-04 20:32:48 +000093 padding: 2pt 0 5pt 5pt;
Nils Diewald1c546922015-04-13 01:56:19 +000094 margin: {
95 top: 0;
96 right: $right-match-distance; // 3em;
97 bottom: 0;
98 left: 0; // 5pt margin-top
99 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000100 > span {
101 line-height: 1.4em;
102 width: auto;
103 &.context-left {
104 margin-left: 0;
105 display: inline;
106 overflow: visible;
107 text-align: left;
108 width: auto;
109 }
110 }
111 }
112 }
113 }
114
115 /* Actions */
116 > li {
117 ul.action {
118 display: none;
119 }
120
121 /* active actions */
122 &.active, &:target {
123 ul.action {
124 display: block;
125 }
126 }
127 &:not(.active):not(:target) p.ref {
128 display: none;
129 }
130 &.active p.ref,
131 &:target p.ref {
Nils Diewald1c546922015-04-13 01:56:19 +0000132// background-color: $dark-orange;
Nils Diewalda944fab2015-04-08 21:02:04 +0000133 color: white;
134 padding: 3pt 10pt;
135 padding-right: $right-match-distance;
136 margin: 0pt;
137 width: 100%;
138 bottom: 0;
139 z-index: 30;
140 }
141 }
142 }
143}
144
145ul.action {
Nils Diewald1c546922015-04-13 01:56:19 +0000146// background-color: $dark-orange;
Nils Diewalda944fab2015-04-08 21:02:04 +0000147 font-size: 12pt;
148 color: white;
149 text: {
150 shadow: none;
151 indent: 0;
152 }
153 margin: 0;
154 padding: 0;
155 z-index: 5;
156
157 list-style: {
158 type: none;
159 position: inline;
160 }
161 &.right {
162 position: absolute;
163 width: $right-match-distance;
164 float: right;
165 text-align: center;
166 padding: 0pt 3pt;
167 height: 100%;
168 right: 0;
169 top: 0;
170 li {
171 cursor: pointer;
172 color: white;
173 text-decoration: none;
174
175 > span {
176 @include blind;
177 }
178 &.close::after {
179 font-family: "FontAwesome";
Nils Diewald2488d052015-04-09 21:46:02 +0000180 content: $fa-close;
Nils Diewalda944fab2015-04-08 21:02:04 +0000181 }
182 &.info::after {
183 font-family: "FontAwesome";
Nils Diewald2488d052015-04-09 21:46:02 +0000184 content: $fa-info;
Nils Diewalda944fab2015-04-08 21:02:04 +0000185 }
186 }
187 }
188}
189
190/*
191ol.align-free > li:not(.active):not(:target) > div > div.snippet > span.left {
192 display: inline-block;
193 text-align: right;
194 width: 50.046%;
195}
196
197ol.align-free > li:not(.active):not(:target) > div > div.snippet > span.separator {
198 width: 0px;
199 height: 1em;
200 margin-bottom: -2px;
201 display: inline-block;
202 line-height: 100%;
203 border: 1px solid #009EE0;
204 margin-left: 2px;
205 margin-right: 2px;
206}
207
208ol.align-free > li > div > div.snippet > span.right {
209 text-align: left;
210}
211*/
212
213ol.align-left > li > div > div.snippet > span.context-left {
214 display: inline-block;
215 text-align: right;
216 width: 50.01%;
217}
218
219ol.align-right {
220 text-align: right;
221 > li:not(.active):not(:target) > div > div.snippet > span.context-right {
222 display: inline-block;
223 text-align: left;
224 width: 49.915%;
225 }
226}
227
228/**
229 * Highlights
230 */
231mark {
232 background-color: inherit;
233 color: inherit;
234}
235
236mark > mark,
237em,
238.level-0 {
239 border-bottom-width: 2px;
240 border-bottom-style: solid;
241 padding-bottom: 0px;
242 font-style: normal;
243}
244
245mark > mark > mark,
246em > em,
247.level-1 {
248 padding-bottom: 3px;
249}
250
251mark > mark > mark > mark,
252em > em > em,
253.level-2 {
254 padding-bottom: 6px;
255}
256
257li {
258 &:not(.active) mark > mark > mark > mark,
259 &:not(.active) em > em > em {
260 line-height: 180%;
261 }
262 &.active mark > mark > mark > mark,
263 &.active em > em > em {
264 line-height: 250%;
265 }
266}
267
268.class-1 { border-color: $kwic-highlight-1; }
269.class-2 { border-color: $kwic-highlight-2; }
270.class-3 { border-color: $kwic-highlight-3; }
271.class-4 { border-color: $kwic-highlight-4; }
272
273/*
274span.more:before {
275 content: "…";
276 padding-left: 2pt;
277 padding-right: 2pt;
278}
279*/
280
281div.snippet.startMore:before,
282div.snippet.endMore:after {
283 content: "…";
284 padding-left: 2pt;
285 padding-right: 2pt;
286}
287
288