helpdesk 0.0.27 → 0.0.30

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/helpdesk/admin/tickets.js +1 -6
  3. data/app/assets/javascripts/helpdesk/application.js +3 -3
  4. data/app/assets/stylesheets/helpdesk/{admin.css → admin.css.scss} +4 -4
  5. data/app/assets/stylesheets/helpdesk/admin/bootstrap_overrides.css +1 -1
  6. data/app/assets/stylesheets/helpdesk/admin/tickets.css +501 -2
  7. data/app/assets/stylesheets/helpdesk/application.css +2 -2
  8. data/app/assets/stylesheets/helpdesk/tickets.css.sass +8 -20
  9. data/app/controllers/helpdesk/admin/base_controller.rb +1 -1
  10. data/app/controllers/helpdesk/admin/dashboard_controller.rb +1 -1
  11. data/app/controllers/helpdesk/admin/faqs_controller.rb +1 -1
  12. data/app/controllers/helpdesk/admin/ticket_types_controller.rb +1 -1
  13. data/app/controllers/helpdesk/admin/tickets_controller.rb +16 -15
  14. data/app/controllers/helpdesk/rooter_controller.rb +16 -0
  15. data/app/controllers/helpdesk/subscribers_controller.rb +2 -16
  16. data/app/models/helpdesk/faq.rb +1 -1
  17. data/app/models/helpdesk/subscriber.rb +2 -2
  18. data/app/views/helpdesk/admin/faqs/_form.html.haml +3 -3
  19. data/app/views/helpdesk/admin/faqs/new.html.haml +1 -1
  20. data/app/views/helpdesk/admin/ticket_types/index.html.haml +2 -0
  21. data/app/views/helpdesk/subscribers/index.html.erb +3 -29
  22. data/app/views/helpdesk/tickets/_form.html.haml +4 -9
  23. data/app/views/helpdesk/tickets/_ticket.html.haml +1 -1
  24. data/app/views/helpdesk/tickets/index.html.haml +1 -1
  25. data/config/locales/helpdesk.pl.yml +1 -0
  26. data/config/locales/helpdesk.pt-BR.yml +110 -0
  27. data/config/routes.rb +9 -4
  28. data/lib/generators/helpdesk/templates/helpdesk.rb +4 -0
  29. data/lib/helpdesk.rb +3 -0
  30. data/lib/helpdesk/engine.rb +1 -1
  31. data/lib/helpdesk/version.rb +1 -1
  32. data/lib/route_constraints_faqs.rb +5 -0
  33. data/lib/route_constraints_tickets.rb +5 -0
  34. metadata +70 -82
  35. data/app/assets/stylesheets/helpdesk/imports.css.sass +0 -0
  36. data/app/views/helpdesk/subscribers/new.html.erb +0 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4d3c44bafc0581753b55db18fe3c9740f4d5fc08
4
- data.tar.gz: 596604281da42f4bf02d84223029344ab4b08ea0
3
+ metadata.gz: 175c50efa153a29c6e07377b092b6a54b271dc63
4
+ data.tar.gz: 9576a9e450992d87c3747156b0ea1e840ff80794
5
5
  SHA512:
