blob: ae259a0bb213c2c7e6091c19647e7ab4009624b8 [file] [log] [blame]
Nils Diewald7cad8402014-07-08 17:06:56 +00001@charset "utf-8";
2
3$fonts: verdana, tahoma, arial;
4
5@import "colors";
6
7@mixin box-sizing-box() {
8 -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
9 -moz-box-sizing: border-box; /* Firefox, other Gecko */
10 box-sizing: border-box; /* Opera/IE 8+ */
11}
12
13
14/*
15 Search for: [orth=erstens]
16*/
17
18ol {
19 width: auto;
20 overflow: hidden;
21 list-style-type: none;
22 margin: 0;
23 padding: 0;
24 text-indent: 0;
25 border: 1px solid $kwic-border;
26 font: {
27 family: $fonts;
28 size: 10pt;
29 }
30 text-shadow: 1px 1px rgba(255, 255, 255, 0.4);
31 > li {
32 border: {
33 style: solid;
34 color: #ffa500;
35 width: 0;
36 }
37 &:not(.active):not(:target) {
38 width: 99999%;
39 margin-left: -49999.5%;
40 background-color: $kwic-line-noneven;
41 overflow: hidden;
42 white-space: no-wrap;
43 cursor: pointer;
44 padding: 5pt 0 6pt 0;
45 text-indent: 0;
46 &:nth-of-type(even) {
47 background-color: $kwic-line-even;
48 }
49 }
50 > div {
Nils Diewald88707fe2015-02-20 03:09:02 +000051 > div.snippet {
52 > span,
53 > mark {
Nils Diewald7cad8402014-07-08 17:06:56 +000054 white-space: no-wrap !important;
Nils Diewald88707fe2015-02-20 03:09:02 +000055 > span {
56 white-space: no-wrap !important;
57 }
58 color: #666;
Nils Diewald7cad8402014-07-08 17:06:56 +000059 }
Nils Diewald88707fe2015-02-20 03:09:02 +000060 > mark,
61 > span.match {
Nils Diewald7cad8402014-07-08 17:06:56 +000062 font-weight: bold;
63 text-shadow: $kwic-match-shadow;
64 color: $kwic-match-color;
65 padding-left: 4pt;
66 padding-right: 2pt;
67 }
68 }
69 }
70 }
71}
72
Nils Diewalde99d9042014-11-20 23:36:54 +000073ol.align-free > li:not(.active):not(:target) > div > div.snippet > span.left {
Nils Diewald7cad8402014-07-08 17:06:56 +000074 display: inline-block;
75 text-align: right;
76 width: 50.046%;
77}
78
Nils Diewalde99d9042014-11-20 23:36:54 +000079ol.align-free > li:not(.active):not(:target) > div > div.snippet > span.separator {
Nils Diewald7cad8402014-07-08 17:06:56 +000080 width: 0px;
81 height: 1em;
82 margin-bottom: -2px;
83 display: inline-block;
84 line-height: 100%;
85 border: 1px solid #009EE0;
86 margin-left: 2px;
87 margin-right: 2px;
88}
89
Nils Diewalde99d9042014-11-20 23:36:54 +000090ol.align-free > li > div > div.snippet > span.right {
Nils Diewald7cad8402014-07-08 17:06:56 +000091 text-align: left;
92}
93
Nils Diewalde99d9042014-11-20 23:36:54 +000094ol.align-left > li > div > div.snippet > span.context-left {
Nils Diewald7cad8402014-07-08 17:06:56 +000095 display: inline-block;
96 text-align: right;
97 width: 50.01%;
98}
99
Nils Diewalde99d9042014-11-20 23:36:54 +0000100ol.align-right {
Nils Diewald7cad8402014-07-08 17:06:56 +0000101 text-align: right;
102 > li:not(.active):not(:target) > div > div.snippet > span.context-right {
103 display: inline-block;
104 text-align: left;
105 width: 49.915%;
106 }
107}
108
109/* Highlights */
Nils Diewald88707fe2015-02-20 03:09:02 +0000110mark > mark,
111em,
112.level-0 {
Nils Diewald7cad8402014-07-08 17:06:56 +0000113 border-bottom-width: 2px;
114 border-bottom-style: solid;
115 padding-bottom: 0px;
116 font-style: normal;
117}
118
Nils Diewald88707fe2015-02-20 03:09:02 +0000119mark > mark > mark,
120em > em,
121.level-1 {
Nils Diewald7cad8402014-07-08 17:06:56 +0000122 padding-bottom: 3px;
123}
124
Nils Diewald88707fe2015-02-20 03:09:02 +0000125mark > mark > mark > mark,
126em > em > em,
127.level-2 {
Nils Diewald7cad8402014-07-08 17:06:56 +0000128 padding-bottom: 6px;
129}
130
Nils Diewald791b5902014-12-04 04:47:24 +0000131li {
Nils Diewald88707fe2015-02-20 03:09:02 +0000132 &:not(.active) mark > mark > mark > mark,
Nils Diewald791b5902014-12-04 04:47:24 +0000133 &:not(.active) em > em > em {
134 line-height: 180%;
135 }
Nils Diewald88707fe2015-02-20 03:09:02 +0000136 &.active mark > mark > mark > mark,
Nils Diewald791b5902014-12-04 04:47:24 +0000137 &.active em > em > em {
138 line-height: 250%;
139 }
140}
141
Nils Diewald7cad8402014-07-08 17:06:56 +0000142.class-1 { border-color: $kwic-highlight-1; }
143.class-2 { border-color: $kwic-highlight-2; }
Nils Diewald2ef057e2014-11-04 16:04:17 +0000144.class-3 { border-color: $kwic-highlight-3; }
145.class-4 { border-color: $kwic-highlight-4; }
Nils Diewald7cad8402014-07-08 17:06:56 +0000146
Nils Diewald791b5902014-12-04 04:47:24 +0000147/*
Nils Diewald7cad8402014-07-08 17:06:56 +0000148span.more:before {
149 content: "…";
150 padding-left: 2pt;
151 padding-right: 2pt;
152}
Nils Diewald791b5902014-12-04 04:47:24 +0000153*/
154
155div.snippet.startMore:before,
156div.snippet.endMore:after {
157 content: "…";
158 padding-left: 2pt;
159 padding-right: 2pt;
160}
Nils Diewald7cad8402014-07-08 17:06:56 +0000161
162/* active view */
163ol > li.active,
164ol > li:target {
165 text-align: left;
166 width: auto;
167 cursor: normal;
168 white-space: wrap;
169 height: auto;
170 border-width: 2px;
171 background-color: $light-orange;
172 position: relative;
173 > div {
174 min-height: 42pt;
175 > div.snippet {
176 margin: 5pt 10pt;
177 margin-right: 3em;
178 > span {
179 line-height: 1.4em;
180 width: auto;
181 &.context-left {
182 margin-left: 0;
183 display: inline;
184 overflow: visible;
185 text-align: left;
186 width: auto;
187 }
188 }
189 }
190 }
191}
192
193/* Actions */
194ol > li {
195 ul.action {
196 display: none;
197 > li {
198 cursor: pointer;
199 color: white;
200 text-decoration: none;
201 }
202 }
203 /* active actions */
204 &.active, &:target {
205 ul.action {
206 background-color: $dark-orange;
207 font-size: 12pt;
208 color: white;
209 text: {
210 shadow: none;
211 indent: 0;
212 }
213 display: block;
214 margin: 0;
215 padding: 0;
216 z-index: 4;
217 list-style: {
218 type: none;
219 position: inline;
220 }
221 &.right {
222 position: absolute;
223 float: right;
224 text-align: center;
225 padding: 0pt 3pt;
226 height: 100%;
227 width: 1.2em;;
228 right: 0;
229 top: 0;
230 }
231 }
232 }
233 &:not(.active):not(:target) p {
234 display: none;
235 }
236 &.active p, &:target p {
237 @include box-sizing-box();
238 padding-right: 2em;
239 background-color: $dark-orange;
240 color: white;
241 text-shadow: none;
242 padding: 3pt 10pt;
243 margin: 0pt;
244 width: 100%;
245 bottom: 0;
246 z-index: 300;
247 }
248}
249
250