2 Version: 3.5.1 Timestamp: Tue Jul 22 18:58:56 EDT 2014
8 /* inline-block for ie7 */
11 vertical-align: middle;
17 .select2-search input {
19 Force border-box so that % widths fit the parent
20 container without overlap because of margin/padding.
21 More Info : http://www.quirksmode.org/css/box.html
23 -webkit-box-sizing: border-box; /* webkit */
24 -moz-box-sizing: border-box; /* firefox */
25 box-sizing: border-box; /* css3 */
28 .select2-container .select2-choice {
35 border: 1px solid #aaa;
39 text-decoration: none;
43 background-clip: padding-box;
45 -webkit-touch-callout: none;
46 -webkit-user-select: none;
47 -moz-user-select: none;
48 -ms-user-select: none;
51 background-color: #fff;
52 background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #eee), color-stop(0.5, #fff));
53 background-image: -webkit-linear-gradient(center bottom, #eee 0%, #fff 50%);
54 background-image: -moz-linear-gradient(center bottom, #eee 0%, #fff 50%);
55 filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#ffffff', endColorstr = '#eeeeee', GradientType = 0);
56 background-image: linear-gradient(to top, #eee 0%, #fff 50%);
59 html[dir="rtl"] .select2-container .select2-choice {
63 .select2-container.select2-drop-above .select2-choice {
64 border-bottom-color: #aaa;
66 border-radius: 0 0 4px 4px;
68 background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #eee), color-stop(0.9, #fff));
69 background-image: -webkit-linear-gradient(center bottom, #eee 0%, #fff 90%);
70 background-image: -moz-linear-gradient(center bottom, #eee 0%, #fff 90%);
71 filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#eeeeee', GradientType=0);
72 background-image: linear-gradient(to bottom, #eee 0%, #fff 90%);
75 .select2-container.select2-allowclear .select2-choice .select2-chosen {
79 .select2-container .select2-choice > .select2-chosen {
86 text-overflow: ellipsis;
91 html[dir="rtl"] .select2-container .select2-choice > .select2-chosen {
96 .select2-container .select2-choice abbr {
105 text-decoration: none;
108 background: url('select2.png') right top no-repeat;
113 .select2-container.select2-allowclear .select2-choice abbr {
114 display: inline-block;
117 .select2-container .select2-choice abbr:hover {
118 background-position: right -11px;
135 /* styles required for IE to work */
136 background-color: #fff;
137 filter: alpha(opacity=0);
149 border: 1px solid #aaa;
152 border-radius: 0 0 4px 4px;
154 -webkit-box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
155 box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
158 .select2-drop.select2-drop-above {
160 border-top: 1px solid #aaa;
163 border-radius: 4px 4px 0 0;
165 -webkit-box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
166 box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
169 .select2-drop-active {
170 border: 1px solid #5897fb;
174 .select2-drop.select2-drop-above.select2-drop-active {
175 border-top: 1px solid #5897fb;
178 .select2-drop-auto-width {
179 border-top: 1px solid #aaa;
183 .select2-drop-auto-width .select2-search {
187 .select2-container .select2-choice .select2-arrow {
188 display: inline-block;
195 border-left: 1px solid #aaa;
196 border-radius: 0 4px 4px 0;
198 background-clip: padding-box;
201 background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #ccc), color-stop(0.6, #eee));
202 background-image: -webkit-linear-gradient(center bottom, #ccc 0%, #eee 60%);
203 background-image: -moz-linear-gradient(center bottom, #ccc 0%, #eee 60%);
204 filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#eeeeee', endColorstr = '#cccccc', GradientType = 0);
205 background-image: linear-gradient(to top, #ccc 0%, #eee 60%);
208 html[dir="rtl"] .select2-container .select2-choice .select2-arrow {
213 border-right: 1px solid #aaa;
214 border-radius: 4px 0 0 4px;
217 .select2-container .select2-choice .select2-arrow b {
221 background: url('select2.png') no-repeat 0 1px;
224 html[dir="rtl"] .select2-container .select2-choice .select2-arrow b {
225 background-position: 2px 1px;
229 display: inline-block;
242 .select2-search input {
244 height: auto !important;
246 padding: 4px 20px 4px 5px;
250 font-family: sans-serif;
253 border: 1px solid #aaa;
256 -webkit-box-shadow: none;
259 background: #fff url('select2.png') no-repeat 100% -22px;
260 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));
261 background: url('select2.png') no-repeat 100% -22px, -webkit-linear-gradient(center bottom, #fff 85%, #eee 99%);
262 background: url('select2.png') no-repeat 100% -22px, -moz-linear-gradient(center bottom, #fff 85%, #eee 99%);
263 background: url('select2.png') no-repeat 100% -22px, linear-gradient(to bottom, #fff 85%, #eee 99%) 0 0;
266 html[dir="rtl"] .select2-search input {
267 padding: 4px 5px 4px 20px;
269 background: #fff url('select2.png') no-repeat -37px -22px;
270 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));
271 background: url('select2.png') no-repeat -37px -22px, -webkit-linear-gradient(center bottom, #fff 85%, #eee 99%);
272 background: url('select2.png') no-repeat -37px -22px, -moz-linear-gradient(center bottom, #fff 85%, #eee 99%);
273 background: url('select2.png') no-repeat -37px -22px, linear-gradient(to bottom, #fff 85%, #eee 99%) 0 0;
276 .select2-drop.select2-drop-above .select2-search input {
280 .select2-search input.select2-active {
281 background: #fff url('select2-spinner.gif') no-repeat 100%;
282 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));
283 background: url('select2-spinner.gif') no-repeat 100%, -webkit-linear-gradient(center bottom, #fff 85%, #eee 99%);
284 background: url('select2-spinner.gif') no-repeat 100%, -moz-linear-gradient(center bottom, #fff 85%, #eee 99%);
285 background: url('select2-spinner.gif') no-repeat 100%, linear-gradient(to bottom, #fff 85%, #eee 99%) 0 0;
288 .select2-container-active .select2-choice,
289 .select2-container-active .select2-choices {
290 border: 1px solid #5897fb;
293 -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, .3);
294 box-shadow: 0 0 5px rgba(0, 0, 0, .3);
297 .select2-dropdown-open .select2-choice {
298 border-bottom-color: transparent;
299 -webkit-box-shadow: 0 1px 0 #fff inset;
300 box-shadow: 0 1px 0 #fff inset;
302 border-bottom-left-radius: 0;
303 border-bottom-right-radius: 0;
305 background-color: #eee;
306 background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #fff), color-stop(0.5, #eee));
307 background-image: -webkit-linear-gradient(center bottom, #fff 0%, #eee 50%);
308 background-image: -moz-linear-gradient(center bottom, #fff 0%, #eee 50%);
309 filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#ffffff', GradientType=0);
310 background-image: linear-gradient(to top, #fff 0%, #eee 50%);
313 .select2-dropdown-open.select2-drop-above .select2-choice,
314 .select2-dropdown-open.select2-drop-above .select2-choices {
315 border: 1px solid #5897fb;
316 border-top-color: transparent;
318 background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #fff), color-stop(0.5, #eee));
319 background-image: -webkit-linear-gradient(center top, #fff 0%, #eee 50%);
320 background-image: -moz-linear-gradient(center top, #fff 0%, #eee 50%);
321 filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#ffffff', GradientType=0);
322 background-image: linear-gradient(to bottom, #fff 0%, #eee 50%);
325 .select2-dropdown-open .select2-choice .select2-arrow {
326 background: transparent;
330 html[dir="rtl"] .select2-dropdown-open .select2-choice .select2-arrow {
334 .select2-dropdown-open .select2-choice .select2-arrow b {
335 background-position: -18px 1px;
338 html[dir="rtl"] .select2-dropdown-open .select2-choice .select2-arrow b {
339 background-position: -16px 1px;
342 .select2-hidden-accessible {
357 margin: 4px 4px 4px 0;
361 -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
364 html[dir="rtl"] .select2-results {
366 margin: 4px 0 4px 4px;
369 .select2-results ul.select2-result-sub {
374 .select2-results li {
377 background-image: none;
380 .select2-results li.select2-result-with-children > .select2-result-label {
384 .select2-results .select2-result-label {
385 padding: 3px 7px 4px;
391 -webkit-touch-callout: none;
392 -webkit-user-select: none;
393 -moz-user-select: none;
394 -ms-user-select: none;
398 .select2-results-dept-1 .select2-result-label { padding-left: 20px }
399 .select2-results-dept-2 .select2-result-label { padding-left: 40px }
400 .select2-results-dept-3 .select2-result-label { padding-left: 60px }
401 .select2-results-dept-4 .select2-result-label { padding-left: 80px }
402 .select2-results-dept-5 .select2-result-label { padding-left: 100px }
403 .select2-results-dept-6 .select2-result-label { padding-left: 110px }
404 .select2-results-dept-7 .select2-result-label { padding-left: 120px }
406 .select2-results .select2-highlighted {
411 .select2-results li em {
416 .select2-results .select2-highlighted em {
417 background: transparent;
420 .select2-results .select2-highlighted ul {
425 .select2-results .select2-no-results,
426 .select2-results .select2-searching,
427 .select2-results .select2-ajax-error,
428 .select2-results .select2-selection-limit {
435 disabled look for disabled choices in the results dropdown
437 .select2-results .select2-disabled.select2-highlighted {
443 .select2-results .select2-disabled {
449 .select2-results .select2-selected {
453 .select2-more-results.select2-active {
454 background: #f4f4f4 url('select2-spinner.gif') no-repeat 100%;
457 .select2-results .select2-ajax-error {
458 background: rgba(255, 50, 50, .2);
461 .select2-more-results {
466 /* disabled styles */
468 .select2-container.select2-container-disabled .select2-choice {
469 background-color: #f4f4f4;
470 background-image: none;
471 border: 1px solid #ddd;
475 .select2-container.select2-container-disabled .select2-choice .select2-arrow {
476 background-color: #f4f4f4;
477 background-image: none;
481 .select2-container.select2-container-disabled .select2-choice abbr {
488 .select2-container-multi .select2-choices {
489 height: auto !important;
495 border: 1px solid #aaa;
499 background-color: #fff;
500 background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(1%, #eee), color-stop(15%, #fff));
501 background-image: -webkit-linear-gradient(top, #eee 1%, #fff 15%);
502 background-image: -moz-linear-gradient(top, #eee 1%, #fff 15%);
503 background-image: linear-gradient(to bottom, #eee 1%, #fff 15%);
506 html[dir="rtl"] .select2-container-multi .select2-choices {
511 padding: 3px 5px 3px 5px !important;
514 .select2-container-multi .select2-choices {
518 .select2-container-multi.select2-container-active .select2-choices {
519 border: 1px solid #5897fb;
522 -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, .3);
523 box-shadow: 0 0 5px rgba(0, 0, 0, .3);
525 .select2-container-multi .select2-choices li {
529 html[dir="rtl"] .select2-container-multi .select2-choices li
533 .select2-container-multi .select2-choices .select2-search-field {
539 .select2-container-multi .select2-choices .select2-search-field input {
543 font-family: sans-serif;
548 -webkit-box-shadow: none;
550 background: transparent !important;
553 .select2-container-multi .select2-choices .select2-search-field input.select2-active {
554 background: #fff url('select2-spinner.gif') no-repeat 100% !important;
558 color: #999 !important;
561 .select2-container-multi .select2-choices .select2-search-choice {
562 padding: 3px 5px 3px 18px;
563 margin: 3px 0 3px 5px;
569 border: 1px solid #aaaaaa;
573 -webkit-box-shadow: 0 0 2px #fff inset, 0 1px 0 rgba(0, 0, 0, 0.05);
574 box-shadow: 0 0 2px #fff inset, 0 1px 0 rgba(0, 0, 0, 0.05);
576 background-clip: padding-box;
578 -webkit-touch-callout: none;
579 -webkit-user-select: none;
580 -moz-user-select: none;
581 -ms-user-select: none;
584 background-color: #e4e4e4;
585 filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#f4f4f4', GradientType=0);
586 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));
587 background-image: -webkit-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
588 background-image: -moz-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
589 background-image: linear-gradient(to top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
591 html[dir="rtl"] .select2-container-multi .select2-choices .select2-search-choice
593 margin: 3px 5px 3px 0;
594 padding: 3px 18px 3px 5px;
596 .select2-container-multi .select2-choices .select2-search-choice .select2-chosen {
599 .select2-container-multi .select2-choices .select2-search-choice-focus {
603 .select2-search-choice-close {
613 background: url('select2.png') right top no-repeat;
615 html[dir="rtl"] .select2-search-choice-close {
620 .select2-container-multi .select2-search-choice-close {
624 html[dir="rtl"] .select2-container-multi .select2-search-choice-close {
629 .select2-container-multi .select2-choices .select2-search-choice .select2-search-choice-close:hover {
630 background-position: right -11px;
632 .select2-container-multi .select2-choices .select2-search-choice-focus .select2-search-choice-close {
633 background-position: right -11px;
636 /* disabled styles */
637 .select2-container-multi.select2-container-disabled .select2-choices {
638 background-color: #f4f4f4;
639 background-image: none;
640 border: 1px solid #ddd;
644 .select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice {
645 padding: 3px 5px 3px 5px;
646 border: 1px solid #ddd;
647 background-image: none;
648 background-color: #f4f4f4;
651 .select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice .select2-search-choice-close { display: none;
654 /* end multiselect */
657 .select2-result-selectable .select2-match,
658 .select2-result-unselectable .select2-match {
659 text-decoration: underline;
662 .select2-offscreen, .select2-offscreen:focus {
663 clip: rect(0 0 0 0) !important;
664 width: 1px !important;
665 height: 1px !important;
666 border: 0 !important;
667 margin: 0 !important;
668 padding: 0 !important;
669 overflow: hidden !important;
670 position: absolute !important;
671 outline: 0 !important;
672 left: 0px !important;
676 .select2-display-none {
680 .select2-measure-scrollbar {
689 /* Retina-ize icons */
691 @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 2dppx) {
692 .select2-search input,
693 .select2-search-choice-close,
694 .select2-container .select2-choice abbr,
695 .select2-container .select2-choice .select2-arrow b {
696 background-image: url('select2x2.png') !important;
697 background-repeat: no-repeat !important;
698 background-size: 60px 40px !important;
701 .select2-search input {
702 background-position: 100% -21px !important;