(bug 35923) tweaks to mediawiki.action.history.diff.css
authoredokter <erwin@darcoury.nl>
Tue, 2 Oct 2012 20:44:44 +0000 (22:44 +0200)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 5 Oct 2012 18:22:22 +0000 (18:22 +0000)
commit9930378862cc82b0ef1d1ac362f8f8aa13c8be6c
treeae6de787495a3f17ca068331a0663843bbb97951
parent658eb79dc10fbbceec1a6bee3ab078aca06c424e
(bug 35923) tweaks to mediawiki.action.history.diff.css

This is a followup from bug 11374. This patch has some fixes and final tweaks
for the code currently in trunk.

* Reorganized the CSS to specificallity.
* Changed table width to 100%, and added zero margin for table, so no
horizontal scrollbars.
* Changed horizontal padding in table.diff td from 0.66em to 0.5em, making max
use of expensive horizontal real estate.
* Override default vertical 0.33em padding in td.diff-marker with 0.25em to
compensate for increased fontsize of the marker (+ and -), which caused
unwanted padding at the bottom in one-line diff rules.
* Changed the background for td.diff-context to #f9f9f9, which is the same as
the background for wikitables. (BTW, the default background for Vector is
#f6f6f6, not the current #f3f3f3 as stated on wikitech-l).
* Removed 'overflow: auto' fallback for table.diff td div, as this creates
unwanted scrollbars in IE 8 and 9. The fallback targeted a very limited
set of older browsers anyway.

The NewDiff gadget on enwiki has all these fixes implemented, so you can
evaluate this code.

Change-Id: Ic9da00bc13ad8c322c19648c7d3ac8abec2eaa07
resources/mediawiki.action/mediawiki.action.history.diff.css