From a564c0aeef75c74f467bb2117f425bedce89637d Mon Sep 17 00:00:00 2001 From: Erik Demaine Date: Sat, 10 Jun 2017 12:58:32 -0400 Subject: [PATCH] Support Windows high-contrast mode. Fix #716 --- static/katex.less | 3 +++ 1 file changed, 3 insertions(+) diff --git a/static/katex.less b/static/katex.less index b935d296..e4f87ea0 100644 --- a/static/katex.less +++ b/static/katex.less @@ -22,6 +22,9 @@ // Protect elements inside .katex from inheriting text-indent. text-indent: 0; + // Prevent background resetting in Windows's high-contrast mode. + -ms-high-contrast-adjust: none !important; + .katex-html { // Making .katex inline-block allows line breaks before and after, // which is undesireable ("to $x$,"). Instead, adjust the .katex-html