diff --git a/public/s5/ui/core/math.css b/public/s5/ui/core/math.css index 4c0efab9..7edd1f15 100644 --- a/public/s5/ui/core/math.css +++ b/public/s5/ui/core/math.css @@ -68,3 +68,40 @@ pre.xml .punct { color: #449; font-weight: bold; } pre.xml .string { color: #949; } pre.xml .number { color: #F99; } pre.xml .attribute { color: #771; } + +/* Hack for Mozilla bug 449396 */ +[mathvariant="bold"] * { + font-style: normal; + font-variant: normal; + font-weight: bold; +} +[mathvariant="italic"] * { + font-style: italic; + font-variant: normal; + font-weight: normal; +} +[mathvariant="bold-italic"] * { + font-style: italic; + font-variant: normal; + font-weight: bold; +} +[mathvariant="sans-serif"] * { + font-style: normal; + font-variant: normal; + font-weight: normal; +} +[mathvariant="bold-sans-serif"] * { + font-style: normal; + font-variant: normal; + font-weight: bold; +} +[mathvariant="sans-serif-italic"] * { + font-style: italic; + font-variant: normal; + font-weight: normal; +} +[mathvariant="sans-serif-bold-italic"] * { + font-style: italic; + font-variant: normal; + font-weight: bold; +} \ No newline at end of file diff --git a/public/stylesheets/instiki.css b/public/stylesheets/instiki.css index 1b8e45e8..d0b1db8c 100644 --- a/public/stylesheets/instiki.css +++ b/public/stylesheets/instiki.css @@ -475,3 +475,40 @@ pre.xml .punct { color: #449; font-weight: bold; } pre.xml .string { color: #949; } pre.xml .number { color: #F99; } pre.xml .attribute { color: #771; } + +/* Hack for Mozilla bug 449396 */ +[mathvariant="bold"] * { + font-style: normal; + font-variant: normal; + font-weight: bold; +} +[mathvariant="italic"] * { + font-style: italic; + font-variant: normal; + font-weight: normal; +} +[mathvariant="bold-italic"] * { + font-style: italic; + font-variant: normal; + font-weight: bold; +} +[mathvariant="sans-serif"] * { + font-style: normal; + font-variant: normal; + font-weight: normal; +} +[mathvariant="bold-sans-serif"] * { + font-style: normal; + font-variant: normal; + font-weight: bold; +} +[mathvariant="sans-serif-italic"] * { + font-style: italic; + font-variant: normal; + font-weight: normal; +} +[mathvariant="sans-serif-bold-italic"] * { + font-style: italic; + font-variant: normal; + font-weight: bold; +} \ No newline at end of file