From 91376a4d26febb30cd1250552d0ea340a8830553 Mon Sep 17 00:00:00 2001 From: Emily Eisenberg Date: Mon, 9 Mar 2015 12:22:43 -0700 Subject: [PATCH] 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 --- static/katex.less | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/static/katex.less b/static/katex.less index 79c0629d9..718d05e88 100644 --- 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; }