(bug 11374) Red .diffchange text in the green 'added' area may be hard to read for...
authorMax Semenik <maxsem@users.mediawiki.org>
Sat, 13 Aug 2011 20:57:24 +0000 (20:57 +0000)
committerMax Semenik <maxsem@users.mediawiki.org>
Sat, 13 Aug 2011 20:57:24 +0000 (20:57 +0000)
This should REALLY REALLY be fixed with colors from French Wikipedia, but since some people think that we should preserve yellow/green colors, I've simply made change text black instead of red, and made its background different for better reading by people with other problems with vision.

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

index 3e3de41..158f2a3 100644 (file)
@@ -46,6 +46,7 @@ production.
   instead require() for included extensions.
 * Do not convert text in the user interface language to another script.
 * (bug 26283) Previewing user JS/CSS pages doesn't load other user JS/CSS pages
+* (bug 11374) Improved diff readability for colorblind people.
 
 === API changes in 1.19 ===
 * (bug 19838) siprop=interwikimap can now use the interwiki cache.
index 3907a5f..23ba847 100644 (file)
@@ -27,13 +27,20 @@ td.diff-context {
        font-size: smaller;
 }
 .diffchange {
-       color: red;
        font-weight: bold;
        white-space: -moz-pre-wrap;
        white-space: pre-wrap;
        text-decoration: none;
 }
 
+td.diff-addedline .diffchange {
+       background: #0c0;
+}
+
+td.diff-deletedline .diffchange {
+       background: #cc0;
+}
+
 table.diff {
        border: none;
        width: 98%;