diff --git a/docs/_static/custom.css b/docs/_static/custom.css index cf888242..ecd8fabc 100644 --- a/docs/_static/custom.css +++ b/docs/_static/custom.css @@ -28,4 +28,23 @@ div.sphx-glr-download a:hover { .bd-content .sd-tab-set>label { background-color: var(--napari-gray); color: #222832; +} + +/* Version warning banner color */ +#bd-header-version-warning { + background-color: color-mix(in srgb, var(--pst-color-secondary-bg), transparent 30%); +} + +#bd-header-version-warning .pst-button-link-to-stable-version { + background-color: color-mix(in srgb, var(--pst-color-secondary-bg), transparent 0%); + border-color: var(--pst-color-secondary-bg); + color: #222832; + font-weight: 700; +} + +#bd-header-version-warning .pst-button-link-to-stable-version:hover { + background-color: var(--pst-color-secondary-bg); + border-color: var(--pst-color-secondary-bg); + color: #222832; + font-weight: 700; } \ No newline at end of file diff --git a/docs/conf.py b/docs/conf.py index ba186779..e02cc538 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -118,7 +118,7 @@ "secondary_sidebar_items": ["page-toc"], "pygment_light_style": "napari", "pygment_dark_style": "napari", - "announcement": "https://napari.org/dev/_static/announcement.html", + "announcement": "", "back_to_top_button": False, "analytics": { # The domain you'd like to use for this analytics instance @@ -128,6 +128,7 @@ }, "footer_start": ["napari-footer-links"], "footer_end": ["napari-copyright"], + "show_version_warning_banner": True, } html_sidebars = {