diff --git a/docs/conf.py b/docs/conf.py index b2c0771d3..3be8e45eb 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -189,6 +189,7 @@ "version_match": version_match, }, "navigation_with_keys": False, + # "back_to_top_button": False, # "search_bar_position": "navbar", # TODO: Deprecated - remove in future version } diff --git a/src/pydata_sphinx_theme/assets/styles/base/_base.scss b/src/pydata_sphinx_theme/assets/styles/base/_base.scss index efa349103..345de1333 100644 --- a/src/pydata_sphinx_theme/assets/styles/base/_base.scss +++ b/src/pydata_sphinx_theme/assets/styles/base/_base.scss @@ -172,7 +172,7 @@ pre { z-index: $zindex-tooltip; position: fixed; display: none; - top: 80vh; + top: 90vh; left: 50vw; transform: translate(-50%); color: var(--pst-color-secondary-text); diff --git a/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/layout.html b/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/layout.html index 13ea08afd..18a3cbf2a 100644 --- a/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/layout.html +++ b/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/layout.html @@ -43,11 +43,13 @@ {# A tiny helper pixel to detect if we've scrolled #}
+ {%- if theme_back_to_top_button %} {# the scroll to top button #} + {%- endif %} {# checkbox to toggle primary sidebar #}