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