Subversion Repositories Integrator Subversion

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 espaco 1
/***
2
Select2 Plugin
3
***/
4
 
5
.form-control .select2-choice {
6
    border: 1px solid $input-border;
7
    background-color: #fff;
8
    background-image: none;
9
    filter: none;
10
    height: 34px;
11
    padding: 3px 0 0px 12px;
12
}
13
 
14
.select2-container.select2-drop-above .select2-choice {
15
    border-bottom-color: $input-border;
16
    background-color: #fff;
17
    background-image: none;
18
    filter: none;
19
}
20
 
21
.select2-drop {
22
    border: 1px solid $input-border;
23
    background-color: #fff;
24
    background-image: none;
25
    -webkit-box-shadow: none;
26
            box-shadow: none;
27
    filter: none;
28
    border-top: 0;
29
}
30
 
31
.select2-drop-auto-width {
32
    border-top: 1px solid $input-border;
33
}
34
 
35
.select2-drop.select2-drop-above {
36
    border-top: 1px solid $input-border;
37
    -webkit-box-shadow: none;
38
            box-shadow: none;
39
}
40
 
41
.select2-drop-active {
42
    border: 1px solid $input-border-focus;
43
    border-top: 0;
44
}
45
 
46
.select2-container .select2-choice .select2-arrow {
47
    background-image: none;
48
    background-color: #fff;
49
    filter: none;
50
    border-left: 1px solid $input-border;
51
}
52
 
53
.select2-container.select2-container-active .select2-arrow,
54
.select2-container.select2-dropdown-open .select2-arrow {
55
    border-left: 0 !important;
56
}
57
 
58
.select2-container .select2-choice .select2-arrow b {
59
    background-position: 0 1px;
60
}
61
 
62
.select2-search input {
63
    border: 1px solid $input-border;
64
    background-color: #fff !important;
65
    filter: none;
66
    margin: 0;
67
    outline: 0;
68
    border: 1px solid $input-border;
69
    webkit-appearance: none !important;
70
    color: #333333;
71
    outline: 0;
72
    box-shadow: none;
73
    height: auto !important;
74
    min-height: 26px;
75
    padding: 6px 6px !important;
76
    line-height: 20px;
77
    font-size: 14px;
78
    font-weight: normal;
79
    vertical-align: top;
80
    background-color: #ffffff;
81
    -webkit-box-shadow: none;
82
            box-shadow: none;
83
    margin-top: 5px;
84
}
85
 
86
.form-control.select2-container {
87
    border: 0;
88
    height: auto !important;
89
    padding: 0px;
90
}
91
 
92
.select2-container-active .select2-choice,
93
.select2-container-active .select2-choices {
94
    border: 1px solid $input-border-focus !important;
95
    -webkit-box-shadow: none !important;
96
            box-shadow: none !important;
97
}
98
 
99
.select2-dropdown-open .select2-choice {
100
    border-bottom: 0 !important;
101
    background-image: none;
102
    background-color: #fff;
103
    filter: none;
104
    -webkit-box-shadow: none !important;
105
            box-shadow: none !important;
106
}
107
 
108
.select2-dropdown-open.select2-drop-above .select2-choice,
109
.select2-dropdown-open.select2-drop-above .select2-choices {
110
    border: 1px solid $input-border-focus !important;
111
    border-top: 0 !important;
112
    background-image: none;
113
    background-color: #fff;
114
    filter: none;
115
    -webkit-box-shadow: none !important;
116
            box-shadow: none !important;
117
 
118
}
119
 
120
.select2-drop.select2-drop-above.select2-drop-active {
121
    border: 1px solid $input-border-focus !important;
122
    border-bottom: 0 !important;
123
}
124
 
125
.select2-dropdown-open .select2-choice .select2-arrow b {
126
    background-position: -18px 1px;
127
}
128
 
129
.select2-results {
130
    margin: 5px 0;
131
}
132
 
133
.select2-results .select2-highlighted {
134
    background: #eee;
135
    color: #333;
136
}
137
 
