fix: Protect fraction bars from CSS border-color (#2870)

* fix: Protect fraction bars from CSS border-color

`border-color` is not inheritable, so the previous fix did not work.

* Fix lint

Co-authored-by: Erik Demaine <edemaine@mit.edu>
This commit is contained in:
Nathan Wang
2021-04-05 10:12:47 -07:00
committed by GitHub
parent c66ceff4eb
commit 2f62c0d8ee

View File

@@ -17,12 +17,14 @@
// Prevent a rendering bug that misplaces \vec in Chrome.
text-rendering: auto;
// Insulate fraction bars and rules from CSS that sets border-color.
border-color: currentColor;
* {
// Prevent background resetting on elements in Windows's high-contrast
// mode, while still allowing background/foreground setting on root .katex
-ms-high-contrast-adjust: none !important;
// Prevent background resetting on elements in Windows's high-contrast
// mode, while still allowing background/foreground setting on root .katex
* { -ms-high-contrast-adjust: none !important; }
// Insulate fraction bars and rules from CSS that sets border-color.
border-color: currentColor;
}
.katex-version::after {
content: @version;