From: Trevor Parscal Date: Tue, 11 Aug 2009 19:22:35 +0000 (+0000) Subject: When the text size is set in the body in EM, it affects all other em measurements... X-Git-Tag: 1.31.0-rc.0~40351 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=40f93b57a860c1ea0f6d6badc29e76deec77f323;p=lhc%2Fweb%2Fwiklou.git When the text size is set in the body in EM, it affects all other em measurements, however if it's set in px it is both properly calculated on different screens (as oposed to pt in some cases) and does not distort the em calculations that follow. This is the best cross browser solution I have found so far, and fixes bug #20175. --- diff --git a/skins/vector/main-ltr.css b/skins/vector/main-ltr.css index db6d6c19e1..e22fcbc4b2 100644 --- a/skins/vector/main-ltr.css +++ b/skins/vector/main-ltr.css @@ -21,7 +21,7 @@ body { margin: 0; padding: 0; font-family: sans-serif; - font-size: 0.9em; + font-size: 13px; } body { background-color: #f3f3f3; @@ -652,8 +652,7 @@ pre { border: 1px dashed #2f6fab; color: black; background-color: #f9f9f9; - line-height: 1.2em; - font-size: 1.2em; + line-height: 1.1em; } ul { line-height: 1.5em; diff --git a/skins/vector/main-rtl.css b/skins/vector/main-rtl.css index daddfc0fd3..9c2550a4c5 100644 --- a/skins/vector/main-rtl.css +++ b/skins/vector/main-rtl.css @@ -21,7 +21,7 @@ body { margin: 0; padding: 0; font-family: sans-serif; - font-size: 0.9em; + font-size: 13px; } body { background-color: #f3f3f3; @@ -652,8 +652,7 @@ pre { border: 1px dashed #2f6fab; color: black; background-color: #f9f9f9; - line-height: 1.2em; - font-size: 1.2em; + line-height: 1.1em; } ul { line-height: 1.5em;