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 | |
| 186 | #q-field { |
| 187 | border: 2px solid white; |
| 188 | padding: 3px; |
| 189 | font-size: 11pt; |
| 190 | width: 100%; |
| 191 | margin: 0; |
| 192 | @include box-sizing-box(); |
| 193 | display: block; |
| 194 | } |
| 195 | |
| 196 | #button-right { |
| 197 | display: inline-block; |
| 198 | float: right; |
| 199 | color: white; |
| 200 | line-height: 2em; |
| 201 | > button { |
| 202 | border-bottom: 3px solid transparent; |
| 203 | font-size: 120%; |
| 204 | cursor: pointer; |
| 205 | color: white; |
| 206 | line-height: 14pt; |
| 207 | padding: 0; |
| 208 | &:hover { |
| 209 | border-bottom-color: $dark-green; |
| 210 | } |
| 211 | } |
| 212 | } |
| 213 | /* |
| 214 | #button-right { |
| 215 | position: absolute; |
| 216 | @include box-sizing-box(); |
| 217 | right: 0px; |
| 218 | bottom: 0px; |
| 219 | height: 2em; |
| 220 | width: 6em; |
| 221 | > button { |
| 222 | cursor: pointer; |
| 223 | color: white; |
| 224 | right: 5px; |
| 225 | width: 2em; |
| 226 | bottom: 0; |
| 227 | &:hover { |
| 228 | border-bottom: 2px solid green; |
| 229 | } |
| 230 | &[name=alignment] { |
| 231 | } |
| 232 | &[name=tutorial] { |
| 233 | } |
| 234 | } |
| 235 | } |
| 236 | */ |
| 237 | |
| 238 | p.found { |
| 239 | font-size: 10pt; |
| 240 | padding: 0; |
| 241 | margin: 0; |
| 242 | text-align: right; |
| 243 | } |
| 244 | |
| 245 | #total-results { |
| 246 | color: $total-results; |
| 247 | font-weight: bold; |
| 248 | } |
| 249 | |
| 250 | /* KorAP header logo */ |
| 251 | h1 { |
| 252 | margin: 0; |
| 253 | margin-left:15px; |
| 254 | left: 0; |
| 255 | top: 0; |
| 256 | position: absolute; |
| 257 | width: 7.8em; |
Nils Diewald | 4e9fbcb | 2014-07-15 11:45:09 +0000 | [diff] [blame] | 258 | height: 2.4em; |
Nils Diewald | 7cad840 | 2014-07-08 17:06:56 +0000 | [diff] [blame] | 259 | z-index: 999; |
| 260 | background: { |
| 261 | repeat: no-repeat; |
| 262 | position: center center; |
| 263 | size: 65%; |
| 264 | image: url('/img/korap-logo-solo.svg'); |
| 265 | } |
| 266 | span { |
| 267 | margin-left: -3000px; |
| 268 | } |
| 269 | } |
| 270 | |
| 271 | #search { |
| 272 | margin-bottom: 44px; |
| 273 | &.match { |
| 274 | margin-top: 14pt; |
| 275 | } |
| 276 | } |
| 277 | |
| 278 | main { |
| 279 | margin: { |
| 280 | left: 30px; |
| 281 | right: 14px; |
| 282 | } |
| 283 | &.embedded { |
| 284 | margin: { |
| 285 | left: 14px; |
| 286 | right: 14px; |
| 287 | } |
| 288 | } |
| 289 | } |
| 290 | |
Nils Diewald | 4e9fbcb | 2014-07-15 11:45:09 +0000 | [diff] [blame] | 291 | main { |
| 292 | > section > p, |
| 293 | > p { |
| 294 | a { |
| 295 | border-radius: 6px; |
| 296 | padding: 0 .3em; |
| 297 | background-color: $pagination-bg; |
| 298 | text-shadow: light-shadow; |
| 299 | color: $light-green; |
| 300 | &:hover { |
| 301 | color: $dark-green; |
| 302 | text-shadow: none; |
| 303 | background-color: $light-green; |
| 304 | } |
| 305 | } |
| 306 | } |
| 307 | blockquote { |
| 308 | border-radius: 12px; |
| 309 | margin: 0; |
| 310 | text-indent: 0; |
| 311 | padding: 1em; |
| 312 | border-left: { |
| 313 | color: $dark-grey; |
| 314 | style: solid; |
| 315 | width: 1em; |
| 316 | } |
| 317 | background-color: $light-grey; |
| 318 | &.warning { |
| 319 | border-left-color: $dark-orange; |
| 320 | } |
| 321 | &.exception { |
| 322 | border-left-color: red; |
| 323 | } |
| 324 | } |
| 325 | } |