blob: 7ad9ab45840851f1b17851d3f40c2b4360df1679 [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 {
Akronebc8d932015-05-28 18:19:35 +020026 position: relative;
Nils Diewalda944fab2015-04-08 21:02:04 +000027 border: {
28 style: solid;
29 color: $dark-orange;
30 width: 0;
31 }
32 &:not(.active):not(:target) {
33 width: 99999%;
34 margin-left: -49999.5%;
35 background-color: $kwic-line-noneven;
36 overflow-x: hidden;
37 overflow-y: visible;
38 white-space: no-wrap;
39 cursor: pointer;
40 padding: 5pt 0 6pt 0;
41 &:nth-of-type(even) {
42 background-color: $kwic-line-even;
43 }
44 .matchinfo {
45 display: none;
46 }
Akronebc8d932015-05-28 18:19:35 +020047 > div {
48 > div.snippet {
49 text-overflow: ellipsis;
50 text-indent: 0;
51 text-shadow: $light-shadow;
52 }
Nils Diewalda944fab2015-04-08 21:02:04 +000053 }
54 }
55 > div {
56 > div.snippet {
57 > span,
58 > mark {
59 white-space: no-wrap !important;
60 > span {
61 white-space: no-wrap !important;
62 }
63 color: #666;
64 }
65 > mark,
66 > span.match {
67 font-weight: bold;
68 /* text-shadow: $kwic-match-shadow; */
69 color: $kwic-match-color;
70 padding-left: 4pt;
71 padding-right: 2pt;
72 }
73 }
74 }
75 }
76
77 /* active view */
78 > li.active,
79 > li:target {
80 text-align: left;
81 width: auto;
82 cursor: normal;
83 white-space: wrap;
84 height: auto;
85 border-width: 2px;
Nils Diewald1c546922015-04-13 01:56:19 +000086 background-color: $dark-orange;
Nils Diewald0e6992a2015-04-14 20:13:52 +000087// @include light-noise;
Nils Diewalda944fab2015-04-08 21:02:04 +000088 position: relative;
89 > div {
Nils Diewalda898dac2015-05-06 21:04:16 +000090 min-height: 20pt;
Nils Diewalda944fab2015-04-08 21:02:04 +000091 > div.snippet {
Nils Diewald1c546922015-04-13 01:56:19 +000092 background-color: $light-orange;
93 > * {
94 background-color: transparent;
95 }
Nils Diewald4347ee92015-05-04 20:32:48 +000096 padding: 2pt 0 5pt 5pt;
Nils Diewald1c546922015-04-13 01:56:19 +000097 margin: {
98 top: 0;
99 right: $right-match-distance; // 3em;
100 bottom: 0;
101 left: 0; // 5pt margin-top
102 }
Nils Diewalda944fab2015-04-08 21:02:04 +0000103 > span {
104 line-height: 1.4em;
105 width: auto;
106 &.context-left {
107 margin-left: 0;
108 display: inline;
109 overflow: visible;
110 text-align: left;
111 width: auto;
112 }
113 }
114 }
115 }
116 }
117
118 /* Actions */
119 > li {
120 ul.action {
121 display: none;
122 }
123
124 /* active actions */
125 &.active, &:target {
126 ul.action {
127 display: block;
128 }
129 }
130 &:not(.active):not(:target) p.ref {
131 display: none;
132 }
Akronebc8d932015-05-28 18:19:35 +0200133 &.active, &:target {
134 p.ref {
135 color: white;
136 padding: 3pt 10pt;
137 padding-right: $right-match-distance;
138 margin: 0pt;
139 width: 100%;
140 bottom: 0;
141 z-index: 30;
142 }
143 }
144 }
145 > li.marked:not(.active):not(:target) {
146 div.flag {
147 position: absolute;
Akronebc8d932015-05-28 18:19:35 +0200148 top: 0;
149 width: 11px;
150 height: 100%;
151 margin-left: 50%;
Akron0669f2f2015-05-28 20:27:09 +0200152 background-color: $dark-orange;
153 border-right: 1px solid $darkest-orange;
Nils Diewalda944fab2015-04-08 21:02:04 +0000154 }
155 }
156 }
157}
158
Akronebc8d932015-05-28 18:19:35 +0200159
Nils Diewalda944fab2015-04-08 21:02:04 +0000160ul.action {
Nils Diewald1c546922015-04-13 01:56:19 +0000161// background-color: $dark-orange;
Nils Diewalda944fab2015-04-08 21:02:04 +0000162 font-size: 12pt;
163 color: white;
164 text: {
165 shadow: none;
166 indent: 0;
167 }
168 margin: 0;
169 padding: 0;
170 z-index: 5;
171
172 list-style: {
173 type: none;
174 position: inline;
175 }
176 &.right {
177 position: absolute;
178 width: $right-match-distance;
179 float: right;
180 text-align: center;
181 padding: 0pt 3pt;
182 height: 100%;
183 right: 0;
184 top: 0;
185 li {
186 cursor: pointer;
187 color: white;
188 text-decoration: none;
189
190 > span {
191 @include blind;
192 }
193 &.close::after {
194 font-family: "FontAwesome";
Nils Diewald2488d052015-04-09 21:46:02 +0000195 content: $fa-close;
Nils Diewalda944fab2015-04-08 21:02:04 +0000196 }
197 &.info::after {
198 font-family: "FontAwesome";
Nils Diewald2488d052015-04-09 21:46:02 +0000199 content: $fa-info;
Nils Diewalda944fab2015-04-08 21:02:04 +0000200 }
201 }
202 }
203}
204
205/*
206ol.align-free > li:not(.active):not(:target) > div > div.snippet > span.left {
207 display: inline-block;
208 text-align: right;
209 width: 50.046%;
210}
211
212ol.align-free > li:not(.active):not(:target) > div > div.snippet > span.separator {
213 width: 0px;
214 height: 1em;
215 margin-bottom: -2px;
216 display: inline-block;
217 line-height: 100%;
218 border: 1px solid #009EE0;
219 margin-left: 2px;
220 margin-right: 2px;
221}
222
223ol.align-free > li > div > div.snippet > span.right {
224 text-align: left;
225}
226*/
227
228ol.align-left > li > div > div.snippet > span.context-left {
229 display: inline-block;
230 text-align: right;
231 width: 50.01%;
232}
233
234ol.align-right {
235 text-align: right;
236 > li:not(.active):not(:target) > div > div.snippet > span.context-right {
237 display: inline-block;
238 text-align: left;
239 width: 49.915%;
240 }
241}
242
243/**
244 * Highlights
245 */
246mark {
247 background-color: inherit;
248 color: inherit;
249}
250
251mark > mark,
252em,
253.level-0 {
254 border-bottom-width: 2px;
255 border-bottom-style: solid;
256 padding-bottom: 0px;
257 font-style: normal;
258}
259
260mark > mark > mark,
261em > em,
262.level-1 {
263 padding-bottom: 3px;
264}
265
266mark > mark > mark > mark,
267em > em > em,
268.level-2 {
269 padding-bottom: 6px;
270}
271
272li {
273 &:not(.active) mark > mark > mark > mark,
274 &:not(.active) em > em > em {
275 line-height: 180%;
276 }
277 &.active mark > mark > mark > mark,
278 &.active em > em > em {
279 line-height: 250%;
280 }
281}
282
283.class-1 { border-color: $kwic-highlight-1; }
284.class-2 { border-color: $kwic-highlight-2; }
285.class-3 { border-color: $kwic-highlight-3; }
286.class-4 { border-color: $kwic-highlight-4; }
287
288/*
289span.more:before {
290 content: "…";
291 padding-left: 2pt;
292 padding-right: 2pt;
293}
294*/
295
296div.snippet.startMore:before,
297div.snippet.endMore:after {
298 content: "…";
299 padding-left: 2pt;
300 padding-right: 2pt;
301}
302
303