Skip to content

Instantly share code, notes, and snippets.

@tankbar
Last active April 3, 2017 06:27
Show Gist options
  • Save tankbar/5e11f26f85266658959880c4df2140c9 to your computer and use it in GitHub Desktop.
Save tankbar/5e11f26f85266658959880c4df2140c9 to your computer and use it in GitHub Desktop.
Mobile Safari Reset Inputs
/* MOBILE SAFARI RESET INPUTS */
input[type="text"],
input[type="password"],
input[type="email"] {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
/* Make webkit render the search input like a normal text field */
input[type=search] {
-webkit-appearance:textfield;
-webkit-box-sizing:content-box;
}
input[type="submit"] {
-webkit-appearance:none;
-webkit-border-radius:0;
}
input[type=search]::-webkit-search-cancel-button,
input[type=search]::-webkit-search-decoration,
input[type=search]::-webkit-search-results-button,
input[type=search]::-webkit-search-results-decoration {
-webkit-appearance:none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment