Skip to content

Instantly share code, notes, and snippets.

@DWboutin
Created March 15, 2019 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DWboutin/93d572ee4448a23c625402933ee7fefd to your computer and use it in GitHub Desktop.
Save DWboutin/93d572ee4448a23c625402933ee7fefd to your computer and use it in GitHub Desktop.
Remove zoom on IOS input focus
@media screen and (-webkit-min-device-pixel-ratio:0) {
input[type="email"]:hover,
input[type="number"]:hover,
input[type="search"]:hover,
input[type="text"]:hover,
input[type="tel"]:hover,
input[type="url"]:hover,
input[type="password"]:hover,
textarea:hover,
select:hover{font-size: initial;}
}
@media (min-width: 768px) {
input[type="email"]:hover,
input[type="number"]:hover,
input[type="search"]:hover,
input[type="text"]:hover,
input[type="tel"]:hover,
input[type="url"]:hover,
input[type="password"]:hover,
textarea:hover,
select:hover{font-size: inherit;}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment