select2-bootstrap.css
12 years ago
select2-spinner.gif
12 years ago
select2.css
12 years ago
select2.png
12 years ago
select2.css
618 lines
| 1 | /* |
| 2 | Version: 3.4.5 Timestamp: Mon Nov 4 08:22:42 PST 2013 |
| 3 | */ |
| 4 | .select2-container { |
| 5 | margin: 0; |
| 6 | position: relative; |
| 7 | display: inline-block; |
| 8 | /* inline-block for ie7 */ |
| 9 | zoom: 1; |
| 10 | *display: inline; |
| 11 | vertical-align: middle; |
| 12 | width:100%; |
| 13 | } |
| 14 | |
| 15 | .select2-container, |
| 16 | .select2-drop, |
| 17 | .select2-search, |
| 18 | .select2-search input { |
| 19 | /* |
| 20 | Force border-box so that % widths fit the parent |
| 21 | container without overlap because of margin/padding. |
| 22 | |
| 23 | More Info : http://www.quirksmode.org/css/box.html |
| 24 | */ |
| 25 | -webkit-box-sizing: border-box; /* webkit */ |
| 26 | -moz-box-sizing: border-box; /* firefox */ |
| 27 | box-sizing: border-box; /* css3 */ |
| 28 | } |
| 29 | |
| 30 | .select2-container .select2-choice { |
| 31 | display: block; |
| 32 | height: 26px; |
| 33 | padding: 0 0 0 8px; |
| 34 | overflow: hidden; |
| 35 | position: relative; |
| 36 | |
| 37 | border: 1px solid #aaa; |
| 38 | white-space: nowrap; |
| 39 | line-height: 26px; |
| 40 | color: #444; |
| 41 | text-decoration: none; |
| 42 | |
| 43 | border-radius: 4px; |
| 44 | |
| 45 | background-clip: padding-box; |
| 46 | |
| 47 | -webkit-touch-callout: none; |
| 48 | -webkit-user-select: none; |
| 49 | -moz-user-select: none; |
| 50 | -ms-user-select: none; |
| 51 | user-select: none; |
| 52 | |
| 53 | background-color: #fff; |
| 54 | background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #eee), color-stop(0.5, #fff)); |
| 55 | background-image: -webkit-linear-gradient(center bottom, #eee 0%, #fff 50%); |
| 56 | background-image: -moz-linear-gradient(center bottom, #eee 0%, #fff 50%); |
| 57 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#ffffff', endColorstr = '#eeeeee', GradientType = 0); |
| 58 | background-image: linear-gradient(top, #fff 0%, #eee 50%); |
| 59 | } |
| 60 | |
| 61 | .select2-container.select2-drop-above .select2-choice { |
| 62 | border-bottom-color: #aaa; |
| 63 | |
| 64 | border-radius: 0 0 4px 4px; |
| 65 | |
| 66 | background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #eee), color-stop(0.9, #fff)); |
| 67 | background-image: -webkit-linear-gradient(center bottom, #eee 0%, #fff 90%); |
| 68 | background-image: -moz-linear-gradient(center bottom, #eee 0%, #fff 90%); |
| 69 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#eeeeee', GradientType=0); |
| 70 | background-image: linear-gradient(top, #eee 0%, #fff 90%); |
| 71 | } |
| 72 | |
| 73 | .select2-container.select2-allowclear .select2-choice .select2-chosen { |
| 74 | margin-right: 42px; |
| 75 | } |
| 76 | |
| 77 | .select2-container .select2-choice > .select2-chosen { |
| 78 | margin-right: 26px; |
| 79 | display: block; |
| 80 | overflow: hidden; |
| 81 | |
| 82 | white-space: nowrap; |
| 83 | |
| 84 | text-overflow: ellipsis; |
| 85 | } |
| 86 | |
| 87 | .select2-container .select2-choice abbr { |
| 88 | display: none; |
| 89 | width: 12px; |
| 90 | height: 12px; |
| 91 | position: absolute; |
| 92 | right: 24px; |
| 93 | top: 8px; |
| 94 | |
| 95 | font-size: 1px; |
| 96 | text-decoration: none; |
| 97 | |
| 98 | border: 0; |
| 99 | background: url('select2.png') right top no-repeat; |
| 100 | cursor: pointer; |
| 101 | outline: 0; |
| 102 | } |
| 103 | |
| 104 | .select2-container.select2-allowclear .select2-choice abbr { |
| 105 | display: inline-block; |
| 106 | } |
| 107 | |
| 108 | .select2-container .select2-choice abbr:hover { |
| 109 | background-position: right -11px; |
| 110 | cursor: pointer; |
| 111 | } |
| 112 | |
| 113 | .select2-drop-mask { |
| 114 | border: 0; |
| 115 | margin: 0; |
| 116 | padding: 0; |
| 117 | position: fixed; |
| 118 | left: 0; |
| 119 | top: 0; |
| 120 | min-height: 100%; |
| 121 | min-width: 100%; |
| 122 | height: auto; |
| 123 | width: auto; |
| 124 | opacity: 0; |
| 125 | z-index: 9998; |
| 126 | /* styles required for IE to work */ |
| 127 | background-color: #fff; |
| 128 | filter: alpha(opacity=0); |
| 129 | } |
| 130 | |
| 131 | .select2-drop { |
| 132 | width: 100%; |
| 133 | margin-top: -1px; |
| 134 | position: absolute; |
| 135 | z-index: 9999; |
| 136 | top: 100%; |
| 137 | |
| 138 | background: #fff; |
| 139 | color: #000; |
| 140 | border: 1px solid #aaa; |
| 141 | border-top: 0; |
| 142 | |
| 143 | border-radius: 0 0 4px 4px; |
| 144 | |
| 145 | -webkit-box-shadow: 0 4px 5px rgba(0, 0, 0, .15); |
| 146 | box-shadow: 0 4px 5px rgba(0, 0, 0, .15); |
| 147 | } |
| 148 | |
| 149 | .select2-drop-auto-width { |
| 150 | border-top: 1px solid #aaa; |
| 151 | width: auto; |
| 152 | } |
| 153 | |
| 154 | .select2-drop-auto-width .select2-search { |
| 155 | padding-top: 4px; |
| 156 | } |
| 157 | |
| 158 | .select2-drop.select2-drop-above { |
| 159 | margin-top: 1px; |
| 160 | border-top: 1px solid #aaa; |
| 161 | border-bottom: 0; |
| 162 | |
| 163 | border-radius: 4px 4px 0 0; |
| 164 | |
| 165 | -webkit-box-shadow: 0 -4px 5px rgba(0, 0, 0, .15); |
| 166 | box-shadow: 0 -4px 5px rgba(0, 0, 0, .15); |
| 167 | } |
| 168 | |
| 169 | .select2-drop-active { |
| 170 | border: 1px solid #5897fb; |
| 171 | border-top: none; |
| 172 | } |
| 173 | |
| 174 | .select2-drop.select2-drop-above.select2-drop-active { |
| 175 | border-top: 1px solid #5897fb; |
| 176 | } |
| 177 | |
| 178 | .select2-container .select2-choice .select2-arrow { |
| 179 | display: inline-block; |
| 180 | width: 18px; |
| 181 | height: 100%; |
| 182 | position: absolute; |
| 183 | right: 0; |
| 184 | top: 0; |
| 185 | |
| 186 | border-left: 1px solid #aaa; |
| 187 | border-radius: 0 4px 4px 0; |
| 188 | |
| 189 | background-clip: padding-box; |
| 190 | |
| 191 | background: #ccc; |
| 192 | background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #ccc), color-stop(0.6, #eee)); |
| 193 | background-image: -webkit-linear-gradient(center bottom, #ccc 0%, #eee 60%); |
| 194 | background-image: -moz-linear-gradient(center bottom, #ccc 0%, #eee 60%); |
| 195 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#eeeeee', endColorstr = '#cccccc', GradientType = 0); |
| 196 | background-image: linear-gradient(top, #ccc 0%, #eee 60%); |
| 197 | } |
| 198 | |
| 199 | .select2-container .select2-choice .select2-arrow b { |
| 200 | display: block; |
| 201 | width: 100%; |
| 202 | height: 100%; |
| 203 | background: url('select2.png') no-repeat 0 1px; |
| 204 | } |
| 205 | |
| 206 | .select2-search { |
| 207 | display: inline-block; |
| 208 | width: 100%; |
| 209 | min-height: 26px; |
| 210 | margin: 0; |
| 211 | padding-left: 4px; |
| 212 | padding-right: 4px; |
| 213 | |
| 214 | position: relative; |
| 215 | z-index: 10000; |
| 216 | |
| 217 | white-space: nowrap; |
| 218 | } |
| 219 | |
| 220 | .select2-search input { |
| 221 | width: 100%; |
| 222 | height: auto !important; |
| 223 | min-height: 26px; |
| 224 | padding: 4px 20px 4px 5px; |
| 225 | margin: 0; |
| 226 | |
| 227 | outline: 0; |
| 228 | font-family: sans-serif; |
| 229 | font-size: 1em; |
| 230 | |
| 231 | border: 1px solid #aaa; |
| 232 | border-radius: 0; |
| 233 | |
| 234 | -webkit-box-shadow: none; |
| 235 | box-shadow: none; |
| 236 | |
| 237 | background: #fff url('select2.png') no-repeat 100% -22px; |
| 238 | background: url('select2.png') no-repeat 100% -22px, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, #fff), color-stop(0.99, #eee)); |
| 239 | background: url('select2.png') no-repeat 100% -22px, -webkit-linear-gradient(center bottom, #fff 85%, #eee 99%); |
| 240 | background: url('select2.png') no-repeat 100% -22px, -moz-linear-gradient(center bottom, #fff 85%, #eee 99%); |
| 241 | background: url('select2.png') no-repeat 100% -22px, linear-gradient(top, #fff 85%, #eee 99%); |
| 242 | } |
| 243 | |
| 244 | .select2-drop.select2-drop-above .select2-search input { |
| 245 | margin-top: 4px; |
| 246 | } |
| 247 | |
| 248 | .select2-search input.select2-active { |
| 249 | background: #fff url('select2-spinner.gif') no-repeat 100%; |
| 250 | background: url('select2-spinner.gif') no-repeat 100%, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, #fff), color-stop(0.99, #eee)); |
| 251 | background: url('select2-spinner.gif') no-repeat 100%, -webkit-linear-gradient(center bottom, #fff 85%, #eee 99%); |
| 252 | background: url('select2-spinner.gif') no-repeat 100%, -moz-linear-gradient(center bottom, #fff 85%, #eee 99%); |
| 253 | background: url('select2-spinner.gif') no-repeat 100%, linear-gradient(top, #fff 85%, #eee 99%); |
| 254 | } |
| 255 | |
| 256 | .select2-container-active .select2-choice, |
| 257 | .select2-container-active .select2-choices { |
| 258 | border: 1px solid #5897fb; |
| 259 | outline: none; |
| 260 | |
| 261 | -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, .3); |
| 262 | box-shadow: 0 0 5px rgba(0, 0, 0, .3); |
| 263 | } |
| 264 | |
| 265 | .select2-dropdown-open .select2-choice { |
| 266 | border-bottom-color: transparent; |
| 267 | -webkit-box-shadow: 0 1px 0 #fff inset; |
| 268 | box-shadow: 0 1px 0 #fff inset; |
| 269 | |
| 270 | border-bottom-left-radius: 0; |
| 271 | border-bottom-right-radius: 0; |
| 272 | |
| 273 | background-color: #eee; |
| 274 | background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #fff), color-stop(0.5, #eee)); |
| 275 | background-image: -webkit-linear-gradient(center bottom, #fff 0%, #eee 50%); |
| 276 | background-image: -moz-linear-gradient(center bottom, #fff 0%, #eee 50%); |
| 277 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#ffffff', GradientType=0); |
| 278 | background-image: linear-gradient(top, #fff 0%, #eee 50%); |
| 279 | } |
| 280 | |
| 281 | .select2-dropdown-open.select2-drop-above .select2-choice, |
| 282 | .select2-dropdown-open.select2-drop-above .select2-choices { |
| 283 | border: 1px solid #5897fb; |
| 284 | border-top-color: transparent; |
| 285 | |
| 286 | background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #fff), color-stop(0.5, #eee)); |
| 287 | background-image: -webkit-linear-gradient(center top, #fff 0%, #eee 50%); |
| 288 | background-image: -moz-linear-gradient(center top, #fff 0%, #eee 50%); |
| 289 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#ffffff', GradientType=0); |
| 290 | background-image: linear-gradient(bottom, #fff 0%, #eee 50%); |
| 291 | } |
| 292 | |
| 293 | .select2-dropdown-open .select2-choice .select2-arrow { |
| 294 | background: transparent; |
| 295 | border-left: none; |
| 296 | filter: none; |
| 297 | } |
| 298 | .select2-dropdown-open .select2-choice .select2-arrow b { |
| 299 | background-position: -18px 1px; |
| 300 | } |
| 301 | |
| 302 | /* results */ |
| 303 | .select2-results { |
| 304 | max-height: 200px; |
| 305 | padding: 0 0 0 4px; |
| 306 | margin: 4px 4px 4px 0; |
| 307 | position: relative; |
| 308 | overflow-x: hidden; |
| 309 | overflow-y: auto; |
| 310 | -webkit-tap-highlight-color: rgba(0, 0, 0, 0); |
| 311 | } |
| 312 | |
| 313 | .select2-results ul.select2-result-sub { |
| 314 | margin: 0; |
| 315 | padding-left: 0; |
| 316 | } |
| 317 | |
| 318 | .select2-results ul.select2-result-sub > li .select2-result-label { padding-left: 20px } |
| 319 | .select2-results ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 40px } |
| 320 | .select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 60px } |
| 321 | .select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 80px } |
| 322 | .select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 100px } |
| 323 | .select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 110px } |
| 324 | .select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 120px } |
| 325 | |
| 326 | .select2-results li { |
| 327 | list-style: none; |
| 328 | display: list-item; |
| 329 | background-image: none; |
| 330 | } |
| 331 | |
| 332 | .select2-results li.select2-result-with-children > .select2-result-label { |
| 333 | font-weight: bold; |
| 334 | } |
| 335 | |
| 336 | .select2-results .select2-result-label { |
| 337 | padding: 3px 7px 4px; |
| 338 | margin: 0; |
| 339 | cursor: pointer; |
| 340 | |
| 341 | min-height: 1em; |
| 342 | |
| 343 | -webkit-touch-callout: none; |
| 344 | -webkit-user-select: none; |
| 345 | -moz-user-select: none; |
| 346 | -ms-user-select: none; |
| 347 | user-select: none; |
| 348 | } |
| 349 | |
| 350 | .select2-results .select2-highlighted { |
| 351 | background: #3875d7; |
| 352 | color: #fff; |
| 353 | } |
| 354 | |
| 355 | .select2-results li em { |
| 356 | background: #feffde; |
| 357 | font-style: normal; |
| 358 | } |
| 359 | |
| 360 | .select2-results .select2-highlighted em { |
| 361 | background: transparent; |
| 362 | } |
| 363 | |
| 364 | .select2-results .select2-highlighted ul { |
| 365 | background: #fff; |
| 366 | color: #000; |
| 367 | } |
| 368 | |
| 369 | |
| 370 | .select2-results .select2-no-results, |
| 371 | .select2-results .select2-searching, |
| 372 | .select2-results .select2-selection-limit { |
| 373 | background: #f4f4f4; |
| 374 | display: list-item; |
| 375 | } |
| 376 | |
| 377 | /* |
| 378 | disabled look for disabled choices in the results dropdown |
| 379 | */ |
| 380 | .select2-results .select2-disabled.select2-highlighted { |
| 381 | color: #666; |
| 382 | background: #f4f4f4; |
| 383 | display: list-item; |
| 384 | cursor: default; |
| 385 | } |
| 386 | .select2-results .select2-disabled { |
| 387 | background: #f4f4f4; |
| 388 | display: list-item; |
| 389 | cursor: default; |
| 390 | } |
| 391 | |
| 392 | .select2-results .select2-selected { |
| 393 | display: none; |
| 394 | } |
| 395 | |
| 396 | .select2-more-results.select2-active { |
| 397 | background: #f4f4f4 url('select2-spinner.gif') no-repeat 100%; |
| 398 | } |
| 399 | |
| 400 | .select2-more-results { |
| 401 | background: #f4f4f4; |
| 402 | display: list-item; |
| 403 | } |
| 404 | |
| 405 | /* disabled styles */ |
| 406 | |
| 407 | .select2-container.select2-container-disabled .select2-choice { |
| 408 | background-color: #f4f4f4; |
| 409 | background-image: none; |
| 410 | border: 1px solid #ddd; |
| 411 | cursor: default; |
| 412 | } |
| 413 | |
| 414 | .select2-container.select2-container-disabled .select2-choice .select2-arrow { |
| 415 | background-color: #f4f4f4; |
| 416 | background-image: none; |
| 417 | border-left: 0; |
| 418 | } |
| 419 | |
| 420 | .select2-container.select2-container-disabled .select2-choice abbr { |
| 421 | display: none; |
| 422 | } |
| 423 | |
| 424 | |
| 425 | /* multiselect */ |
| 426 | |
| 427 | .select2-container-multi .select2-choices { |
| 428 | height: auto !important; |
| 429 | height: 1%; |
| 430 | margin: 3px 0px; |
| 431 | padding: 5px; |
| 432 | position: relative; |
| 433 | |
| 434 | border: 1px solid #aaa; |
| 435 | cursor: text; |
| 436 | overflow: hidden; |
| 437 | |
| 438 | background-color: #fff; |
| 439 | background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(1%, #eee), color-stop(15%, #fff)); |
| 440 | background-image: -webkit-linear-gradient(top, #eee 1%, #fff 15%); |
| 441 | background-image: -moz-linear-gradient(top, #eee 1%, #fff 15%); |
| 442 | background-image: linear-gradient(top, #eee 1%, #fff 15%); |
| 443 | } |
| 444 | |
| 445 | .select2-locked { |
| 446 | padding: 3px 5px 3px 5px !important; |
| 447 | } |
| 448 | |
| 449 | .select2-container-multi .select2-choices { |
| 450 | min-height: 26px; |
| 451 | } |
| 452 | |
| 453 | .select2-container-multi.select2-container-active .select2-choices { |
| 454 | border: 1px solid #5897fb; |
| 455 | outline: none; |
| 456 | |
| 457 | -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, .3); |
| 458 | box-shadow: 0 0 5px rgba(0, 0, 0, .3); |
| 459 | } |
| 460 | .select2-container-multi .select2-choices li { |
| 461 | float: left; |
| 462 | list-style: none; |
| 463 | } |
| 464 | .select2-container-multi .select2-choices .select2-search-field { |
| 465 | margin: 0; |
| 466 | padding: 0; |
| 467 | white-space: nowrap; |
| 468 | } |
| 469 | |
| 470 | .select2-container-multi .select2-choices .select2-search-field input { |
| 471 | padding: 5px; |
| 472 | margin: 1px 0; |
| 473 | |
| 474 | font-family: sans-serif; |
| 475 | font-size: 100%; |
| 476 | color: #666; |
| 477 | outline: 0; |
| 478 | border: 0; |
| 479 | -webkit-box-shadow: none; |
| 480 | box-shadow: none; |
| 481 | background: transparent !important; |
| 482 | border:none !important; |
| 483 | } |
| 484 | |
| 485 | .select2-container-multi .select2-choices .select2-search-field input.select2-active { |
| 486 | background: #fff url('select2-spinner.gif') no-repeat 100% !important; |
| 487 | } |
| 488 | |
| 489 | .select2-default { |
| 490 | color: #999 !important; |
| 491 | } |
| 492 | |
| 493 | .select2-container-multi .select2-choices .select2-search-choice { |
| 494 | padding: 3px 5px 3px 18px; |
| 495 | margin: 3px 0 3px 5px; |
| 496 | position: relative; |
| 497 | |
| 498 | line-height: 13px; |
| 499 | color: #333; |
| 500 | cursor: default; |
| 501 | border: 1px solid #aaaaaa; |
| 502 | |
| 503 | border-radius: 3px; |
| 504 | |
| 505 | -webkit-box-shadow: 0 0 2px #fff inset, 0 1px 0 rgba(0, 0, 0, 0.05); |
| 506 | box-shadow: 0 0 2px #fff inset, 0 1px 0 rgba(0, 0, 0, 0.05); |
| 507 | |
| 508 | background-clip: padding-box; |
| 509 | |
| 510 | -webkit-touch-callout: none; |
| 511 | -webkit-user-select: none; |
| 512 | -moz-user-select: none; |
| 513 | -ms-user-select: none; |
| 514 | user-select: none; |
| 515 | |
| 516 | background-color: #e4e4e4; |
| 517 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#f4f4f4', GradientType=0); |
| 518 | background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), color-stop(100%, #eee)); |
| 519 | background-image: -webkit-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%); |
| 520 | background-image: -moz-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%); |
| 521 | background-image: linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%); |
| 522 | } |
| 523 | .select2-container-multi .select2-choices .select2-search-choice .select2-chosen { |
| 524 | cursor: default; |
| 525 | } |
| 526 | .select2-container-multi .select2-choices .select2-search-choice-focus { |
| 527 | background: #d4d4d4; |
| 528 | } |
| 529 | |
| 530 | .select2-search-choice-close { |
| 531 | display: block; |
| 532 | width: 12px; |
| 533 | height: 13px; |
| 534 | position: absolute; |
| 535 | right: 3px; |
| 536 | top: 4px; |
| 537 | |
| 538 | font-size: 1px; |
| 539 | outline: none; |
| 540 | background: url('select2.png') right top no-repeat; |
| 541 | } |
| 542 | |
| 543 | .select2-container-multi .select2-search-choice-close { |
| 544 | left: 3px; |
| 545 | } |
| 546 | |
| 547 | .select2-container-multi .select2-choices .select2-search-choice .select2-search-choice-close:hover { |
| 548 | background-position: right -11px; |
| 549 | } |
| 550 | .select2-container-multi .select2-choices .select2-search-choice-focus .select2-search-choice-close { |
| 551 | background-position: right -11px; |
| 552 | } |
| 553 | |
| 554 | /* disabled styles */ |
| 555 | .select2-container-multi.select2-container-disabled .select2-choices { |
| 556 | background-color: #f4f4f4; |
| 557 | background-image: none; |
| 558 | border: 1px solid #ddd; |
| 559 | cursor: default; |
| 560 | } |
| 561 | |
| 562 | .select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice { |
| 563 | padding: 3px 5px 3px 5px; |
| 564 | border: 1px solid #ddd; |
| 565 | background-image: none; |
| 566 | background-color: #f4f4f4; |
| 567 | } |
| 568 | |
| 569 | .select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice .select2-search-choice-close { display: none; |
| 570 | background: none; |
| 571 | } |
| 572 | /* end multiselect */ |
| 573 | |
| 574 | |
| 575 | .select2-result-selectable .select2-match, |
| 576 | .select2-result-unselectable .select2-match { |
| 577 | text-decoration: underline; |
| 578 | } |
| 579 | |
| 580 | .select2-offscreen, .select2-offscreen:focus { |
| 581 | clip: rect(0 0 0 0) !important; |
| 582 | width: 1px !important; |
| 583 | height: 1px !important; |
| 584 | border: 0 !important; |
| 585 | margin: 0 !important; |
| 586 | padding: 0 !important; |
| 587 | overflow: hidden !important; |
| 588 | position: absolute !important; |
| 589 | outline: 0 !important; |
| 590 | left: 0px !important; |
| 591 | top: 0px !important; |
| 592 | } |
| 593 | |
| 594 | .select2-display-none { |
| 595 | display: none; |
| 596 | } |
| 597 | |
| 598 | .select2-measure-scrollbar { |
| 599 | position: absolute; |
| 600 | top: -10000px; |
| 601 | left: -10000px; |
| 602 | width: 100px; |
| 603 | height: 100px; |
| 604 | overflow: scroll; |
| 605 | } |
| 606 | /* Retina-ize icons */ |
| 607 | |
| 608 | @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 144dpi) { |
| 609 | .select2-search input, .select2-search-choice-close, .select2-container .select2-choice abbr, .select2-container .select2-choice .select2-arrow b { |
| 610 | background-image: url('select2x2.png') !important; |
| 611 | background-repeat: no-repeat !important; |
| 612 | background-size: 60px 40px !important; |
| 613 | } |
| 614 | .select2-search input { |
| 615 | background-position: 100% -21px !important; |
| 616 | } |
| 617 | } |
| 618 |