From 2548c12e4912e9adb12305bd68aad4e01d38127e Mon Sep 17 00:00:00 2001 From: physikerwelt Date: Tue, 3 Nov 2015 18:44:25 +0100 Subject: [PATCH] Use normal line-height for math elements * With the current settings for example the distance between matrix rows is too large. Bug: T106890 Change-Id: Iffa2534f7d39e9faf41ab11124c9b9ff571988d2 --- modules/ext.math.css | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/ext.math.css b/modules/ext.math.css index 6f325db..14f30ec 100644 --- a/modules/ext.math.css +++ b/modules/ext.math.css @@ -23,6 +23,9 @@ m|math { /* We put Cambria before Cambria Math to workaround a bug on Windows (see https://bugzilla.mozilla.org/show_bug.cgi?id=598900) */ font-family: Cambria, Cambria Math, Latin Modern Math, STIX Math, LatinModernMathWOFF, serif; + /* .mw-body-content sets the line-height to 1.6 which is not desired for math. For example */ + /* matrices with brackets are rendered too large. See also https://phabricator.wikimedia.org/T106890 */ + line-height: normal; } /* Default style for the image fallback. */