mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 15:28:40 +08:00

By default, iOS safari will automatically zoom into focused inputs with font-sizes less than 16px. To avoid this, we had a CSS rule to ensure inputs always had a large font-size on iOS. This worked, but did lead to design inconsistencies. Instead, we can set `user-scalable=no` on the viewport meta tag. Since iOS 10, this property doesn't actually stop users zooming. But it *does* still prevent the automatic zooming of inputs. So it solves our zoom problem, and allows us to remove the CSS font-size workaround.
5 lines
70 B
SCSS
5 lines
70 B
SCSS
.form-kit__before-input,
|
|
.form-kit__after-input {
|
|
height: 2.25em;
|
|
}
|