diff options
author | Queensferry <queensferry.me@gmail.com> | 2020-07-31 11:04:32 +0300 |
---|---|---|
committer | Queensferry <queensferry.me@gmail.com> | 2020-07-31 13:27:37 +0300 |
commit | 99560987fab65d9ea204d771e926b65c0d4939ee (patch) | |
tree | 557cab1d128469a80ffdf8037f26acb5481ebb54 | |
parent | cc789be45acee91513e268f7c8f3832399865fe8 (diff) |
fix: mathjax font size compatibility
-rw-r--r-- | layouts/partials/mathjax.html | 13 | ||||
-rw-r--r-- | static/css/common.css | 1 | ||||
-rw-r--r-- | static/css/content.css | 1 |
3 files changed, 2 insertions, 13 deletions
diff --git a/layouts/partials/mathjax.html b/layouts/partials/mathjax.html index b2d026d..ea0f6ac 100644 --- a/layouts/partials/mathjax.html +++ b/layouts/partials/mathjax.html @@ -1,27 +1,14 @@ <script> // https://mathjax.github.io/MathJax-demos-web/convert-configuration/convert-configuration.html window.MathJax = { - chtml: { - scale: 2 - }, tex: { inlineMath: [['$', '$'], ['\\(', '\\)']], displayMath: [['$$', '$$'], ['\[\[', '\]\]']], processEscapes: true, processEnvironments: true, - autoload: { - color: [], - colorV2: ['color'] - }, - packages: { '[+]': ['noerrors'] } }, options: { skipHtmlTags: ['script', 'noscript', 'style', 'textarea', 'pre'], - ignoreHtmlClass: 'tex2jax_ignore', - processHtmlClass: 'tex2jax_process' - }, - loader: { - load: ['[tex]/noerrors'] } }; </script> diff --git a/static/css/common.css b/static/css/common.css index 5b34e0a..7df7b9f 100644 --- a/static/css/common.css +++ b/static/css/common.css @@ -107,6 +107,7 @@ time { } ::-webkit-scrollbar { + background-color: #FAFAFA; height: 8px; width: 8px; } diff --git a/static/css/content.css b/static/css/content.css index bc07997..91a0870 100644 --- a/static/css/content.css +++ b/static/css/content.css @@ -1,4 +1,5 @@ .content .MathJax { + font-size: 100%!important; overflow-x: auto; overflow-y: hidden; } |