From 22507d04bd3d3f18c49d3a4b586238737cf563a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Melissa=20Weber=20Mendon=C3=A7a?= Date: Mon, 23 Dec 2024 15:49:38 -0300 Subject: [PATCH] Remove old banner and style version banner --- docs/_static/custom.css | 19 +++++++++++++++++++ docs/conf.py | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/docs/_static/custom.css b/docs/_static/custom.css index cf8882428..ecd8fabcf 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 e58118bb6..e02cc538a 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