Opened 16 years ago
Closed 16 years ago
#299 closed task (fixed)
wiki "History diff" CSS change
Reported by: | dpatton | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | WebSite | Keywords: | wiki CSS |
Cc: | martin |
Description
As someone who is partially colorblind, I find that the use of RED to highlight changed text on the wiki's "History diff" makes the wiki hard to use effectively, especially when there are small changes (e.g. adding/deleting a single letter, space, or punctuation mark).
The existing wiki CSS is in /skins/common/diff.css http://wiki.osgeo.org/skins/common/diff.css and the relevant class is: .diffchange {
color: red; font-weight: bold; text-decoration: none;
}
My suggested changes are to replace the diffchange class with two specifications, to use different attributes for the deleted and inserted text, both being BLUE, and with deleted text highlighted with a strike-through: del.diffchange {
color: blue; font-weight: bold; text-decoration: line-through;
} ins.diffchange {
color: blue; font-weight: bold; text-decoration: none;
}
If you want to test this to see what it looks like, it's easy to do using the Stylish extension for Firefox:
- install Stylish https://addons.mozilla.org/en-US/firefox/addon/2108
- using Ctrl+M or the icon in the lower right corner, go into Stylish's Manage Styles
- create a style entry, using this:
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("wiki.osgeo.org") {
del.diffchange {
color: blue !important; font-weight: bold !important; text-decoration: line-through !important;
}
ins.diffchange {
color: blue !important; font-weight: bold !important; text-decoration: none !important;
}
}
- go to an OSGeo wiki page that shows a History diff: http://wiki.osgeo.org/index.php?title=Main_Page&diff=28053&oldid=27981
- using the popup menu from hovering over the Stylish icon in the browser's lower right corner, you can toggle the above style on/off to compare to the default wiki styling.
Change History (2)
comment:1 by , 16 years ago
Cc: | added |
---|
comment:2 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
I've done the change, how does it look? http://wiki.osgeo.org/index.php?title=Main_Page&diff=prev&oldid=28053
Martin installed and setup mediawiki ... adding him as a cc in case he might like to make this change. BTW, the configuration is now loosely described at MediaWikiConfiguration.