JGonera has submitted this change and it was merged.

Change subject: bug 44806: style all pre and code tags
......................................................................


bug 44806: style all pre and code tags

don't limit to certain classes

Change-Id: I9ae84540fa741463806fb8d687cf836e26c0a60e
---
M stylesheets/common/mf-enwp.css
M stylesheets/less/common/mf-enwp.less
2 files changed, 6 insertions(+), 11 deletions(-)

Approvals:
  JGonera: Verified; Looks good to me, approved



diff --git a/stylesheets/common/mf-enwp.css b/stylesheets/common/mf-enwp.css
index a28cc36..1c1433b 100644
--- a/stylesheets/common/mf-enwp.css
+++ b/stylesheets/common/mf-enwp.css
@@ -4,9 +4,8 @@
 IMPORTANT: do not use selectors containing attribute notation e.g. [style] 
[colspan]
         as they are known to damage the ios app
 */
-pre.mw-code,
-pre.mw-js,
-pre.source-css {
+code,
+pre {
   font-family: monospace;
   border: solid 1px #CCC;
   padding: 1em;
diff --git a/stylesheets/less/common/mf-enwp.less 
b/stylesheets/less/common/mf-enwp.less
index 2b662c2..a7eafe2 100644
--- a/stylesheets/less/common/mf-enwp.less
+++ b/stylesheets/less/common/mf-enwp.less
@@ -5,15 +5,11 @@
         as they are known to damage the ios app
 */
 
-
+code,
 pre {
-       &.mw-code,
-       &.mw-js,
-       &.source-css {
-               font-family: monospace;
-               border: solid 1px #CCC;
-               padding: 1em;
-       }
+       font-family: monospace;
+       border: solid 1px #CCC;
+       padding: 1em;
 }
 
 .mobile #coordinates {

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I9ae84540fa741463806fb8d687cf836e26c0a60e
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <jrob...@wikimedia.org>
Gerrit-Reviewer: JGonera <jgon...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot

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

Reply via email to