11/*!
22 * ui-select
33 * http://github.com/angular-ui/ui-select
4- * Version: 0.18 .1 - 2016-07-10T00:18:11.107Z
4+ * Version: 0.19 .1 - 2016-08-09T18:13:19.899Z
55 * License: MIT
66 */
77
@@ -82,6 +82,16 @@ body > .select2-container.open {
8282 border-bottom-color : # 5897fb ;
8383}
8484
85+ .ui-select-container [theme = "select2" ] .ui-select-dropdown .ui-select-search-hidden ,
86+ .ui-select-container [theme = "select2" ] .ui-select-dropdown .ui-select-search-hidden input {
87+ opacity : 0 ;
88+ height : 0 ;
89+ min-height : 0 ;
90+ padding : 0 ;
91+ margin : 0 ;
92+ border : 0 ;
93+ }
94+
8595/* Selectize theme */
8696
8797/* Helper class to show styles when focus */
@@ -107,10 +117,19 @@ body > .select2-container.open {
107117/* Handle up direction Selectize */
108118.ui-select-container [theme = "selectize" ].direction-up .ui-select-dropdown {
109119 box-shadow : 0 -4px 8px rgba (0 , 0 , 0 , 0.25 );
110-
111120 margin-top : -2px ; /* FIXME hardcoded value :-/ */
112121}
113122
123+ .ui-select-container [theme = "selectize" ] input .ui-select-search-hidden {
124+ opacity : 0 ;
125+ height : 0 ;
126+ min-height : 0 ;
127+ padding : 0 ;
128+ margin : 0 ;
129+ border : 0 ;
130+ width : 0 ;
131+ }
132+
114133/* Bootstrap theme */
115134
116135/* Helper class to show styles when focus */
@@ -153,6 +172,15 @@ body > .select2-container.open {
153172 border-bottom-right-radius : 0 !important ;
154173}
155174
175+ .ui-select-bootstrap .ui-select-search-hidden {
176+ opacity : 0 ;
177+ height : 0 ;
178+ min-height : 0 ;
179+ padding : 0 ;
180+ margin : 0 ;
181+ border : 0 ;
182+ }
183+
156184.ui-select-bootstrap > .ui-select-match > .btn {
157185 /* Instead of center because of .btn */
158186 text-align : left !important ;
@@ -228,7 +256,8 @@ body > .ui-select-bootstrap.open {
228256 border-right : 1px solid # 428bca ;
229257}
230258
231- .ui-select-bootstrap .ui-select-choices-row > a {
259+ .ui-select-bootstrap .ui-select-choices-row > span {
260+ cursor : pointer;
232261 display : block;
233262 padding : 3px 20px ;
234263 clear : both;
@@ -238,21 +267,21 @@ body > .ui-select-bootstrap.open {
238267 white-space : nowrap;
239268}
240269
241- .ui-select-bootstrap .ui-select-choices-row > a : hover , .ui-select-bootstrap .ui-select-choices-row > a : focus {
270+ .ui-select-bootstrap .ui-select-choices-row > span : hover , .ui-select-bootstrap .ui-select-choices-row > span : focus {
242271 text-decoration : none;
243272 color : # 262626 ;
244273 background-color : # f5f5f5 ;
245274}
246275
247- .ui-select-bootstrap .ui-select-choices-row .active > a {
276+ .ui-select-bootstrap .ui-select-choices-row .active > span {
248277 color : # fff ;
249278 text-decoration : none;
250279 outline : 0 ;
251280 background-color : # 428bca ;
252281}
253282
254- .ui-select-bootstrap .ui-select-choices-row .disabled > a ,
255- .ui-select-bootstrap .ui-select-choices-row .active .disabled > a {
283+ .ui-select-bootstrap .ui-select-choices-row .disabled > span ,
284+ .ui-select-bootstrap .ui-select-choices-row .active .disabled > span {
256285 color : # 777 ;
257286 cursor : not-allowed;
258287 background-color : # fff ;
@@ -273,3 +302,19 @@ body > .ui-select-bootstrap.open {
273302.ui-select-container [theme = "bootstrap" ].direction-up .ui-select-dropdown {
274303 box-shadow : 0 -4px 8px rgba (0 , 0 , 0 , 0.25 );
275304}
305+
306+ .ui-select-bootstrap .ui-select-match-text {
307+ width : 100% ;
308+ padding-right : 1em ;
309+ }
310+ .ui-select-bootstrap .ui-select-match-text span {
311+ display : inline-block;
312+ width : 100% ;
313+ overflow : hidden;
314+ }
315+ .ui-select-bootstrap .ui-select-toggle > a .btn {
316+ position : absolute;
317+ height : 10px ;
318+ right : 10px ;
319+ margin-top : -2px ;
320+ }
0 commit comments