6
- metadata.gz: 090f88a085af22fab007c6559e88900ead4491426c76240eadc7cb8f51d325f6da4c6f50bf228665be103fd9998baf146f7c9ae7ae2b990b4c94b78562ef8f2d
7
- data.tar.gz: 332ce7f0c0707ed4c18218df7a362d22f99710402a7746909c895834ffa0602cba453fd216ca70d5436873de500488a6cd1225d20c1e67b6b549d94835d4dc4b
6
+ metadata.gz: 8ada4e3c95e97fe8a4f45fb1df60498c64b743685860737ef04245d97151f14587b1624d98bd9a44e29acee477a4bd6bc17544f76445d4e8ea81dc16918ef7ee
7
+ data.tar.gz: efe9bb0f1fbecff8d8f0728e82f1a7c2b69ed185fcec72af544510850d5eab68ba0a7ee04f9e8e1275ef27b9c2f4abd260e8dee4c1915700e736f4cdcfb35202
@@ -9,12 +9,7 @@ $(document).ready(function(){
9
9
 
10
10
  (function() {
11
11
  $(function() {
12
- return $('.chosen-select').chosen({
13
- allow_single_deselect: true,
14
- placeholder_text: 'Wybierz',
15
- no_results_text: 'Nie znaleziono pasujących',
16
- width: '220px'
17
- });
12
+ return $('.chosen-select').select2({width:'resolve'});
18
13
  });
19
14
 
20
15
  }).call(this)
@@ -12,8 +12,8 @@
12
12
  //
13
13
  //= require jquery
14
14
  //= require jquery_ujs
15
- //= require bootstrap
15
+ //= require bootstrap-sprockets
16
16
  //= require ckeditor/init
17
- //= require jquery.ui.all
18
- //= require chosen-jquery
17
+ //= require jquery-ui
18
+ //= require select2
19
19
  //= require_tree .
@@ -1,8 +1,8 @@
1
1
  /*
2
- *= require_self
3
- *= require helpdesk/imports
4
2
  *= require helpdesk/admin/bootstrap_overrides
3
+ *= require select2
5
4
  *= require helpdesk/admin/tickets
6
- *= require bootstrap
7
- *= require chosen
5
+ *= require_self
8
6
  */
7
+ @import "bootstrap-sprockets";
8
+ @import "bootstrap";
@@ -1,5 +1,5 @@
1
1
  body {
2
- padding-top: 30px; /* 60px to make the container go all the way to the bottom of the topbar */
2
+ padding-top: 30px; /* 60px to make the container go all the way to the bottom of the topbar */
3
3
  }
4
4
 
5
5
  /*.container, .navbar-fixed-top .container, .navbar-fixed-bottom .container {
@@ -39,6 +39,505 @@ a.anchor{
39
39
  -moz-transition: opacity .25s linear, visibility linear .5s;
40
40
  -webkit-transition: opacity .25s linear, visibility linear .5s;
41
41
  -o-transition: opacity .25s linear, visibility linear .5s;
42
- transition: opacity .25s linear, visibility linear .5s;
42
+ transition: opacity .25s linear, visibility linear .5s;
43
43
  visibility: visible;
44
- }
44
+ }
45
+
46
+
47
+ /**
48
+ * Select2 Bootstrap 3 CSS v1.4.1
49
+ * Tested with Bootstrap v3.2.0 and Select2 v3.3.2, v3.4.1-v3.4.5, v3.5.1, master
50
+ * in latest Chrome, Safari, Firefox, Opera (Mac) and IE8-IE11
51
+ * MIT License
52
+ */
53
+ /**
54
+ * Reset Bootstrap 3 .form-control styles which - if applied to the
55
+ * original <select>-element the Select2-plugin may be run against -
56
+ * are copied to the .select2-container.
57
+ *
58
+ * 1. Overwrite .select2-container's original display:inline-block
59
+ * with Bootstrap 3's default for .form-control, display:block;
60
+ * courtesy of @juristr (@see https://github.com/fk/select2-bootstrap-css/pull/1)
61
+ */
62
+ .select2-container.form-control {
63
+ background: transparent;
64
+ border: none;
65
+ display: block;
66
+ /* 1 */
67
+ margin: 0;
68
+ padding: 0;
69
+ }
70
+
71
+ /**
72
+ * Adjust Select2 inputs to fit Bootstrap 3 default .form-control appearance.
73
+ */
74
+ .select2-container .select2-choices .select2-search-field input,
75
+ .select2-container .select2-choice,
76
+ .select2-container .select2-choices {
77
+ background: none;
78
+ padding: 0;
79
+ border-color: #cccccc;
80
+ border-radius: 4px;
81
+ color: #555555;
82
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
83
+ background-color: white;
84
+ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
85
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
86
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
87
+ }
88
+
89
+ .select2-search input {
90
+ border-color: #cccccc;
91
+ border-radius: 4px;
92
+ color: #555555;
93
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
94
+ background-color: white;
95
+ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
96
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
97
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
98
+ }
99
+
100
+ .select2-container .select2-choices .select2-search-field input {
101
+ -webkit-box-shadow: none;
102
+ box-shadow: none;
103
+ }
104
+
105
+ /**
106
+ * Adjust Select2 input heights to match the Bootstrap default.
107
+ */
108
+ .select2-container .select2-choice {
109
+ height: 34px;
110
+ line-height: 1.42857;
111
+ }
112
+
113
+ /**
114
+ * Address Multi Select2's height which - depending on how many elements have been selected -
115
+ * may grown higher than their initial size.
116
+ */
117
+ .select2-container.select2-container-multi.form-control {
118
+ height: auto;
119
+ }
120
+
121
+ /**
122
+ * Address Bootstrap 3 control sizing classes
123
+ * @see http://getbootstrap.com/css/#forms-control-sizes
124
+ */
125
+ .select2-container.input-sm .select2-choice,
126
+ .input-group-sm .select2-container .select2-choice {
127
+ height: 30px;
128
+ line-height: 1.5;
129
+ border-radius: 3px;
130
+ }
131
+
132
+ .select2-container.input-lg .select2-choice,
133
+ .input-group-lg .select2-container .select2-choice {
134
+ height: 46px;
135
+ line-height: 1.33;
136
+ border-radius: 6px;
137
+ }
138
+
139
+ .select2-container-multi .select2-choices .select2-search-field input {
140
+ height: 32px;
141
+ }
142
+
143
+ .select2-container-multi.input-sm .select2-choices .select2-search-field input,
144
+ .input-group-sm .select2-container-multi .select2-choices .select2-search-field input {
145
+ height: 28px;
146
+ }
147
+
148
+ .select2-container-multi.input-lg .select2-choices .select2-search-field input,
149
+ .input-group-lg .select2-container-multi .select2-choices .select2-search-field input {
150
+ height: 44px;
151
+ }
152
+
153
+ /**
154
+ * Adjust height and line-height for .select2-search-field amd multi-select Select2 widgets.
155
+ *
156
+ * 1. Class repetition to address missing .select2-chosen in Select2 < 3.3.2.
157
+ */
158
+ .select2-container-multi .select2-choices .select2-search-field input {
159
+ margin: 0;
160
+ }
161
+
162
+ .select2-chosen,
163
+ .select2-choice > span:first-child,
164
+ .select2-container .select2-choices .select2-search-field input {
165
+ padding: 6px 12px;
166
+ }
167
+
168
+ .input-sm .select2-chosen,
169
+ .input-group-sm .select2-chosen,
170
+ .input-sm .select2-choice > span:first-child,
171
+ .input-group-sm .select2-choice > span:first-child,
172
+ .input-sm .select2-choices .select2-search-field input,
173
+ .input-group-sm .select2-choices .select2-search-field input {
174
+ padding: 5px 10px;
175
+ }
176
+
177
+ .input-lg .select2-chosen,
178
+ .input-group-lg .select2-chosen,
179
+ .input-lg .select2-choice > span:first-child,
180
+ .input-group-lg .select2-choice > span:first-child,
181
+ .input-lg .select2-choices .select2-search-field input,
182
+ .input-group-lg .select2-choices .select2-search-field input {
183
+ padding: 10px 16px;
184
+ }
185
+
186
+ .select2-container-multi .select2-choices .select2-search-choice {
187
+ margin-top: 5px;
188
+ margin-bottom: 3px;
189
+ }
190
+
191
+ .select2-container-multi.input-sm .select2-choices .select2-search-choice,
192
+ .input-group-sm .select2-container-multi .select2-choices .select2-search-choice {
193
+ margin-top: 3px;
194
+ margin-bottom: 2px;
195
+ }
196
+
197
+ .select2-container-multi.input-lg .select2-choices .select2-search-choice,
198
+ .input-group-lg .select2-container-multi .select2-choices .select2-search-choice {
199
+ line-height: 24px;
200
+ }
201
+
202
+ /**
203
+ * Adjust the single Select2's dropdown arrow button appearance.
204
+ *
205
+ * 1. For Select2 v.3.3.2.
206
+ */
207
+ .select2-container .select2-choice .select2-arrow,
208
+ .select2-container .select2-choice div {
209
+ border-left: 1px solid #cccccc;
210
+ background: none;
211
+ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
212
+ }
213
+
214
+ .select2-dropdown-open .select2-choice .select2-arrow,
215
+ .select2-dropdown-open .select2-choice div {
216
+ border-left-color: transparent;
217
+ background: none;
218
+ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
219
+ }
220
+
221
+ /**
222
+ * Adjust the dropdown arrow button icon position for the single-select Select2 elements
223
+ * to make it line up vertically now that we increased the height of .select2-container.
224
+ *
225
+ * 1. Class repetition to address missing .select2-chosen in Select2 v.3.3.2.
226
+ */
227
+ .select2-container .select2-choice .select2-arrow b,
228
+ .select2-container .select2-choice div b {
229
+ background-position: 0 3px;
230
+ }
231
+
232
+ .select2-dropdown-open .select2-choice .select2-arrow b,
233
+ .select2-dropdown-open .select2-choice div b {
234
+ background-position: -18px 3px;
235
+ }
236
+
237
+ .select2-container.input-sm .select2-choice .select2-arrow b,
238
+ .input-group-sm .select2-container .select2-choice .select2-arrow b,
239
+ .select2-container.input-sm .select2-choice div b,
240
+ .input-group-sm .select2-container .select2-choice div b {
241
+ background-position: 0 1px;
242
+ }
243
+
244
+ .select2-dropdown-open.input-sm .select2-choice .select2-arrow b,
245
+ .input-group-sm .select2-dropdown-open .select2-choice .select2-arrow b,
246
+ .select2-dropdown-open.input-sm .select2-choice div b,
247
+ .input-group-sm .select2-dropdown-open .select2-choice div b {
248
+ background-position: -18px 1px;
249
+ }
250
+
251
+ .select2-container.input-lg .select2-choice .select2-arrow b,
252
+ .input-group-lg .select2-container .select2-choice .select2-arrow b,
253
+ .select2-container.input-lg .select2-choice div b,
254
+ .input-group-lg .select2-container .select2-choice div b {
255
+ background-position: 0 9px;
256
+ }
257
+
258
+ .select2-dropdown-open.input-lg .select2-choice .select2-arrow b,
259
+ .input-group-lg .select2-dropdown-open .select2-choice .select2-arrow b,
260
+ .select2-dropdown-open.input-lg .select2-choice div b,
261
+ .input-group-lg .select2-dropdown-open .select2-choice div b {
262
+ background-position: -18px 9px;
263
+ }
264
+
265
+ /**
266
+ * Address Bootstrap's validation states and change Select2's border colors and focus states.
267
+ * Apply .has-warning, .has-danger or .has-succes to #select2-drop to match Bootstraps' colors.
268
+ */
269
+ .has-warning .select2-choice,
270
+ .has-warning .select2-choices {
271
+ border-color: #8a6d3b;
272
+ }
273
+ .has-warning .select2-container-active .select2-choice,
274
+ .has-warning .select2-container-multi.select2-container-active .select2-choices {
275
+ border-color: #66512c;
276
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b;
277
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b;
278
+ }
279
+ .has-warning.select2-drop-active {
280
+ border-color: #66512c;
281
+ }
282
+ .has-warning.select2-drop-active.select2-drop.select2-drop-above {
283
+ border-top-color: #66512c;
284
+ }
285
+
286
+ .has-error .select2-choice,
287
+ .has-error .select2-choices {
288
+ border-color: #a94442;
289
+ }
290
+ .has-error .select2-container-active .select2-choice,
291
+ .has-error .select2-container-multi.select2-container-active .select2-choices {
292
+ border-color: #843534;
293
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;
294
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;
295
+ }
296
+ .has-error.select2-drop-active {
297
+ border-color: #843534;
298
+ }
299
+ .has-error.select2-drop-active.select2-drop.select2-drop-above {
300
+ border-top-color: #843534;
301
+ }
302
+
303
+ .has-success .select2-choice,
304
+ .has-success .select2-choices {
305
+ border-color: #3c763d;
306
+ }
307
+ .has-success .select2-container-active .select2-choice,
308
+ .has-success .select2-container-multi.select2-container-active .select2-choices {
309
+ border-color: #2b542c;
310
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168;
311
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168;
312
+ }
313
+ .has-success.select2-drop-active {
314
+ border-color: #2b542c;
315
+ }
316
+ .has-success.select2-drop-active.select2-drop.select2-drop-above {
317
+ border-top-color: #2b542c;
318
+ }
319
+
320
+ /**
321
+ * Make Select2's active-styles - applied to .select2-container when the widget receives focus -
322
+ * fit Bootstrap 3's .form-element:focus appearance.
323
+ */
324
+ .select2-container-active .select2-choice,
325
+ .select2-container-multi.select2-container-active .select2-choices {
326
+ border-color: #66afe9;
327
+ outline: none;
328
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
329
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
330
+ -webkit-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
331
+ -o-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
332
+ transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
333
+ }
334
+
335
+ .select2-drop-active {
336
+ border-color: #66afe9;
337
+ }
338
+
339
+ .select2-drop-auto-width,
340
+ .select2-drop.select2-drop-above.select2-drop-active {
341
+ border-top-color: #66afe9;
342
+ }
343
+
344
+ /**
345
+ * Select2 widgets in Bootstrap Input Groups
346
+ *
347
+ * When Select2 widgets are combined with other elements using Bootstrap 3's
348
+ * "Input Group" component, we don't want specific edges of the Select2 container
349
+ * to have a border-radius.
350
+ *
351
+ * In Bootstrap 2, input groups required a markup where these style adjustments
352
+ * could be bound to a CSS-class identifying if the additional elements are appended,
353
+ * prepended or both.
354
+ *
355
+ * Bootstrap 3 doesn't rely on these classes anymore, so we have to use our own.
356
+ * Use .select2-bootstrap-prepend and .select2-bootstrap-append on a Bootstrap 3 .input-group
357
+ * to let the contained Select2 widget know which edges should not be rounded as they are
358
+ * directly followed by another element.
359
+ *
360
+ * @see http://getbootstrap.com/components/#input-groups
361
+ */
362
+ .input-group.select2-bootstrap-prepend [class^="select2-choice"] {
363
+ border-bottom-left-radius: 0 !important;
364
+ border-top-left-radius: 0 !important;
365
+ }
366
+
367
+ .input-group.select2-bootstrap-append [class^="select2-choice"] {
368
+ border-bottom-right-radius: 0 !important;
369
+ border-top-right-radius: 0 !important;
370
+ }
371
+
372
+ .select2-dropdown-open [class^="select2-choice"] {
373
+ border-bottom-right-radius: 0 !important;
374
+ border-bottom-left-radius: 0 !important;
375
+ }
376
+
377
+ .select2-dropdown-open.select2-drop-above [class^="select2-choice"] {
378
+ border-top-right-radius: 0 !important;
379
+ border-top-left-radius: 0 !important;
380
+ border-bottom-right-radius: 4px !important;
381
+ border-bottom-left-radius: 4px !important;
382
+ }
383
+ .input-group.select2-bootstrap-prepend .select2-dropdown-open.select2-drop-above [class^="select2-choice"] {
384
+ border-bottom-left-radius: 0 !important;
385
+ border-top-left-radius: 0 !important;
386
+ }
387
+ .input-group.select2-bootstrap-append .select2-dropdown-open.select2-drop-above [class^="select2-choice"] {
388
+ border-bottom-right-radius: 0 !important;
389
+ border-top-right-radius: 0 !important;
390
+ }
391
+ .input-group.input-group-sm.select2-bootstrap-prepend .select2-dropdown-open.select2-drop-above [class^="select2-choice"] {
392
+ border-bottom-right-radius: 3px !important;
393
+ }
394
+ .input-group.input-group-lg.select2-bootstrap-prepend .select2-dropdown-open.select2-drop-above [class^="select2-choice"] {
395
+ border-bottom-right-radius: 6px !important;
396
+ }
397
+ .input-group.input-group-sm.select2-bootstrap-append .select2-dropdown-open.select2-drop-above [class^="select2-choice"] {
398
+ border-bottom-left-radius: 3px !important;
399
+ }
400
+ .input-group.input-group-lg.select2-bootstrap-append .select2-dropdown-open.select2-drop-above [class^="select2-choice"] {
401
+ border-bottom-left-radius: 6px !important;
402
+ }
403
+
404
+ /**
405
+ * Adjust Select2's choices hover and selected styles to match Bootstrap 3's default dropdown styles.
406
+ */
407
+ .select2-results .select2-highlighted {
408
+ color: white;
409
+ background-color: #428bca;
410
+ }
411
+
412
+ /**
413
+ * Adjust alignment of Bootstrap 3 buttons in Bootstrap 3 Input Groups to address
414
+ * Multi Select2's height which - depending on how many elements have been selected -
415
+ * may grown higher than their initial size.
416
+ */
417
+ .select2-bootstrap-append .select2-container-multiple,
418
+ .select2-bootstrap-append .input-group-btn,
419
+ .select2-bootstrap-append .input-group-btn .btn,
420
+ .select2-bootstrap-prepend .select2-container-multiple,
421
+ .select2-bootstrap-prepend .input-group-btn,
422
+ .select2-bootstrap-prepend .input-group-btn .btn {
423
+ vertical-align: top;
424
+ }
425
+
426
+ /**
427
+ * Make Multi Select2's choices match Bootstrap 3's default button styles.
428
+ */
429
+ .select2-container-multi .select2-choices .select2-search-choice {
430
+ color: #555555;
431
+ background: white;
432
+ border-color: #cccccc;
433
+ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
434
+ -webkit-box-shadow: none;
435
+ box-shadow: none;
436
+ }
437
+
438
+ .select2-container-multi .select2-choices .select2-search-choice-focus {
439
+ background: #ebebeb;
440
+ border-color: #adadad;
441
+ color: #333333;
442
+ -webkit-box-shadow: none;
443
+ box-shadow: none;
444
+ }
445
+
446
+ /**
447
+ * Address Multi Select2's choice close-button vertical alignment.
448
+ */
449
+ .select2-search-choice-close {
450
+ margin-top: -7px;
451
+ top: 50%;
452
+ }
453
+
454
+ /**
455
+ * Adjust the single Select2's clear button position (used to reset the select box
456
+ * back to the placeholder value and visible once a selection is made
457
+ * activated by Select2's "allowClear" option).
458
+ */
459
+ .select2-container .select2-choice abbr {
460
+ top: 50%;
461
+ }
462
+
463
+ /**
464
+ * Adjust "no results" and "selection limit" messages to make use
465
+ * of Bootstrap 3's default "Alert" style.
466
+ *
467
+ * @see http://getbootstrap.com/components/#alerts-default
468
+ */
469
+ .select2-results .select2-no-results,
470
+ .select2-results .select2-searching,
471
+ .select2-results .select2-selection-limit {
472
+ background-color: #fcf8e3;
473
+ color: #8a6d3b;
474
+ }
475
+
476
+ /**
477
+ * Address disabled Select2 styles.
478
+ *
479
+ * 1. For Select2 v.3.3.2.
480
+ * 2. Revert border-left:0 inherited from Select2's CSS to prevent the arrow
481
+ * from jumping when switching from disabled to enabled state and vice versa.
482
+ */
483
+ .select2-container.select2-container-disabled .select2-choice,
484
+ .select2-container.select2-container-disabled .select2-choices {
485
+ cursor: not-allowed;
486
+ background-color: #eeeeee;
487
+ border-color: #cccccc;
488
+ }
489
+ .select2-container.select2-container-disabled .select2-choice .select2-arrow,
490
+ .select2-container.select2-container-disabled .select2-choice div,
491
+ .select2-container.select2-container-disabled .select2-choices .select2-arrow,
492
+ .select2-container.select2-container-disabled .select2-choices div {
493
+ background-color: transparent;
494
+ border-left: 1px solid transparent;
495
+ /* 2 */
496
+ }
497
+
498
+ /**
499
+ * Address Select2's loading indicator position - which should not stick
500
+ * to the right edge of Select2's search input.
501
+ *
502
+ * 1. in .select2-search input
503
+ * 2. in Multi Select2's .select2-search-field input
504
+ * 3. in the status-message of infinite-scroll with remote data (@see http://ivaynberg.github.io/select2/#infinite)
505
+ *
506
+ * These styles alter Select2's default background-position of 100%
507
+ * and supply the new background-position syntax to browsers which support it:
508
+ *
509
+ * 1. Android, Safari < 6/Mobile, IE<9: change to a relative background-position of 99%
510
+ * 2. Chrome 25+, Firefox 13+, IE 9+, Opera 10.5+: use the new CSS3-background-position syntax
511
+ *
512
+ * @see http://www.w3.org/TR/css3-background/#background-position
513
+ *
514
+ * @todo Since both Select2 and Bootstrap 3 only support IE8 and above,
515
+ * we could use the :after-pseudo-element to display the loading indicator.
516
+ * Alternatively, we could supply an altered loading indicator image which already
517
+ * contains an offset to the right.
518
+ */
519
+ .select2-search input.select2-active,
520
+ .select2-container-multi .select2-choices .select2-search-field input.select2-active,
521
+ .select2-more-results.select2-active {
522
+ background-position: 99%;
523
+ /* 4 */
524
+ background-position: right 4px center;
525
+ /* 5 */
526
+ }
527
+
528
+ /**
529
+ * To support Select2 pre v3.4.2 in combination with Bootstrap v3.2.0,
530
+ * ensure that .select2-offscreen width, height and position can not be overwritten.
531
+ *
532
+ * This adresses changes in Bootstrap somewhere after the initial v3.0.0 which -
533
+ * in combination with Select2's pre-v3.4.2 CSS missing the "!important" after
534
+ * the following rules - allow Bootstrap to overwrite the latter, which results in
535
+ * the original <select> element Select2 is replacing not be properly being hidden
536
+ * when used in a "Bootstrap Input Group with Addon".
537
+ **/
538
+ .select2-offscreen,
539
+ .select2-offscreen:focus {
540
+ width: 1px !important;
541
+ height: 1px !important;
542
+ position: absolute !important;
543
+ }