select2-rails 3.3.2 → 3.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/app/assets/javascripts/select2.js +548 -280
- data/app/assets/stylesheets/select2.css.scss +60 -24
- data/lib/select2-rails/version.rb +1 -1
- metadata +2 -3
- data/app/assets/images/spinner.gif +0 -0
@@ -1,7 +1,8 @@
|
|
1
1
|
/*
|
2
|
-
Version: 3.
|
2
|
+
Version: 3.4.0 Timestamp: Tue May 14 08:27:33 PDT 2013
|
3
3
|
*/
|
4
4
|
.select2-container {
|
5
|
+
margin: 0;
|
5
6
|
position: relative;
|
6
7
|
display: inline-block;
|
7
8
|
/* inline-block for ie7 */
|
@@ -81,6 +82,10 @@ Version: 3.3.2 Timestamp: Mon Mar 25 12:14:18 PDT 2013
|
|
81
82
|
background-image: linear-gradient(top, #eeeeee 0%,#ffffff 90%);
|
82
83
|
}
|
83
84
|
|
85
|
+
.select2-container.select2-allowclear .select2-choice span {
|
86
|
+
margin-right: 42px;
|
87
|
+
}
|
88
|
+
|
84
89
|
.select2-container .select2-choice span {
|
85
90
|
margin-right: 26px;
|
86
91
|
display: block;
|
@@ -94,11 +99,11 @@ Version: 3.3.2 Timestamp: Mon Mar 25 12:14:18 PDT 2013
|
|
94
99
|
}
|
95
100
|
|
96
101
|
.select2-container .select2-choice abbr {
|
97
|
-
display:
|
102
|
+
display: none;
|
98
103
|
width: 12px;
|
99
104
|
height: 12px;
|
100
105
|
position: absolute;
|
101
|
-
right:
|
106
|
+
right: 24px;
|
102
107
|
top: 8px;
|
103
108
|
|
104
109
|
font-size: 1px;
|
@@ -109,6 +114,11 @@ Version: 3.3.2 Timestamp: Mon Mar 25 12:14:18 PDT 2013
|
|
109
114
|
cursor: pointer;
|
110
115
|
outline: 0;
|
111
116
|
}
|
117
|
+
|
118
|
+
.select2-container.select2-allowclear .select2-choice abbr {
|
119
|
+
display: inline-block;
|
120
|
+
}
|
121
|
+
|
112
122
|
.select2-container .select2-choice abbr:hover {
|
113
123
|
background-position: right -11px;
|
114
124
|
cursor: pointer;
|
@@ -119,11 +129,6 @@ Version: 3.3.2 Timestamp: Mon Mar 25 12:14:18 PDT 2013
|
|
119
129
|
left: 0;
|
120
130
|
top: 0;
|
121
131
|
z-index: 9998;
|
122
|
-
background-color: #fff;
|
123
|
-
opacity: 0;
|
124
|
-
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; /* works in IE 8 */
|
125
|
-
filter: "alpha(opacity=0)"; /* expected to work in IE 8 */
|
126
|
-
filter: alpha(opacity=0); /* IE 4-7 */
|
127
132
|
}
|
128
133
|
|
129
134
|
.select2-drop {
|
@@ -147,6 +152,15 @@ Version: 3.3.2 Timestamp: Mon Mar 25 12:14:18 PDT 2013
|
|
147
152
|
box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
|
148
153
|
}
|
149
154
|
|
155
|
+
.select2-drop-auto-width {
|
156
|
+
border-top: 1px solid #aaa;
|
157
|
+
width: auto;
|
158
|
+
}
|
159
|
+
|
160
|
+
.select2-drop-auto-width .select2-search {
|
161
|
+
padding-top: 4px;
|
162
|
+
}
|
163
|
+
|
150
164
|
.select2-drop.select2-drop-above {
|
151
165
|
margin-top: 1px;
|
152
166
|
border-top: 1px solid #aaa;
|
@@ -162,7 +176,7 @@ Version: 3.3.2 Timestamp: Mon Mar 25 12:14:18 PDT 2013
|
|
162
176
|
}
|
163
177
|
|
164
178
|
.select2-container .select2-choice div {
|
165
|
-
display: block;
|
179
|
+
display: inline-block;
|
166
180
|
width: 18px;
|
167
181
|
height: 100%;
|
168
182
|
position: absolute;
|
@@ -209,12 +223,6 @@ Version: 3.3.2 Timestamp: Mon Mar 25 12:14:18 PDT 2013
|
|
209
223
|
white-space: nowrap;
|
210
224
|
}
|
211
225
|
|
212
|
-
.select2-search-hidden {
|
213
|
-
display: block;
|
214
|
-
position: absolute;
|
215
|
-
left: -10000px;
|
216
|
-
}
|
217
|
-
|
218
226
|
.select2-search input {
|
219
227
|
width: 100%;
|
220
228
|
height: auto !important;
|
@@ -292,6 +300,20 @@ Version: 3.3.2 Timestamp: Mon Mar 25 12:14:18 PDT 2013
|
|
292
300
|
background-image: linear-gradient(top, #ffffff 0%,#eeeeee 50%);
|
293
301
|
}
|
294
302
|
|
303
|
+
.select2-dropdown-open.select2-drop-above .select2-choice,
|
304
|
+
.select2-dropdown-open.select2-drop-above .select2-choices {
|
305
|
+
border: 1px solid #5897fb;
|
306
|
+
border-top-color: transparent;
|
307
|
+
|
308
|
+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, white), color-stop(0.5, #eeeeee));
|
309
|
+
background-image: -webkit-linear-gradient(center top, white 0%, #eeeeee 50%);
|
310
|
+
background-image: -moz-linear-gradient(center top, white 0%, #eeeeee 50%);
|
311
|
+
background-image: -o-linear-gradient(top, white 0%, #eeeeee 50%);
|
312
|
+
background-image: -ms-linear-gradient(bottom, #ffffff 0%,#eeeeee 50%);
|
313
|
+
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#ffffff',GradientType=0 );
|
314
|
+
background-image: linear-gradient(bottom, #ffffff 0%,#eeeeee 50%);
|
315
|
+
}
|
316
|
+
|
295
317
|
.select2-dropdown-open .select2-choice div {
|
296
318
|
background: transparent;
|
297
319
|
border-left: none;
|
@@ -314,6 +336,7 @@ Version: 3.3.2 Timestamp: Mon Mar 25 12:14:18 PDT 2013
|
|
314
336
|
|
315
337
|
.select2-results ul.select2-result-sub {
|
316
338
|
margin: 0;
|
339
|
+
padding-left: 0;
|
317
340
|
}
|
318
341
|
|
319
342
|
.select2-results ul.select2-result-sub > li .select2-result-label { padding-left: 20px }
|
@@ -420,7 +443,7 @@ disabled look for disabled choices in the results dropdown
|
|
420
443
|
}
|
421
444
|
|
422
445
|
.select2-container.select2-container-disabled .select2-choice abbr {
|
423
|
-
display: none
|
446
|
+
display: none;
|
424
447
|
}
|
425
448
|
|
426
449
|
|
@@ -579,8 +602,8 @@ disabled look for disabled choices in the results dropdown
|
|
579
602
|
background-color: #f4f4f4;
|
580
603
|
}
|
581
604
|
|
582
|
-
.select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice .select2-search-choice-close {
|
583
|
-
|
605
|
+
.select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice .select2-search-choice-close { display: none;
|
606
|
+
background:none;
|
584
607
|
}
|
585
608
|
/* end multiselect */
|
586
609
|
|
@@ -590,17 +613,31 @@ disabled look for disabled choices in the results dropdown
|
|
590
613
|
text-decoration: underline;
|
591
614
|
}
|
592
615
|
|
593
|
-
.select2-offscreen {
|
594
|
-
border: 0;
|
616
|
+
.select2-offscreen, .select2-offscreen:focus {
|
595
617
|
clip: rect(0 0 0 0);
|
618
|
+
width: 1px;
|
596
619
|
height: 1px;
|
597
|
-
|
598
|
-
|
620
|
+
border: 0;
|
621
|
+
margin: 0;
|
599
622
|
padding: 0;
|
623
|
+
overflow: hidden;
|
600
624
|
position: absolute;
|
601
|
-
|
625
|
+
outline: 0;
|
626
|
+
left: 0px;
|
602
627
|
}
|
603
628
|
|
629
|
+
.select2-display-none {
|
630
|
+
display: none;
|
631
|
+
}
|
632
|
+
|
633
|
+
.select2-measure-scrollbar {
|
634
|
+
position: absolute;
|
635
|
+
top: -10000px;
|
636
|
+
left: -10000px;
|
637
|
+
width: 100px;
|
638
|
+
height: 100px;
|
639
|
+
overflow: scroll;
|
640
|
+
}
|
604
641
|
/* Retina-ize icons */
|
605
642
|
|
606
643
|
@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 144dpi) {
|
@@ -613,4 +650,3 @@ disabled look for disabled choices in the results dropdown
|
|
613
650
|
background-position: 100% -21px !important;
|
614
651
|
}
|
615
652
|
}
|
616
|
-
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: select2-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.4.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-05-
|
13
|
+
date: 2013-05-25 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: thor
|
@@ -110,7 +110,6 @@ files:
|
|
110
110
|
- app/assets/images/select2-spinner.gif
|
111
111
|
- app/assets/images/select2.png
|
112
112
|
- app/assets/images/select2x2.png
|
113
|
-
- app/assets/images/spinner.gif
|
114
113
|
- app/assets/javascripts/select2.js
|
115
114
|
- app/assets/stylesheets/select2.css.scss
|
116
115
|
- lib/select2-rails.rb
|
Binary file
|