blob: 0d347973ce96b60c9a45b3a5ad65c243fac92d07 [file] [log] [blame]
Nils Diewald7cad8402014-07-08 17:06:56 +00001@charset "utf-8";
2
3@import "colors";
4
5@mixin box-sizing-box() {
6 -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
7 -moz-box-sizing: border-box; /* Firefox, other Gecko */
8 box-sizing: border-box; /* Opera/IE 8+ */
9}
10
11@mixin no-appearance() {
12 -webkit-appearance:none;
13 -moz-appearance:none;
14 appearance:none;
15}
16
17body, html, select {
18 color: #666;
19 font-family: verdana, tahoma, arial;
20 margin: 0;
21}
22
23body, html, #searchbar button {
24 text-shadow: 1px 1px rgba(255, 255, 255, 0.4);
25}
26
27a {
28 color: inherit;
29 text-decoration: none;
30}
31
Nils Diewald25a86442015-03-04 19:56:39 +000032#kalamar-bg {
Nils Diewald5cc44002014-11-12 02:19:22 +000033 top: 0;
34 background: {
Nils Diewald3d871842015-03-10 23:14:34 +000035 image:url('#{$basepath}/img/korap-bg-kalamar.svg');
Nils Diewald5cc44002014-11-12 02:19:22 +000036 repeat: no-repeat;
37 size: 50%;
38 position: 50% 50%;
39 }
40 position: fixed;
41 height: 110%;
42 width: 175%;
43 z-index: -5000
44}
45
Nils Diewald7cad8402014-07-08 17:06:56 +000046#top {
47 background-color: #7ba400;
48 @include box-sizing-box();
49 padding: 8px;
50 padding-bottom: 0;
51 position: relative;
52 font-size: 10pt;
53 color: white;
54 text-shadow: none;
55 button {
56 color: $light-green;
57 background-color: transparent;
58 border-width: 0;
59 font-weight: normal;
60 margin: 0;
61 padding: 0;
62 }
63 form {
64 display: block;
65 padding-left: 230px;
66 margin: 0px;
67 position: relative;
68 > div.select, > span.location {
69 line-height: 1.8em;
70 border: {
71 width: 0;
72 bottom-width: 3px;
73 style: solid;
74 color: transparent;
75 }
76 display: inline-block;
77 &:hover {
78 border-color: $dark-green;
79 }
80 }
81 > span.location {
82 padding: 0 2px;
83 cursor:pointer;
84 }
85 > div.select {
86 position: relative;
87 padding: 0;
88 margin: 0;
89 &:after {
90 content: "";
91 font-family: FontAwesome;
92 font-style: normal;
93 font-weight: normal;
94 right: 0px;
95 top: 0px;
96 width: 18px;
97 text-align: center;
98 position: absolute;
99 pointer-events: none;
100 background-color: $light-green;
101 }
102 > * {
103 cursor: pointer;
104 padding: 0pt;
Nils Diewald446fbe72014-09-02 17:13:40 +0000105 padding-right: .3em;
Nils Diewald7cad8402014-07-08 17:06:56 +0000106 line-height: 1.8em;
107 outline: none;
108 }
109 }
110 }
111}
112
113
114
115/*
116http://cssdeck.com/labs/styling-select-box-with-css3
117*/
118
119#ql-field {
120 margin: 0;
121 outline: none;
122 border: none;
123 display: inline-block;
124 position: relative;
125 color: white;
Nils Diewald0f77cb82014-11-19 20:24:55 +0000126 background-color: $light-green;
Nils Diewald7cad8402014-07-08 17:06:56 +0000127 -webkit-appearance: none;
128 border-width: 0;
129 border-radius: 0;
130 @include no-appearance();
131 &:checked {
132 outline: none;
133 }
134 > option {
135 padding: 0pt 2pt;
136 outline: none;
137 }
138}
139
140/* funny hack */
141#ql-field:-moz-focusring {
142 color: transparent;
143 text-shadow: 0 0 0 white;
144}
145
146
147#searchbar {
148 position: relative;
149 @include box-sizing-box();
150 width: 100%;
151 padding-right: 60px;
152 button {
153 position: absolute;
154 font-weight: normal;
155 background-color: $pagination-bg;
156 padding: 0;
157 height: 100%;
158 top: 0;
159 right: 30px;
160 width: 30px;
161 border: {
162 top-width: 2px;
163 top-style: solid;
164 bottom-width: 2px;
165 bottom-style: solid;
166 color: white;
167 }
168 &:hover {
169 cursor:pointer;
170 color: white;
171 }
172 &:first-of-type {
173 border: {
174 left-width: 1px;
175 left-style: solid;
176 left-color: $pagination-border;
177 }
178 }
179 &:last-of-type {
180 @include box-sizing-box();
181 border: {
182 right-width: 2px;
183 right-style: solid;
184 top-right-radius: 12px;
185 bottom-right-radius: 12px;
186 }
187 }
188 &:hover {
189 background-color: $light-green;
190 border-color: $dark-green;
191 color: $dark-green;
192 text-shadow: none;
193 }
194 }
195 button + button {
196 right: 0;
197 }
198}
199
Nils Diewalde8e88052014-11-10 16:32:02 +0000200/*
201http://stackoverflow.com/questions/4148499/how-to-style-checkbox-using-css
202*/
203
204#q-cutoff-field {
205 display: none;
206 + label span {
207 border-radius: 4px;
208 display: inline-block;
209 background-color: white;
210 width: 12px;
211 height: 12px;
212 cursor: pointer;
213 vertical-align: middle;
214 line-height: 12px;
215 padding: 0;
216 margin-right: .3em;
217 :hover {
218 border-color: white;
219 }
220 }
221 &:checked + label span {
222 :after {
223 content:"\f00c";
224 color: $light-green;
225 font-family: FontAwesome;
226 }
227 }
228}
229
Nils Diewald7cad8402014-07-08 17:06:56 +0000230#q-field {
231 border: 2px solid white;
232 padding: 3px;
233 font-size: 11pt;
234 width: 100%;
235 margin: 0;
236 @include box-sizing-box();
237 display: block;
238}
239
240#button-right {
241 display: inline-block;
242 float: right;
243 color: white;
244 line-height: 2em;
245 > button {
246 border-bottom: 3px solid transparent;
247 font-size: 120%;
248 cursor: pointer;
249 color: white;
250 line-height: 14pt;
251 padding: 0;
252 &:hover {
253 border-bottom-color: $dark-green;
254 }
255 }
256}
257/*
258#button-right {
259 position: absolute;
260 @include box-sizing-box();
261 right: 0px;
262 bottom: 0px;
263 height: 2em;
264 width: 6em;
265 > button {
266 cursor: pointer;
267 color: white;
268 right: 5px;
269 width: 2em;
270 bottom: 0;
271 &:hover {
272 border-bottom: 2px solid green;
273 }
274 &[name=alignment] {
275 }
276 &[name=tutorial] {
277 }
278 }
279}
280*/
281
282p.found {
283 font-size: 10pt;
284 padding: 0;
285 margin: 0;
286 text-align: right;
287}
288
289#total-results {
290 color: $total-results;
291 font-weight: bold;
292}
293
294/* KorAP header logo */
295h1 {
296 margin: 0;
297 margin-left:15px;
298 left: 0;
299 top: 0;
300 position: absolute;
301 width: 7.8em;
Nils Diewald4e9fbcb2014-07-15 11:45:09 +0000302 height: 2.4em;
Nils Diewald7cad8402014-07-08 17:06:56 +0000303 z-index: 999;
304 background: {
305 repeat: no-repeat;
306 position: center center;
Nils Diewald25a86442015-03-04 19:56:39 +0000307 size: 72%;
Nils Diewald3d871842015-03-10 23:14:34 +0000308 image: url('#{$basepath}/img/korap-logo-kalamar.svg');
Nils Diewald7cad8402014-07-08 17:06:56 +0000309 }
310 span {
311 margin-left: -3000px;
312 }
313}
314
315#search {
316 margin-bottom: 44px;
317 &.match {
318 margin-top: 14pt;
319 }
320}
321
322main {
323 margin: {
324 left: 30px;
325 right: 14px;
326 }
327 &.embedded {
328 margin: {
329 left: 14px;
330 right: 14px;
331 }
332 }
333}
334
Nils Diewald4e9fbcb2014-07-15 11:45:09 +0000335main {
336 > section > p,
337 > p {
338 a {
339 border-radius: 6px;
340 padding: 0 .3em;
341 background-color: $pagination-bg;
342 text-shadow: light-shadow;
343 color: $light-green;
344 &:hover {
345 color: $dark-green;
346 text-shadow: none;
347 background-color: $light-green;
348 }
349 }
350 }
351 blockquote {
352 border-radius: 12px;
353 margin: 0;
354 text-indent: 0;
355 padding: 1em;
356 border-left: {
357 color: $dark-grey;
358 style: solid;
359 width: 1em;
360 }
361 background-color: $light-grey;
362 &.warning {
363 border-left-color: $dark-orange;
364 }
365 &.exception {
366 border-left-color: red;
367 }
368 }
Nils Diewalde8e88052014-11-10 16:32:02 +0000369}