From e063108ea46e18bec24da44acda3eff1caa0b673 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Sun, 9 Jan 2022 14:47:10 +0100 Subject: [PATCH] Fixed scrollbars on MathJax formulas --- .../stylesheets/main/extensions/pymdownx/_arithmatex.scss | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/assets/stylesheets/main/extensions/pymdownx/_arithmatex.scss b/src/assets/stylesheets/main/extensions/pymdownx/_arithmatex.scss index 4b56e0b4c..69910f82d 100644 --- a/src/assets/stylesheets/main/extensions/pymdownx/_arithmatex.scss +++ b/src/assets/stylesheets/main/extensions/pymdownx/_arithmatex.scss @@ -39,9 +39,14 @@ // Arithmatex content > * { width: min-content; - margin: 1em auto !important; // stylelint-disable-line + margin-inline: auto !important; // stylelint-disable-line padding: 0 px2rem(16px); touch-action: auto; + + // MathJax container - see https://bit.ly/3HR8YJ5 + mjx-container { + margin: 0 !important; // stylelint-disable-line + } } } }