mirror of
https://github.com/sissbruecker/linkding
synced 2024-09-20 05:51:56 +00:00
Prevent zoom-in after focusing an input on small viewports on iOS devices (#440)
* base.scss: Prevent zoom-in on focusing inputs on small viewports Adding a media query which sets the font-size for `.form-input` inputs to 1rem. This aims to prevent the zoom-in on small viewports on iOS devics which automatically zoom-in a website if the font-size in a focused input is smaller than 16px. * Update bookmarks/styles/base.scss --------- Co-authored-by: Sascha Ißbrücker <sascha.issbruecker@googlemail.com>
This commit is contained in:
parent
3af4e07eb6
commit
353ba433f0
1 changed files with 9 additions and 0 deletions
|
@ -102,3 +102,12 @@ a:visited:hover {
|
|||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
// Increase input font size on small viewports to prevent zooming on focus the input
|
||||
// on mobile devices. 430px relates to the "normalized" iPhone 14 Pro Max
|
||||
// viewport size
|
||||
@media screen and (max-width: 430px) {
|
||||
.form-input {
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue