update select2-bootstrap css

This commit is contained in:
vitalets 2013-09-21 21:11:08 +04:00
parent 5cc1efb80d
commit cc72d35664

@ -1,82 +1,104 @@
/**
* Select2 Bootstrap CSS 1.0
* Compatible with select2 3.3.2 and bootstrap 2.3.1
* MIT License
*/
.select2-container { .select2-container {
vertical-align:middle; vertical-align: middle;
} }
.select2-container.input-mini {
.select2-container .select2-choice { width: 60px;
border:1px solid #ccc; }
height:28px; .select2-container.input-small {
border-radius: 3px; width: 90px;
line-height: 29px; }
background-image:none; .select2-container.input-medium {
filter:none; width: 150px;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); }
-moz-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075); .select2-container.input-large {
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); width: 210px;
} }
.select2-container.input-xlarge {
.select2-container .select2-choice div { width: 270px;
border-left:none; }
background:none; .select2-container.input-xxlarge {
background-image:none; width: 530px;
filter:none; }
.select2-container.input-default {
width: 220px;
}
.select2-container[class*="span"] {
float: none;
margin-left: 0;
} }
.select2-container .select2-choice,
.select2-container-multi .select2-choices { .select2-container-multi .select2-choices {
border:1px solid #ccc; height: 28px;
border-radius: 3px; line-height: 29px;
background-image:none; border: 1px solid #cccccc;
filter:none; -webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
background: none;
background-color: white;
filter: none;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
-moz-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
} }
.control-group.error .select2-container-multi .select2-choices { .select2-container .select2-choice div, .select2-container .select2-choice .select2-arrow,
border-color:#B94A48; .select2-container.select2-container-disabled .select2-choice div,
.select2-container.select2-container-disabled .select2-choice .select2-arrow {
border-left: none;
background: none;
filter: none;
} }
.control-group.error .select2-container .select2-choice { .control-group.error [class^="select2-choice"] {
border-color:#B94A48; border-color: #b94a48;
} }
.select2-container-multi .select2-choices .select2-search-field { .select2-container-multi .select2-choices .select2-search-field {
height:28px; height: 28px;
line-height: 27px; line-height: 27px;
} }
.select2-container-active .select2-choice, .select2-container-active .select2-choice,
.select2-container-active .select2-choices,
.select2-container-multi.select2-container-active .select2-choices { .select2-container-multi.select2-container-active .select2-choices {
border-color: rgba(82, 168, 236, 0.8); border-color: rgba(82, 168, 236, 0.8);
outline: none; outline: none;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075),0 0 8px rgba(82, 168, 236, 0.6); -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
-moz-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(82,168,236,0.6); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075),0 0 8px rgba(82, 168, 236, 0.6); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
} }
.input-append .select2-container, .input-prepend .select2-container { [class^="input-"] .select2-container {
font-size:14px; font-size: 14px;
} }
.input-prepend .select2-container > a.select2-choice, .input-prepend [class^="select2-choice"] {
.input-prepend .select2-container-multi .select2-choices { border-top-left-radius: 0;
border-top-left-radius: 0px; border-bottom-left-radius: 0;
border-bottom-left-radius: 0px;
} }
.input-append .select2-container > a, .input-append [class^="select2-choice"] {
.input-append .select2-container-multi .select2-choices { border-top-right-radius: 0;
border-top-right-radius: 0px; border-bottom-right-radius: 0;
border-bottom-right-radius: 0px;
} }
.input-prepend .select2-container > a.select2-choice > div, .select2-dropdown-open [class^="select2-choice"] {
.input-append .select2-container > a.select2-choice > div { border-bottom-left-radius: 0;
display:none; border-bottom-right-radius: 0;
} }
.input-append .select2-offscreen, .select2-dropdown-open.select2-drop-above [class^="select2-choice"] {
.input-prepend .select2-offscreen { border-top-left-radius: 0;
border-top-right-radius: 0;
}
[class^="input-"] .select2-offscreen {
position: absolute; position: absolute;
} }
@ -84,8 +106,8 @@
* This stops the quick flash when a native selectbox is shown and * This stops the quick flash when a native selectbox is shown and
* then replaced by a select2 input when javascript kicks in. This can be * then replaced by a select2 input when javascript kicks in. This can be
* removed if javascript is not present * removed if javascript is not present
*/ */
select.select2 { select.select2 {
height:28px; height: 28px;
visibility:hidden; visibility: hidden;
} }