From 49048aa3338c378ca03ed6701059fab9f10d6251 Mon Sep 17 00:00:00 2001 From: Chris Holdgraf Date: Fri, 17 Feb 2023 05:36:05 -0800 Subject: [PATCH 1/3] Fix math scrollbars for realz --- src/pydata_sphinx_theme/assets/styles/content/_math.scss | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/pydata_sphinx_theme/assets/styles/content/_math.scss b/src/pydata_sphinx_theme/assets/styles/content/_math.scss index 66fa8dc57..174810fb7 100644 --- a/src/pydata_sphinx_theme/assets/styles/content/_math.scss +++ b/src/pydata_sphinx_theme/assets/styles/content/_math.scss @@ -36,8 +36,13 @@ 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; + } } } From fa8a4bd413415e42af78c7cc6b6e35bb50841563 Mon Sep 17 00:00:00 2001 From: Chris Holdgraf Date: Fri, 17 Feb 2023 05:38:39 -0800 Subject: [PATCH 2/3] Update src/pydata_sphinx_theme/assets/styles/content/_math.scss --- src/pydata_sphinx_theme/assets/styles/content/_math.scss | 1 - 1 file changed, 1 deletion(-) diff --git a/src/pydata_sphinx_theme/assets/styles/content/_math.scss b/src/pydata_sphinx_theme/assets/styles/content/_math.scss index 174810fb7..38f0d7c4a 100644 --- a/src/pydata_sphinx_theme/assets/styles/content/_math.scss +++ b/src/pydata_sphinx_theme/assets/styles/content/_math.scss @@ -38,7 +38,6 @@ div.math { padding-bottom: 0.2rem; 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 { From 8f6233145d976ead33cfb5889ade07d9982d17e7 Mon Sep 17 00:00:00 2001 From: Chris Holdgraf Date: Fri, 17 Feb 2023 05:47:24 -0800 Subject: [PATCH 3/3] Update src/pydata_sphinx_theme/assets/styles/content/_math.scss --- src/pydata_sphinx_theme/assets/styles/content/_math.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pydata_sphinx_theme/assets/styles/content/_math.scss b/src/pydata_sphinx_theme/assets/styles/content/_math.scss index 38f0d7c4a..71ed6b98f 100644 --- a/src/pydata_sphinx_theme/assets/styles/content/_math.scss +++ b/src/pydata_sphinx_theme/assets/styles/content/_math.scss @@ -40,7 +40,7 @@ div.math { @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 { + mjx-assistive-mml { height: 0; } }