JGonera has submitted this change and it was merged.

Change subject: Story 464: Promote pretty diffs to beta
......................................................................


Story 464: Promote pretty diffs to beta

Change-Id: I0605de83619c199ee5100420ecdbab3f9ef9e42c
---
M javascripts/specials/mobilediff.js
M less/specials/mobilediff.less
M stylesheets/specials/mobilediff.css
3 files changed, 12 insertions(+), 1 deletion(-)

Approvals:
  JGonera: Verified; Looks good to me, approved
  jenkins-bot: Checked



diff --git a/javascripts/specials/mobilediff.js 
b/javascripts/specials/mobilediff.js
index 2e21156..0af2768 100644
--- a/javascripts/specials/mobilediff.js
+++ b/javascripts/specials/mobilediff.js
@@ -38,7 +38,7 @@
        }
 
        $( function() {
-               if ( mw.config.get( 'wgMFMode' ) === 'alpha' ) {
+               if ( mw.config.get( 'wgMFMode' ) !== 'stable' ) {
                        makePrettyDiff( $( '#mw-mf-minidiff' ) );
                }
        } );
diff --git a/less/specials/mobilediff.less b/less/specials/mobilediff.less
index 369519b..3d66736 100644
--- a/less/specials/mobilediff.less
+++ b/less/specials/mobilediff.less
@@ -134,6 +134,7 @@
        }
 }
 
+.beta,
 .alpha {
        #mw-mf-diffview {
                ins,
diff --git a/stylesheets/specials/mobilediff.css 
b/stylesheets/specials/mobilediff.css
index d1f3d7b..ddb76fd 100644
--- a/stylesheets/specials/mobilediff.css
+++ b/stylesheets/specials/mobilediff.css
@@ -117,27 +117,37 @@
   font-size: 1.85em;
   color: #888;
 }
+.beta #mw-mf-diffview ins,
 .alpha #mw-mf-diffview ins,
+.beta #mw-mf-diffview del,
 .alpha #mw-mf-diffview del {
   padding-left: 0;
   color: black;
 }
+.beta #mw-mf-diffview ins::before,
 .alpha #mw-mf-diffview ins::before,
+.beta #mw-mf-diffview del::before,
 .alpha #mw-mf-diffview del::before {
   content: "";
 }
+.beta #mw-mf-diffview span,
 .alpha #mw-mf-diffview span {
   margin-right: 2px;
 }
+.beta #mw-mf-diffview ins,
 .alpha #mw-mf-diffview ins {
   background-color: #75C877;
 }
+.beta #mw-mf-diffview del,
 .alpha #mw-mf-diffview del {
   background-color: #E07076;
   text-decoration: none;
 }
+.beta #mw-mf-diffview .prettyDiff ins,
 .alpha #mw-mf-diffview .prettyDiff ins,
+.beta #mw-mf-diffview .prettyDiff del,
 .alpha #mw-mf-diffview .prettyDiff del,
+.beta #mw-mf-diffview .prettyDiff span,
 .alpha #mw-mf-diffview .prettyDiff span {
   display: inline;
 }

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I0605de83619c199ee5100420ecdbab3f9ef9e42c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <[email protected]>
Gerrit-Reviewer: JGonera <[email protected]>
Gerrit-Reviewer: jenkins-bot

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

Reply via email to