Diff colors now use the french Wikipedia scheme
authorAntoine Musso <hashar@users.mediawiki.org>
Tue, 6 Dec 2011 09:41:52 +0000 (09:41 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Tue, 6 Dec 2011 09:41:52 +0000 (09:41 +0000)
The french community has been using a specific set of colors for diff, it is
believed to be easier to read for people perceiving colors differently.

Source is from:
http://fr.wikipedia.org/w/index.php?oldid=72567845&uselang=en

This commit override r94429 / r94461.

See also docs/uidesign/mediawiki.action.history.diff.html

RELEASE-NOTES-1.19
resources/mediawiki.action/mediawiki.action.history.diff.css

index 23568ef..cfecd82 100644 (file)
@@ -98,6 +98,8 @@ production.
   username (eg. Special:ActiveUsers/Username)
 * New JavaScript variable wgPageContentLanguage
 * Added new debugging toolbar, enabled with $wgDebugToolbar
+* Differences in the history page now uses slightly better colors for people
+  perceiving colors differently. Colors comes from the French Wikipedia.
 
 === Bug fixes in 1.19 ===
 * $wgUploadNavigationUrl should be used for file redlinks if.
index 2c8fdf7..09abf2b 100644 (file)
@@ -2,9 +2,10 @@
 ** Diff rendering
 */
 table.diff,
+td.diff-context,
 td.diff-otitle,
 td.diff-ntitle {
-       background-color: white;
+       background-color: transparent;
 }
 
 td.diff-otitle,
@@ -21,17 +22,16 @@ td.diff-lineno {
 }
 
 td.diff-addedline {
-       background: #D1E7F6;
+       background: #D8E4F6;
        font-size: smaller;
 }
 
 td.diff-deletedline {
-       background: #F6E0D1;
+       background: #E4F6D8;
        font-size: smaller;
 }
 
 td.diff-context {
-       background: #eee;
        font-size: smaller;
 }
 
@@ -44,11 +44,15 @@ td.diff-context {
 }
 
 td.diff-addedline .diffchange {
-       background: #75BCD8;
+       background: #B0C0F0;
+       color: #001040;
+       font-weight: bold;
 }
 
 td.diff-deletedline .diffchange {
-       background: #D98462;
+       background: #B0E897;
+       color: #104000;
+       font-weight: bold;
 }
 
 table.diff {