commit 91376a4d26febb30cd1250552d0ea340a8830553
parent c901083e591ddbf86263c5a90446b472111b3d96
Author: Emily Eisenberg <emily@khanacademy.org>
Date: Mon, 9 Mar 2015 12:22:43 -0700
Fix MathML CSS
Summary: Make the CSS rules that hide the MathML rendering not
`!important`, so that they can be overridden. Also, remove the useless
`math.katex` rule.
Fixes #197
Test plan:
- `make test`
- See that huxley screenshots haven't changed
Auditors: alpert
Diffstat:
1 file changed, 5 insertions(+), 10 deletions(-)
diff --git a/static/katex.less b/static/katex.less
@@ -10,11 +10,6 @@
}
}
-math.katex {
- font-size: 1.21em;
- line-height: 1.2;
-}
-
.katex {
font: normal 1.21em KaTeX_Main;
line-height: 1.2;
@@ -30,12 +25,12 @@ math.katex {
.katex-mathml {
// Accessibility hack to only show to screen readers
// Found at: http://a11yproject.com/posts/how-to-hide-content/
- position: absolute !important;
+ position: absolute;
clip: rect(1px, 1px, 1px, 1px);
- padding: 0 !important;
- border: 0 !important;
- height: 1px !important;
- width: 1px !important;
+ padding: 0;
+ border: 0;
+ height: 1px;
+ width: 1px;
overflow: hidden;
}