diff --git a/src/pydata_sphinx_theme/assets/styles/base/_base.scss b/src/pydata_sphinx_theme/assets/styles/base/_base.scss index 55a8b9132..594825da8 100644 --- a/src/pydata_sphinx_theme/assets/styles/base/_base.scss +++ b/src/pydata_sphinx_theme/assets/styles/base/_base.scss @@ -40,6 +40,9 @@ a { color: var(--pst-color-link); text-decoration: none; + // So that really long links don't spill out of their container + word-wrap: break-word; + &:hover { color: var(--pst-color-link-hover); text-decoration: underline; diff --git a/src/pydata_sphinx_theme/assets/styles/content/_math.scss b/src/pydata_sphinx_theme/assets/styles/content/_math.scss index fabd5da85..dd009d5ad 100644 --- a/src/pydata_sphinx_theme/assets/styles/content/_math.scss +++ b/src/pydata_sphinx_theme/assets/styles/content/_math.scss @@ -36,7 +36,7 @@ div.math { mjx-container { flex-grow: 1; padding-bottom: 0.2rem; - overflow-x: auto; + overflow-x: visible; @include scrollbar-style(); } } diff --git a/src/pydata_sphinx_theme/assets/styles/sections/_header.scss b/src/pydata_sphinx_theme/assets/styles/sections/_header.scss index b53931c6c..37d122c22 100644 --- a/src/pydata_sphinx_theme/assets/styles/sections/_header.scss +++ b/src/pydata_sphinx_theme/assets/styles/sections/_header.scss @@ -25,6 +25,14 @@ padding-right: 1rem; } + // These items will define the height of the header + .navbar-item { + height: var(--pst-header-height); + max-height: var(--pst-header-height); + display: flex; + align-items: center; + } + // Hide the header items on mobile .navbar-header-items { display: none; @@ -34,14 +42,6 @@ flex-grow: 1; padding: 0 0 0 0.5rem; } - - // These items will define the height of the header - .navbar-item { - height: var(--pst-header-height); - max-height: var(--pst-header-height); - display: flex; - align-items: center; - } } .navbar-header-items__end,