@@ -40,6 +40,31 @@ body > .select2-container.open {
40
40
z-index : 9999 ; /* The z-index Select2 applies to the select2-drop */
41
41
}
42
42
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
+
43
68
/* Selectize theme */
44
69
45
70
/* Helper class to show styles when focus */
@@ -62,6 +87,12 @@ body > .select2-container.open {
62
87
border-color : # D44950 ;
63
88
}
64
89
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
+ }
65
96
66
97
/* Bootstrap theme */
67
98
@@ -99,6 +130,11 @@ body > .select2-container.open {
99
130
border-top-right-radius : 0 ;
100
131
border-bottom-right-radius : 0 ;
101
132
}
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
+ }
102
138
103
139
.ui-select-bootstrap > .ui-select-match > .btn {
104
140
/* Instead of center because of .btn */
@@ -210,4 +246,9 @@ body > .ui-select-bootstrap.open {
210
246
/* Mark invalid Bootstrap */
211
247
.ui-select-bootstrap .ng-dirty .ng-invalid > button .btn .ui-select-match {
212
248
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