jenkins-bot has submitted this change and it was merged.
Change subject: Make sure font size in inputs is 16px
......................................................................
Make sure font size in inputs is 16px
Some browsers (e.g. Safari on iOS 6) still zoom on inputs with smaller
font size. Also, make sure header font is the same size (so that it's
consistent with the search input).
Change-Id: Ib01c8579ba7c34054bec2d4d67ceda91f4e421dc
---
M less/common/common.less
M less/common/ui.less
2 files changed, 12 insertions(+), 0 deletions(-)
Approvals:
Kaldari: Looks good to me, approved
jenkins-bot: Verified
diff --git a/less/common/common.less b/less/common/common.less
index 7ab7580..ad303ad 100644
--- a/less/common/common.less
+++ b/less/common/common.less
@@ -3,6 +3,16 @@
// Deprecated rules
.stable {
+ // this makes sure mobile browsers don't zoom on inputs (minimum
resulting
+ // font size has to be 16px)
+ // header font size is kept the same to make it consistent with the
search input
+ input,
+ textarea,
+ .header,
+ .overlay-header {
+ font-size: round( 1em / @fontScalingFactor, 2 );
+ }
+
.content {
p,
li,
diff --git a/less/common/ui.less b/less/common/ui.less
index 942fa11..551c38f 100644
--- a/less/common/ui.less
+++ b/less/common/ui.less
@@ -138,6 +138,8 @@
/* Search */
input.search {
+ // reset font size set for .header in common.less
+ font-size: 1em;
outline: 0;
width: 100%;
// FIXME: unable to check but the important may not be needed for Nokia
S60;
--
To view, visit https://gerrit.wikimedia.org/r/109035
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ib01c8579ba7c34054bec2d4d67ceda91f4e421dc
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: JGonera <[email protected]>
Gerrit-Reviewer: Kaldari <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits