Jdlrobson has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/72138


Change subject: Drop iphone device stylesheet support
......................................................................

Drop iphone device stylesheet support

Search placeholder displays fine in iOS 6
Not clear which version it was specific too and unable to find
phone < iOS 6

Change-Id: I9057c07bc35f02f31a7ae42f039c964ac93a7d85
---
M includes/DeviceDetection.php
M less/common/mf-typography.less
M stylesheets/common/mf-typography.css
D stylesheets/devices/iphone.css
4 files changed, 5 insertions(+), 9 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend 
refs/changes/38/72138/1

diff --git a/includes/DeviceDetection.php b/includes/DeviceDetection.php
index 0cbfb77..367f6fb 100644
--- a/includes/DeviceDetection.php
+++ b/includes/DeviceDetection.php
@@ -218,7 +218,6 @@
                ),
                'iphone' => array (
                        'view_format' => 'html',
-                       'css_file_name' => 'iphone',
                ),
                'kindle' => array (
                        'view_format' => 'html',
diff --git a/less/common/mf-typography.less b/less/common/mf-typography.less
index adacf81..36703e2 100644
--- a/less/common/mf-typography.less
+++ b/less/common/mf-typography.less
@@ -1,6 +1,8 @@
 @import "../mf-variables.less";
 
 html {
+       /* prevent font scaling in landscape in Safari */
+       -webkit-text-size-adjust: none;
        font-size: 100% * @fontScalingFactor; /* default browser size is 16px 
(12pt - our @baseFontSize) */
 }
 
diff --git a/stylesheets/common/mf-typography.css 
b/stylesheets/common/mf-typography.css
index 38300ed..4fc6506 100644
--- a/stylesheets/common/mf-typography.css
+++ b/stylesheets/common/mf-typography.css
@@ -1,4 +1,7 @@
 html {
+  /* prevent font scaling in landscape in Safari */
+
+  -webkit-text-size-adjust: none;
   font-size: 90%;
   /* default browser size is 16px (12pt - our @baseFontSize) */
 
diff --git a/stylesheets/devices/iphone.css b/stylesheets/devices/iphone.css
deleted file mode 100644
index 222d395..0000000
--- a/stylesheets/devices/iphone.css
+++ /dev/null
@@ -1,8 +0,0 @@
-html {
-       /* prevent font scaling in landscape in Safari */
-       -webkit-text-size-adjust: none;
-}
-
-#searchInput {
-       line-height: normal; /* placeholder displays incorrectly on iphones */
-}

-- 
To view, visit https://gerrit.wikimedia.org/r/72138
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9057c07bc35f02f31a7ae42f039c964ac93a7d85
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to