select2-rails 3.5.11 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +1 -1
  3. data/Rakefile +1 -2
  4. data/lib/select2-rails/engine.rb +0 -4
  5. data/lib/select2-rails/source_file.rb +6 -19
  6. data/lib/select2-rails/version.rb +1 -1
  7. data/select2-rails.gemspec +2 -2
  8. data/vendor/assets/javascripts/select2.js +4854 -3180
  9. data/vendor/assets/javascripts/select2_locale_az.js +2 -19
  10. data/vendor/assets/javascripts/select2_locale_bg.js +2 -19
  11. data/vendor/assets/javascripts/select2_locale_ca.js +2 -18
  12. data/vendor/assets/javascripts/select2_locale_cs.js +2 -50
  13. data/vendor/assets/javascripts/select2_locale_da.js +2 -18
  14. data/vendor/assets/javascripts/select2_locale_de.js +2 -17
  15. data/vendor/assets/javascripts/select2_locale_en.js +3 -0
  16. data/vendor/assets/javascripts/select2_locale_es.js +2 -18
  17. data/vendor/assets/javascripts/select2_locale_et.js +2 -18
  18. data/vendor/assets/javascripts/select2_locale_eu.js +2 -44
  19. data/vendor/assets/javascripts/select2_locale_fa.js +2 -20
  20. data/vendor/assets/javascripts/select2_locale_fi.js +2 -29
  21. data/vendor/assets/javascripts/select2_locale_fr.js +2 -17
  22. data/vendor/assets/javascripts/select2_locale_gl.js +2 -44
  23. data/vendor/assets/javascripts/select2_locale_he.js +2 -18
  24. data/vendor/assets/javascripts/select2_locale_hi.js +3 -0
  25. data/vendor/assets/javascripts/select2_locale_hr.js +2 -23
  26. data/vendor/assets/javascripts/select2_locale_hu.js +2 -16
  27. data/vendor/assets/javascripts/select2_locale_id.js +2 -20
  28. data/vendor/assets/javascripts/select2_locale_is.js +2 -16
  29. data/vendor/assets/javascripts/select2_locale_it.js +2 -16
  30. data/vendor/assets/javascripts/select2_locale_ko.js +2 -18
  31. data/vendor/assets/javascripts/select2_locale_lt.js +2 -25
  32. data/vendor/assets/javascripts/select2_locale_lv.js +2 -18
  33. data/vendor/assets/javascripts/select2_locale_mk.js +2 -18
  34. data/vendor/assets/javascripts/select2_locale_nb.js +2 -21
  35. data/vendor/assets/javascripts/select2_locale_nl.js +2 -16
  36. data/vendor/assets/javascripts/select2_locale_pl.js +2 -53
  37. data/vendor/assets/javascripts/select2_locale_pt-BR.js +2 -17
  38. data/vendor/assets/javascripts/select2_locale_pt.js +3 -0
  39. data/vendor/assets/javascripts/select2_locale_ro.js +2 -16
  40. data/vendor/assets/javascripts/select2_locale_ru.js +2 -22
  41. data/vendor/assets/javascripts/select2_locale_sk.js +2 -49
  42. data/vendor/assets/javascripts/select2_locale_sr.js +3 -0
  43. data/vendor/assets/javascripts/select2_locale_sv.js +2 -18
  44. data/vendor/assets/javascripts/select2_locale_th.js +2 -18
  45. data/vendor/assets/javascripts/select2_locale_tr.js +2 -19
  46. data/vendor/assets/javascripts/select2_locale_uk.js +2 -24
  47. data/vendor/assets/javascripts/select2_locale_vi.js +2 -19
  48. data/vendor/assets/javascripts/select2_locale_zh-CN.js +2 -15
  49. data/vendor/assets/javascripts/select2_locale_zh-TW.js +2 -15
  50. data/vendor/assets/stylesheets/select2-bootstrap.css +542 -65
  51. data/vendor/assets/stylesheets/select2.css +431 -0
  52. metadata +15 -23
  53. data/vendor/assets/images/select2-spinner.gif +0 -0
  54. data/vendor/assets/images/select2.png +0 -0
  55. data/vendor/assets/images/select2x2.png +0 -0
  56. data/vendor/assets/javascripts/select2_locale_ar.js +0 -19
  57. data/vendor/assets/javascripts/select2_locale_el.js +0 -19
  58. data/vendor/assets/javascripts/select2_locale_ja.js +0 -17
  59. data/vendor/assets/javascripts/select2_locale_ka.js +0 -19
  60. data/vendor/assets/javascripts/select2_locale_ms.js +0 -21
  61. data/vendor/assets/javascripts/select2_locale_no.js +0 -20
  62. data/vendor/assets/javascripts/select2_locale_pt-PT.js +0 -17
  63. data/vendor/assets/javascripts/select2_locale_rs.js +0 -19
  64. data/vendor/assets/javascripts/select2_locale_ug-CN.js +0 -16
  65. data/vendor/assets/stylesheets/select2.scss +0 -692
