-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set minute step size to 5 and fix ios zoom
- Loading branch information
1 parent
928c9e1
commit f30ac4d
Showing
6 changed files
with
76 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/** @see https://www.warrenchandler.com/2019/04/02/stop-iphones-from-zooming-in-on-form-fields/ */ | ||
|
||
/*** iPhone and iOS Form Input Zoom Fixes ***/ | ||
/* Fix Input Zoom on devices older than iPhone 5: */ | ||
@media screen and (device-aspect-ratio: 2/3) { | ||
select, textarea, input[type="text"], input[type="password"], | ||
input[type="datetime"], input[type="datetime-local"], | ||
input[type="date"], input[type="month"], input[type="time"], | ||
input[type="week"], input[type="number"], input[type="email"], | ||
input[type="url"]{ font-size: 16px !important; } | ||
} | ||
|
||
/* Fix Input Zoom on iPhone 5, 5C, 5S, iPod Touch 5g */ | ||
@media screen and (device-aspect-ratio: 40/71) { | ||
select, textarea, input[type="text"], input[type="password"], | ||
input[type="datetime"], input[type="datetime-local"], | ||
input[type="date"], input[type="month"], input[type="time"], | ||
input[type="week"], input[type="number"], input[type="email"], | ||
input[type="url"]{ font-size: 16px !important; } | ||
} | ||
|
||
/* Fix Input Zoom on iPhone 6, iPhone 6s, iPhone 7 */ | ||
@media screen and (device-aspect-ratio: 375/667) { | ||
select, textarea, input[type="text"], input[type="password"], | ||
input[type="datetime"], input[type="datetime-local"], | ||
input[type="date"], input[type="month"], input[type="time"], | ||
input[type="week"], input[type="number"], input[type="email"], | ||
input[type="tel"], input[type="url"]{ font-size: 16px !important; } | ||
} | ||
|
||
/* Fix Input Zoom on iPhone 6 Plus, iPhone 6s Plus, iPhone 7 Plus, iPhone 8, iPhone X, XS, XS Max */ | ||
@media screen and (device-aspect-ratio: 9/16) { | ||
select, textarea, input[type="text"], input[type="password"], | ||
input[type="datetime"], input[type="datetime-local"], | ||
input[type="date"], input[type="month"], input[type="time"], | ||
input[type="week"], input[type="number"], input[type="email"], | ||
input[type="tel"], input[type="url"]{ font-size: 16px !important; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters