From d13299827247260388bfeea92ad60c011830ff40 Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Sun, 16 Apr 2023 23:14:34 +0200 Subject: [PATCH] Backport PR #25693: Correctly hide download buttons using CSS --- doc/_static/mpl.css | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/doc/_static/mpl.css b/doc/_static/mpl.css index c763e6fb4397..cafb6b589150 100644 --- a/doc/_static/mpl.css +++ b/doc/_static/mpl.css @@ -62,12 +62,11 @@ html[data-theme="dark"] .sphx-glr-thumbcontainer { padding: 0; } -/* hide note linking to the download section at the bottom of galleries - * as suggested in https://github.com/sphinx-gallery/sphinx-gallery/issues/760 +/* hide download buttons in example headers + * https://sphinx-gallery.github.io/stable/advanced.html#hide-the-download-buttons-in-the-example-headers */ div.sphx-glr-download-link-note { - height: 0px; - visibility: hidden; + display: none; } /* re-style the download button */