@@ -40,6 +40,31 @@ body > .select2-container.open {
4040 z-index : 9999 ; /* The z-index Select2 applies to the select2-drop */
4141}
4242
43+ /* Handle up direction Select2 */
44+ .ui-select-container [theme = "select2" ].direction-up .ui-select-match {
45+ border-radius : 4px ; /* FIXME hardcoded value :-/ */
46+ border-top-left-radius : 0 ;
47+ border-top-right-radius : 0 ;
48+ }
49+ .ui-select-container [theme = "select2" ].direction-up .ui-select-dropdown {
50+ border-radius : 4px ; /* FIXME hardcoded value :-/ */
51+ border-bottom-left-radius : 0 ;
52+ border-bottom-right-radius : 0 ;
53+
54+ border-top-width : 1px ; /* FIXME hardcoded value :-/ */
55+ border-top-style : solid;
56+
57+ box-shadow : 0 -4px 8px rgba (0 , 0 , 0 , 0.25 );
58+
59+ margin-top : -4px ; /* FIXME hardcoded value :-/ */
60+ }
61+ .ui-select-container [theme = "select2" ].direction-up .ui-select-dropdown .select2-search {
62+ margin-top : 4px ; /* FIXME hardcoded value :-/ */
63+ }
64+ .ui-select-container [theme = "select2" ].direction-up .select2-dropdown-open .ui-select-match {
65+ border-bottom-color : # 5897fb ;
66+ }
67+
4368/* Selectize theme */
4469
4570/* Helper class to show styles when focus */
@@ -62,6 +87,12 @@ body > .select2-container.open {
6287 border-color : # D44950 ;
6388}
6489
90+ /* Handle up direction Selectize */
91+ .ui-select-container [theme = "selectize" ].direction-up .ui-select-dropdown {
92+ box-shadow : 0 -4px 8px rgba (0 , 0 , 0 , 0.25 );
93+
94+ margin-top : -2px ; /* FIXME hardcoded value :-/ */
95+ }
6596
6697/* Bootstrap theme */
6798
@@ -99,6 +130,11 @@ body > .select2-container.open {
99130 border-top-right-radius : 0 ;
100131 border-bottom-right-radius : 0 ;
101132}
133+ .input-group > .ui-select-bootstrap > input .ui-select-search .form-control .direction-up {
134+ border-radius : 4px !important ; /* FIXME hardcoded value :-/ */
135+ border-top-right-radius : 0 !important ;
136+ border-bottom-right-radius : 0 !important ;
137+ }
102138
103139.ui-select-bootstrap > .ui-select-match > .btn {
104140 /* Instead of center because of .btn */
@@ -210,4 +246,9 @@ body > .ui-select-bootstrap.open {
210246/* Mark invalid Bootstrap */
211247.ui-select-bootstrap .ng-dirty .ng-invalid > button .btn .ui-select-match {
212248 border-color : # D44950 ;
213- }
249+ }
250+
251+ /* Handle up direction Bootstrap */
252+ .ui-select-container [theme = "bootstrap" ].direction-up .ui-select-dropdown {
253+ box-shadow : 0 -4px 8px rgba (0 , 0 , 0 , 0.25 );
254+ }
0 commit comments