select2-rails 3.5.9 → 4.0.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. checksums.yaml +5 -13
  2. data/README.md +22 -6
  3. data/Rakefile +1 -3
  4. data/lib/select2-rails/engine.rb +1 -1
  5. data/lib/select2-rails/source_file.rb +17 -47
  6. data/lib/select2-rails/version.rb +1 -1
  7. data/select2-rails.gemspec +1 -1
  8. data/vendor/assets/javascripts/select2-full.js +6820 -0
  9. data/vendor/assets/javascripts/select2.js +6108 -0
  10. data/vendor/assets/javascripts/select2_locale_af.js +3 -0
  11. data/vendor/assets/javascripts/select2_locale_ar.js +3 -0
  12. data/vendor/assets/javascripts/select2_locale_az.js +3 -0
  13. data/vendor/assets/javascripts/select2_locale_bg.js +3 -0
  14. data/vendor/assets/javascripts/select2_locale_bn.js +3 -0
  15. data/vendor/assets/javascripts/select2_locale_bs.js +3 -0
  16. data/vendor/assets/javascripts/select2_locale_ca.js +3 -0
  17. data/vendor/assets/javascripts/select2_locale_cs.js +3 -0
  18. data/vendor/assets/javascripts/select2_locale_da.js +3 -0
  19. data/vendor/assets/javascripts/select2_locale_de.js +3 -0
  20. data/vendor/assets/javascripts/select2_locale_dsb.js +3 -0
  21. data/vendor/assets/javascripts/select2_locale_el.js +3 -0
  22. data/vendor/assets/javascripts/select2_locale_en.js +3 -0
  23. data/vendor/assets/javascripts/select2_locale_es.js +3 -0
  24. data/vendor/assets/javascripts/select2_locale_et.js +3 -0
  25. data/vendor/assets/javascripts/select2_locale_eu.js +3 -0
  26. data/vendor/assets/javascripts/select2_locale_fa.js +3 -0
  27. data/vendor/assets/javascripts/select2_locale_fi.js +3 -0
  28. data/vendor/assets/javascripts/select2_locale_fr.js +3 -0
  29. data/vendor/assets/javascripts/select2_locale_gl.js +3 -0
  30. data/vendor/assets/javascripts/select2_locale_he.js +3 -0
  31. data/vendor/assets/javascripts/select2_locale_hi.js +3 -0
  32. data/vendor/assets/javascripts/select2_locale_hr.js +3 -0
  33. data/vendor/assets/javascripts/select2_locale_hsb.js +3 -0
  34. data/vendor/assets/javascripts/select2_locale_hu.js +3 -0
  35. data/vendor/assets/javascripts/select2_locale_hy.js +3 -0
  36. data/vendor/assets/javascripts/select2_locale_id.js +3 -0
  37. data/vendor/assets/javascripts/select2_locale_is.js +3 -0
  38. data/vendor/assets/javascripts/select2_locale_it.js +3 -0
  39. data/vendor/assets/javascripts/select2_locale_ja.js +3 -0
  40. data/vendor/assets/javascripts/select2_locale_ka.js +3 -0
  41. data/vendor/assets/javascripts/select2_locale_km.js +3 -0
  42. data/vendor/assets/javascripts/select2_locale_ko.js +3 -0
  43. data/vendor/assets/javascripts/select2_locale_lt.js +3 -0
  44. data/vendor/assets/javascripts/select2_locale_lv.js +3 -0
  45. data/vendor/assets/javascripts/select2_locale_mk.js +3 -0
  46. data/vendor/assets/javascripts/select2_locale_ms.js +3 -0
  47. data/vendor/assets/javascripts/select2_locale_nb.js +3 -0
  48. data/vendor/assets/javascripts/select2_locale_ne.js +3 -0
  49. data/vendor/assets/javascripts/select2_locale_nl.js +3 -0
  50. data/vendor/assets/javascripts/select2_locale_pl.js +3 -0
  51. data/vendor/assets/javascripts/select2_locale_ps.js +3 -0
  52. data/vendor/assets/javascripts/select2_locale_pt-BR.js +3 -0
  53. data/vendor/assets/javascripts/select2_locale_pt.js +3 -0
  54. data/vendor/assets/javascripts/select2_locale_ro.js +3 -0
  55. data/vendor/assets/javascripts/select2_locale_ru.js +3 -0
  56. data/vendor/assets/javascripts/select2_locale_sk.js +3 -0
  57. data/vendor/assets/javascripts/select2_locale_sl.js +3 -0
  58. data/vendor/assets/javascripts/select2_locale_sq.js +3 -0
  59. data/vendor/assets/javascripts/select2_locale_sr-Cyrl.js +3 -0
  60. data/vendor/assets/javascripts/select2_locale_sr.js +3 -0
  61. data/vendor/assets/javascripts/select2_locale_sv.js +3 -0
  62. data/vendor/assets/javascripts/select2_locale_th.js +3 -0
  63. data/vendor/assets/javascripts/select2_locale_tk.js +3 -0
  64. data/vendor/assets/javascripts/select2_locale_tr.js +3 -0
  65. data/vendor/assets/javascripts/select2_locale_uk.js +3 -0
  66. data/vendor/assets/javascripts/select2_locale_vi.js +3 -0
  67. data/vendor/assets/javascripts/select2_locale_zh-CN.js +3 -0
  68. data/vendor/assets/javascripts/select2_locale_zh-TW.js +3 -0
  69. data/vendor/assets/stylesheets/select2-bootstrap.css +610 -0
  70. data/vendor/assets/stylesheets/select2.css +481 -0
  71. metadata +80 -68
  72. data/app/assets/images/select2-spinner.gif +0 -0
  73. data/app/assets/images/select2.png +0 -0
  74. data/app/assets/images/select2x2.png +0 -0
  75. data/app/assets/javascripts/select2.js +0 -3481
  76. data/app/assets/javascripts/select2_locale_ar.js +0 -17
  77. data/app/assets/javascripts/select2_locale_az.js +0 -18
  78. data/app/assets/javascripts/select2_locale_bg.js +0 -18
  79. data/app/assets/javascripts/select2_locale_ca.js +0 -17
  80. data/app/assets/javascripts/select2_locale_cs.js +0 -49
  81. data/app/assets/javascripts/select2_locale_da.js +0 -17
  82. data/app/assets/javascripts/select2_locale_de.js +0 -16
  83. data/app/assets/javascripts/select2_locale_el.js +0 -17
  84. data/app/assets/javascripts/select2_locale_es.js +0 -15
  85. data/app/assets/javascripts/select2_locale_et.js +0 -17
  86. data/app/assets/javascripts/select2_locale_eu.js +0 -43
  87. data/app/assets/javascripts/select2_locale_fa.js +0 -19
  88. data/app/assets/javascripts/select2_locale_fi.js +0 -28
  89. data/app/assets/javascripts/select2_locale_fr.js +0 -16
  90. data/app/assets/javascripts/select2_locale_gl.js +0 -43
  91. data/app/assets/javascripts/select2_locale_he.js +0 -17
  92. data/app/assets/javascripts/select2_locale_hr.js +0 -22
  93. data/app/assets/javascripts/select2_locale_hu.js +0 -15
  94. data/app/assets/javascripts/select2_locale_id.js +0 -17
  95. data/app/assets/javascripts/select2_locale_is.js +0 -15
  96. data/app/assets/javascripts/select2_locale_it.js +0 -15
  97. data/app/assets/javascripts/select2_locale_ja.js +0 -15
  98. data/app/assets/javascripts/select2_locale_ka.js +0 -17
  99. data/app/assets/javascripts/select2_locale_ko.js +0 -17
  100. data/app/assets/javascripts/select2_locale_lt.js +0 -24
  101. data/app/assets/javascripts/select2_locale_lv.js +0 -17
  102. data/app/assets/javascripts/select2_locale_mk.js +0 -17
  103. data/app/assets/javascripts/select2_locale_ms.js +0 -17
  104. data/app/assets/javascripts/select2_locale_nl.js +0 -15
  105. data/app/assets/javascripts/select2_locale_no.js +0 -18
  106. data/app/assets/javascripts/select2_locale_pl.js +0 -23
  107. data/app/assets/javascripts/select2_locale_pt-BR.js +0 -15
  108. data/app/assets/javascripts/select2_locale_pt-PT.js +0 -15
  109. data/app/assets/javascripts/select2_locale_ro.js +0 -15
  110. data/app/assets/javascripts/select2_locale_rs.js +0 -17
  111. data/app/assets/javascripts/select2_locale_ru.js +0 -21
  112. data/app/assets/javascripts/select2_locale_sk.js +0 -48
  113. data/app/assets/javascripts/select2_locale_sv.js +0 -17
  114. data/app/assets/javascripts/select2_locale_th.js +0 -17
  115. data/app/assets/javascripts/select2_locale_tr.js +0 -17
  116. data/app/assets/javascripts/select2_locale_uk.js +0 -23
  117. data/app/assets/javascripts/select2_locale_vi.js +0 -18
  118. data/app/assets/javascripts/select2_locale_zh-CN.js +0 -14
  119. data/app/assets/javascripts/select2_locale_zh-TW.js +0 -14
  120. data/app/assets/stylesheets/select2-bootstrap.css +0 -87
  121. data/app/assets/stylesheets/select2.css.erb +0 -703
