Commit 387addf9 authored by David Baumgold's avatar David Baumgold

Upgrade select2 to 3.5.2

parent 2323b5e0
Copyright 2012 Igor Vaynberg Copyright 2014 Igor Vaynberg
Version: @@ver@@ Timestamp: @@timestamp@@ Version: @@ver@@ Timestamp: @@timestamp@@
......
/* /*
Version: 3.4.2 Timestamp: Mon Aug 12 15:04:12 PDT 2013 Version: 3.5.2 Timestamp: Sat Nov 1 14:43:36 EDT 2014
*/ */
.select2-container { .select2-container {
margin: 0; margin: 0;
...@@ -18,7 +18,6 @@ Version: 3.4.2 Timestamp: Mon Aug 12 15:04:12 PDT 2013 ...@@ -18,7 +18,6 @@ Version: 3.4.2 Timestamp: Mon Aug 12 15:04:12 PDT 2013
/* /*
Force border-box so that % widths fit the parent Force border-box so that % widths fit the parent
container without overlap because of margin/padding. container without overlap because of margin/padding.
More Info : http://www.quirksmode.org/css/box.html More Info : http://www.quirksmode.org/css/box.html
*/ */
-webkit-box-sizing: border-box; /* webkit */ -webkit-box-sizing: border-box; /* webkit */
...@@ -45,7 +44,6 @@ Version: 3.4.2 Timestamp: Mon Aug 12 15:04:12 PDT 2013 ...@@ -45,7 +44,6 @@ Version: 3.4.2 Timestamp: Mon Aug 12 15:04:12 PDT 2013
-webkit-touch-callout: none; -webkit-touch-callout: none;
-webkit-user-select: none; -webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none; -moz-user-select: none;
-ms-user-select: none; -ms-user-select: none;
user-select: none; user-select: none;
...@@ -54,10 +52,12 @@ Version: 3.4.2 Timestamp: Mon Aug 12 15:04:12 PDT 2013 ...@@ -54,10 +52,12 @@ Version: 3.4.2 Timestamp: Mon Aug 12 15:04:12 PDT 2013
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #eee), color-stop(0.5, #fff)); background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #eee), color-stop(0.5, #fff));
background-image: -webkit-linear-gradient(center bottom, #eee 0%, #fff 50%); background-image: -webkit-linear-gradient(center bottom, #eee 0%, #fff 50%);
background-image: -moz-linear-gradient(center bottom, #eee 0%, #fff 50%); background-image: -moz-linear-gradient(center bottom, #eee 0%, #fff 50%);
background-image: -o-linear-gradient(bottom, #eee 0%, #fff 50%);
background-image: -ms-linear-gradient(top, #fff 0%, #eee 50%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#ffffff', endColorstr = '#eeeeee', GradientType = 0); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#ffffff', endColorstr = '#eeeeee', GradientType = 0);
background-image: linear-gradient(top, #fff 0%, #eee 50%); background-image: linear-gradient(to top, #eee 0%, #fff 50%);
}
html[dir="rtl"] .select2-container .select2-choice {
padding: 0 8px 0 0;
} }
.select2-container.select2-drop-above .select2-choice { .select2-container.select2-drop-above .select2-choice {
...@@ -68,10 +68,8 @@ Version: 3.4.2 Timestamp: Mon Aug 12 15:04:12 PDT 2013 ...@@ -68,10 +68,8 @@ Version: 3.4.2 Timestamp: Mon Aug 12 15:04:12 PDT 2013
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #eee), color-stop(0.9, #fff)); background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #eee), color-stop(0.9, #fff));
background-image: -webkit-linear-gradient(center bottom, #eee 0%, #fff 90%); background-image: -webkit-linear-gradient(center bottom, #eee 0%, #fff 90%);
background-image: -moz-linear-gradient(center bottom, #eee 0%, #fff 90%); background-image: -moz-linear-gradient(center bottom, #eee 0%, #fff 90%);
background-image: -o-linear-gradient(bottom, #eee 0%, #fff 90%);
background-image: -ms-linear-gradient(top, #eee 0%, #fff 90%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#eeeeee', GradientType=0); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#eeeeee', GradientType=0);
background-image: linear-gradient(top, #eee 0%, #fff 90%); background-image: linear-gradient(to bottom, #eee 0%, #fff 90%);
} }
.select2-container.select2-allowclear .select2-choice .select2-chosen { .select2-container.select2-allowclear .select2-choice .select2-chosen {
...@@ -86,6 +84,13 @@ Version: 3.4.2 Timestamp: Mon Aug 12 15:04:12 PDT 2013 ...@@ -86,6 +84,13 @@ Version: 3.4.2 Timestamp: Mon Aug 12 15:04:12 PDT 2013
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
float: none;
width: auto;
}
html[dir="rtl"] .select2-container .select2-choice > .select2-chosen {
margin-left: 26px;
margin-right: 0;
} }
.select2-container .select2-choice abbr { .select2-container .select2-choice abbr {
...@@ -129,7 +134,6 @@ Version: 3.4.2 Timestamp: Mon Aug 12 15:04:12 PDT 2013 ...@@ -129,7 +134,6 @@ Version: 3.4.2 Timestamp: Mon Aug 12 15:04:12 PDT 2013
z-index: 9998; z-index: 9998;
/* styles required for IE to work */ /* styles required for IE to work */
background-color: #fff; background-color: #fff;
opacity: 0;
filter: alpha(opacity=0); filter: alpha(opacity=0);
} }
...@@ -151,15 +155,6 @@ Version: 3.4.2 Timestamp: Mon Aug 12 15:04:12 PDT 2013 ...@@ -151,15 +155,6 @@ Version: 3.4.2 Timestamp: Mon Aug 12 15:04:12 PDT 2013
box-shadow: 0 4px 5px rgba(0, 0, 0, .15); box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
} }
.select2-drop-auto-width {
border-top: 1px solid #aaa;
width: auto;
}
.select2-drop-auto-width .select2-search {
padding-top: 4px;
}
.select2-drop.select2-drop-above { .select2-drop.select2-drop-above {
margin-top: 1px; margin-top: 1px;
border-top: 1px solid #aaa; border-top: 1px solid #aaa;
...@@ -180,6 +175,15 @@ Version: 3.4.2 Timestamp: Mon Aug 12 15:04:12 PDT 2013 ...@@ -180,6 +175,15 @@ Version: 3.4.2 Timestamp: Mon Aug 12 15:04:12 PDT 2013
border-top: 1px solid #5897fb; border-top: 1px solid #5897fb;
} }
.select2-drop-auto-width {
border-top: 1px solid #aaa;
width: auto;
}
.select2-drop-auto-width .select2-search {
padding-top: 4px;
}
.select2-container .select2-choice .select2-arrow { .select2-container .select2-choice .select2-arrow {
display: inline-block; display: inline-block;
width: 18px; width: 18px;
...@@ -197,10 +201,17 @@ Version: 3.4.2 Timestamp: Mon Aug 12 15:04:12 PDT 2013 ...@@ -197,10 +201,17 @@ Version: 3.4.2 Timestamp: Mon Aug 12 15:04:12 PDT 2013
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #ccc), color-stop(0.6, #eee)); background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #ccc), color-stop(0.6, #eee));
background-image: -webkit-linear-gradient(center bottom, #ccc 0%, #eee 60%); background-image: -webkit-linear-gradient(center bottom, #ccc 0%, #eee 60%);
background-image: -moz-linear-gradient(center bottom, #ccc 0%, #eee 60%); background-image: -moz-linear-gradient(center bottom, #ccc 0%, #eee 60%);
background-image: -o-linear-gradient(bottom, #ccc 0%, #eee 60%);
background-image: -ms-linear-gradient(top, #ccc 0%, #eee 60%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#eeeeee', endColorstr = '#cccccc', GradientType = 0); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#eeeeee', endColorstr = '#cccccc', GradientType = 0);
background-image: linear-gradient(top, #ccc 0%, #eee 60%); background-image: linear-gradient(to top, #ccc 0%, #eee 60%);
}
html[dir="rtl"] .select2-container .select2-choice .select2-arrow {
left: 0;
right: auto;
border-left: none;
border-right: 1px solid #aaa;
border-radius: 4px 0 0 4px;
} }
.select2-container .select2-choice .select2-arrow b { .select2-container .select2-choice .select2-arrow b {
...@@ -210,6 +221,10 @@ Version: 3.4.2 Timestamp: Mon Aug 12 15:04:12 PDT 2013 ...@@ -210,6 +221,10 @@ Version: 3.4.2 Timestamp: Mon Aug 12 15:04:12 PDT 2013
background: url('select2.png') no-repeat 0 1px; background: url('select2.png') no-repeat 0 1px;
} }
html[dir="rtl"] .select2-container .select2-choice .select2-arrow b {
background-position: 2px 1px;
}
.select2-search { .select2-search {
display: inline-block; display: inline-block;
width: 100%; width: 100%;
...@@ -245,9 +260,17 @@ Version: 3.4.2 Timestamp: Mon Aug 12 15:04:12 PDT 2013 ...@@ -245,9 +260,17 @@ Version: 3.4.2 Timestamp: Mon Aug 12 15:04:12 PDT 2013
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)); 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));
background: url('select2.png') no-repeat 100% -22px, -webkit-linear-gradient(center bottom, #fff 85%, #eee 99%); background: url('select2.png') no-repeat 100% -22px, -webkit-linear-gradient(center bottom, #fff 85%, #eee 99%);
background: url('select2.png') no-repeat 100% -22px, -moz-linear-gradient(center bottom, #fff 85%, #eee 99%); background: url('select2.png') no-repeat 100% -22px, -moz-linear-gradient(center bottom, #fff 85%, #eee 99%);
background: url('select2.png') no-repeat 100% -22px, -o-linear-gradient(bottom, #fff 85%, #eee 99%); background: url('select2.png') no-repeat 100% -22px, linear-gradient(to bottom, #fff 85%, #eee 99%) 0 0;
background: url('select2.png') no-repeat 100% -22px, -ms-linear-gradient(top, #fff 85%, #eee 99%); }
background: url('select2.png') no-repeat 100% -22px, linear-gradient(top, #fff 85%, #eee 99%);
html[dir="rtl"] .select2-search input {
padding: 4px 5px 4px 20px;
background: #fff url('select2.png') no-repeat -37px -22px;
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));
background: url('select2.png') no-repeat -37px -22px, -webkit-linear-gradient(center bottom, #fff 85%, #eee 99%);
background: url('select2.png') no-repeat -37px -22px, -moz-linear-gradient(center bottom, #fff 85%, #eee 99%);
background: url('select2.png') no-repeat -37px -22px, linear-gradient(to bottom, #fff 85%, #eee 99%) 0 0;
} }
.select2-drop.select2-drop-above .select2-search input { .select2-drop.select2-drop-above .select2-search input {
...@@ -259,9 +282,7 @@ Version: 3.4.2 Timestamp: Mon Aug 12 15:04:12 PDT 2013 ...@@ -259,9 +282,7 @@ Version: 3.4.2 Timestamp: Mon Aug 12 15:04:12 PDT 2013
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)); 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));
background: url('select2-spinner.gif') no-repeat 100%, -webkit-linear-gradient(center bottom, #fff 85%, #eee 99%); background: url('select2-spinner.gif') no-repeat 100%, -webkit-linear-gradient(center bottom, #fff 85%, #eee 99%);
background: url('select2-spinner.gif') no-repeat 100%, -moz-linear-gradient(center bottom, #fff 85%, #eee 99%); background: url('select2-spinner.gif') no-repeat 100%, -moz-linear-gradient(center bottom, #fff 85%, #eee 99%);
background: url('select2-spinner.gif') no-repeat 100%, -o-linear-gradient(bottom, #fff 85%, #eee 99%); background: url('select2-spinner.gif') no-repeat 100%, linear-gradient(to bottom, #fff 85%, #eee 99%) 0 0;
background: url('select2-spinner.gif') no-repeat 100%, -ms-linear-gradient(top, #fff 85%, #eee 99%);
background: url('select2-spinner.gif') no-repeat 100%, linear-gradient(top, #fff 85%, #eee 99%);
} }
.select2-container-active .select2-choice, .select2-container-active .select2-choice,
...@@ -285,10 +306,8 @@ Version: 3.4.2 Timestamp: Mon Aug 12 15:04:12 PDT 2013 ...@@ -285,10 +306,8 @@ Version: 3.4.2 Timestamp: Mon Aug 12 15:04:12 PDT 2013
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #fff), color-stop(0.5, #eee)); background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #fff), color-stop(0.5, #eee));
background-image: -webkit-linear-gradient(center bottom, #fff 0%, #eee 50%); background-image: -webkit-linear-gradient(center bottom, #fff 0%, #eee 50%);
background-image: -moz-linear-gradient(center bottom, #fff 0%, #eee 50%); background-image: -moz-linear-gradient(center bottom, #fff 0%, #eee 50%);
background-image: -o-linear-gradient(bottom, #fff 0%, #eee 50%);
background-image: -ms-linear-gradient(top, #fff 0%, #eee 50%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#ffffff', GradientType=0); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#ffffff', GradientType=0);
background-image: linear-gradient(top, #fff 0%, #eee 50%); background-image: linear-gradient(to top, #fff 0%, #eee 50%);
} }
.select2-dropdown-open.select2-drop-above .select2-choice, .select2-dropdown-open.select2-drop-above .select2-choice,
...@@ -299,10 +318,8 @@ Version: 3.4.2 Timestamp: Mon Aug 12 15:04:12 PDT 2013 ...@@ -299,10 +318,8 @@ Version: 3.4.2 Timestamp: Mon Aug 12 15:04:12 PDT 2013
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #fff), color-stop(0.5, #eee)); background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #fff), color-stop(0.5, #eee));
background-image: -webkit-linear-gradient(center top, #fff 0%, #eee 50%); background-image: -webkit-linear-gradient(center top, #fff 0%, #eee 50%);
background-image: -moz-linear-gradient(center top, #fff 0%, #eee 50%); background-image: -moz-linear-gradient(center top, #fff 0%, #eee 50%);
background-image: -o-linear-gradient(top, #fff 0%, #eee 50%);
background-image: -ms-linear-gradient(bottom, #fff 0%, #eee 50%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#ffffff', GradientType=0); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#ffffff', GradientType=0);
background-image: linear-gradient(bottom, #fff 0%, #eee 50%); background-image: linear-gradient(to bottom, #fff 0%, #eee 50%);
} }
.select2-dropdown-open .select2-choice .select2-arrow { .select2-dropdown-open .select2-choice .select2-arrow {
...@@ -310,10 +327,29 @@ Version: 3.4.2 Timestamp: Mon Aug 12 15:04:12 PDT 2013 ...@@ -310,10 +327,29 @@ Version: 3.4.2 Timestamp: Mon Aug 12 15:04:12 PDT 2013
border-left: none; border-left: none;
filter: none; filter: none;
} }
html[dir="rtl"] .select2-dropdown-open .select2-choice .select2-arrow {
border-right: none;
}
.select2-dropdown-open .select2-choice .select2-arrow b { .select2-dropdown-open .select2-choice .select2-arrow b {
background-position: -18px 1px; background-position: -18px 1px;
} }
html[dir="rtl"] .select2-dropdown-open .select2-choice .select2-arrow b {
background-position: -16px 1px;
}
.select2-hidden-accessible {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
/* results */ /* results */
.select2-results { .select2-results {
max-height: 200px; max-height: 200px;
...@@ -325,19 +361,16 @@ Version: 3.4.2 Timestamp: Mon Aug 12 15:04:12 PDT 2013 ...@@ -325,19 +361,16 @@ Version: 3.4.2 Timestamp: Mon Aug 12 15:04:12 PDT 2013
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
} }
html[dir="rtl"] .select2-results {
padding: 0 4px 0 0;
margin: 4px 0 4px 4px;
}
.select2-results ul.select2-result-sub { .select2-results ul.select2-result-sub {
margin: 0; margin: 0;
padding-left: 0; padding-left: 0;
} }
.select2-results ul.select2-result-sub > li .select2-result-label { padding-left: 20px }
.select2-results ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 40px }
.select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 60px }
.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 }
.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 }
.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 }
.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 }
.select2-results li { .select2-results li {
list-style: none; list-style: none;
display: list-item; display: list-item;
...@@ -357,12 +390,19 @@ Version: 3.4.2 Timestamp: Mon Aug 12 15:04:12 PDT 2013 ...@@ -357,12 +390,19 @@ Version: 3.4.2 Timestamp: Mon Aug 12 15:04:12 PDT 2013
-webkit-touch-callout: none; -webkit-touch-callout: none;
-webkit-user-select: none; -webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none; -moz-user-select: none;
-ms-user-select: none; -ms-user-select: none;
user-select: none; user-select: none;
} }
.select2-results-dept-1 .select2-result-label { padding-left: 20px }
.select2-results-dept-2 .select2-result-label { padding-left: 40px }
.select2-results-dept-3 .select2-result-label { padding-left: 60px }
.select2-results-dept-4 .select2-result-label { padding-left: 80px }
.select2-results-dept-5 .select2-result-label { padding-left: 100px }
.select2-results-dept-6 .select2-result-label { padding-left: 110px }
.select2-results-dept-7 .select2-result-label { padding-left: 120px }
.select2-results .select2-highlighted { .select2-results .select2-highlighted {
background: #3875d7; background: #3875d7;
color: #fff; color: #fff;
...@@ -382,12 +422,13 @@ Version: 3.4.2 Timestamp: Mon Aug 12 15:04:12 PDT 2013 ...@@ -382,12 +422,13 @@ Version: 3.4.2 Timestamp: Mon Aug 12 15:04:12 PDT 2013
color: #000; color: #000;
} }
.select2-results .select2-no-results, .select2-results .select2-no-results,
.select2-results .select2-searching, .select2-results .select2-searching,
.select2-results .select2-ajax-error,
.select2-results .select2-selection-limit { .select2-results .select2-selection-limit {
background: #f4f4f4; background: #f4f4f4;
display: list-item; display: list-item;
padding-left: 5px;
} }
/* /*
...@@ -413,6 +454,10 @@ disabled look for disabled choices in the results dropdown ...@@ -413,6 +454,10 @@ disabled look for disabled choices in the results dropdown
background: #f4f4f4 url('select2-spinner.gif') no-repeat 100%; background: #f4f4f4 url('select2-spinner.gif') no-repeat 100%;
} }
.select2-results .select2-ajax-error {
background: rgba(255, 50, 50, .2);
}
.select2-more-results { .select2-more-results {
background: #f4f4f4; background: #f4f4f4;
display: list-item; display: list-item;
...@@ -444,7 +489,7 @@ disabled look for disabled choices in the results dropdown ...@@ -444,7 +489,7 @@ disabled look for disabled choices in the results dropdown
height: auto !important; height: auto !important;
height: 1%; height: 1%;
margin: 0; margin: 0;
padding: 0; padding: 0 5px 0 0;
position: relative; position: relative;
border: 1px solid #aaa; border: 1px solid #aaa;
...@@ -455,9 +500,11 @@ disabled look for disabled choices in the results dropdown ...@@ -455,9 +500,11 @@ disabled look for disabled choices in the results dropdown
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(1%, #eee), color-stop(15%, #fff)); background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(1%, #eee), color-stop(15%, #fff));
background-image: -webkit-linear-gradient(top, #eee 1%, #fff 15%); background-image: -webkit-linear-gradient(top, #eee 1%, #fff 15%);
background-image: -moz-linear-gradient(top, #eee 1%, #fff 15%); background-image: -moz-linear-gradient(top, #eee 1%, #fff 15%);
background-image: -o-linear-gradient(top, #eee 1%, #fff 15%); background-image: linear-gradient(to bottom, #eee 1%, #fff 15%);
background-image: -ms-linear-gradient(top, #eee 1%, #fff 15%); }
background-image: linear-gradient(top, #eee 1%, #fff 15%);
html[dir="rtl"] .select2-container-multi .select2-choices {
padding: 0 0 0 5px;
} }
.select2-locked { .select2-locked {
...@@ -479,6 +526,10 @@ disabled look for disabled choices in the results dropdown ...@@ -479,6 +526,10 @@ disabled look for disabled choices in the results dropdown
float: left; float: left;
list-style: none; list-style: none;
} }
html[dir="rtl"] .select2-container-multi .select2-choices li
{
float: right;
}
.select2-container-multi .select2-choices .select2-search-field { .select2-container-multi .select2-choices .select2-search-field {
margin: 0; margin: 0;
padding: 0; padding: 0;
...@@ -526,7 +577,6 @@ disabled look for disabled choices in the results dropdown ...@@ -526,7 +577,6 @@ disabled look for disabled choices in the results dropdown
-webkit-touch-callout: none; -webkit-touch-callout: none;
-webkit-user-select: none; -webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none; -moz-user-select: none;
-ms-user-select: none; -ms-user-select: none;
user-select: none; user-select: none;
...@@ -536,9 +586,12 @@ disabled look for disabled choices in the results dropdown ...@@ -536,9 +586,12 @@ disabled look for disabled choices in the results dropdown
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)); 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));
background-image: -webkit-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%); background-image: -webkit-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
background-image: -moz-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%); background-image: -moz-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
background-image: -o-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%); background-image: linear-gradient(to bottom, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
background-image: -ms-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%); }
background-image: linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%); html[dir="rtl"] .select2-container-multi .select2-choices .select2-search-choice
{
margin: 3px 5px 3px 0;
padding: 3px 18px 3px 5px;
} }
.select2-container-multi .select2-choices .select2-search-choice .select2-chosen { .select2-container-multi .select2-choices .select2-search-choice .select2-chosen {
cursor: default; cursor: default;
...@@ -559,11 +612,20 @@ disabled look for disabled choices in the results dropdown ...@@ -559,11 +612,20 @@ disabled look for disabled choices in the results dropdown
outline: none; outline: none;
background: url('select2.png') right top no-repeat; background: url('select2.png') right top no-repeat;
} }
html[dir="rtl"] .select2-search-choice-close {
right: auto;
left: 3px;
}
.select2-container-multi .select2-search-choice-close { .select2-container-multi .select2-search-choice-close {
left: 3px; left: 3px;
} }
html[dir="rtl"] .select2-container-multi .select2-search-choice-close {
left: auto;
right: 2px;
}
.select2-container-multi .select2-choices .select2-search-choice .select2-search-choice-close:hover { .select2-container-multi .select2-choices .select2-search-choice .select2-search-choice-close:hover {
background-position: right -11px; background-position: right -11px;
} }
...@@ -623,14 +685,19 @@ disabled look for disabled choices in the results dropdown ...@@ -623,14 +685,19 @@ disabled look for disabled choices in the results dropdown
height: 100px; height: 100px;
overflow: scroll; overflow: scroll;
} }
/* Retina-ize icons */ /* Retina-ize icons */
@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 144dpi) { @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 2dppx) {
.select2-search input, .select2-search-choice-close, .select2-container .select2-choice abbr, .select2-container .select2-choice .select2-arrow b { .select2-search input,
.select2-search-choice-close,
.select2-container .select2-choice abbr,
.select2-container .select2-choice .select2-arrow b {
background-image: url('select2x2.png') !important; background-image: url('select2x2.png') !important;
background-repeat: no-repeat !important; background-repeat: no-repeat !important;
background-size: 60px 40px !important; background-size: 60px 40px !important;
} }
.select2-search input { .select2-search input {
background-position: 100% -21px !important; background-position: 100% -21px !important;
} }
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment