Apply correct line-height to diffs
authorErwin Dokter <erwin@darcoury.nl>
Sun, 18 May 2014 15:22:06 +0000 (15:22 +0000)
committerJdlrobson <jrobson@wikimedia.org>
Thu, 22 May 2014 14:59:56 +0000 (14:59 +0000)
The typography refresh exposes a small shortcoming in the CSS used
for diff display; there is no line-height applied, causing inconsistent
display between skin (ie. too high in Vector). Adding line-height to the
diffs corrects this.

Bug: 64653
Change-Id: I59dfe3e887c68a7034ef78f6873127ffe88b0cc1

resources/src/mediawiki.action/mediawiki.action.history.diff.css

index 31ca107..afe9246 100644 (file)
@@ -46,12 +46,14 @@ td.diff-marker {
        text-align: right;
        font-weight: bold;
        font-size: 1.25em;
        text-align: right;
        font-weight: bold;
        font-size: 1.25em;
+       line-height: 1.2;
 }
 
 td.diff-addedline,
 td.diff-deletedline,
 td.diff-context {
        font-size: 88%;
 }
 
 td.diff-addedline,
 td.diff-deletedline,
 td.diff-context {
        font-size: 88%;
+       line-height: 1.6;
        vertical-align: top;
        white-space: -moz-pre-wrap;
        white-space: pre-wrap;
        vertical-align: top;
        white-space: -moz-pre-wrap;
        white-space: pre-wrap;