Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zzossig/hugo-theme-zzo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoyqat <joyqat@users.noreply.github.com>2020-07-24 05:09:48 +0300
committerjoyqat <joyqat@users.noreply.github.com>2020-07-24 05:09:48 +0300
commit4069de6423777a4d753fd16361897fccd0cabcc2 (patch)
treefda4370a772741e232a07280c2f7859191bd2eb4
parent91cf4b6be565e145ee0f15c2412f7737176d41bd (diff)
Mathjax:
1. prevent clip due to x scroll 2. (IE support)add polyfill.js advised from mathjax
-rw-r--r--assets/sass/components/_math.scss1
-rw-r--r--layouts/partials/script/single-script.html1
2 files changed, 2 insertions, 0 deletions
diff --git a/assets/sass/components/_math.scss b/assets/sass/components/_math.scss
index d6e7579..2a66e4d 100644
--- a/assets/sass/components/_math.scss
+++ b/assets/sass/components/_math.scss
@@ -1,4 +1,5 @@
.MathJax {
overflow-x: auto;
overflow-y: hidden;
+ box-sizing: border-box;
}
diff --git a/layouts/partials/script/single-script.html b/layouts/partials/script/single-script.html
index 2832470..3e39f69 100644
--- a/layouts/partials/script/single-script.html
+++ b/layouts/partials/script/single-script.html
@@ -46,6 +46,7 @@
}
};
</script>
+ <script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script async src="{{ $js.mathjax.url }}"></script>
{{ end }}