From: rahul21 Date: Mon, 11 Feb 2013 19:22:24 +0000 (+0530) Subject: (Bug 34798) Synced the FeedUtils.php page with mediawiki.action.history.diff.css X-Git-Tag: 1.31.0-rc.0~20412^2 X-Git-Url: http://git.cyclocoop.org/%22.%20generer_url_ecrire%28%22sites%22%2C%22%22%29.%20%22?a=commitdiff_plain;h=577f6ad2145321d822db2539fffdd562360f9d85;p=lhc%2Fweb%2Fwiklou.git (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 --- 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 ) {