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