Jdlrobson has uploaded a new change for review.

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


Change subject: Allow inline code and pre tags
......................................................................

Allow inline code and pre tags

Example usage:
In
http://en.wikipedia.org/w/index.php?title=ggplot2&oldid=551167896
Comparison with base graphics and other packages section

Change-Id: I54f5dc25af05ed35ccdb5c2a2c44c8c27afd4e0f
---
M less/common/mf-enwp.less
M stylesheets/common/mf-enwp.css
2 files changed, 9 insertions(+), 0 deletions(-)


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

diff --git a/less/common/mf-enwp.less b/less/common/mf-enwp.less
index 0f7db97..258dfb1 100644
--- a/less/common/mf-enwp.less
+++ b/less/common/mf-enwp.less
@@ -12,6 +12,11 @@
        padding: 1em;
 }
 
+p > pre,
+p > code {
+       padding: 0 1em;
+}
+
 .mobile #coordinates {
        display: none; /* TODO: style for mobile */
 }
diff --git a/stylesheets/common/mf-enwp.css b/stylesheets/common/mf-enwp.css
index 4b2dc07..3009e30 100644
--- a/stylesheets/common/mf-enwp.css
+++ b/stylesheets/common/mf-enwp.css
@@ -10,6 +10,10 @@
   border: solid 1px #CCC;
   padding: 1em;
 }
+p > pre,
+p > code {
+  padding: 0 1em;
+}
 .mobile #coordinates {
   display: none;
   /* TODO: style for mobile */

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I54f5dc25af05ed35ccdb5c2a2c44c8c27afd4e0f
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