From 40f93b57a860c1ea0f6d6badc29e76deec77f323 Mon Sep 17 00:00:00 2001 From: Trevor Parscal Date: Tue, 11 Aug 2009 19:22:35 +0000 Subject: [PATCH] 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. --- skins/vector/main-ltr.css | 5 ++--- skins/vector/main-rtl.css | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) 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; -- 2.20.1