| 1 |
/*! |
| 2 |
* React Select |
| 3 |
* ============ |
| 4 |
* Created by Jed Watson and Joss Mackison for KeystoneJS, http://www.keystonejs.com/ |
| 5 |
* https://twitter.com/jedwatson https://twitter.com/jossmackison https://twitter.com/keystonejs |
| 6 |
* MIT License: https://github.com/JedWatson/react-select |
| 7 |
*/ |
| 8 |
.Select { |
| 9 |
position: relative; |
| 10 |
} |
| 11 |
.Select input::-webkit-contacts-auto-fill-button, |
| 12 |
.Select input::-webkit-credentials-auto-fill-button { |
| 13 |
display: none !important; |
| 14 |
} |
| 15 |
.Select input::-ms-clear { |
| 16 |
display: none !important; |
| 17 |
} |
| 18 |
.Select input::-ms-reveal { |
| 19 |
display: none !important; |
| 20 |
} |
| 21 |
.Select, |
| 22 |
.Select div, |
| 23 |
.Select input, |
| 24 |
.Select span { |
| 25 |
-webkit-box-sizing: border-box; |
| 26 |
-moz-box-sizing: border-box; |
| 27 |
box-sizing: border-box; |
| 28 |
} |
| 29 |
.Select.is-disabled .Select-arrow-zone { |
| 30 |
cursor: default; |
| 31 |
pointer-events: none; |
| 32 |
opacity: 0.35; |
| 33 |
} |
| 34 |
.Select.is-disabled > .Select-control { |
| 35 |
background-color: #f9f9f9; |
| 36 |
} |
| 37 |
.Select.is-disabled > .Select-control:hover { |
| 38 |
box-shadow: none; |
| 39 |
} |
| 40 |
.Select.is-open > .Select-control { |
| 41 |
border-bottom-right-radius: 0; |
| 42 |
border-bottom-left-radius: 0; |
| 43 |
background: #fff; |
| 44 |
border-color: #b3b3b3 #ccc #d9d9d9; |
| 45 |
} |
| 46 |
.Select.is-open > .Select-control .Select-arrow { |
| 47 |
top: -2px; |
| 48 |
border-color: transparent transparent #999; |
| 49 |
border-width: 0 5px 5px; |
| 50 |
} |
| 51 |
.Select.is-searchable.is-open > .Select-control { |
| 52 |
cursor: text; |
| 53 |
} |
| 54 |
.Select.is-searchable.is-focused:not(.is-open) > .Select-control { |
| 55 |
cursor: text; |
| 56 |
} |
| 57 |
.Select.is-focused > .Select-control { |
| 58 |
background: #fff; |
| 59 |
} |
| 60 |
.Select.is-focused:not(.is-open) > .Select-control { |
| 61 |
border-color: #007eff; |
| 62 |
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 0 3px rgba(0, 126, 255, 0.1); |
| 63 |
background: #fff; |
| 64 |
} |
| 65 |
.Select.has-value.is-clearable.Select--single > .Select-control .Select-value { |
| 66 |
padding-right: 42px; |
| 67 |
} |
| 68 |
.Select.has-value.Select--single > .Select-control .Select-value .Select-value-label, |
| 69 |
.Select.has-value.is-pseudo-focused.Select--single > .Select-control .Select-value .Select-value-label { |
| 70 |
color: #333; |
| 71 |
} |
| 72 |
.Select.has-value.Select--single > .Select-control .Select-value a.Select-value-label, |
| 73 |
.Select.has-value.is-pseudo-focused.Select--single > .Select-control .Select-value a.Select-value-label { |
| 74 |
cursor: pointer; |
| 75 |
text-decoration: none; |
| 76 |
} |
| 77 |
.Select.has-value.Select--single > .Select-control .Select-value a.Select-value-label:hover, |
| 78 |
.Select.has-value.is-pseudo-focused.Select--single > .Select-control .Select-value a.Select-value-label:hover, |
| 79 |
.Select.has-value.Select--single > .Select-control .Select-value a.Select-value-label:focus, |
| 80 |
.Select.has-value.is-pseudo-focused.Select--single > .Select-control .Select-value a.Select-value-label:focus { |
| 81 |
color: #007eff; |
| 82 |
outline: none; |
| 83 |
text-decoration: underline; |
| 84 |
} |
| 85 |
.Select.has-value.Select--single > .Select-control .Select-value a.Select-value-label:focus, |
| 86 |
.Select.has-value.is-pseudo-focused.Select--single > .Select-control .Select-value a.Select-value-label:focus { |
| 87 |
background: #fff; |
| 88 |
} |
| 89 |
.Select.has-value.is-pseudo-focused .Select-input { |
| 90 |
opacity: 0; |
| 91 |
} |
| 92 |
.Select.is-open .Select-arrow, |
| 93 |
.Select .Select-arrow-zone:hover > .Select-arrow { |
| 94 |
border-top-color: #666; |
| 95 |
} |
| 96 |
.Select.Select--rtl { |
| 97 |
direction: rtl; |
| 98 |
text-align: right; |
| 99 |
} |
| 100 |
.Select-control { |
| 101 |
background-color: #fff; |
| 102 |
border-color: #d9d9d9 #ccc #b3b3b3; |
| 103 |
border-radius: 4px; |
| 104 |
border: 1px solid #ccc; |
| 105 |
color: #333; |
| 106 |
cursor: default; |
| 107 |
display: table; |
| 108 |
border-spacing: 0; |
| 109 |
border-collapse: separate; |
| 110 |
height: 36px; |
| 111 |
outline: none; |
| 112 |
overflow: hidden; |
| 113 |
position: relative; |
| 114 |
width: 100%; |
| 115 |
} |
| 116 |
.Select-control:hover { |
| 117 |
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); |
| 118 |
} |
| 119 |
.Select-control .Select-input:focus { |
| 120 |
outline: none; |
| 121 |
background: #fff; |
| 122 |
} |
| 123 |
.Select-placeholder, |
| 124 |
.Select--single > .Select-control .Select-value { |
| 125 |
bottom: 0; |
| 126 |
color: #aaa; |
| 127 |
left: 0; |
| 128 |
line-height: 34px; |
| 129 |
padding-left: 10px; |
| 130 |
padding-right: 10px; |
| 131 |
position: absolute; |
| 132 |
right: 0; |
| 133 |
top: 0; |
| 134 |
max-width: 100%; |
| 135 |
overflow: hidden; |
| 136 |
text-overflow: ellipsis; |
| 137 |
white-space: nowrap; |
| 138 |
} |
| 139 |
.Select-input { |
| 140 |
height: 34px; |
| 141 |
padding-left: 10px; |
| 142 |
padding-right: 10px; |
| 143 |
vertical-align: middle; |
| 144 |
} |
| 145 |
.Select-input > input { |
| 146 |
width: 100%; |
| 147 |
background: none transparent; |
| 148 |
border: 0 none; |
| 149 |
box-shadow: none; |
| 150 |
cursor: default; |
| 151 |
display: inline-block; |
| 152 |
font-family: inherit; |
| 153 |
font-size: inherit; |
| 154 |
margin: 0; |
| 155 |
outline: none; |
| 156 |
line-height: 17px; |
| 157 |
/* For IE 8 compatibility */ |
| 158 |
padding: 8px 0 12px; |
| 159 |
/* For IE 8 compatibility */ |
| 160 |
-webkit-appearance: none; |
| 161 |
} |
| 162 |
.is-focused .Select-input > input { |
| 163 |
cursor: text; |
| 164 |
} |
| 165 |
.has-value.is-pseudo-focused .Select-input { |
| 166 |
opacity: 0; |
| 167 |
} |
| 168 |
.Select-control:not(.is-searchable) > .Select-input { |
| 169 |
outline: none; |
| 170 |
} |
| 171 |
.Select-loading-zone { |
| 172 |
cursor: pointer; |
| 173 |
display: table-cell; |
| 174 |
position: relative; |
| 175 |
text-align: center; |
| 176 |
vertical-align: middle; |
| 177 |
width: 16px; |
| 178 |
} |
| 179 |
.Select-loading { |
| 180 |
-webkit-animation: Select-animation-spin 400ms infinite linear; |
| 181 |
-o-animation: Select-animation-spin 400ms infinite linear; |
| 182 |
animation: Select-animation-spin 400ms infinite linear; |
| 183 |
width: 16px; |
| 184 |
height: 16px; |
| 185 |
box-sizing: border-box; |
| 186 |
border-radius: 50%; |
| 187 |
border: 2px solid #ccc; |
| 188 |
border-right-color: #333; |
| 189 |
display: inline-block; |
| 190 |
position: relative; |
| 191 |
vertical-align: middle; |
| 192 |
} |
| 193 |
.Select-clear-zone { |
| 194 |
-webkit-animation: Select-animation-fadeIn 200ms; |
| 195 |
-o-animation: Select-animation-fadeIn 200ms; |
| 196 |
animation: Select-animation-fadeIn 200ms; |
| 197 |
color: #999; |
| 198 |
cursor: pointer; |
| 199 |
display: table-cell; |
| 200 |
position: relative; |
| 201 |
text-align: center; |
| 202 |
vertical-align: middle; |
| 203 |
width: 17px; |
| 204 |
} |
| 205 |
.Select-clear-zone:hover { |
| 206 |
color: #D0021B; |
| 207 |
} |
| 208 |
.Select-clear { |
| 209 |
display: inline-block; |
| 210 |
font-size: 18px; |
| 211 |
line-height: 1; |
| 212 |
} |
| 213 |
.Select--multi .Select-clear-zone { |
| 214 |
width: 17px; |
| 215 |
} |
| 216 |
.Select-arrow-zone { |
| 217 |
cursor: pointer; |
| 218 |
display: table-cell; |
| 219 |
position: relative; |
| 220 |
text-align: center; |
| 221 |
vertical-align: middle; |
| 222 |
width: 25px; |
| 223 |
padding-right: 5px; |
| 224 |
} |
| 225 |
.Select--rtl .Select-arrow-zone { |
| 226 |
padding-right: 0; |
| 227 |
padding-left: 5px; |
| 228 |
} |
| 229 |
.Select-arrow { |
| 230 |
border-color: #999 transparent transparent; |
| 231 |
border-style: solid; |
| 232 |
border-width: 5px 5px 2.5px; |
| 233 |
display: inline-block; |
| 234 |
height: 0; |
| 235 |
width: 0; |
| 236 |
position: relative; |
| 237 |
} |
| 238 |
.Select-control > *:last-child { |
| 239 |
padding-right: 5px; |
| 240 |
} |
| 241 |
.Select--multi .Select-multi-value-wrapper { |
| 242 |
display: inline-block; |
| 243 |
} |
| 244 |
.Select .Select-aria-only { |
| 245 |
position: absolute; |
| 246 |
display: inline-block; |
| 247 |
height: 1px; |
| 248 |
width: 1px; |
| 249 |
margin: -1px; |
| 250 |
clip: rect(0, 0, 0, 0); |
| 251 |
overflow: hidden; |
| 252 |
float: left; |
| 253 |
} |
| 254 |
@-webkit-keyframes Select-animation-fadeIn { |
| 255 |
from { |
| 256 |
opacity: 0; |
| 257 |
} |
| 258 |
to { |
| 259 |
opacity: 1; |
| 260 |
} |
| 261 |
} |
| 262 |
@keyframes Select-animation-fadeIn { |
| 263 |
from { |
| 264 |
opacity: 0; |
| 265 |
} |
| 266 |
to { |
| 267 |
opacity: 1; |
| 268 |
} |
| 269 |
} |
| 270 |
.Select-menu-outer { |
| 271 |
border-bottom-right-radius: 4px; |
| 272 |
border-bottom-left-radius: 4px; |
| 273 |
background-color: #fff; |
| 274 |
border: 1px solid #ccc; |
| 275 |
border-top-color: #e6e6e6; |
| 276 |
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); |
| 277 |
box-sizing: border-box; |
| 278 |
margin-top: -1px; |
| 279 |
max-height: 200px; |
| 280 |
position: absolute; |
| 281 |
left: 0; |
| 282 |
top: 100%; |
| 283 |
width: 100%; |
| 284 |
z-index: 1; |
| 285 |
-webkit-overflow-scrolling: touch; |
| 286 |
} |
| 287 |
.Select-menu { |
| 288 |
max-height: 198px; |
| 289 |
overflow-y: auto; |
| 290 |
} |
| 291 |
.Select-option { |
| 292 |
box-sizing: border-box; |
| 293 |
background-color: #fff; |
| 294 |
color: #666666; |
| 295 |
cursor: pointer; |
| 296 |
display: block; |
| 297 |
padding: 8px 10px; |
| 298 |
} |
| 299 |
.Select-option:last-child { |
| 300 |
border-bottom-right-radius: 4px; |
| 301 |
border-bottom-left-radius: 4px; |
| 302 |
} |
| 303 |
.Select-option.is-selected { |
| 304 |
background-color: #f5faff; |
| 305 |
/* Fallback color for IE 8 */ |
| 306 |
background-color: rgba(0, 126, 255, 0.04); |
| 307 |
color: #333; |
| 308 |
} |
| 309 |
.Select-option.is-focused { |
| 310 |
background-color: #ebf5ff; |
| 311 |
/* Fallback color for IE 8 */ |
| 312 |
background-color: rgba(0, 126, 255, 0.08); |
| 313 |
color: #333; |
| 314 |
} |
| 315 |
.Select-option.is-disabled { |
| 316 |
color: #cccccc; |
| 317 |
cursor: default; |
| 318 |
} |
| 319 |
.Select-noresults { |
| 320 |
box-sizing: border-box; |
| 321 |
color: #999999; |
| 322 |
cursor: default; |
| 323 |
display: block; |
| 324 |
padding: 8px 10px; |
| 325 |
} |
| 326 |
.Select--multi .Select-input { |
| 327 |
vertical-align: middle; |
| 328 |
margin-left: 10px; |
| 329 |
padding: 0; |
| 330 |
} |
| 331 |
.Select--multi.Select--rtl .Select-input { |
| 332 |
margin-left: 0; |
| 333 |
margin-right: 10px; |
| 334 |
} |
| 335 |
.Select--multi.has-value .Select-input { |
| 336 |
margin-left: 5px; |
| 337 |
} |
| 338 |
.Select--multi .Select-value { |
| 339 |
background-color: #ebf5ff; |
| 340 |
/* Fallback color for IE 8 */ |
| 341 |
background-color: rgba(0, 126, 255, 0.08); |
| 342 |
border-radius: 2px; |
| 343 |
border: 1px solid #c2e0ff; |
| 344 |
/* Fallback color for IE 8 */ |
| 345 |
border: 1px solid rgba(0, 126, 255, 0.24); |
| 346 |
color: #007eff; |
| 347 |
display: inline-block; |
| 348 |
font-size: 0.9em; |
| 349 |
line-height: 1.4; |
| 350 |
margin-left: 5px; |
| 351 |
margin-top: 5px; |
| 352 |
vertical-align: top; |
| 353 |
} |
| 354 |
.Select--multi .Select-value-icon, |
| 355 |
.Select--multi .Select-value-label { |
| 356 |
display: inline-block; |
| 357 |
vertical-align: middle; |
| 358 |
} |
| 359 |
.Select--multi .Select-value-label { |
| 360 |
border-bottom-right-radius: 2px; |
| 361 |
border-top-right-radius: 2px; |
| 362 |
cursor: default; |
| 363 |
padding: 2px 5px; |
| 364 |
} |
| 365 |
.Select--multi a.Select-value-label { |
| 366 |
color: #007eff; |
| 367 |
cursor: pointer; |
| 368 |
text-decoration: none; |
| 369 |
} |
| 370 |
.Select--multi a.Select-value-label:hover { |
| 371 |
text-decoration: underline; |
| 372 |
} |
| 373 |
.Select--multi .Select-value-icon { |
| 374 |
cursor: pointer; |
| 375 |
border-bottom-left-radius: 2px; |
| 376 |
border-top-left-radius: 2px; |
| 377 |
border-right: 1px solid #c2e0ff; |
| 378 |
/* Fallback color for IE 8 */ |
| 379 |
border-right: 1px solid rgba(0, 126, 255, 0.24); |
| 380 |
padding: 1px 5px 3px; |
| 381 |
} |
| 382 |
.Select--multi .Select-value-icon:hover, |
| 383 |
.Select--multi .Select-value-icon:focus { |
| 384 |
background-color: #d8eafd; |
| 385 |
/* Fallback color for IE 8 */ |
| 386 |
background-color: rgba(0, 113, 230, 0.08); |
| 387 |
color: #0071e6; |
| 388 |
} |
| 389 |
.Select--multi .Select-value-icon:active { |
| 390 |
background-color: #c2e0ff; |
| 391 |
/* Fallback color for IE 8 */ |
| 392 |
background-color: rgba(0, 126, 255, 0.24); |
| 393 |
} |
| 394 |
.Select--multi.Select--rtl .Select-value { |
| 395 |
margin-left: 0; |
| 396 |
margin-right: 5px; |
| 397 |
} |
| 398 |
.Select--multi.Select--rtl .Select-value-icon { |
| 399 |
border-right: none; |
| 400 |
border-left: 1px solid #c2e0ff; |
| 401 |
/* Fallback color for IE 8 */ |
| 402 |
border-left: 1px solid rgba(0, 126, 255, 0.24); |
| 403 |
} |
| 404 |
.Select--multi.is-disabled .Select-value { |
| 405 |
background-color: #fcfcfc; |
| 406 |
border: 1px solid #e3e3e3; |
| 407 |
color: #333; |
| 408 |
} |
| 409 |
.Select--multi.is-disabled .Select-value-icon { |
| 410 |
cursor: not-allowed; |
| 411 |
border-right: 1px solid #e3e3e3; |
| 412 |
} |
| 413 |
.Select--multi.is-disabled .Select-value-icon:hover, |
| 414 |
.Select--multi.is-disabled .Select-value-icon:focus, |
| 415 |
.Select--multi.is-disabled .Select-value-icon:active { |
| 416 |
background-color: #fcfcfc; |
| 417 |
} |
| 418 |
@keyframes Select-animation-spin { |
| 419 |
to { |
| 420 |
transform: rotate(1turn); |
| 421 |
} |
| 422 |
} |
| 423 |
@-webkit-keyframes Select-animation-spin { |
| 424 |
to { |
| 425 |
-webkit-transform: rotate(1turn); |
| 426 |
} |
| 427 |
} |
| 428 |
|