138
.select2-results li em {
139
    background: #feffde;
140
    font-style: normal;
141
}
142
 
143
.select2-results .select2-highlighted em {
144
    background: transparent;
145
}
146
 
147
.select2-results .select2-highlighted ul {
148
    background: #fff;
149
    color: #000;
150
}
151
 
152
.select2-results .select2-no-results,
153
.select2-results .select2-searching,
154
.select2-results .select2-selection-limit {
155
    padding: 3px 7px 4px;
156
    background: #f4f4f4;
157
    display: list-item;
158
}
159
 
160
.select2-container-multi {
161
    @include border-radius(4px);
162
 
163
    .select2-choices {
164
        @include border-radius(4px);
165
    }
166
 
167
    &.select2-dropdown-open {
168
        @include border-radius(4px 4px 0 0);
169
 
170
        .select2-choices {
171
            @include border-radius(4px 4px 0 0);
172
        }
173
    }
174
 
175
    &.select2-dropdown-open.select2-drop-above {
176
        @include border-radius(0 0 4px 4px);
177
 
178
        .select2-choices {
179
            @include border-radius(0 0 4px 4px);
180
        }
181
    }
182
}
183
 
184
.select2-container-multi .select2-choices {
185
    padding-left: 6px;
186
    min-height: 34px;
187
    border: 1px solid $input-border;
188
    background-image: none;
189
    background-color: #fff;
190
    filter: none;
191
    -webkit-box-shadow: none !important;
192
            box-shadow: none !important;
193
}
194
 
195
.select2-container-multi.select2-container-active .select2-choices {
196
    border: 1px solid #999 !important;
197
    background-image: none;
198
    background-color: #fff;
199
    filter: none;
200
    -webkit-box-shadow: none !important;
201
            box-shadow: none !important;
202
}
203
 
204
.select2-container-multi .select2-choices .select2-search-choice {
205
    padding: 3px 5px 3px 18px;
206
    margin: 5px 0 3px 5px;
207
    border: 1px solid $input-border;
208
    background-image: none;
209
    background-color: #fff;
210
    filter: none;
211
    -webkit-box-shadow: none !important;
212
            box-shadow: none !important;
213
}
214
 
215
/***
216
Color variants
217
***/
218
 
219
@mixin select2-variant($state, $color) {
220
    .has-#{$state} .select2-container .select2-choice,
221
    .has-#{$state} .select2-container .select2-choices {
222
      border-color: $color;
223
    }
224
 
225
    .has-#{$state} .select2-container.select2-dropdown-open .select2-choice,
226
    .has-#{$state} .select2-container.select2-dropdown-open .select2-choices {
227
      border-color: $color;
228
    }
229
 
230
    .has-#{$state} .select2-container.select2-dropdown-open .select2-choice > span {
231
      color: $color;
232
    }
233
}
234
 
235
@include select2-variant("warning", $state-warning-border);
236
@include select2-variant("error", $state-danger-border);
237
@include select2-variant("success", $state-success-border);
238
 
239
 
240
/* Fix z-index when select2 opened in modals*/
241
.modal-open .select2-drop-mask {
242
    z-index: $zindex-modal + 1;
243
}
244
 
245
.modal-open .select2-drop {
246
    z-index: $zindex-modal + 2;
247
}
248
 
249
.modal-open .select2-search {
250
    z-index: $zindex-modal + 3;
251
}
252
 
253
/***
254
Bootstrap input sizes
255
***/
256
 
257
/* Large input size */
258
 
259
.form-control.input-lg .select2-choice {
260
    height: 46px;
261
    padding: 10px 16px;
262
}
263
 
264
.select2-container.input-lg .select2-choice .select2-arrow b {
265
    background-position: 0 7px;
266
}
267
 
268
/* Small input size */
269
 
270
.form-control.input-sm .select2-choice {
271
    height: 30px;
272
    padding: 1px 10px 5px 10px;
273
}
274
 
275
.select2-container.input-sm .select2-choice .select2-arrow b {
276
    background-position: 0 0px;
277
}