Improves on the technique used in r65391 to fix the font-size issues in Firefox,...
authorTrevor Parscal <tparscal@users.mediawiki.org>
Wed, 14 Jul 2010 17:50:51 +0000 (17:50 +0000)
committerTrevor Parscal <tparscal@users.mediawiki.org>
Wed, 14 Jul 2010 17:50:51 +0000 (17:50 +0000)
includes/DefaultSettings.php
skins/vector/main-ltr.css
skins/vector/main-rtl.css

index c66fa49..c7af4b9 100644 (file)
@@ -1547,7 +1547,7 @@ $wgCacheEpoch = '20030516000000';
  * to ensure that client-side caches do not keep obsolete copies of global
  * styles.
  */
-$wgStyleVersion = '295';
+$wgStyleVersion = '296';
 
 /**
  * This will cache static pages for non-logged-in users to reduce
index fdb899e..80876b6 100644 (file)
@@ -721,7 +721,11 @@ blockquote {
        font-style: italic;
 }*/
 pre, code, tt {
-       font-family: monospace, sans-serif;
+       /*
+        * It's important for this rule to first reference an actual font name, some browsers will render the monospace text
+        * too small otherwise, namely Firefox, Chrome and Safari
+        */
+       font-family: "Courier New", monospace;
 }
 code {
        background-color: #f9f9f9;
index 3f4904b..7b63d47 100644 (file)
@@ -721,7 +721,11 @@ blockquote {
        font-style: italic;
 }*/
 pre, code, tt {
-       font-family: monospace, sans-serif;
+       /*
+        * It's important for this rule to first reference an actual font name, some browsers will render the monospace text
+        * too small otherwise, namely Firefox, Chrome and Safari
+        */
+       font-family: "Courier New", monospace;
 }
 code {
        background-color: #f9f9f9;