Skip to content

Commit b7b292b

Browse files
committed
Update select2.css
-ms-box-sizing does not exist, Konqueror does not need prefix. -ms-text-overflow does not exist, Opera does not need prefix. -moz-border-radius and -webkit-border-radius not needed anymore. -moz-background-clip and -webkit-background-clip not needed anymore. -moz-box-shadow not needed anymore (-webkit still used for Android 2.3)
1 parent be535c7 commit b7b292b

1 file changed

Lines changed: 14 additions & 51 deletions

File tree

select2.css

Lines changed: 14 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,9 @@ Version: @@ver@@ Timestamp: @@timestamp@@
2020
container without overlap because of margin/padding.
2121
2222
More Info : http://www.quirksmode.org/css/box.html
23-
*/
23+
/*
2424
-webkit-box-sizing: border-box; /* webkit */
25-
-khtml-box-sizing: border-box; /* konqueror */
2625
-moz-box-sizing: border-box; /* firefox */
27-
-ms-box-sizing: border-box; /* ie */
2826
box-sizing: border-box; /* css3 */
2927
}
3028

@@ -41,13 +39,9 @@ Version: @@ver@@ Timestamp: @@timestamp@@
4139
color: #444;
4240
text-decoration: none;
4341

44-
-webkit-border-radius: 4px;
45-
-moz-border-radius: 4px;
46-
border-radius: 4px;
42+
border-radius: 4px;
4743

48-
-webkit-background-clip: padding-box;
49-
-moz-background-clip: padding;
50-
background-clip: padding-box;
44+
background-clip: padding-box;
5145

5246
-webkit-touch-callout: none;
5347
-webkit-user-select: none;
@@ -69,9 +63,7 @@ Version: @@ver@@ Timestamp: @@timestamp@@
6963
.select2-container.select2-drop-above .select2-choice {
7064
border-bottom-color: #aaa;
7165

72-
-webkit-border-radius:0 0 4px 4px;
73-
-moz-border-radius:0 0 4px 4px;
74-
border-radius:0 0 4px 4px;
66+
border-radius:0 0 4px 4px;
7567

7668
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #eeeeee), color-stop(0.9, white));
7769
background-image: -webkit-linear-gradient(center bottom, #eeeeee 0%, white 90%);
@@ -93,9 +85,7 @@ Version: @@ver@@ Timestamp: @@timestamp@@
9385

9486
white-space: nowrap;
9587

96-
-ms-text-overflow: ellipsis;
97-
-o-text-overflow: ellipsis;
98-
text-overflow: ellipsis;
88+
text-overflow: ellipsis;
9989
}
10090

10191
.select2-container .select2-choice abbr {
@@ -162,12 +152,9 @@ Version: @@ver@@ Timestamp: @@timestamp@@
162152
border: 1px solid #aaa;
163153
border-top: 0;
164154

165-
-webkit-border-radius: 0 0 4px 4px;
166-
-moz-border-radius: 0 0 4px 4px;
167-
border-radius: 0 0 4px 4px;
155+
border-radius: 0 0 4px 4px;
168156

169157
-webkit-box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
170-
-moz-box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
171158
box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
172159
}
173160

@@ -185,12 +172,9 @@ Version: @@ver@@ Timestamp: @@timestamp@@
185172
border-top: 1px solid #aaa;
186173
border-bottom: 0;
187174

188-
-webkit-border-radius: 4px 4px 0 0;
189-
-moz-border-radius: 4px 4px 0 0;
190-
border-radius: 4px 4px 0 0;
175+
border-radius: 4px 4px 0 0;
191176

192177
-webkit-box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
193-
-moz-box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
194178
box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
195179
}
196180

@@ -212,13 +196,9 @@ Version: @@ver@@ Timestamp: @@timestamp@@
212196
top: 0;
213197

214198
border-left: 1px solid #aaa;
215-
-webkit-border-radius: 0 4px 4px 0;
216-
-moz-border-radius: 0 4px 4px 0;
217-
border-radius: 0 4px 4px 0;
199+
border-radius: 0 4px 4px 0;
218200

219-
-webkit-background-clip: padding-box;
220-
-moz-background-clip: padding;
221-
background-clip: padding-box;
201+
background-clip: padding-box;
222202

223203
background: #ccc;
224204
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #ccc), color-stop(0.6, #eee));
@@ -263,12 +243,9 @@ Version: @@ver@@ Timestamp: @@timestamp@@
263243
font-size: 1em;
264244

265245
border: 1px solid #aaa;
266-
-webkit-border-radius: 0;
267-
-moz-border-radius: 0;
268-
border-radius: 0;
246+
border-radius: 0;
269247

270248
-webkit-box-shadow: none;
271-
-moz-box-shadow: none;
272249
box-shadow: none;
273250

274251
background: #fff url('select2.png') no-repeat 100% -22px;
@@ -300,23 +277,16 @@ Version: @@ver@@ Timestamp: @@timestamp@@
300277
outline: none;
301278

302279
-webkit-box-shadow: 0 0 5px rgba(0,0,0,.3);
303-
-moz-box-shadow: 0 0 5px rgba(0,0,0,.3);
304280
box-shadow: 0 0 5px rgba(0,0,0,.3);
305281
}
306282

307283
.select2-dropdown-open .select2-choice {
308284
border-bottom-color: transparent;
309285
-webkit-box-shadow: 0 1px 0 #fff inset;
310-
-moz-box-shadow: 0 1px 0 #fff inset;
311286
box-shadow: 0 1px 0 #fff inset;
312287

313-
-webkit-border-bottom-left-radius: 0;
314-
-moz-border-radius-bottomleft: 0;
315-
border-bottom-left-radius: 0;
316-
317-
-webkit-border-bottom-right-radius: 0;
318-
-moz-border-radius-bottomright: 0;
319-
border-bottom-right-radius: 0;
288+
border-bottom-left-radius: 0;
289+
border-bottom-right-radius: 0;
320290

321291
background-color: #eee;
322292
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, white), color-stop(0.5, #eeeeee));
@@ -510,7 +480,6 @@ disabled look for disabled choices in the results dropdown
510480
outline: none;
511481

512482
-webkit-box-shadow: 0 0 5px rgba(0,0,0,.3);
513-
-moz-box-shadow: 0 0 5px rgba(0,0,0,.3);
514483
box-shadow: 0 0 5px rgba(0,0,0,.3);
515484
}
516485
.select2-container-multi .select2-choices li {
@@ -533,7 +502,6 @@ disabled look for disabled choices in the results dropdown
533502
outline: 0;
534503
border: 0;
535504
-webkit-box-shadow: none;
536-
-moz-box-shadow: none;
537505
box-shadow: none;
538506
background: transparent !important;
539507
}
@@ -556,17 +524,12 @@ disabled look for disabled choices in the results dropdown
556524
cursor: default;
557525
border: 1px solid #aaaaaa;
558526

559-
-webkit-border-radius: 3px;
560-
-moz-border-radius: 3px;
561-
border-radius: 3px;
527+
border-radius: 3px;
562528

563529
-webkit-box-shadow: 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
564-
-moz-box-shadow: 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
565530
box-shadow: 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
566531

567-
-webkit-background-clip: padding-box;
568-
-moz-background-clip: padding;
569-
background-clip: padding-box;
532+
background-clip: padding-box;
570533

571534
-webkit-touch-callout: none;
572535
-webkit-user-select: none;

0 commit comments

Comments
 (0)