select2-rails 3.5.4 → 3.5.5
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.
- checksums.yaml +13 -5
- data/README.md +2 -2
- data/app/assets/javascripts/select2.js +232 -90
- data/app/assets/javascripts/select2_locale_ar.js +8 -8
- data/app/assets/javascripts/select2_locale_bg.js +8 -7
- data/app/assets/javascripts/select2_locale_ca.js +2 -2
- data/app/assets/javascripts/select2_locale_cs.js +2 -2
- data/app/assets/javascripts/select2_locale_de.js +2 -2
- data/app/assets/javascripts/select2_locale_el.js +7 -7
- data/app/assets/javascripts/select2_locale_es.js +4 -4
- data/app/assets/javascripts/select2_locale_eu.js +2 -2
- data/app/assets/javascripts/select2_locale_fa.js +7 -5
- data/app/assets/javascripts/select2_locale_fi.js +2 -2
- data/app/assets/javascripts/select2_locale_fr.js +2 -2
- data/app/assets/javascripts/select2_locale_gl.js +2 -2
- data/app/assets/javascripts/select2_locale_he.js +2 -2
- data/app/assets/javascripts/select2_locale_hr.js +10 -30
- data/app/assets/javascripts/select2_locale_hu.js +3 -3
- data/app/assets/javascripts/select2_locale_id.js +2 -2
- data/app/assets/javascripts/select2_locale_is.js +4 -5
- data/app/assets/javascripts/select2_locale_it.js +2 -2
- data/app/assets/javascripts/select2_locale_ko.js +2 -2
- data/app/assets/javascripts/select2_locale_lt.js +12 -17
- data/app/assets/javascripts/select2_locale_lv.js +8 -7
- data/app/assets/javascripts/select2_locale_mk.js +2 -2
- data/app/assets/javascripts/select2_locale_ms.js +2 -2
- data/app/assets/javascripts/select2_locale_nl.js +2 -2
- data/app/assets/javascripts/select2_locale_no.js +2 -2
- data/app/assets/javascripts/select2_locale_pl.js +13 -28
- data/app/assets/javascripts/select2_locale_pt-BR.js +2 -2
- data/app/assets/javascripts/select2_locale_pt-PT.js +2 -2
- data/app/assets/javascripts/select2_locale_ro.js +2 -2
- data/app/assets/javascripts/select2_locale_rs.js +17 -0
- data/app/assets/javascripts/select2_locale_ru.js +12 -6
- data/app/assets/javascripts/select2_locale_sk.js +2 -2
- data/app/assets/javascripts/select2_locale_sv.js +2 -2
- data/app/assets/javascripts/select2_locale_th.js +2 -2
- data/app/assets/javascripts/select2_locale_tr.js +2 -2
- data/app/assets/javascripts/select2_locale_uk.js +12 -7
- data/app/assets/javascripts/select2_locale_vi.js +2 -2
- data/app/assets/javascripts/select2_locale_zh-CN.js +2 -2
- data/app/assets/javascripts/select2_locale_zh-TW.js +2 -2
- data/app/assets/stylesheets/select2-bootstrap.css +1 -1
- data/app/assets/stylesheets/select2.css.erb +60 -29
- data/lib/select2-rails/source_file.rb +1 -1
- data/lib/select2-rails/version.rb +1 -1
- metadata +8 -8
@@ -1,37 +1,22 @@
|
|
1
1
|
/**
|
2
2
|
* Select2 Polish translation.
|
3
3
|
*
|
4
|
-
*
|
4
|
+
* @author Jan Kondratowicz <jan@kondratowicz.pl>
|
5
|
+
* @author Uriy Efremochkin <efremochkin@uriy.me>
|
5
6
|
*/
|
6
7
|
(function ($) {
|
7
8
|
"use strict";
|
8
|
-
|
9
|
-
var pl_suffix = function(n) {
|
10
|
-
if(n == 1) return "";
|
11
|
-
if((n%100 > 1 && n%100 < 5) || (n%100 > 20 && n%10 > 1 && n%10 < 5)) return "i";
|
12
|
-
return "ów";
|
13
|
-
};
|
14
9
|
|
15
10
|
$.extend($.fn.select2.defaults, {
|
16
|
-
formatNoMatches: function () {
|
17
|
-
|
18
|
-
},
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
},
|
23
|
-
formatInputTooLong: function (input, max) {
|
24
|
-
var n = input.length - max;
|
25
|
-
return "Wpisana fraza jest za długa o " + n + " znak" + pl_suffix(n) + ".";
|
26
|
-
},
|
27
|
-
formatSelectionTooBig: function (limit) {
|
28
|
-
return "Możesz zaznaczyć najwyżej " + limit + " element" + pl_suffix(limit) + ".";
|
29
|
-
},
|
30
|
-
formatLoadMore: function (pageNumber) {
|
31
|
-
return "Ładowanie wyników...";
|
32
|
-
},
|
33
|
-
formatSearching: function () {
|
34
|
-
return "Szukanie...";
|
35
|
-
}
|
11
|
+
formatNoMatches: function () { return "Brak wyników"; },
|
12
|
+
formatInputTooShort: function (input, min) { return "Wpisz jeszcze" + character(min - input.length, "znak", "i"); },
|
13
|
+
formatInputTooLong: function (input, max) { return "Wpisana fraza jest za długa o" + character(input.length - max, "znak", "i"); },
|
14
|
+
formatSelectionTooBig: function (limit) { return "Możesz zaznaczyć najwyżej" + character(limit, "element", "y"); },
|
15
|
+
formatLoadMore: function (pageNumber) { return "Ładowanie wyników…"; },
|
16
|
+
formatSearching: function () { return "Szukanie…"; }
|
36
17
|
});
|
37
|
-
|
18
|
+
|
19
|
+
function character (n, word, pluralSuffix) {
|
20
|
+
return " " + n + " " + word + (n == 1 ? "" : n%10 < 5 && n%10 > 1 && (n%100 < 5 || n%100 > 20) ? pluralSuffix : "ów");
|
21
|
+
}
|
22
|
+
})(jQuery);
|
@@ -9,7 +9,7 @@
|
|
9
9
|
formatInputTooShort: function (input, min) { var n = min - input.length; return "Informe " + n + " caractere" + (n == 1? "" : "s"); },
|
10
10
|
formatInputTooLong: function (input, max) { var n = input.length - max; return "Apague " + n + " caractere" + (n == 1? "" : "s"); },
|
11
11
|
formatSelectionTooBig: function (limit) { return "Só é possível selecionar " + limit + " elemento" + (limit == 1 ? "" : "s"); },
|
12
|
-
formatLoadMore: function (pageNumber) { return "Carregando mais resultados
|
13
|
-
formatSearching: function () { return "Buscando
|
12
|
+
formatLoadMore: function (pageNumber) { return "Carregando mais resultados…"; },
|
13
|
+
formatSearching: function () { return "Buscando…"; }
|
14
14
|
});
|
15
15
|
})(jQuery);
|
@@ -9,7 +9,7 @@
|
|
9
9
|
formatInputTooShort: function (input, min) { var n = min - input.length; return "Introduza " + n + " car" + (n == 1 ? "ácter" : "acteres"); },
|
10
10
|
formatInputTooLong: function (input, max) { var n = input.length - max; return "Apague " + n + " car" + (n == 1 ? "ácter" : "acteres"); },
|
11
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
|
12
|
+
formatLoadMore: function (pageNumber) { return "A carregar mais resultados…"; },
|
13
|
+
formatSearching: function () { return "A pesquisar…"; }
|
14
14
|
});
|
15
15
|
})(jQuery);
|
@@ -9,7 +9,7 @@
|
|
9
9
|
formatInputTooShort: function (input, min) { var n = min - input.length; return "Vă rugăm să introduceți incă " + n + " caracter" + (n == 1 ? "" : "e"); },
|
10
10
|
formatInputTooLong: function (input, max) { var n = input.length - max; return "Vă rugăm să introduceți mai puțin de " + n + " caracter" + (n == 1? "" : "e"); },
|
11
11
|
formatSelectionTooBig: function (limit) { return "Aveți voie să selectați cel mult " + limit + " element" + (limit == 1 ? "" : "e"); },
|
12
|
-
formatLoadMore: function (pageNumber) { return "Se încarc
|
13
|
-
formatSearching: function () { return "Căutare
|
12
|
+
formatLoadMore: function (pageNumber) { return "Se încarcă…"; },
|
13
|
+
formatSearching: function () { return "Căutare…"; }
|
14
14
|
});
|
15
15
|
})(jQuery);
|
@@ -0,0 +1,17 @@
|
|
1
|
+
/**
|
2
|
+
* Select2 Serbian translation.
|
3
|
+
*
|
4
|
+
* @author Limon Monte <limon.monte@gmail.com>
|
5
|
+
*/
|
6
|
+
(function ($) {
|
7
|
+
"use strict";
|
8
|
+
|
9
|
+
$.extend($.fn.select2.defaults, {
|
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
|
+
})(jQuery);
|
@@ -1,15 +1,21 @@
|
|
1
1
|
/**
|
2
|
-
* Select2 Russian translation
|
2
|
+
* Select2 Russian translation.
|
3
|
+
*
|
4
|
+
* @author Uriy Efremochkin <efremochkin@uriy.me>
|
3
5
|
*/
|
4
6
|
(function ($) {
|
5
7
|
"use strict";
|
6
8
|
|
7
9
|
$.extend($.fn.select2.defaults, {
|
8
10
|
formatNoMatches: function () { return "Совпадений не найдено"; },
|
9
|
-
formatInputTooShort: function (input, min) {
|
10
|
-
formatInputTooLong: function (input, max) {
|
11
|
-
formatSelectionTooBig: function (limit) { return "Вы можете выбрать не более " + limit + " элемент" + (limit == 1 ? "а" : "ов"); },
|
12
|
-
formatLoadMore: function (pageNumber) { return "Загрузка
|
13
|
-
formatSearching: function () { return "
|
11
|
+
formatInputTooShort: function (input, min) { return "Пожалуйста, введите еще" + character(min - input.length); },
|
12
|
+
formatInputTooLong: function (input, max) { return "Пожалуйста, введите на" + character(input.length - max) + " меньше"; },
|
13
|
+
formatSelectionTooBig: function (limit) { return "Вы можете выбрать не более " + limit + " элемент" + (limit%10 == 1 && limit%100 != 11 ? "а" : "ов"); },
|
14
|
+
formatLoadMore: function (pageNumber) { return "Загрузка данных…"; },
|
15
|
+
formatSearching: function () { return "Поиск…"; }
|
14
16
|
});
|
17
|
+
|
18
|
+
function character (n) {
|
19
|
+
return " " + n + " символ" + (n%10 < 5 && n%10 > 0 && (n%100 < 5 || n%100 > 20) ? n%10 > 1 ? "a" : "" : "ов");
|
20
|
+
}
|
15
21
|
})(jQuery);
|
@@ -42,7 +42,7 @@
|
|
42
42
|
return "Môžete zvoliť najviac "+limit+" položiek";
|
43
43
|
}
|
44
44
|
},
|
45
|
-
formatLoadMore: function (pageNumber) { return "Načítavajú sa ďalšie výsledky
|
46
|
-
formatSearching: function () { return "Vyhľadávanie
|
45
|
+
formatLoadMore: function (pageNumber) { return "Načítavajú sa ďalšie výsledky…"; },
|
46
|
+
formatSearching: function () { return "Vyhľadávanie…"; }
|
47
47
|
});
|
48
48
|
})(jQuery);
|
@@ -11,7 +11,7 @@
|
|
11
11
|
formatInputTooShort: function (input, min) { var n = min - input.length; return "Var god skriv in " + n + (n>1 ? " till tecken" : " tecken till"); },
|
12
12
|
formatInputTooLong: function (input, max) { var n = input.length - max; return "Var god sudda ut " + n + " tecken"; },
|
13
13
|
formatSelectionTooBig: function (limit) { return "Du kan max välja " + limit + " element"; },
|
14
|
-
formatLoadMore: function (pageNumber) { return "Laddar fler resultat
|
15
|
-
formatSearching: function () { return "Söker
|
14
|
+
formatLoadMore: function (pageNumber) { return "Laddar fler resultat…"; },
|
15
|
+
formatSearching: function () { return "Söker…"; }
|
16
16
|
});
|
17
17
|
})(jQuery);
|
@@ -11,7 +11,7 @@
|
|
11
11
|
formatInputTooShort: function (input, min) { var n = min - input.length; return "โปรดพิมพ์เพิ่มอีก " + n + " ตัวอักษร"; },
|
12
12
|
formatInputTooLong: function (input, max) { var n = input.length - max; return "โปรดลบออก " + n + " ตัวอักษร"; },
|
13
13
|
formatSelectionTooBig: function (limit) { return "คุณสามารถเลือกได้ไม่เกิน " + limit + " รายการ"; },
|
14
|
-
formatLoadMore: function (pageNumber) { return "
|
15
|
-
formatSearching: function () { return "
|
14
|
+
formatLoadMore: function (pageNumber) { return "กำลังค้นข้อมูลเพิ่ม…"; },
|
15
|
+
formatSearching: function () { return "กำลังค้นข้อมูล…"; }
|
16
16
|
});
|
17
17
|
})(jQuery);
|
@@ -11,7 +11,7 @@
|
|
11
11
|
formatInputTooShort: function (input, min) { var n = min - input.length; return "En az " + n + " karakter daha girmelisiniz"; },
|
12
12
|
formatInputTooLong: function (input, max) { var n = input.length - max; return n + " karakter azaltmalısınız"; },
|
13
13
|
formatSelectionTooBig: function (limit) { return "Sadece " + limit + " seçim yapabilirsiniz"; },
|
14
|
-
formatLoadMore: function (pageNumber) { return "Daha fazla
|
15
|
-
formatSearching: function () { return "Aranıyor
|
14
|
+
formatLoadMore: function (pageNumber) { return "Daha fazla…"; },
|
15
|
+
formatSearching: function () { return "Aranıyor…"; }
|
16
16
|
});
|
17
17
|
})(jQuery);
|
@@ -1,17 +1,22 @@
|
|
1
1
|
/**
|
2
|
-
* Select2
|
2
|
+
* Select2 Ukrainian translation.
|
3
3
|
*
|
4
|
-
*
|
4
|
+
* @author bigmihail <bigmihail@bigmir.net>
|
5
|
+
* @author Uriy Efremochkin <efremochkin@uriy.me>
|
5
6
|
*/
|
6
7
|
(function ($) {
|
7
8
|
"use strict";
|
8
9
|
|
9
10
|
$.extend($.fn.select2.defaults, {
|
10
11
|
formatNoMatches: function () { return "Нічого не знайдено"; },
|
11
|
-
formatInputTooShort: function (input, min) {
|
12
|
-
formatInputTooLong: function (input, max) {
|
13
|
-
formatSelectionTooBig: function (limit) {
|
14
|
-
formatLoadMore: function (pageNumber) { return "Завантаження
|
15
|
-
formatSearching: function () { return "
|
12
|
+
formatInputTooShort: function (input, min) { return "Введіть буль ласка ще" + character(min - input.length, "символ"); },
|
13
|
+
formatInputTooLong: function (input, max) { return "Введіть буль ласка на" + character(input.length - max, "символ") + " менше"; },
|
14
|
+
formatSelectionTooBig: function (limit) { return "Ви можете вибрати лише" + character(limit, "елемент"); },
|
15
|
+
formatLoadMore: function (pageNumber) { return "Завантаження даних…"; },
|
16
|
+
formatSearching: function () { return "Пошук…"; }
|
16
17
|
});
|
18
|
+
|
19
|
+
function character (n, word) {
|
20
|
+
return " " + n + " " + word + (n%10 < 5 && n%10 > 0 && (n%100 < 5 || n%100 > 19) ? n%10 > 1 ? "и" : "" : "ів");
|
21
|
+
}
|
17
22
|
})(jQuery);
|
@@ -11,8 +11,8 @@
|
|
11
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
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
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
|
14
|
+
formatLoadMore: function (pageNumber) { return "Đang lấy thêm kết quả…"; },
|
15
|
+
formatSearching: function () { return "Đang tìm…"; }
|
16
16
|
});
|
17
17
|
})(jQuery);
|
18
18
|
|
@@ -8,7 +8,7 @@
|
|
8
8
|
formatInputTooShort: function (input, min) { var n = min - input.length; return "请再输入" + n + "个字符";},
|
9
9
|
formatInputTooLong: function (input, max) { var n = input.length - max; return "请删掉" + n + "个字符";},
|
10
10
|
formatSelectionTooBig: function (limit) { return "你只能选择最多" + limit + "项"; },
|
11
|
-
formatLoadMore: function (pageNumber) { return "
|
12
|
-
formatSearching: function () { return "
|
11
|
+
formatLoadMore: function (pageNumber) { return "加载结果中…"; },
|
12
|
+
formatSearching: function () { return "搜索中…"; }
|
13
13
|
});
|
14
14
|
})(jQuery);
|
@@ -8,7 +8,7 @@
|
|
8
8
|
formatInputTooShort: function (input, min) { var n = min - input.length; return "請再輸入" + n + "個字元";},
|
9
9
|
formatInputTooLong: function (input, max) { var n = input.length - max; return "請刪掉" + n + "個字元";},
|
10
10
|
formatSelectionTooBig: function (limit) { return "你只能選擇最多" + limit + "項"; },
|
11
|
-
formatLoadMore: function (pageNumber) { return "
|
12
|
-
formatSearching: function () { return "
|
11
|
+
formatLoadMore: function (pageNumber) { return "載入中…"; },
|
12
|
+
formatSearching: function () { return "搜尋中…"; }
|
13
13
|
});
|
14
14
|
})(jQuery);
|
@@ -2,7 +2,7 @@
|
|
2
2
|
//= depend_on_asset "select2-spinner.gif"
|
3
3
|
//= depend_on_asset "select2x2.png"
|
4
4
|
/*
|
5
|
-
Version: 3.4.
|
5
|
+
Version: 3.4.6 Timestamp: Sat Mar 22 22:30:15 EDT 2014
|
6
6
|
*/
|
7
7
|
.select2-container {
|
8
8
|
margin: 0;
|
@@ -21,7 +21,6 @@ Version: 3.4.5 Timestamp: Mon Nov 4 08:22:42 PST 2013
|
|
21
21
|
/*
|
22
22
|
Force border-box so that % widths fit the parent
|
23
23
|
container without overlap because of margin/padding.
|
24
|
-
|
25
24
|
More Info : http://www.quirksmode.org/css/box.html
|
26
25
|
*/
|
27
26
|
-webkit-box-sizing: border-box; /* webkit */
|
@@ -57,7 +56,7 @@ Version: 3.4.5 Timestamp: Mon Nov 4 08:22:42 PST 2013
|
|
57
56
|
background-image: -webkit-linear-gradient(center bottom, #eee 0%, #fff 50%);
|
58
57
|
background-image: -moz-linear-gradient(center bottom, #eee 0%, #fff 50%);
|
59
58
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#ffffff', endColorstr = '#eeeeee', GradientType = 0);
|
60
|
-
background-image: linear-gradient(top, #
|
59
|
+
background-image: linear-gradient(to top, #eee 0%, #fff 50%);
|
61
60
|
}
|
62
61
|
|
63
62
|
.select2-container.select2-drop-above .select2-choice {
|
@@ -69,7 +68,7 @@ Version: 3.4.5 Timestamp: Mon Nov 4 08:22:42 PST 2013
|
|
69
68
|
background-image: -webkit-linear-gradient(center bottom, #eee 0%, #fff 90%);
|
70
69
|
background-image: -moz-linear-gradient(center bottom, #eee 0%, #fff 90%);
|
71
70
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#eeeeee', GradientType=0);
|
72
|
-
background-image: linear-gradient(
|
71
|
+
background-image: linear-gradient(to bottom, #eee 0%, #fff 90%);
|
73
72
|
}
|
74
73
|
|
75
74
|
.select2-container.select2-allowclear .select2-choice .select2-chosen {
|
@@ -84,6 +83,8 @@ Version: 3.4.5 Timestamp: Mon Nov 4 08:22:42 PST 2013
|
|
84
83
|
white-space: nowrap;
|
85
84
|
|
86
85
|
text-overflow: ellipsis;
|
86
|
+
float: none;
|
87
|
+
width: auto;
|
87
88
|
}
|
88
89
|
|
89
90
|
.select2-container .select2-choice abbr {
|
@@ -148,15 +149,6 @@ Version: 3.4.5 Timestamp: Mon Nov 4 08:22:42 PST 2013
|
|
148
149
|
box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
|
149
150
|
}
|
150
151
|
|
151
|
-
.select2-drop-auto-width {
|
152
|
-
border-top: 1px solid #aaa;
|
153
|
-
width: auto;
|
154
|
-
}
|
155
|
-
|
156
|
-
.select2-drop-auto-width .select2-search {
|
157
|
-
padding-top: 4px;
|
158
|
-
}
|
159
|
-
|
160
152
|
.select2-drop.select2-drop-above {
|
161
153
|
margin-top: 1px;
|
162
154
|
border-top: 1px solid #aaa;
|
@@ -177,6 +169,15 @@ Version: 3.4.5 Timestamp: Mon Nov 4 08:22:42 PST 2013
|
|
177
169
|
border-top: 1px solid #5897fb;
|
178
170
|
}
|
179
171
|
|
172
|
+
.select2-drop-auto-width {
|
173
|
+
border-top: 1px solid #aaa;
|
174
|
+
width: auto;
|
175
|
+
}
|
176
|
+
|
177
|
+
.select2-drop-auto-width .select2-search {
|
178
|
+
padding-top: 4px;
|
179
|
+
}
|
180
|
+
|
180
181
|
.select2-container .select2-choice .select2-arrow {
|
181
182
|
display: inline-block;
|
182
183
|
width: 18px;
|
@@ -195,7 +196,7 @@ Version: 3.4.5 Timestamp: Mon Nov 4 08:22:42 PST 2013
|
|
195
196
|
background-image: -webkit-linear-gradient(center bottom, #ccc 0%, #eee 60%);
|
196
197
|
background-image: -moz-linear-gradient(center bottom, #ccc 0%, #eee 60%);
|
197
198
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#eeeeee', endColorstr = '#cccccc', GradientType = 0);
|
198
|
-
background-image: linear-gradient(top, #ccc 0%, #eee 60%);
|
199
|
+
background-image: linear-gradient(to top, #ccc 0%, #eee 60%);
|
199
200
|
}
|
200
201
|
|
201
202
|
.select2-container .select2-choice .select2-arrow b {
|
@@ -240,7 +241,7 @@ Version: 3.4.5 Timestamp: Mon Nov 4 08:22:42 PST 2013
|
|
240
241
|
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));
|
241
242
|
background: url(<%= asset_path('select2.png') %>) no-repeat 100% -22px, -webkit-linear-gradient(center bottom, #fff 85%, #eee 99%);
|
242
243
|
background: url(<%= asset_path('select2.png') %>) no-repeat 100% -22px, -moz-linear-gradient(center bottom, #fff 85%, #eee 99%);
|
243
|
-
background: url(<%= asset_path('select2.png') %>) no-repeat 100% -22px, linear-gradient(
|
244
|
+
background: url(<%= asset_path('select2.png') %>) no-repeat 100% -22px, linear-gradient(to bottom, #fff 85%, #eee 99%) 0 0;
|
244
245
|
}
|
245
246
|
|
246
247
|
.select2-drop.select2-drop-above .select2-search input {
|
@@ -252,7 +253,7 @@ Version: 3.4.5 Timestamp: Mon Nov 4 08:22:42 PST 2013
|
|
252
253
|
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));
|
253
254
|
background: url(<%= asset_path('select2-spinner.gif') %>) no-repeat 100%, -webkit-linear-gradient(center bottom, #fff 85%, #eee 99%);
|
254
255
|
background: url(<%= asset_path('select2-spinner.gif') %>) no-repeat 100%, -moz-linear-gradient(center bottom, #fff 85%, #eee 99%);
|
255
|
-
background: url(<%= asset_path('select2-spinner.gif') %>) no-repeat 100%, linear-gradient(
|
256
|
+
background: url(<%= asset_path('select2-spinner.gif') %>) no-repeat 100%, linear-gradient(to bottom, #fff 85%, #eee 99%) 0 0;
|
256
257
|
}
|
257
258
|
|
258
259
|
.select2-container-active .select2-choice,
|
@@ -277,7 +278,7 @@ Version: 3.4.5 Timestamp: Mon Nov 4 08:22:42 PST 2013
|
|
277
278
|
background-image: -webkit-linear-gradient(center bottom, #fff 0%, #eee 50%);
|
278
279
|
background-image: -moz-linear-gradient(center bottom, #fff 0%, #eee 50%);
|
279
280
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#ffffff', GradientType=0);
|
280
|
-
background-image: linear-gradient(top, #fff 0%, #eee 50%);
|
281
|
+
background-image: linear-gradient(to top, #fff 0%, #eee 50%);
|
281
282
|
}
|
282
283
|
|
283
284
|
.select2-dropdown-open.select2-drop-above .select2-choice,
|
@@ -289,7 +290,7 @@ Version: 3.4.5 Timestamp: Mon Nov 4 08:22:42 PST 2013
|
|
289
290
|
background-image: -webkit-linear-gradient(center top, #fff 0%, #eee 50%);
|
290
291
|
background-image: -moz-linear-gradient(center top, #fff 0%, #eee 50%);
|
291
292
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#ffffff', GradientType=0);
|
292
|
-
background-image: linear-gradient(bottom, #fff 0%, #eee 50%);
|
293
|
+
background-image: linear-gradient(to bottom, #fff 0%, #eee 50%);
|
293
294
|
}
|
294
295
|
|
295
296
|
.select2-dropdown-open .select2-choice .select2-arrow {
|
@@ -301,6 +302,17 @@ Version: 3.4.5 Timestamp: Mon Nov 4 08:22:42 PST 2013
|
|
301
302
|
background-position: -18px 1px;
|
302
303
|
}
|
303
304
|
|
305
|
+
.select2-hidden-accessible {
|
306
|
+
border: 0;
|
307
|
+
clip: rect(0 0 0 0);
|
308
|
+
height: 1px;
|
309
|
+
margin: -1px;
|
310
|
+
overflow: hidden;
|
311
|
+
padding: 0;
|
312
|
+
position: absolute;
|
313
|
+
width: 1px;
|
314
|
+
}
|
315
|
+
|
304
316
|
/* results */
|
305
317
|
.select2-results {
|
306
318
|
max-height: 200px;
|
@@ -374,6 +386,7 @@ Version: 3.4.5 Timestamp: Mon Nov 4 08:22:42 PST 2013
|
|
374
386
|
.select2-results .select2-selection-limit {
|
375
387
|
background: #f4f4f4;
|
376
388
|
display: list-item;
|
389
|
+
padding-left: 5px;
|
377
390
|
}
|
378
391
|
|
379
392
|
/*
|
@@ -441,7 +454,7 @@ disabled look for disabled choices in the results dropdown
|
|
441
454
|
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(1%, #eee), color-stop(15%, #fff));
|
442
455
|
background-image: -webkit-linear-gradient(top, #eee 1%, #fff 15%);
|
443
456
|
background-image: -moz-linear-gradient(top, #eee 1%, #fff 15%);
|
444
|
-
background-image: linear-gradient(
|
457
|
+
background-image: linear-gradient(to bottom, #eee 1%, #fff 15%);
|
445
458
|
}
|
446
459
|
|
447
460
|
.select2-locked {
|
@@ -463,6 +476,10 @@ disabled look for disabled choices in the results dropdown
|
|
463
476
|
float: left;
|
464
477
|
list-style: none;
|
465
478
|
}
|
479
|
+
html[dir="rtl"] .select2-container-multi .select2-choices li
|
480
|
+
{
|
481
|
+
float: right;
|
482
|
+
}
|
466
483
|
.select2-container-multi .select2-choices .select2-search-field {
|
467
484
|
margin: 0;
|
468
485
|
padding: 0;
|
@@ -519,7 +536,12 @@ disabled look for disabled choices in the results dropdown
|
|
519
536
|
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));
|
520
537
|
background-image: -webkit-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
|
521
538
|
background-image: -moz-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
|
522
|
-
background-image: linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
|
539
|
+
background-image: linear-gradient(to top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
|
540
|
+
}
|
541
|
+
html[dir="rtl"] .select2-container-multi .select2-choices .select2-search-choice
|
542
|
+
{
|
543
|
+
margin-left: 0;
|
544
|
+
margin-right: 5px;
|
523
545
|
}
|
524
546
|
.select2-container-multi .select2-choices .select2-search-choice .select2-chosen {
|
525
547
|
cursor: default;
|
@@ -540,6 +562,10 @@ disabled look for disabled choices in the results dropdown
|
|
540
562
|
outline: none;
|
541
563
|
background: url(<%= asset_path('select2.png') %>) right top no-repeat;
|
542
564
|
}
|
565
|
+
html[dir="rtl"] .select2-search-choice-close {
|
566
|
+
right: auto;
|
567
|
+
left: 3px;
|
568
|
+
}
|
543
569
|
|
544
570
|
.select2-container-multi .select2-search-choice-close {
|
545
571
|
left: 3px;
|
@@ -604,15 +630,20 @@ disabled look for disabled choices in the results dropdown
|
|
604
630
|
height: 100px;
|
605
631
|
overflow: scroll;
|
606
632
|
}
|
633
|
+
|
607
634
|
/* Retina-ize icons */
|
608
635
|
|
609
|
-
@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution:
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
636
|
+
@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 2dppx) {
|
637
|
+
.select2-search input,
|
638
|
+
.select2-search-choice-close,
|
639
|
+
.select2-container .select2-choice abbr,
|
640
|
+
.select2-container .select2-choice .select2-arrow b {
|
641
|
+
background-image: url(<%= asset_path('select2x2.png') %>) !important;
|
642
|
+
background-repeat: no-repeat !important;
|
643
|
+
background-size: 60px 40px !important;
|
644
|
+
}
|
645
|
+
|
646
|
+
.select2-search input {
|
647
|
+
background-position: 100% -21px !important;
|
648
|
+
}
|
618
649
|
}
|