blob: a12652653c418967db9b9ee6ff1e3e12734903b4 [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 {
51 > div.snippet > span {
52 white-space: no-wrap !important;
53 > span {
54 white-space: no-wrap !important;
55 }
56 color: #666;
57 &.match {
58 font-weight: bold;
59 text-shadow: $kwic-match-shadow;
60 color: $kwic-match-color;
61 padding-left: 4pt;
62 padding-right: 2pt;
63 }
64 }
65 }
66 }
67}
68
Nils Diewalde99d9042014-11-20 23:36:54 +000069ol.align-free > li:not(.active):not(:target) > div > div.snippet > span.left {
Nils Diewald7cad8402014-07-08 17:06:56 +000070 display: inline-block;
71 text-align: right;
72 width: 50.046%;
73}
74
Nils Diewalde99d9042014-11-20 23:36:54 +000075ol.align-free > li:not(.active):not(:target) > div > div.snippet > span.separator {
Nils Diewald7cad8402014-07-08 17:06:56 +000076 width: 0px;
77 height: 1em;
78 margin-bottom: -2px;
79 display: inline-block;
80 line-height: 100%;
81 border: 1px solid #009EE0;
82 margin-left: 2px;
83 margin-right: 2px;
84}
85
Nils Diewalde99d9042014-11-20 23:36:54 +000086ol.align-free > li > div > div.snippet > span.right {
Nils Diewald7cad8402014-07-08 17:06:56 +000087 text-align: left;
88}
89
Nils Diewalde99d9042014-11-20 23:36:54 +000090ol.align-left > li > div > div.snippet > span.context-left {
Nils Diewald7cad8402014-07-08 17:06:56 +000091 display: inline-block;
92 text-align: right;
93 width: 50.01%;
94}
95
Nils Diewalde99d9042014-11-20 23:36:54 +000096ol.align-right {
Nils Diewald7cad8402014-07-08 17:06:56 +000097 text-align: right;
98 > li:not(.active):not(:target) > div > div.snippet > span.context-right {
99 display: inline-block;
100 text-align: left;
101 width: 49.915%;
102 }
103}
104
105/* Highlights */
106em, em.level-0 {
107 border-bottom-width: 2px;
108 border-bottom-style: solid;
109 padding-bottom: 0px;
110 font-style: normal;
111}
112
113em > em, em.level-1 {
114 padding-bottom: 3px;
115}
116
117em > em > em, em.level-2 {
118 padding-bottom: 6px;
119}
120
Nils Diewald7cad8402014-07-08 17:06:56 +0000121.class-1 { border-color: $kwic-highlight-1; }
122.class-2 { border-color: $kwic-highlight-2; }
Nils Diewald2ef057e2014-11-04 16:04:17 +0000123.class-3 { border-color: $kwic-highlight-3; }
124.class-4 { border-color: $kwic-highlight-4; }
Nils Diewald7cad8402014-07-08 17:06:56 +0000125
126
127span.more:before {
128 content: "…";
129 padding-left: 2pt;
130 padding-right: 2pt;
131}
132
133/* active view */
134ol > li.active,
135ol > li:target {
136 text-align: left;
137 width: auto;
138 cursor: normal;
139 white-space: wrap;
140 height: auto;
141 border-width: 2px;
142 background-color: $light-orange;
143 position: relative;
144 > div {
145 min-height: 42pt;
146 > div.snippet {
147 margin: 5pt 10pt;
148 margin-right: 3em;
149 > span {
150 line-height: 1.4em;
151 width: auto;
152 &.context-left {
153 margin-left: 0;
154 display: inline;
155 overflow: visible;
156 text-align: left;
157 width: auto;
158 }
159 }
160 }
161 }
162}
163
164/* Actions */
165ol > li {
166 ul.action {
167 display: none;
168 > li {
169 cursor: pointer;
170 color: white;
171 text-decoration: none;
172 }
173 }
174 /* active actions */
175 &.active, &:target {
176 ul.action {
177 background-color: $dark-orange;
178 font-size: 12pt;
179 color: white;
180 text: {
181 shadow: none;
182 indent: 0;
183 }
184 display: block;
185 margin: 0;
186 padding: 0;
187 z-index: 4;
188 list-style: {
189 type: none;
190 position: inline;
191 }
192 &.right {
193 position: absolute;
194 float: right;
195 text-align: center;
196 padding: 0pt 3pt;
197 height: 100%;
198 width: 1.2em;;
199 right: 0;
200 top: 0;
201 }
202 }
203 }
204 &:not(.active):not(:target) p {
205 display: none;
206 }
207 &.active p, &:target p {
208 @include box-sizing-box();
209 padding-right: 2em;
210 background-color: $dark-orange;
211 color: white;
212 text-shadow: none;
213 padding: 3pt 10pt;
214 margin: 0pt;
215 width: 100%;
216 bottom: 0;
217 z-index: 300;
218 }
219}
220
221