Binary file
Binary file
@@ -1,19 +0,0 @@
1
- /**
2
- * Select2 Arabic translation.
3
- *
4
- * Author: Adel KEDJOUR <adel@kedjour.com>
5
- */
6
- (function ($) {
7
- "use strict";
8
-
9
- $.fn.select2.locales['ar'] = {
10
- formatNoMatches: function () { return "لم يتم العثور على مطابقات"; },
11
- formatInputTooShort: function (input, min) { var n = min - input.length; if (n == 1){ return "الرجاء إدخال حرف واحد على الأكثر"; } return n == 2 ? "الرجاء إدخال حرفين على الأكثر" : "الرجاء إدخال " + n + " على الأكثر"; },
12
- formatInputTooLong: function (input, max) { var n = input.length - max; if (n == 1){ return "الرجاء إدخال حرف واحد على الأقل"; } return n == 2 ? "الرجاء إدخال حرفين على الأقل" : "الرجاء إدخال " + n + " على الأقل "; },
13
- formatSelectionTooBig: function (limit) { if (limit == 1){ return "يمكنك أن تختار إختيار واحد فقط"; } return limit == 2 ? "يمكنك أن تختار إختيارين فقط" : "يمكنك أن تختار " + limit + " إختيارات فقط"; },
14
- formatLoadMore: function (pageNumber) { return "تحميل المزيد من النتائج…"; },
15
- formatSearching: function () { return "البحث…"; }
16
- };
17
-
18
- $.extend($.fn.select2.defaults, $.fn.select2.locales['ar']);
19
- })(jQuery);
@@ -1,19 +0,0 @@
1
- /**
2
- * Select2 Greek translation.
3
- *
4
- * @author Uriy Efremochkin <efremochkin@uriy.me>
5
- */
6
- (function ($) {
7
- "use strict";
8
-
9
- $.fn.select2.locales['el'] = {
10
- formatNoMatches: function () { return "Δεν βρέθηκαν αποτελέσματα"; },
11
- formatInputTooShort: function (input, min) { var n = min - input.length; return "Παρακαλούμε εισάγετε " + n + " περισσότερο" + (n > 1 ? "υς" : "") + " χαρακτήρ" + (n > 1 ? "ες" : "α"); },
12
- formatInputTooLong: function (input, max) { var n = input.length - max; return "Παρακαλούμε διαγράψτε " + n + " χαρακτήρ" + (n > 1 ? "ες" : "α"); },
13
- formatSelectionTooBig: function (limit) { return "Μπορείτε να επιλέξετε μόνο " + limit + " αντικείμεν" + (limit > 1 ? "α" : "ο"); },
14
- formatLoadMore: function (pageNumber) { return "Φόρτωση περισσότερων…"; },
15
- formatSearching: function () { return "Αναζήτηση…"; }
16
- };
17
-
18
- $.extend($.fn.select2.defaults, $.fn.select2.locales['el']);
19
- })(jQuery);
@@ -1,17 +0,0 @@
1
- /**
2
- * Select2 Japanese translation.
3
- */
4
- (function ($) {
5
- "use strict";
6
-
7
- $.fn.select2.locales['ja'] = {
8
- formatNoMatches: function () { return "該当なし"; },
9
- formatInputTooShort: function (input, min) { var n = min - input.length; return "後" + n + "文字入れてください"; },
10
- formatInputTooLong: function (input, max) { var n = input.length - max; return "検索文字列が" + n + "文字長すぎます"; },
11
- formatSelectionTooBig: function (limit) { return "最多で" + limit + "項目までしか選択できません"; },
12
- formatLoadMore: function (pageNumber) { return "読込中・・・"; },
13
- formatSearching: function () { return "検索中・・・"; }
14
- };
15
-
16
- $.extend($.fn.select2.defaults, $.fn.select2.locales['ja']);
17
- })(jQuery);
@@ -1,19 +0,0 @@
1
- /**
2
- * Select2 Georgian (Kartuli) translation.
3
- *
4
- * Author: Dimitri Kurashvili dimakura@gmail.com
5
- */
6
- (function ($) {
7
- "use strict";
8
-
9
- $.fn.select2.locales['ka'] = {
10
- formatNoMatches: function () { return "ვერ მოიძებნა"; },
11
- formatInputTooShort: function (input, min) { var n = min - input.length; return "გთხოვთ შეიყვანოთ კიდევ " + n + " სიმბოლო"; },
12
- formatInputTooLong: function (input, max) { var n = input.length - max; return "გთხოვთ წაშალოთ " + n + " სიმბოლო"; },
13
- formatSelectionTooBig: function (limit) { return "თქვენ შეგიძლიათ მხოლოდ " + limit + " ჩანაწერის მონიშვნა"; },
14
- formatLoadMore: function (pageNumber) { return "შედეგის ჩატვირთვა…"; },
15
- formatSearching: function () { return "ძებნა…"; }
16
- };
17
-
18
- $.extend($.fn.select2.defaults, $.fn.select2.locales['ka']);
19
- })(jQuery);
@@ -1,21 +0,0 @@
1
- /**
2
- * Select2 Malay translation.
3
- *
4
- * Author: Kepoweran <kepoweran@gmail.com>
5
- * Author: Salahuddin Hairai <mr.od3n@gmail.com>
6
- */
7
- (function ($) {
8
- "use strict";
9
-
10
- $.fn.select2.locales['ms'] = {
11
- formatMatches: function (matches) { if (matches === 1) { return "Satu keputusan ditemui, tekan enter untuk memilih."; } return matches + " keputusan ditemui, gunakan kekunci anak panah ke atas dan ke bawah untuk menavigasi."; },
12
- formatNoMatches: function () { return "Tiada padanan yang ditemui"; },
13
- formatInputTooShort: function (input, min) { var n = min - input.length; return "Sila masukkan " + n + " aksara lagi"; },
14
- formatInputTooLong: function (input, max) { var n = input.length - max; return "Sila hapuskan " + n + " aksara"; },
15
- formatSelectionTooBig: function (limit) { return "Anda hanya boleh memilih " + limit + " pilihan"; },
16
- formatLoadMore: function (pageNumber) { return "Sedang memuatkan keputusan…"; },
17
- formatSearching: function () { return "Mencari…"; }
18
- };
19
-
20
- $.extend($.fn.select2.defaults, $.fn.select2.locales['ms']);
21
- })(jQuery);
@@ -1,20 +0,0 @@
1
- /**
2
- * Select2 Norwegian translation.
3
- *
4
- * Author: Torgeir Veimo <torgeir.veimo@gmail.com>
5
- */
6
- (function ($) {
7
- "use strict";
8
-
9
- $.fn.select2.locales['no'] = {
10
- formatNoMatches: function () { return "Ingen treff"; },
11
- formatInputTooShort: function (input, min) { var n = min - input.length; return "Vennligst skriv inn " + n + (n>1 ? " flere tegn" : " tegn til"); },
12
- formatInputTooLong: function (input, max) { var n = input.length - max; return "Vennligst fjern " + n + " tegn"; },
13
- formatSelectionTooBig: function (limit) { return "Du kan velge maks " + limit + " elementer"; },
14
- formatLoadMore: function (pageNumber) { return "Laster flere resultater…"; },
15
- formatSearching: function () { return "Søker…"; }
16
- };
17
-
18
- $.extend($.fn.select2.defaults, $.fn.select2.locales['no']);
19
- })(jQuery);
20
-
@@ -1,17 +0,0 @@
1
- /**
2
- * Select2 Portuguese (Portugal) translation
3
- */
4
- (function ($) {
5
- "use strict";
6
-
7
- $.fn.select2.locales['pt-PT'] = {
8
- formatNoMatches: function () { return "Nenhum resultado encontrado"; },
9
- formatInputTooShort: function (input, min) { var n = min - input.length; return "Introduza " + n + " car" + (n == 1 ? "ácter" : "acteres"); },
10
- formatInputTooLong: function (input, max) { var n = input.length - max; return "Apague " + n + " car" + (n == 1 ? "ácter" : "acteres"); },
11
- formatSelectionTooBig: function (limit) { return "Só é possível selecionar " + limit + " elemento" + (limit == 1 ? "" : "s"); },
12
- formatLoadMore: function (pageNumber) { return "A carregar mais resultados…"; },
13
- formatSearching: function () { return "A pesquisar…"; }
14
- };
15
-
16
- $.extend($.fn.select2.defaults, $.fn.select2.locales['pt-PT']);
17
- })(jQuery);
@@ -1,19 +0,0 @@
1
- /**
2
- * Select2 Serbian translation.
3
- *
4
- * @author Limon Monte <limon.monte@gmail.com>
5
- */
6
- (function ($) {
7
- "use strict";
8
-
9
- $.fn.select2.locales['rs'] = {
10
- formatNoMatches: function () { return "Ništa nije pronađeno"; },
11
- formatInputTooShort: function (input, min) { var n = min - input.length; return "Ukucajte bar još " + n + " simbol" + (n % 10 == 1 && n % 100 != 11 ? "" : "a"); },
12
- formatInputTooLong: function (input, max) { var n = input.length - max; return "Obrišite " + n + " simbol" + (n % 10 == 1 && n % 100 != 11 ? "" : "a"); },
13
- formatSelectionTooBig: function (limit) { return "Možete izabrati samo " + limit + " stavk" + (limit % 10 == 1 && limit % 100 != 11 ? "u" : (limit % 10 >= 2 && limit % 10 <= 4 && (limit % 100 < 12 || limit % 100 > 14)? "e" : "i")); },
14
- formatLoadMore: function (pageNumber) { return "Preuzimanje još rezultata…"; },
15
- formatSearching: function () { return "Pretraga…"; }
16
- };
17
-
18
- $.extend($.fn.select2.defaults, $.fn.select2.locales['rs']);
19
- })(jQuery);
@@ -1,16 +0,0 @@
1
- /**
2
- * Select2 Uyghur translation
3
- */
4
- (function ($) {
5
- "use strict";
6
- $.fn.select2.locales['ug-CN'] = {
7
- formatNoMatches: function () { return "ماس كېلىدىغان ئۇچۇر تېپىلمىدى"; },
8
- formatInputTooShort: function (input, min) { var n = min - input.length; return "يەنە " + n + " ھەرپ كىرگۈزۈڭ";},
9
- formatInputTooLong: function (input, max) { var n = input.length - max; return "" + n + "ھەرپ ئۆچۈرۈڭ";},
10
- formatSelectionTooBig: function (limit) { return "ئەڭ كۆپ بولغاندا" + limit + " تال ئۇچۇر تاللىيالايسىز"; },
11
- formatLoadMore: function (pageNumber) { return "ئۇچۇرلار ئوقۇلىۋاتىدۇ…"; },
12
- formatSearching: function () { return "ئىزدەۋاتىدۇ…"; }
13
- };
14
-
15
- $.extend($.fn.select2.defaults, $.fn.select2.locales['ug-CN']);
16
- })(jQuery);
@@ -1,692 +0,0 @@
1
- /*
2
- Version: 3.5.4 Timestamp: Sun Aug 30 13:30:32 EDT 2015
3
- */
4
- .select2-container {
5
- margin: 0;
6
- position: relative;
7
- display: inline-block;
8
- vertical-align: middle;
9
- }
10
-
11
- .select2-container,
12
- .select2-drop,
13
- .select2-search,
14
- .select2-search input {
15
- /*
16
- Force border-box so that % widths fit the parent
17
- container without overlap because of margin/padding.
18
- More Info : http://www.quirksmode.org/css/box.html
19
- */
20
- -webkit-box-sizing: border-box; /* webkit */
21
- -moz-box-sizing: border-box; /* firefox */
22
- box-sizing: border-box; /* css3 */
23
- }
24
-
25
- .select2-container .select2-choice {
26
- display: block;
27
- height: 26px;
28
- padding: 0 0 0 8px;
29
- overflow: hidden;
30
- position: relative;
31
-
32
- border: 1px solid #aaa;
33
- white-space: nowrap;
34
- line-height: 26px;
35
- color: #444;
36
- text-decoration: none;
37
-
38
- border-radius: 4px;
39
-
40
- background-clip: padding-box;
41
-
42
- -webkit-touch-callout: none;
43
- -webkit-user-select: none;
44
- -moz-user-select: none;
45
- -ms-user-select: none;
46
- user-select: none;
47
-
48
- background-color: #fff;
49
- background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #eee), color-stop(0.5, #fff));
50
- background-image: -webkit-linear-gradient(center bottom, #eee 0%, #fff 50%);
51
- background-image: -moz-linear-gradient(center bottom, #eee 0%, #fff 50%);
52
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#ffffff', endColorstr = '#eeeeee', GradientType = 0);
53
- background-image: linear-gradient(to top, #eee 0%, #fff 50%);
54
- }
55
-
56
- html[dir="rtl"] .select2-container .select2-choice {
57
- padding: 0 8px 0 0;
58
- }
59
-
60
- .select2-container.select2-drop-above .select2-choice {
61
- border-bottom-color: #aaa;
62
-
63
- border-radius: 0 0 4px 4px;
64
-
65
- background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #eee), color-stop(0.9, #fff));
66
- background-image: -webkit-linear-gradient(center bottom, #eee 0%, #fff 90%);
67
- background-image: -moz-linear-gradient(center bottom, #eee 0%, #fff 90%);
68
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#eeeeee', GradientType=0);
69
- background-image: linear-gradient(to bottom, #eee 0%, #fff 90%);
70
- }
71
-
72
- .select2-container.select2-allowclear .select2-choice .select2-chosen {
73
- margin-right: 42px;
74
- }
75
-
76
- .select2-container .select2-choice > .select2-chosen {
77
- margin-right: 26px;
78
- display: block;
79
- overflow: hidden;
80
-
81
- white-space: nowrap;
82
-
83
- text-overflow: ellipsis;
84
- float: none;
85
- width: auto;
86
- }
87
-
88
- html[dir="rtl"] .select2-container .select2-choice > .select2-chosen {
89
- margin-left: 26px;
90
- margin-right: 0;
91
- }
92
-
93
- .select2-container .select2-choice abbr {
94
- display: none;
95
- width: 12px;
96
- height: 12px;
97
- position: absolute;
98
- right: 24px;
99
- top: 8px;
100
-
101
- font-size: 1px;
102
- text-decoration: none;
103
-
104
- border: 0;
105
- background: image-url('select2.png') right top no-repeat;
106
- cursor: pointer;
107
- outline: 0;
108
- }
109
-
110
- .select2-container.select2-allowclear .select2-choice abbr {
111
- display: inline-block;
112
- }
113
-
114
- .select2-container .select2-choice abbr:hover {
115
- background-position: right -11px;
116
- cursor: pointer;
117
- }
118
-
119
- .select2-drop-mask {
120
- border: 0;
121
- margin: 0;
122
- padding: 0;
123
- position: fixed;
124
- left: 0;
125
- top: 0;
126
- min-height: 100%;
127
- min-width: 100%;
128
- height: auto;
129
- width: auto;
130
- opacity: 0;
131
- z-index: 9998;
132
- /* styles required for IE to work */
133
- background-color: #fff;
134
- filter: alpha(opacity=0);
135
- }
136
-
137
- .select2-drop {
138
- width: 100%;
139
- margin-top: -1px;
140
- position: absolute;
141
- z-index: 9999;
142
- top: 100%;
143
-
144
- background: #fff;
145
- color: #000;
146
- border: 1px solid #aaa;
147
- border-top: 0;
148
-
149
- border-radius: 0 0 4px 4px;
150
-
151
- -webkit-box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
152
- box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
153
- }
154
-
155
- .select2-drop.select2-drop-above {
156
- margin-top: 1px;
157
- border-top: 1px solid #aaa;
158
- border-bottom: 0;
159
-
160
- border-radius: 4px 4px 0 0;
161
-
162
- -webkit-box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
163
- box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
164
- }
165
-
166
- .select2-drop-active {
167
- border: 1px solid #5897fb;
168
- border-top: none;
169
- }
170
-
171
- .select2-drop.select2-drop-above.select2-drop-active {
172
- border-top: 1px solid #5897fb;
173
- }
174
-
175
- .select2-drop-auto-width {
176
- border-top: 1px solid #aaa;
177
- width: auto;
178
- }
179
-
180
- .select2-container .select2-choice .select2-arrow {
181
- display: inline-block;
182
- width: 18px;
183
- height: 100%;
184
- position: absolute;
185
- right: 0;
186
- top: 0;
187
-
188
- border-left: 1px solid #aaa;
189
- border-radius: 0 4px 4px 0;
190
-
191
- background-clip: padding-box;
192
-
193
- background: #ccc;
194
- background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #ccc), color-stop(0.6, #eee));
195
- background-image: -webkit-linear-gradient(center bottom, #ccc 0%, #eee 60%);
196
- background-image: -moz-linear-gradient(center bottom, #ccc 0%, #eee 60%);
197
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#eeeeee', endColorstr = '#cccccc', GradientType = 0);
198
- background-image: linear-gradient(to top, #ccc 0%, #eee 60%);
199
- }
200
-
201
- html[dir="rtl"] .select2-container .select2-choice .select2-arrow {
202
- left: 0;
203
- right: auto;
204
-
205
- border-left: none;
206
- border-right: 1px solid #aaa;
207
- border-radius: 4px 0 0 4px;
208
- }
209
-
210
- .select2-container .select2-choice .select2-arrow b {
211
- display: block;
212
- width: 100%;
213
- height: 100%;
214
- background: image-url('select2.png') no-repeat 0 1px;
215
- }
216
-
217
- html[dir="rtl"] .select2-container .select2-choice .select2-arrow b {
218
- background-position: 2px 1px;
219
- }
220
-
221
- .select2-search {
222
- display: inline-block;
223
- width: 100%;
224
- min-height: 26px;
225
- margin: 0;
226
- padding: 4px 4px 0 4px;
227
-
228
- position: relative;
229
- z-index: 10000;
230
-
231
- white-space: nowrap;
232
- }
233
-
234
- .select2-search input {
235
- width: 100%;
236
- height: auto !important;
237
- min-height: 26px;
238
- padding: 4px 20px 4px 5px;
239
- margin: 0;
240
-
241
- outline: 0;
242
- font-family: sans-serif;
243
- font-size: 1em;
244
-
245
- border: 1px solid #aaa;
246
- border-radius: 0;
247
-
248
- -webkit-box-shadow: none;
249
- box-shadow: none;
250
-
251
- background: #fff image-url('select2.png') no-repeat 100% -22px;
252
- background: image-url('select2.png') no-repeat 100% -22px, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, #fff), color-stop(0.99, #eee));
253
- background: image-url('select2.png') no-repeat 100% -22px, -webkit-linear-gradient(center bottom, #fff 85%, #eee 99%);
254
- background: image-url('select2.png') no-repeat 100% -22px, -moz-linear-gradient(center bottom, #fff 85%, #eee 99%);
255
- background: image-url('select2.png') no-repeat 100% -22px, linear-gradient(to bottom, #fff 85%, #eee 99%) 0 0;
256
- }
257
-
258
- html[dir="rtl"] .select2-search input {
259
- padding: 4px 5px 4px 20px;
260
-
261
- background: #fff image-url('select2.png') no-repeat -37px -22px;
262
- background: image-url('select2.png') no-repeat -37px -22px, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, #fff), color-stop(0.99, #eee));
263
- background: image-url('select2.png') no-repeat -37px -22px, -webkit-linear-gradient(center bottom, #fff 85%, #eee 99%);
264
- background: image-url('select2.png') no-repeat -37px -22px, -moz-linear-gradient(center bottom, #fff 85%, #eee 99%);
265
- background: image-url('select2.png') no-repeat -37px -22px, linear-gradient(to bottom, #fff 85%, #eee 99%) 0 0;
266
- }
267
-
268
- .select2-search input.select2-active {
269
- background: #fff image-url('select2-spinner.gif') no-repeat 100%;
270
- background: image-url('select2-spinner.gif') no-repeat 100%, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, #fff), color-stop(0.99, #eee));
271
- background: image-url('select2-spinner.gif') no-repeat 100%, -webkit-linear-gradient(center bottom, #fff 85%, #eee 99%);
272
- background: image-url('select2-spinner.gif') no-repeat 100%, -moz-linear-gradient(center bottom, #fff 85%, #eee 99%);
273
- background: image-url('select2-spinner.gif') no-repeat 100%, linear-gradient(to bottom, #fff 85%, #eee 99%) 0 0;
274
- }
275
-
276
- .select2-container-active .select2-choice,
277
- .select2-container-active .select2-choices {
278
- border: 1px solid #5897fb;
279
- outline: none;
280
-
281
- -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, .3);
282
- box-shadow: 0 0 5px rgba(0, 0, 0, .3);
283
- }
284
-
285
- .select2-dropdown-open .select2-choice {
286
- border-bottom-color: transparent;
287
- -webkit-box-shadow: 0 1px 0 #fff inset;
288
- box-shadow: 0 1px 0 #fff inset;
289
-
290
- border-bottom-left-radius: 0;
291
- border-bottom-right-radius: 0;
292
-
293
- background-color: #eee;
294
- background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #fff), color-stop(0.5, #eee));
295
- background-image: -webkit-linear-gradient(center bottom, #fff 0%, #eee 50%);
296
- background-image: -moz-linear-gradient(center bottom, #fff 0%, #eee 50%);
297
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#ffffff', GradientType=0);
298
- background-image: linear-gradient(to top, #fff 0%, #eee 50%);
299
- }
300
-
301
- .select2-dropdown-open.select2-drop-above .select2-choice,
302
- .select2-dropdown-open.select2-drop-above .select2-choices {
303
- border: 1px solid #5897fb;
304
- border-top-color: transparent;
305
-
306
- background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #fff), color-stop(0.5, #eee));
307
- background-image: -webkit-linear-gradient(center top, #fff 0%, #eee 50%);
308
- background-image: -moz-linear-gradient(center top, #fff 0%, #eee 50%);
309
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#ffffff', GradientType=0);
310
- background-image: linear-gradient(to bottom, #fff 0%, #eee 50%);
311
- }
312
-
313
- .select2-dropdown-open .select2-choice .select2-arrow {
314
- background: transparent;
315
- border-left: none;
316
- filter: none;
317
- }
318
- html[dir="rtl"] .select2-dropdown-open .select2-choice .select2-arrow {
319
- border-right: none;
320
- }
321
-
322
- .select2-dropdown-open .select2-choice .select2-arrow b {
323
- background-position: -18px 1px;
324
- }
325
-
326
- html[dir="rtl"] .select2-dropdown-open .select2-choice .select2-arrow b {
327
- background-position: -16px 1px;
328
- }
329
-
330
- .select2-hidden-accessible {
331
- border: 0;
332
- clip: rect(0 0 0 0);
333
- height: 1px;
334
- margin: -1px;
335
- overflow: hidden;
336
- padding: 0;
337
- position: absolute;
338
- width: 1px;
339
- }
340
-
341
- /* results */
342
- .select2-results {
343
- max-height: 200px;
344
- padding: 0 0 0 4px;
345
- margin: 4px 4px 4px 0;
346
- position: relative;
347
- overflow-x: hidden;
348
- overflow-y: auto;
349
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
350
- }
351
-
352
- html[dir="rtl"] .select2-results {
353
- padding: 0 4px 0 0;
354
- margin: 4px 0 4px 4px;
355
- }
356
-
357
- .select2-results ul.select2-result-sub {
358
- margin: 0;
359
- padding-left: 0;
360
- }
361
-
362
- .select2-results li {
363
- list-style: none;
364
- display: list-item;
365
- background-image: none;
366
- }
367
-
368
- .select2-results li.select2-result-with-children > .select2-result-label {
369
- font-weight: bold;
370
- }
371
-
372
- .select2-results .select2-result-label {
373
- padding: 3px 7px 4px;
374
- margin: 0;
375
- cursor: pointer;
376
-
377
- min-height: 1em;
378
-
379
- -webkit-touch-callout: none;
380
- -webkit-user-select: none;
381
- -moz-user-select: none;
382
- -ms-user-select: none;
383
- user-select: none;
384
- }
385
-
386
- .select2-results-dept-1 .select2-result-label { padding-left: 20px }
387
- .select2-results-dept-2 .select2-result-label { padding-left: 40px }
388
- .select2-results-dept-3 .select2-result-label { padding-left: 60px }
389
- .select2-results-dept-4 .select2-result-label { padding-left: 80px }
390
- .select2-results-dept-5 .select2-result-label { padding-left: 100px }
391
- .select2-results-dept-6 .select2-result-label { padding-left: 110px }
392
- .select2-results-dept-7 .select2-result-label { padding-left: 120px }
393
-
394
- .select2-results .select2-highlighted {
395
- background: #3875d7;
396
- color: #fff;
397
- }
398
-
399
- .select2-results li em {
400
- background: #feffde;
401
- font-style: normal;
402
- }
403
-
404
- .select2-results .select2-highlighted em {
405
- background: transparent;
406
- }
407
-
408
- .select2-results .select2-highlighted ul {
409
- background: #fff;
410
- color: #000;
411
- }
412
-
413
- .select2-results .select2-no-results,
414
- .select2-results .select2-searching,
415
- .select2-results .select2-ajax-error,
416
- .select2-results .select2-selection-limit {
417
- background: #f4f4f4;
418
- display: list-item;
419
- padding-left: 5px;
420
- }
421
-
422
- /*
423
- disabled look for disabled choices in the results dropdown
424
- */
425
- .select2-results .select2-disabled.select2-highlighted {
426
- color: #666;
427
- background: #f4f4f4;
428
- display: list-item;
429
- cursor: default;
430
- }
431
- .select2-results .select2-disabled {
432
- background: #f4f4f4;
433
- display: list-item;
434
- cursor: default;
435
- }
436
-
437
- .select2-results .select2-selected {
438
- display: none;
439
- }
440
-
441
- .select2-more-results.select2-active {
442
- background: #f4f4f4 image-url('select2-spinner.gif') no-repeat 100%;
443
- }
444
-
445
- .select2-results .select2-ajax-error {
446
- background: rgba(255, 50, 50, .2);
447
- }
448
-
449
- .select2-more-results {
450
- background: #f4f4f4;
451
- display: list-item;
452
- }
453
-
454
- /* disabled styles */
455
-
456
- .select2-container.select2-container-disabled .select2-choice {
457
- background-color: #f4f4f4;
458
- background-image: none;
459
- border: 1px solid #ddd;
460
- cursor: default;
461
- }
462
-
463
- .select2-container.select2-container-disabled .select2-choice .select2-arrow {
464
- background-color: #f4f4f4;
465
- background-image: none;
466
- border-left: 0;
467
- }
468
-
469
- .select2-container.select2-container-disabled .select2-choice abbr {
470
- display: none;
471
- }
472
-
473
-
474
- /* multiselect */
475
-
476
- .select2-container-multi .select2-choices {
477
- height: auto !important;
478
- height: 1%;
479
- margin: 0;
480
- padding: 0 5px 0 0;
481
- position: relative;
482
-
483
- border: 1px solid #aaa;
484
- cursor: text;
485
- overflow: hidden;
486
-
487
- background-color: #fff;
488
- background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(1%, #eee), color-stop(15%, #fff));
489
- background-image: -webkit-linear-gradient(top, #eee 1%, #fff 15%);
490
- background-image: -moz-linear-gradient(top, #eee 1%, #fff 15%);
491
- background-image: linear-gradient(to bottom, #eee 1%, #fff 15%);
492
- }
493
-
494
- html[dir="rtl"] .select2-container-multi .select2-choices {
495
- padding: 0 0 0 5px;
496
- }
497
-
498
- .select2-locked {
499
- padding: 3px 5px 3px 5px !important;
500
- }
501
-
502
- .select2-container-multi .select2-choices {
503
- min-height: 26px;
504
- }
505
-
506
- .select2-container-multi.select2-container-active .select2-choices {
507
- border: 1px solid #5897fb;
508
- outline: none;
509
-
510
- -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, .3);
511
- box-shadow: 0 0 5px rgba(0, 0, 0, .3);
512
- }
513
- .select2-container-multi .select2-choices li {
514
- float: left;
515
- list-style: none;
516
- }
517
- html[dir="rtl"] .select2-container-multi .select2-choices li
518
- {
519
- float: right;
520
- }
521
- .select2-container-multi .select2-choices .select2-search-field {
522
- margin: 0;
523
- padding: 0;
524
- white-space: nowrap;
525
- }
526
-
527
- .select2-container-multi .select2-choices .select2-search-field input {
528
- padding: 5px;
529
- margin: 1px 0;
530
-
531
- font-family: sans-serif;
532
- font-size: 100%;
533
- color: #666;
534
- outline: 0;
535
- border: 0;
536
- -webkit-box-shadow: none;
537
- box-shadow: none;
538
- background: transparent !important;
539
- }
540
-
541
- .select2-container-multi .select2-choices .select2-search-field input.select2-active {
542
- background: #fff image-url('select2-spinner.gif') no-repeat 100% !important;
543
- }
544
-
545
- .select2-default {
546
- color: #999 !important;
547
- }
548
-
549
- .select2-container-multi .select2-choices .select2-search-choice {
550
- padding: 3px 5px 3px 18px;
551
- margin: 3px 0 3px 5px;
552
- position: relative;
553
-
554
- line-height: 13px;
555
- color: #333;
556
- cursor: default;
557
- border: 1px solid #aaaaaa;
558
-
559
- border-radius: 3px;
560
-
561
- -webkit-box-shadow: 0 0 2px #fff inset, 0 1px 0 rgba(0, 0, 0, 0.05);
562
- box-shadow: 0 0 2px #fff inset, 0 1px 0 rgba(0, 0, 0, 0.05);
563
-
564
- background-clip: padding-box;
565
-
566
- -webkit-touch-callout: none;
567
- -webkit-user-select: none;
568
- -moz-user-select: none;
569
- -ms-user-select: none;
570
- user-select: none;
571
-
572
- background-color: #e4e4e4;
573
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#f4f4f4', GradientType=0);
574
- background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), color-stop(100%, #eee));
575
- background-image: -webkit-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
576
- background-image: -moz-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
577
- background-image: linear-gradient(to bottom, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
578
- }
579
- html[dir="rtl"] .select2-container-multi .select2-choices .select2-search-choice
580
- {
581
- margin: 3px 5px 3px 0;
582
- padding: 3px 18px 3px 5px;
583
- }
584
- .select2-container-multi .select2-choices .select2-search-choice .select2-chosen {
585
- cursor: default;
586
- }
587
- .select2-container-multi .select2-choices .select2-search-choice-focus {
588
- background: #d4d4d4;
589
- }
590
-
591
- .select2-search-choice-close {
592
- display: block;
593
- width: 12px;
594
- height: 13px;
595
- position: absolute;
596
- right: 3px;
597
- top: 4px;
598
-
599
- font-size: 1px;
600
- outline: none;
601
- background: image-url('select2.png') right top no-repeat;
602
- }
603
- html[dir="rtl"] .select2-search-choice-close {
604
- right: auto;
605
- left: 3px;
606
- }
607
-
608
- .select2-container-multi .select2-search-choice-close {
609
- left: 3px;
610
- }
611
-
612
- html[dir="rtl"] .select2-container-multi .select2-search-choice-close {
613
- left: auto;
614
- right: 2px;
615
- }
616
-
617
- .select2-container-multi .select2-choices .select2-search-choice .select2-search-choice-close:hover {
618
- background-position: right -11px;
619
- }
620
- .select2-container-multi .select2-choices .select2-search-choice-focus .select2-search-choice-close {
621
- background-position: right -11px;
622
- }
623
-
624
- /* disabled styles */
625
- .select2-container-multi.select2-container-disabled .select2-choices {
626
- background-color: #f4f4f4;
627
- background-image: none;
628
- border: 1px solid #ddd;
629
- cursor: default;
630
- }
631
-
632
- .select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice {
633
- padding: 3px 5px 3px 5px;
634
- border: 1px solid #ddd;
635
- background-image: none;
636
- background-color: #f4f4f4;
637
- }
638
-
639
- .select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice .select2-search-choice-close { display: none;
640
- background: none;
641
- }
642
- /* end multiselect */
643
-
644
-
645
- .select2-result-selectable .select2-match,
646
- .select2-result-unselectable .select2-match {
647
- text-decoration: underline;
648
- }
649
-
650
- .select2-offscreen, .select2-offscreen:focus {
651
- clip: rect(0 0 0 0) !important;
652
- width: 1px !important;
653
- height: 1px !important;
654
- border: 0 !important;
655
- margin: 0 !important;
656
- padding: 0 !important;
657
- overflow: hidden !important;
658
- position: absolute !important;
659
- outline: 0 !important;
660
- left: 0px !important;
661
- top: 0px !important;
662
- }
663
-
664
- .select2-display-none {
665
- display: none;
666
- }
667
-
668
- .select2-measure-scrollbar {
669
- position: absolute;
670
- top: -10000px;
671
- left: -10000px;
672
- width: 100px;
673
- height: 100px;
674
- overflow: scroll;
675
- }
676
-
677
- /* Retina-ize icons */
678
-
679
- @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 2dppx) {
680
- .select2-search input,
681
- .select2-search-choice-close,
682
- .select2-container .select2-choice abbr,
683
- .select2-container .select2-choice .select2-arrow b {
684
- background-image: image-url('select2x2.png') !important;
685
- background-repeat: no-repeat !important;
686
- background-size: 60px 40px !important;
687
- }
688
-
689
- .select2-search input {
690
- background-position: 100% -21px !important;
691
- }
692
- }