@@ -68,9 +68,11 @@ textarea {
68
68
box-shadow : inset 0 1px darken (text - back , 5% ), 0 1px rgba (#f f f , .3 ), inset 0 800px 1px - 400px text - back ;
69
69
}
70
70
button ,[type = "submit" ],[type = "checkbox" ]+ i ,[type = "radio" ]+ i ,select + i {
71
+ background : border-med ;
71
72
background : - webkit-gradient (linear ,0 0 ,0 100% ,from (border-light ),to (border-dark ));
72
- background : - o-linear-gradient (border-light , border-dark );
73
73
background : - moz-linear-gradient (border-light , border-dark );
74
+ background : - ms-linear-gradient (border-light , border-dark );
75
+ background : - o-linear-gradient (border-light , border-dark );
74
76
background : linear-gradient (border-light , border-dark );
75
77
-moz- background-origin : border ;
76
78
background-origin : border-box ;
@@ -127,6 +129,9 @@ button:focus:active,[type="submit"]:focus:active,[type="checkbox"]:focus:active+
127
129
width : 11px ;
128
130
}
129
131
@media (-webkit-min-device-pixel-ratio: 2 ) {
132
+ /* This uses an svg file for the check on an iOS retina screen. Unfortunately,
133
+ the Android browser can't render SVGs. A cleaner check for SVG support would
134
+ be better here. */
130
135
[type = "checkbox" ]+ i :after {
131
136
background : url ("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIj8+PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjExcHgiIGhlaWdodD0iMTJweCI+PHBhdGggZmlsbD0iI0ZGRkZGRiIgZD0iTTksMS40MWMtMC4wMywwLjA0LTAuMDgsMC4wNi0wLjEsMC4xTDMuOTcsOUwxLjk4LDYuODZDMS41NSw2LjQsMC44Myw2LjM3LDAuMzcsNi44Qy0wLjEsNy4yMy0wLjEyLDcuOTYsMC4zMSw4LjQybDIuOTgsMy4yMUMzLjUsMTEuODcsMy44MSwxMiw0LjEyLDEyYzAuMDMsMCwwLjA2LDAsMC4xLDBjMC4zNS0wLjAzLDAuNjctMC4yMiwwLjg2LTAuNTFMOSw1LjUzVjEuNDF6Ii8+PHBhdGggZD0iTTQuMTIsMTFjLTAuMzIsMC0wLjYyLTAuMTMtMC44NC0wLjM3TDAuMzEsNy40MkMtMC4xMiw2Ljk2LTAuMSw2LjI0LDAuMzcsNS44YzAuNDYtMC40MywxLjE5LTAuNCwxLjYyLDAuMDZMMy45Nyw4TDguOSwwLjUyYzAuMzUtMC41MywxLjA2LTAuNjgsMS41OS0wLjMzYzAuNTMsMC4zNSwwLjY3LDEuMDYsMC4zMywxLjU5bC01LjczLDguNzFjLTAuMTksMC4yOS0wLjUxLDAuNDgtMC44NiwwLjUxQzQuMTksMTEsNC4xNiwxMSw0LjEyLDExeiIvPjwvc3ZnPg==" ) no-repeat ;
132
137
height : 12px ;
@@ -168,6 +173,15 @@ select {
168
173
/* Select needs to be at least 17px wider than the container to hide the arrow */
169
174
width : 120% ;
170
175
}
176
+ @media (-webkit-min-device-pixel-ratio: 0 ) {
177
+ /* Should be webkit only */
178
+ select {
179
+ /* Only webkit supports fully resetting a select box */
180
+ padding : 0 21px 0 6px ;
181
+ width : auto ;
182
+ }
183
+ }
184
+
171
185
: -o-prefocus , .select > i {
172
186
/* Fix bug in Opera 10 */
173
187
float : left ;
@@ -182,13 +196,6 @@ select {
182
196
: -o-prefocus , select :focus {
183
197
background : transparent ;
184
198
}
185
- @media (-webkit-min-device-pixel-ratio: 0 ) {
186
- select {
187
- /* Only WebKit supports fully resetting a select box */
188
- padding : 0 21px 0 6px ;
189
- width : auto ;
190
- }
191
- }
192
199
select+ i {
193
200
position : absolute ;
194
201
top : 0 ;
0 commit comments