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