Skip to content

Commit dedb54d

Browse files
author
scottjehl
committed
set native select with custom button to opacity 0 instead of 0.0001. Note: I thought it was 0.0001 for a reason, but this checks out fine in WP7, WebOS, Android,iOS, Chrome, Safari, Firefox 4, Firefox 3.6, Opera Desktop & Mobile, IE 7
IE 8, IE 9, Blackberry 6. Sooo... that covers it. Fixes jquery-archive#1216
1 parent 84ac4eb commit dedb54d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

themes/default/jquery.mobile.forms.select.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
.ui-select { display: block; position: relative; }
77
.ui-select select { position: absolute; left: -9999px; top: -9999px; }
88
.ui-select .ui-btn { overflow: hidden; }
9-
.ui-select .ui-btn select { cursor: pointer; -webkit-appearance: button; left: 0; top:0; width: 100%; height: 100%; opacity: 0.001; -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; filter: alpha(opacity=0); }
9+
.ui-select .ui-btn select { cursor: pointer; -webkit-appearance: button; left: 0; top:0; width: 100%; height: 100%; opacity: 0; -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; filter: alpha(opacity=0); }
1010
.ui-select .ui-btn select.ui-select-nativeonly { opacity: 1; }
1111

1212
.ui-select .ui-btn-icon-right .ui-btn-inner { padding-right: 45px; }
@@ -32,4 +32,4 @@ label.ui-select { font-size: 16px; line-height: 1.4; font-weight: normal; margi
3232
.min-width-480px .ui-select { width: 60%; display: inline-block; }
3333

3434
/* when no placeholder is defined in a multiple select, the header height doesn't even extend past the close button. this shim's content in there */
35-
.ui-selectmenu .ui-header h1:after { content: '.'; visibility: hidden; }
35+
.ui-selectmenu .ui-header h1:after { content: '.'; visibility: hidden; }

0 commit comments

Comments
 (0)