Skip to content

Commit e063108

Browse files
committed
Fixed scrollbars on MathJax formulas
1 parent cffb403 commit e063108

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/assets/stylesheets/main/extensions/pymdownx/_arithmatex.scss

+6-1
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,14 @@
3939
// Arithmatex content
4040
> * {
4141
width: min-content;
42-
margin: 1em auto !important; // stylelint-disable-line
42+
margin-inline: auto !important; // stylelint-disable-line
4343
padding: 0 px2rem(16px);
4444
touch-action: auto;
45+
46+
// MathJax container - see https://bit.ly/3HR8YJ5
47+
mjx-container {
48+
margin: 0 !important; // stylelint-disable-line
49+
}
4550
}
4651
}
4752
}

0 commit comments

Comments
 (0)