From 577f6ad2145321d822db2539fffdd562360f9d85 Mon Sep 17 00:00:00 2001 From: rahul21 Date: Tue, 12 Feb 2013 00:52:24 +0530 Subject: [PATCH] (Bug 34798) Synced the FeedUtils.php page with mediawiki.action.history.diff.css ->Added the background,border in diff-context,diff-addedline,diff-deleted line in $styles array in the FeedUtils.php Change-Id: Icbfb6cfc659652c146e565b760d0815640fdad64 --- RELEASE-NOTES-1.21 | 1 + includes/FeedUtils.php | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/RELEASE-NOTES-1.21 b/RELEASE-NOTES-1.21 index d6ca336b1b..883fb8ba58 100644 --- a/RELEASE-NOTES-1.21 +++ b/RELEASE-NOTES-1.21 @@ -193,6 +193,7 @@ production. extensions) performed using Git 1.7.8+ should now appear. * (bug 42184) $wgUploadSizeWarning missing second variable * (bug 40326) Check if files exist with a different extension during uploading +* (bug 34798) Updated CSS for Atom/RSS recent changes feeds to match on-wiki diffs. === API changes in 1.21 === * prop=revisions can now report the contentmodel and contentformat. diff --git a/includes/FeedUtils.php b/includes/FeedUtils.php index 67011d2cda..8cbc66374d 100644 --- a/includes/FeedUtils.php +++ b/includes/FeedUtils.php @@ -242,12 +242,12 @@ class FeedUtils { public static function applyDiffStyle( $text ) { $styles = array( 'diff' => 'background-color: white; color:black;', - 'diff-otitle' => 'background-color: white; color:black;', - 'diff-ntitle' => 'background-color: white; color:black;', - 'diff-addedline' => 'background: #cfc; color:black; font-size: smaller;', - 'diff-deletedline' => 'background: #ffa; color:black; font-size: smaller;', - 'diff-context' => 'background: #eee; color:black; font-size: smaller;', - 'diffchange' => 'color: red; font-weight: bold; text-decoration: none;', + 'diff-otitle' => 'background-color: white; color:black; text-align: center;', + 'diff-ntitle' => 'background-color: white; color:black; text-align: center;', + 'diff-addedline' => 'color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;', + 'diff-deletedline' => 'color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;', + 'diff-context' => 'background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;', + 'diffchange' => 'font-weight: bold; text-decoration: none;', ); foreach( $styles as $class => $style ) { -- 2.20.1