From a08b7ec764ab16e14b4c94e48be7f85f2837f8f1 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Tue, 6 Dec 2011 09:41:52 +0000 Subject: [PATCH] Diff colors now use the french Wikipedia scheme 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 | 2 ++ .../mediawiki.action.history.diff.css | 16 ++++++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/RELEASE-NOTES-1.19 b/RELEASE-NOTES-1.19 index 23568efef4..cfecd82762 100644 --- a/RELEASE-NOTES-1.19 +++ b/RELEASE-NOTES-1.19 @@ -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. diff --git a/resources/mediawiki.action/mediawiki.action.history.diff.css b/resources/mediawiki.action/mediawiki.action.history.diff.css index 2c8fdf7567..09abf2b640 100644 --- a/resources/mediawiki.action/mediawiki.action.history.diff.css +++ b/resources/mediawiki.action/mediawiki.action.history.diff.css @@ -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 { -- 2.20.1