@@ -1,18 +0,0 @@
1
- /**
2
- * Select2 Vietnamese translation.
3
- *
4
- * Author: Long Nguyen <olragon@gmail.com>
5
- */
6
- (function ($) {
7
- "use strict";
8
-
9
- $.extend($.fn.select2.defaults, {
10
- formatNoMatches: function () { return "Không tìm thấy kết quả"; },
11
- formatInputTooShort: function (input, min) { var n = min - input.length; return "Vui lòng nhập nhiều hơn " + n + " ký tự" + (n == 1 ? "" : "s"); },
12
- formatInputTooLong: function (input, max) { var n = input.length - max; return "Vui lòng nhập ít hơn " + n + " ký tự" + (n == 1? "" : "s"); },
13
- formatSelectionTooBig: function (limit) { return "Chỉ có thể chọn được " + limit + " tùy chọn" + (limit == 1 ? "" : "s"); },
14
- formatLoadMore: function (pageNumber) { return "Đang lấy thêm kết quả…"; },
15
- formatSearching: function () { return "Đang tìm…"; }
16
- });
17
- })(jQuery);
18
-
@@ -1,14 +0,0 @@
1
- /**
2
- * Select2 Chinese translation
3
- */
4
- (function ($) {
5
- "use strict";
6
- $.extend($.fn.select2.defaults, {
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
- })(jQuery);
@@ -1,14 +0,0 @@
1
- /**
2
- * Select2 Traditional Chinese translation
3
- */
4
- (function ($) {
5
- "use strict";
6
- $.extend($.fn.select2.defaults, {
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
- })(jQuery);
@@ -1,87 +0,0 @@
1
- .form-control .select2-choice {
2
- border: 0;
3
- border-radius: 2px;
4
- }
5
-
6
- .form-control .select2-choice .select2-arrow {
7
- border-radius: 0 2px 2px 0;
8
- }
9
-
10
- .form-control.select2-container {
11
- height: auto !important;
12
- padding: 0;
13
- }
14
-
15
- .form-control.select2-container.select2-dropdown-open {
16
- border-color: #5897FB;
17
- border-radius: 3px 3px 0 0;
18
- }
19
-
20
- .form-control .select2-container.select2-dropdown-open .select2-choices {
21
- border-radius: 3px 3px 0 0;
22
- }
23
-
24
- .form-control.select2-container .select2-choices {
25
- border: 0 !important;
26
- border-radius: 3px;
27
- }
28
-
29
- .control-group.warning .select2-container .select2-choice,
30
- .control-group.warning .select2-container .select2-choices,
31
- .control-group.warning .select2-container-active .select2-choice,
32
- .control-group.warning .select2-container-active .select2-choices,
33
- .control-group.warning .select2-dropdown-open.select2-drop-above .select2-choice,
34
- .control-group.warning .select2-dropdown-open.select2-drop-above .select2-choices,
35
- .control-group.warning .select2-container-multi.select2-container-active .select2-choices {
36
- border: 1px solid #C09853 !important;
37
- }
38
-
39
- .control-group.warning .select2-container .select2-choice div {
40
- border-left: 1px solid #C09853 !important;
41
- background: #FCF8E3 !important;
42
- }
43
-
44
- .control-group.error .select2-container .select2-choice,
45
- .control-group.error .select2-container .select2-choices,
46
- .control-group.error .select2-container-active .select2-choice,
47
- .control-group.error .select2-container-active .select2-choices,
48
- .control-group.error .select2-dropdown-open.select2-drop-above .select2-choice,
49
- .control-group.error .select2-dropdown-open.select2-drop-above .select2-choices,
50
- .control-group.error .select2-container-multi.select2-container-active .select2-choices {
51
- border: 1px solid #B94A48 !important;
52
- }
53
-
54
- .control-group.error .select2-container .select2-choice div {
55
- border-left: 1px solid #B94A48 !important;
56
- background: #F2DEDE !important;
57
- }
58
-
59
- .control-group.info .select2-container .select2-choice,
60
- .control-group.info .select2-container .select2-choices,
61
- .control-group.info .select2-container-active .select2-choice,
62
- .control-group.info .select2-container-active .select2-choices,
63
- .control-group.info .select2-dropdown-open.select2-drop-above .select2-choice,
64
- .control-group.info .select2-dropdown-open.select2-drop-above .select2-choices,
65
- .control-group.info .select2-container-multi.select2-container-active .select2-choices {
66
- border: 1px solid #3A87AD !important;
67
- }
68
-
69
- .control-group.info .select2-container .select2-choice div {
70
- border-left: 1px solid #3A87AD !important;
71
- background: #D9EDF7 !important;
72
- }
73
-
74
- .control-group.success .select2-container .select2-choice,
75
- .control-group.success .select2-container .select2-choices,
76
- .control-group.success .select2-container-active .select2-choice,
77
- .control-group.success .select2-container-active .select2-choices,
78
- .control-group.success .select2-dropdown-open.select2-drop-above .select2-choice,
79
- .control-group.success .select2-dropdown-open.select2-drop-above .select2-choices,
80
- .control-group.success .select2-container-multi.select2-container-active .select2-choices {
81
- border: 1px solid #468847 !important;
82
- }
83
-
84
- .control-group.success .select2-container .select2-choice div {
85
- border-left: 1px solid #468847 !important;
86
- background: #DFF0D8 !important;
87
- }
@@ -1,703 +0,0 @@
1
- //= depend_on_asset "select2.png"
2
- //= depend_on_asset "select2-spinner.gif"
3
- //= depend_on_asset "select2x2.png"
4
- /*
5
- Version: 3.5.0 Timestamp: Mon Jun 16 19:29:44 EDT 2014
6
- */
7
- .select2-container {
8
- margin: 0;
9
- position: relative;
10
- display: inline-block;
11
- /* inline-block for ie7 */
12
- zoom: 1;
13
- *display: inline;
14
- vertical-align: middle;
15
- }
16
-
17
- .select2-container,
18
- .select2-drop,
19
- .select2-search,
20
- .select2-search input {
21
- /*
22
- Force border-box so that % widths fit the parent
23
- container without overlap because of margin/padding.
24
- More Info : http://www.quirksmode.org/css/box.html
25
- */
26
- -webkit-box-sizing: border-box; /* webkit */
27
- -moz-box-sizing: border-box; /* firefox */
28
- box-sizing: border-box; /* css3 */
29
- }
30
-
31
- .select2-container .select2-choice {
32
- display: block;
33
- height: 26px;
34
- padding: 0 0 0 8px;
35
- overflow: hidden;
36
- position: relative;
37
-
38
- border: 1px solid #aaa;
39
- white-space: nowrap;
40
- line-height: 26px;
41
- color: #444;
42
- text-decoration: none;
43
-
44
- border-radius: 4px;
45
-
46
- background-clip: padding-box;
47
-
48
- -webkit-touch-callout: none;
49
- -webkit-user-select: none;
50
- -moz-user-select: none;
51
- -ms-user-select: none;
52
- user-select: none;
53
-
54
- background-color: #fff;
55
- background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #eee), color-stop(0.5, #fff));
56
- background-image: -webkit-linear-gradient(center bottom, #eee 0%, #fff 50%);
57
- background-image: -moz-linear-gradient(center bottom, #eee 0%, #fff 50%);
58
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#ffffff', endColorstr = '#eeeeee', GradientType = 0);
59
- background-image: linear-gradient(to top, #eee 0%, #fff 50%);
60
- }
61
-
62
- html[dir="rtl"] .select2-container .select2-choice {
63
- padding: 0 8px 0 0;
64
- }
65
-
66
- .select2-container.select2-drop-above .select2-choice {
67
- border-bottom-color: #aaa;
68
-
69
- border-radius: 0 0 4px 4px;
70
-
71
- background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #eee), color-stop(0.9, #fff));
72
- background-image: -webkit-linear-gradient(center bottom, #eee 0%, #fff 90%);
73
- background-image: -moz-linear-gradient(center bottom, #eee 0%, #fff 90%);
74
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#eeeeee', GradientType=0);
75
- background-image: linear-gradient(to bottom, #eee 0%, #fff 90%);
76
- }
77
-
78
- .select2-container.select2-allowclear .select2-choice .select2-chosen {
79
- margin-right: 42px;
80
- }
81
-
82
- .select2-container .select2-choice > .select2-chosen {
83
- margin-right: 26px;
84
- display: block;
85
- overflow: hidden;
86
-
87
- white-space: nowrap;
88
-
89
- text-overflow: ellipsis;
90
- float: none;
91
- width: auto;
92
- }
93
-
94
- html[dir="rtl"] .select2-container .select2-choice > .select2-chosen {
95
- margin-left: 26px;
96
- margin-right: 0;
97
- }
98
-
99
- .select2-container .select2-choice abbr {
100
- display: none;
101
- width: 12px;
102
- height: 12px;
103
- position: absolute;
104
- right: 24px;
105
- top: 8px;
106
-
107
- font-size: 1px;
108
- text-decoration: none;
109
-
110
- border: 0;
111
- background: url(<%= asset_path('select2.png') %>) right top no-repeat;
112
- cursor: pointer;
113
- outline: 0;
114
- }
115
-
116
- .select2-container.select2-allowclear .select2-choice abbr {
117
- display: inline-block;
118
- }
119
-
120
- .select2-container .select2-choice abbr:hover {
121
- background-position: right -11px;
122
- cursor: pointer;
123
- }
124
-
125
- .select2-drop-mask {
126
- border: 0;
127
- margin: 0;
128
- padding: 0;
129
- position: fixed;
130
- left: 0;
131
- top: 0;
132
- min-height: 100%;
133
- min-width: 100%;
134
- height: auto;
135
- width: auto;
136
- opacity: 0;
137
- z-index: 9998;
138
- /* styles required for IE to work */
139
- background-color: #fff;
140
- filter: alpha(opacity=0);
141
- }
142
-
143
- .select2-drop {
144
- width: 100%;
145
- margin-top: -1px;
146
- position: absolute;
147
- z-index: 9999;
148
- top: 100%;
149
-
150
- background: #fff;
151
- color: #000;
152
- border: 1px solid #aaa;
153
- border-top: 0;
154
-
155
- border-radius: 0 0 4px 4px;
156
-
157
- -webkit-box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
158
- box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
159
- }
160
-
161
- .select2-drop.select2-drop-above {
162
- margin-top: 1px;
163
- border-top: 1px solid #aaa;
164
- border-bottom: 0;
165
-
166
- border-radius: 4px 4px 0 0;
167
-
168
- -webkit-box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
169
- box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
170
- }
171
-
172
- .select2-drop-active {
173
- border: 1px solid #5897fb;
174
- border-top: none;
175
- }
176
-
177
- .select2-drop.select2-drop-above.select2-drop-active {
178
- border-top: 1px solid #5897fb;
179
- }
180
-
181
- .select2-drop-auto-width {
182
- border-top: 1px solid #aaa;
183
- width: auto;
184
- }
185
-
186
- .select2-drop-auto-width .select2-search {
187
- padding-top: 4px;
188
- }
189
-
190
- .select2-container .select2-choice .select2-arrow {
191
- display: inline-block;
192
- width: 18px;
193
- height: 100%;
194
- position: absolute;
195
- right: 0;
196
- top: 0;
197
-
198
- border-left: 1px solid #aaa;
199
- border-radius: 0 4px 4px 0;
200
-
201
- background-clip: padding-box;
202
-
203
- background: #ccc;
204
- background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #ccc), color-stop(0.6, #eee));
205
- background-image: -webkit-linear-gradient(center bottom, #ccc 0%, #eee 60%);
206
- background-image: -moz-linear-gradient(center bottom, #ccc 0%, #eee 60%);
207
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#eeeeee', endColorstr = '#cccccc', GradientType = 0);
208
- background-image: linear-gradient(to top, #ccc 0%, #eee 60%);
209
- }
210
-
211
- html[dir="rtl"] .select2-container .select2-choice .select2-arrow {
212
- left: 0;
213
- right: auto;
214
-
215
- border-left: none;
216
- border-right: 1px solid #aaa;
217
- border-radius: 4px 0 0 4px;
218
- }
219
-
220
- .select2-container .select2-choice .select2-arrow b {
221
- display: block;
222
- width: 100%;
223
- height: 100%;
224
- background: url(<%= asset_path('select2.png') %>) no-repeat 0 1px;
225
- }
226
-
227
- html[dir="rtl"] .select2-container .select2-choice .select2-arrow b {
228
- background-position: 2px 1px;
229
- }
230
-
231
- .select2-search {
232
- display: inline-block;
233
- width: 100%;
234
- min-height: 26px;
235
- margin: 0;
236
- padding-left: 4px;
237
- padding-right: 4px;
238
-
239
- position: relative;
240
- z-index: 10000;
241
-
242
- white-space: nowrap;
243
- }
244
-
245
- .select2-search input {
246
- width: 100%;
247
- height: auto !important;
248
- min-height: 26px;
249
- padding: 4px 20px 4px 5px;
250
- margin: 0;
251
-
252
- outline: 0;
253
- font-family: sans-serif;
254
- font-size: 1em;
255
-
256
- border: 1px solid #aaa;
257
- border-radius: 0;
258
-
259
- -webkit-box-shadow: none;
260
- box-shadow: none;
261
-
262
- background: #fff url(<%= asset_path('select2.png') %>) no-repeat 100% -22px;
263
- background: url(<%= asset_path('select2.png') %>) no-repeat 100% -22px, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, #fff), color-stop(0.99, #eee));
264
- background: url(<%= asset_path('select2.png') %>) no-repeat 100% -22px, -webkit-linear-gradient(center bottom, #fff 85%, #eee 99%);
265
- background: url(<%= asset_path('select2.png') %>) no-repeat 100% -22px, -moz-linear-gradient(center bottom, #fff 85%, #eee 99%);
266
- background: url(<%= asset_path('select2.png') %>) no-repeat 100% -22px, linear-gradient(to bottom, #fff 85%, #eee 99%) 0 0;
267
- }
268
-
269
- html[dir="rtl"] .select2-search input {
270
- padding: 4px 5px 4px 20px;
271
-
272
- background: #fff url(<%= asset_path('select2.png') %>) no-repeat -37px -22px;
273
- background: url(<%= asset_path('select2.png') %>) no-repeat -37px -22px, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, #fff), color-stop(0.99, #eee));
274
- background: url(<%= asset_path('select2.png') %>) no-repeat -37px -22px, -webkit-linear-gradient(center bottom, #fff 85%, #eee 99%);
275
- background: url(<%= asset_path('select2.png') %>) no-repeat -37px -22px, -moz-linear-gradient(center bottom, #fff 85%, #eee 99%);
276
- background: url(<%= asset_path('select2.png') %>) no-repeat -37px -22px, linear-gradient(to bottom, #fff 85%, #eee 99%) 0 0;
277
- }
278
-
279
- .select2-drop.select2-drop-above .select2-search input {
280
- margin-top: 4px;
281
- }
282
-
283
- .select2-search input.select2-active {
284
- background: #fff url(<%= asset_path('select2-spinner.gif') %>) no-repeat 100%;
285
- background: url(<%= asset_path('select2-spinner.gif') %>) no-repeat 100%, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, #fff), color-stop(0.99, #eee));
286
- background: url(<%= asset_path('select2-spinner.gif') %>) no-repeat 100%, -webkit-linear-gradient(center bottom, #fff 85%, #eee 99%);
287
- background: url(<%= asset_path('select2-spinner.gif') %>) no-repeat 100%, -moz-linear-gradient(center bottom, #fff 85%, #eee 99%);
288
- background: url(<%= asset_path('select2-spinner.gif') %>) no-repeat 100%, linear-gradient(to bottom, #fff 85%, #eee 99%) 0 0;
289
- }
290
-
291
- .select2-container-active .select2-choice,
292
- .select2-container-active .select2-choices {
293
- border: 1px solid #5897fb;
294
- outline: none;
295
-
296
- -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, .3);
297
- box-shadow: 0 0 5px rgba(0, 0, 0, .3);
298
- }
299
-
300
- .select2-dropdown-open .select2-choice {
301
- border-bottom-color: transparent;
302
- -webkit-box-shadow: 0 1px 0 #fff inset;
303
- box-shadow: 0 1px 0 #fff inset;
304
-
305
- border-bottom-left-radius: 0;
306
- border-bottom-right-radius: 0;
307
-
308
- background-color: #eee;
309
- background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #fff), color-stop(0.5, #eee));
310
- background-image: -webkit-linear-gradient(center bottom, #fff 0%, #eee 50%);
311
- background-image: -moz-linear-gradient(center bottom, #fff 0%, #eee 50%);
312
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#ffffff', GradientType=0);
313
- background-image: linear-gradient(to top, #fff 0%, #eee 50%);
314
- }
315
-
316
- .select2-dropdown-open.select2-drop-above .select2-choice,
317
- .select2-dropdown-open.select2-drop-above .select2-choices {
318
- border: 1px solid #5897fb;
319
- border-top-color: transparent;
320
-
321
- background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #fff), color-stop(0.5, #eee));
322
- background-image: -webkit-linear-gradient(center top, #fff 0%, #eee 50%);
323
- background-image: -moz-linear-gradient(center top, #fff 0%, #eee 50%);
324
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#ffffff', GradientType=0);
325
- background-image: linear-gradient(to bottom, #fff 0%, #eee 50%);
326
- }
327
-
328
- .select2-dropdown-open .select2-choice .select2-arrow {
329
- background: transparent;
330
- border-left: none;
331
- filter: none;
332
- }
333
- html[dir="rtl"] .select2-dropdown-open .select2-choice .select2-arrow {
334
- border-right: none;
335
- }
336
-
337
- .select2-dropdown-open .select2-choice .select2-arrow b {
338
- background-position: -18px 1px;
339
- }
340
-
341
- html[dir="rtl"] .select2-dropdown-open .select2-choice .select2-arrow b {
342
- background-position: -16px 1px;
343
- }
344
-
345
- .select2-hidden-accessible {
346
- border: 0;
347
- clip: rect(0 0 0 0);
348
- height: 1px;
349
- margin: -1px;
350
- overflow: hidden;
351
- padding: 0;
352
- position: absolute;
353
- width: 1px;
354
- }
355
-
356
- /* results */
357
- .select2-results {
358
- max-height: 200px;
359
- padding: 0 0 0 4px;
360
- margin: 4px 4px 4px 0;
361
- position: relative;
362
- overflow-x: hidden;
363
- overflow-y: auto;
364
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
365
- }
366
-
367
- html[dir="rtl"] .select2-results {
368
- padding: 0 4px 0 0;
369
- margin: 4px 0 4px 4px;
370
- }
371
-
372
- .select2-results ul.select2-result-sub {
373
- margin: 0;
374
- padding-left: 0;
375
- }
376
-
377
- .select2-results li {
378
- list-style: none;
379
- display: list-item;
380
- background-image: none;
381
- }
382
-
383
- .select2-results li.select2-result-with-children > .select2-result-label {
384
- font-weight: bold;
385
- }
386
-
387
- .select2-results .select2-result-label {
388
- padding: 3px 7px 4px;
389
- margin: 0;
390
- cursor: pointer;
391
-
392
- min-height: 1em;
393
-
394
- -webkit-touch-callout: none;
395
- -webkit-user-select: none;
396
- -moz-user-select: none;
397
- -ms-user-select: none;
398
- user-select: none;
399
- }
400
-
401
- .select2-results-dept-1 .select2-result-label { padding-left: 20px }
402
- .select2-results-dept-2 .select2-result-label { padding-left: 40px }
403
- .select2-results-dept-3 .select2-result-label { padding-left: 60px }
404
- .select2-results-dept-4 .select2-result-label { padding-left: 80px }
405
- .select2-results-dept-5 .select2-result-label { padding-left: 100px }
406
- .select2-results-dept-6 .select2-result-label { padding-left: 110px }
407
- .select2-results-dept-7 .select2-result-label { padding-left: 120px }
408
-
409
- .select2-results .select2-highlighted {
410
- background: #3875d7;
411
- color: #fff;
412
- }
413
-
414
- .select2-results li em {
415
- background: #feffde;
416
- font-style: normal;
417
- }
418
-
419
- .select2-results .select2-highlighted em {
420
- background: transparent;
421
- }
422
-
423
- .select2-results .select2-highlighted ul {
424
- background: #fff;
425
- color: #000;
426
- }
427
-
428
-
429
- .select2-results .select2-no-results,
430
- .select2-results .select2-searching,
431
- .select2-results .select2-selection-limit {
432
- background: #f4f4f4;
433
- display: list-item;
434
- padding-left: 5px;
435
- }
436
-
437
- /*
438
- disabled look for disabled choices in the results dropdown
439
- */
440
- .select2-results .select2-disabled.select2-highlighted {
441
- color: #666;
442
- background: #f4f4f4;
443
- display: list-item;
444
- cursor: default;
445
- }
446
- .select2-results .select2-disabled {
447
- background: #f4f4f4;
448
- display: list-item;
449
- cursor: default;
450
- }
451
-
452
- .select2-results .select2-selected {
453
- display: none;
454
- }
455
-
456
- .select2-more-results.select2-active {
457
- background: #f4f4f4 url(<%= asset_path('select2-spinner.gif') %>) no-repeat 100%;
458
- }
459
-
460
- .select2-more-results {
461
- background: #f4f4f4;
462
- display: list-item;
463
- }
464
-
465
- /* disabled styles */
466
-
467
- .select2-container.select2-container-disabled .select2-choice {
468
- background-color: #f4f4f4;
469
- background-image: none;
470
- border: 1px solid #ddd;
471
- cursor: default;
472
- }
473
-
474
- .select2-container.select2-container-disabled .select2-choice .select2-arrow {
475
- background-color: #f4f4f4;
476
- background-image: none;
477
- border-left: 0;
478
- }
479
-
480
- .select2-container.select2-container-disabled .select2-choice abbr {
481
- display: none;
482
- }
483
-
484
-
485
- /* multiselect */
486
-
487
- .select2-container-multi .select2-choices {
488
- height: auto !important;
489
- height: 1%;
490
- margin: 0;
491
- padding: 0 5px 0 0;
492
- position: relative;
493
-
494
- border: 1px solid #aaa;
495
- cursor: text;
496
- overflow: hidden;
497
-
498
- background-color: #fff;
499
- background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(1%, #eee), color-stop(15%, #fff));
500
- background-image: -webkit-linear-gradient(top, #eee 1%, #fff 15%);
501
- background-image: -moz-linear-gradient(top, #eee 1%, #fff 15%);
502
- background-image: linear-gradient(to bottom, #eee 1%, #fff 15%);
503
- }
504
-
505
- html[dir="rtl"] .select2-container-multi .select2-choices {
506
- padding: 0 0 0 5px;
507
- }
508
-
509
- .select2-locked {
510
- padding: 3px 5px 3px 5px !important;
511
- }
512
-
513
- .select2-container-multi .select2-choices {
514
- min-height: 26px;
515
- }
516
-
517
- .select2-container-multi.select2-container-active .select2-choices {
518
- border: 1px solid #5897fb;
519
- outline: none;
520
-
521
- -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, .3);
522
- box-shadow: 0 0 5px rgba(0, 0, 0, .3);
523
- }
524
- .select2-container-multi .select2-choices li {
525
- float: left;
526
- list-style: none;
527
- }
528
- html[dir="rtl"] .select2-container-multi .select2-choices li
529
- {
530
- float: right;
531
- }
532
- .select2-container-multi .select2-choices .select2-search-field {
533
- margin: 0;
534
- padding: 0;
535
- white-space: nowrap;
536
- }
537
-
538
- .select2-container-multi .select2-choices .select2-search-field input {
539
- padding: 5px;
540
- margin: 1px 0;
541
-
542
- font-family: sans-serif;
543
- font-size: 100%;
544
- color: #666;
545
- outline: 0;
546
- border: 0;
547
- -webkit-box-shadow: none;
548
- box-shadow: none;
549
- background: transparent !important;
550
- }
551
-
552
- .select2-container-multi .select2-choices .select2-search-field input.select2-active {
553
- background: #fff url(<%= asset_path('select2-spinner.gif') %>) no-repeat 100% !important;
554
- }
555
-
556
- .select2-default {
557
- color: #999 !important;
558
- }
559
-
560
- .select2-container-multi .select2-choices .select2-search-choice {
561
- padding: 3px 5px 3px 18px;
562
- margin: 3px 0 3px 5px;
563
- position: relative;
564
-
565
- line-height: 13px;
566
- color: #333;
567
- cursor: default;
568
- border: 1px solid #aaaaaa;
569
-
570
- border-radius: 3px;
571
-
572
- -webkit-box-shadow: 0 0 2px #fff inset, 0 1px 0 rgba(0, 0, 0, 0.05);
573
- box-shadow: 0 0 2px #fff inset, 0 1px 0 rgba(0, 0, 0, 0.05);
574
-
575
- background-clip: padding-box;
576
-
577
- -webkit-touch-callout: none;
578
- -webkit-user-select: none;
579
- -moz-user-select: none;
580
- -ms-user-select: none;
581
- user-select: none;
582
-
583
- background-color: #e4e4e4;
584
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#f4f4f4', GradientType=0);
585
- 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));
586
- background-image: -webkit-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
587
- background-image: -moz-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
588
- background-image: linear-gradient(to top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
589
- }
590
- html[dir="rtl"] .select2-container-multi .select2-choices .select2-search-choice
591
- {
592
- margin: 3px 5px 3px 0;
593
- padding: 3px 18px 3px 5px;
594
- }
595
- .select2-container-multi .select2-choices .select2-search-choice .select2-chosen {
596
- cursor: default;
597
- }
598
- .select2-container-multi .select2-choices .select2-search-choice-focus {
599
- background: #d4d4d4;
600
- }
601
-
602
- .select2-search-choice-close {
603
- display: block;
604
- width: 12px;
605
- height: 13px;
606
- position: absolute;
607
- right: 3px;
608
- top: 4px;
609
-
610
- font-size: 1px;
611
- outline: none;
612
- background: url(<%= asset_path('select2.png') %>) right top no-repeat;
613
- }
614
- html[dir="rtl"] .select2-search-choice-close {
615
- right: auto;
616
- left: 3px;
617
- }
618
-
619
- .select2-container-multi .select2-search-choice-close {
620
- left: 3px;
621
- }
622
-
623
- html[dir="rtl"] .select2-container-multi .select2-search-choice-close {
624
- left: auto;
625
- right: 2px;
626
- }
627
-
628
- .select2-container-multi .select2-choices .select2-search-choice .select2-search-choice-close:hover {
629
- background-position: right -11px;
630
- }
631
- .select2-container-multi .select2-choices .select2-search-choice-focus .select2-search-choice-close {
632
- background-position: right -11px;
633
- }
634
-
635
- /* disabled styles */
636
- .select2-container-multi.select2-container-disabled .select2-choices {
637
- background-color: #f4f4f4;
638
- background-image: none;
639
- border: 1px solid #ddd;
640
- cursor: default;
641
- }
642
-
643
- .select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice {
644
- padding: 3px 5px 3px 5px;
645
- border: 1px solid #ddd;
646
- background-image: none;
647
- background-color: #f4f4f4;
648
- }
649
-
650
- .select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice .select2-search-choice-close { display: none;
651
- background: none;
652
- }
653
- /* end multiselect */
654
-
655
-
656
- .select2-result-selectable .select2-match,
657
- .select2-result-unselectable .select2-match {
658
- text-decoration: underline;
659
- }
660
-
661
- .select2-offscreen, .select2-offscreen:focus {
662
- clip: rect(0 0 0 0) !important;
663
- width: 1px !important;
664
- height: 1px !important;
665
- border: 0 !important;
666
- margin: 0 !important;
667
- padding: 0 !important;
668
- overflow: hidden !important;
669
- position: absolute !important;
670
- outline: 0 !important;
671
- left: 0px !important;
672
- top: 0px !important;
673
- }
674
-
675
- .select2-display-none {
676
- display: none;
677
- }
678
-
679
- .select2-measure-scrollbar {
680
- position: absolute;
681
- top: -10000px;
682
- left: -10000px;
683
- width: 100px;
684
- height: 100px;
685
- overflow: scroll;
686
- }
687
-
688
- /* Retina-ize icons */
689
-
690
- @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 2dppx) {
691
- .select2-search input,
692
- .select2-search-choice-close,
693
- .select2-container .select2-choice abbr,
694
- .select2-container .select2-choice .select2-arrow b {
695
- background-image: url(<%= asset_path('select2x2.png') %>) !important;
696
- background-repeat: no-repeat !important;
697
- background-size: 60px 40px !important;
698
- }
699
-
700
- .select2-search input {
701
- background-position: 100% -21px !important;
702
- }
703
- }