Bmansurov has uploaded a new change for review.

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

Change subject: Regression: bring back the padding around wikitext editor in 
mobile
......................................................................

Regression: bring back the padding around wikitext editor in mobile

On tablets the content is already center aligned in alpha and beta and it has
horizontal padding on both sides. All other modes and devices still need that
padding because the editor should not touch the borders of the page.

Bug: T105473
Change-Id: I1a2391846c4f52246e1f234f2295803dbfd38392
---
M resources/mobile.editor.common/editor.less
1 file changed, 10 insertions(+), 5 deletions(-)


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

diff --git a/resources/mobile.editor.common/editor.less 
b/resources/mobile.editor.common/editor.less
index ba65d09..6492dbb 100644
--- a/resources/mobile.editor.common/editor.less
+++ b/resources/mobile.editor.common/editor.less
@@ -7,11 +7,7 @@
        }
 
        .wikitext-editor {
-               padding: 10px 0;
-       }
-       .stable & .wikitext-editor {
-               padding-left: @contentMargin;
-               padding-right: @contentMargin;
+               padding: 10px @contentMargin;
        }
 
        .summary-request {
@@ -65,3 +61,12 @@
        line-height: 1.2;
 }
 
+@media all and (min-width: @wgMFDeviceWidthTablet) {
+       .alpha,
+       .beta {
+               .editor-overlay .wikitext-editor {
+                       padding-left: 0;
+                       padding-right: 0;
+               }
+       }
+}

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1a2391846c4f52246e1f234f2295803dbfd38392
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Bmansurov <bmansu...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to