(Bug 34798) Synced the FeedUtils.php page with mediawiki.action.history.diff.css
authorrahul21 <rahul14m93@gmail.com>
Mon, 11 Feb 2013 19:22:24 +0000 (00:52 +0530)
committerKevin Israel <pleasestand@live.com>
Sat, 9 Mar 2013 05:19:12 +0000 (00:19 -0500)
->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
includes/FeedUtils.php

index d6ca336..883fb8b 100644 (file)
@@ -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.
index 67011d2..8cbc663 100644 (file)
@@ -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 ) {