Make tap-highlight-color fix work for Android devices. Fix #2

This commit is contained in:
Nicolas Gallagher 2011-05-31 05:33:24 -07:00
parent c71f67d42a
commit ae8afed13b

4
normalize.css vendored
View File

@ -37,7 +37,7 @@ video {
/* /*
* 1. Add vertical scrollbar to <html> element * 1. Add vertical scrollbar to <html> element
* Keeps page centred in all browsers regardless of content height * Keeps page centred in all browsers regardless of content height
* 2. Remove iOS tap highlight color to prevent entire container being highlighted * 2. Remove Android and iOS tap highlight color to prevent entire container being highlighted
* www.yuiblog.com/blog/2010/10/01/quick-tip-customizing-the-mobile-safari-tap-highlight-color/ * www.yuiblog.com/blog/2010/10/01/quick-tip-customizing-the-mobile-safari-tap-highlight-color/
* 3. Remove iOS text size adjust without disabling user zoom * 3. Remove iOS text size adjust without disabling user zoom
* www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/ * www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/
@ -45,7 +45,7 @@ video {
html { html {
overflow-y: scroll; /* 1 */ overflow-y: scroll; /* 1 */
-webkit-tap-highlight-color: transparent; /* 2 */ -webkit-tap-highlight-color: rgba(0,0,0,0); /* 2 */
-webkit-text-size-adjust: 100%; /* 3 */ -webkit-text-size-adjust: 100%; /* 3 */
-ms-text-size-adjust: 100%; -ms-text-size-adjust: 100%;
} }