From 4e5d90bae492cbf727f9b482e66444a51a96bd20 Mon Sep 17 00:00:00 2001 From: duinomaker <1318388396@qq.com> Date: Tue, 28 Apr 2020 01:25:21 +0800 Subject: [PATCH] fix(style): improve MathJax and KaTeX (#707) --- include/style/plugin.styl | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/include/style/plugin.styl b/include/style/plugin.styl index 553799b..47c59ac 100644 --- a/include/style/plugin.styl +++ b/include/style/plugin.styl @@ -80,3 +80,32 @@ * --------------------------------- */ .fa, .fab, .fal, .far, .fas line-height: inherit + +/* --------------------------------- + * MathJax and KaTeX + * --------------------------------- */ +.MathJax, .katex-display + overflow-x: auto + overflow-y: hidden + +.katex + white-space: nowrap + +.katex-display + margin-top: -1em !important + +.katex-html + padding-top: 1em + .tag + align-items: unset + background-color: unset + border-radius: unset + color: unset + display: unset + font-size: unset + height: unset + justify-content: unset + line-height: unset + padding-left: unset + padding-right: unset + white-space: unset \ No newline at end of file