Nils Diewald | 7cad840 | 2014-07-08 17:06:56 +0000 | [diff] [blame] | 1 | @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 | |
| 17 | body, html, select { |
| 18 | color: #666; |
| 19 | font-family: verdana, tahoma, arial; |
| 20 | margin: 0; |
| 21 | } |
| 22 | |
| 23 | body, html, #searchbar button { |
| 24 | text-shadow: 1px 1px rgba(255, 255, 255, 0.4); |
| 25 | } |
| 26 | |
| 27 | a { |
| 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; |
Nils Diewald | 446fbe7 | 2014-09-02 17:13:40 +0000 | [diff] [blame] | 91 | padding-right: .3em; |
Nils Diewald | 7cad840 | 2014-07-08 17:06:56 +0000 | [diff] [blame] | 92 | line-height: 1.8em; |
| 93 | outline: none; |
| 94 | } |
| 95 | } |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | |
| 100 | |
| 101 | /* |
| 102 | http://cssdeck.com/labs/styling-select-box-with-css3 |
| 103 | */ |
| 104 | |
| 105 | #ql-field { |
| 106 | margin: 0; |
| 107 | outline: none; |
| 108 | border: none; |
| 109 | display: inline-block; |
| 110 | position: relative; |
| 111 | color: white; |
| 112 | background-color: transparent; |
| 113 | -webkit-appearance: none; |
| 114 | border-width: 0; |
| 115 | border-radius: 0; |
| 116 | @include no-appearance(); |
| 117 | &:checked { |
| 118 | outline: none; |
| 119 | } |
| 120 | > option { |
| 121 | padding: 0pt 2pt; |
| 122 | outline: none; |
| 123 | } |
| 124 | } |
| 125 | |
| 126 | /* funny hack */ |
| 127 | #ql-field:-moz-focusring { |
| 128 | color: transparent; |
| 129 | text-shadow: 0 0 0 white; |
| 130 | } |
| 131 | |
| 132 | |
| 133 | #searchbar { |
| 134 | position: relative; |
| 135 | @include box-sizing-box(); |
| 136 | width: 100%; |
| 137 | padding-right: 60px; |
| 138 | button { |
| 139 | position: absolute; |
| 140 | font-weight: normal; |
| 141 | background-color: $pagination-bg; |
| 142 | padding: 0; |
| 143 | height: 100%; |
| 144 | top: 0; |
| 145 | right: 30px; |
| 146 | width: 30px; |
| 147 | border: { |
| 148 | top-width: 2px; |
| 149 | top-style: solid; |
| 150 | bottom-width: 2px; |
| 151 | bottom-style: solid; |
| 152 | color: white; |
| 153 | } |
| 154 | &:hover { |
| 155 | cursor:pointer; |
| 156 | color: white; |
| 157 | } |
| 158 | &:first-of-type { |
| 159 | border: { |
| 160 | left-width: 1px; |
| 161 | left-style: solid; |
| 162 | left-color: $pagination-border; |
| 163 | } |
| 164 | } |
| 165 | &:last-of-type { |
| 166 | @include box-sizing-box(); |
| 167 | border: { |
| 168 | right-width: 2px; |
| 169 | right-style: solid; |
| 170 | top-right-radius: 12px; |
| 171 | bottom-right-radius: 12px; |
| 172 | } |
| 173 | } |
| 174 | &:hover { |
| 175 | background-color: $light-green; |
| 176 | border-color: $dark-green; |
| 177 | color: $dark-green; |
| 178 | text-shadow: none; |
| 179 | } |
| 180 | } |
| 181 | button + button { |
| 182 | right: 0; |
| 183 | } |
| 184 | } |
| 185 | |
Nils Diewald | e8e8805 | 2014-11-10 16:32:02 +0000 | [diff] [blame] | 186 | /* |
| 187 | http://stackoverflow.com/questions/4148499/how-to-style-checkbox-using-css |
| 188 | */ |
| 189 | |
| 190 | #q-cutoff-field { |
| 191 | display: none; |
| 192 | + label span { |
| 193 | border-radius: 4px; |
| 194 | display: inline-block; |
| 195 | background-color: white; |
| 196 | width: 12px; |
| 197 | height: 12px; |
| 198 | cursor: pointer; |
| 199 | vertical-align: middle; |
| 200 | line-height: 12px; |
| 201 | padding: 0; |
| 202 | margin-right: .3em; |
| 203 | :hover { |
| 204 | border-color: white; |
| 205 | } |
| 206 | } |
| 207 | &:checked + label span { |
| 208 | :after { |
| 209 | content:"\f00c"; |
| 210 | color: $light-green; |
| 211 | font-family: FontAwesome; |
| 212 | } |
| 213 | } |
| 214 | } |
| 215 | |
Nils Diewald | 7cad840 | 2014-07-08 17:06:56 +0000 | [diff] [blame] | 216 | #q-field { |
| 217 | border: 2px solid white; |
| 218 | padding: 3px; |
| 219 | font-size: 11pt; |
| 220 | width: 100%; |
| 221 | margin: 0; |
| 222 | @include box-sizing-box(); |
| 223 | display: block; |
| 224 | } |
| 225 | |
| 226 | #button-right { |
| 227 | display: inline-block; |
| 228 | float: right; |
| 229 | color: white; |
| 230 | line-height: 2em; |
| 231 | > button { |
| 232 | border-bottom: 3px solid transparent; |
| 233 | font-size: 120%; |
| 234 | cursor: pointer; |
| 235 | color: white; |
| 236 | line-height: 14pt; |
| 237 | padding: 0; |
| 238 | &:hover { |
| 239 | border-bottom-color: $dark-green; |
| 240 | } |
| 241 | } |
| 242 | } |
| 243 | /* |
| 244 | #button-right { |
| 245 | position: absolute; |
| 246 | @include box-sizing-box(); |
| 247 | right: 0px; |
| 248 | bottom: 0px; |
| 249 | height: 2em; |
| 250 | width: 6em; |
| 251 | > button { |
| 252 | cursor: pointer; |
| 253 | color: white; |
| 254 | right: 5px; |
| 255 | width: 2em; |
| 256 | bottom: 0; |
| 257 | &:hover { |
| 258 | border-bottom: 2px solid green; |
| 259 | } |
| 260 | &[name=alignment] { |
| 261 | } |
| 262 | &[name=tutorial] { |
| 263 | } |
| 264 | } |
| 265 | } |
| 266 | */ |
| 267 | |
| 268 | p.found { |
| 269 | font-size: 10pt; |
| 270 | padding: 0; |
| 271 | margin: 0; |
| 272 | text-align: right; |
| 273 | } |
| 274 | |
| 275 | #total-results { |
| 276 | color: $total-results; |
| 277 | font-weight: bold; |
| 278 | } |
| 279 | |
| 280 | /* KorAP header logo */ |
| 281 | h1 { |
| 282 | margin: 0; |
| 283 | margin-left:15px; |
| 284 | left: 0; |
| 285 | top: 0; |
| 286 | position: absolute; |
| 287 | width: 7.8em; |
Nils Diewald | 4e9fbcb | 2014-07-15 11:45:09 +0000 | [diff] [blame] | 288 | height: 2.4em; |
Nils Diewald | 7cad840 | 2014-07-08 17:06:56 +0000 | [diff] [blame] | 289 | z-index: 999; |
| 290 | background: { |
| 291 | repeat: no-repeat; |
| 292 | position: center center; |
| 293 | size: 65%; |
| 294 | image: url('/img/korap-logo-solo.svg'); |
| 295 | } |
| 296 | span { |
| 297 | margin-left: -3000px; |
| 298 | } |
| 299 | } |
| 300 | |
| 301 | #search { |
| 302 | margin-bottom: 44px; |
| 303 | &.match { |
| 304 | margin-top: 14pt; |
| 305 | } |
| 306 | } |
| 307 | |
| 308 | main { |
| 309 | margin: { |
| 310 | left: 30px; |
| 311 | right: 14px; |
| 312 | } |
| 313 | &.embedded { |
| 314 | margin: { |
| 315 | left: 14px; |
| 316 | right: 14px; |
| 317 | } |
| 318 | } |
| 319 | } |
| 320 | |
Nils Diewald | 4e9fbcb | 2014-07-15 11:45:09 +0000 | [diff] [blame] | 321 | main { |
| 322 | > section > p, |
| 323 | > p { |
| 324 | a { |
| 325 | border-radius: 6px; |
| 326 | padding: 0 .3em; |
| 327 | background-color: $pagination-bg; |
| 328 | text-shadow: light-shadow; |
| 329 | color: $light-green; |
| 330 | &:hover { |
| 331 | color: $dark-green; |
| 332 | text-shadow: none; |
| 333 | background-color: $light-green; |
| 334 | } |
| 335 | } |
| 336 | } |
| 337 | blockquote { |
| 338 | border-radius: 12px; |
| 339 | margin: 0; |
| 340 | text-indent: 0; |
| 341 | padding: 1em; |
| 342 | border-left: { |
| 343 | color: $dark-grey; |
| 344 | style: solid; |
| 345 | width: 1em; |
| 346 | } |
| 347 | background-color: $light-grey; |
| 348 | &.warning { |
| 349 | border-left-color: $dark-orange; |
| 350 | } |
| 351 | &.exception { |
| 352 | border-left-color: red; |
| 353 | } |
| 354 | } |
Nils Diewald | e8e8805 | 2014-11-10 16:32:02 +0000 | [diff] [blame] | 355 | } |