blob: 88a7da3f46c495af71f976c29fb5e4b26ee793c7 [file] [log] [blame]
Nils Diewalda297f062015-04-02 00:23:46 +00001@charset "utf-8";
2@import "util";
3
4$border-size: 2px;
5
6#search {
7 position: relative;
8 margin-bottom: 44px;
9 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 }
44 > div {
45 > div.snippet {
46 text-overflow: ellipsis;
47 text-indent: 0;
48 text-shadow: $light-shadow;
49
50 > span,
51 > mark {
52 white-space: no-wrap !important;
53 > span {
54 white-space: no-wrap !important;
55 }
56 color: #666;
57 }
58 > mark,
59 > span.match {
60 font-weight: bold;
61 /* text-shadow: $kwic-match-shadow; */
62 color: $kwic-match-color;
63 padding-left: 4pt;
64 padding-right: 2pt;
65 }
66 }
67 }
68 }
69
70 /* active view */
71 > li.active,
72 > li:target {
73 text-align: left;
74 width: auto;
75 cursor: normal;
76 white-space: wrap;
77 height: auto;
78 border-width: 2px;
79 background-color: $light-orange;
80 position: relative;
81 > div {
82 min-height: 42pt;
83 > div.snippet {
84 margin: 5pt 10pt;
85 margin-right: 3em;
86 > span {
87 line-height: 1.4em;
88 width: auto;
89 &.context-left {
90 margin-left: 0;
91 display: inline;
92 overflow: visible;
93 text-align: left;
94 width: auto;
95 }
96 }
97 }
98 }
99 }
100
101 /* Actions */
102 > li {
103 ul.action {
104 display: none;
105 > li {
106 cursor: pointer;
107 color: white;
108 text-decoration: none;
109 }
110 }
111
112
113 /* active actions */
114 &.active, &:target {
115 ul.action {
116 background-color: $dark-orange;
117 font-size: 12pt;
118 color: white;
119 text: {
120 shadow: none;
121 indent: 0;
122 }
123 margin: 0;
124 padding: 0;
125 z-index: 5;
126
127 display: block;
128 list-style: {
129 type: none;
130 position: inline;
131 }
132 &.right {
133 position: absolute;
134 width: $right-match-distance;
135 float: right;
136 text-align: center;
137 padding: 0pt 3pt;
138 height: 100%;
139 right: 0;
140 top: 0;
141 li {
142 > span {
143 @include blind;
144 }
145 &.close::after {
146 font-family: "FontAwesome";
147 content: "\f00d";
148 }
149 &.info::after {
150 font-family: "FontAwesome";
151 content: "\f05a";
152 }
153 }
154 }
155 }
156 }
157 &:not(.active):not(:target) p.ref {
158 display: none;
159 }
160 &.active p.ref,
161 &:target p.ref {
162 background-color: $dark-orange;
163 color: white;
164 padding: 3pt 10pt;
165 padding-right: $right-match-distance;
166 margin: 0pt;
167 width: 100%;
168 bottom: 0;
169 z-index: 30;
170 }
171 }
172 }
173}
174
175/*
176ol.align-free > li:not(.active):not(:target) > div > div.snippet > span.left {
177 display: inline-block;
178 text-align: right;
179 width: 50.046%;
180}
181
182ol.align-free > li:not(.active):not(:target) > div > div.snippet > span.separator {
183 width: 0px;
184 height: 1em;
185 margin-bottom: -2px;
186 display: inline-block;
187 line-height: 100%;
188 border: 1px solid #009EE0;
189 margin-left: 2px;
190 margin-right: 2px;
191}
192
193ol.align-free > li > div > div.snippet > span.right {
194 text-align: left;
195}
196*/
197
198ol.align-left > li > div > div.snippet > span.context-left {
199 display: inline-block;
200 text-align: right;
201 width: 50.01%;
202}
203
204ol.align-right {
205 text-align: right;
206 > li:not(.active):not(:target) > div > div.snippet > span.context-right {
207 display: inline-block;
208 text-align: left;
209 width: 49.915%;
210 }
211}
212
213/**
214 * Highlights
215 */
216mark > mark,
217em,
218.level-0 {
219 border-bottom-width: 2px;
220 border-bottom-style: solid;
221 padding-bottom: 0px;
222 font-style: normal;
223}
224
225mark > mark > mark,
226em > em,
227.level-1 {
228 padding-bottom: 3px;
229}
230
231mark > mark > mark > mark,
232em > em > em,
233.level-2 {
234 padding-bottom: 6px;
235}
236
237li {
238 &:not(.active) mark > mark > mark > mark,
239 &:not(.active) em > em > em {
240 line-height: 180%;
241 }
242 &.active mark > mark > mark > mark,
243 &.active em > em > em {
244 line-height: 250%;
245 }
246}
247
248.class-1 { border-color: $kwic-highlight-1; }
249.class-2 { border-color: $kwic-highlight-2; }
250.class-3 { border-color: $kwic-highlight-3; }
251.class-4 { border-color: $kwic-highlight-4; }
252
253/*
254span.more:before {
255 content: "…";
256 padding-left: 2pt;
257 padding-right: 2pt;
258}
259*/
260
261div.snippet.startMore:before,
262div.snippet.endMore:after {
263 content: "…";
264 padding-left: 2pt;
265 padding-right: 2pt;
266}
267
268