Skip to content

Commit

Permalink
Fix math scrollbars for realz (#1198)
Browse files Browse the repository at this point in the history
* Fix math scrollbars for realz

* Update src/pydata_sphinx_theme/assets/styles/content/_math.scss

* Update src/pydata_sphinx_theme/assets/styles/content/_math.scss
  • Loading branch information
choldgraf authored Feb 17, 2023
1 parent 371b451 commit c14c2b1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/pydata_sphinx_theme/assets/styles/content/_math.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,12 @@ div.math {
mjx-container {
flex-grow: 1;
padding-bottom: 0.2rem;
overflow-y: visible;
overflow-x: auto;
overflow: auto;
@include scrollbar-style();
// Set height to 0 so that it does not cause scrollbars to appear
// ref: https://github.com/mathjax/MathJax/issues/2521
mjx-assistive-mml {
height: 0;
}
}
}

0 comments on commit c14c2b1

Please sign in to comment.