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