From 0c45a64116eb6d566f73a04644a97f911ad8105b Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Sat, 15 Apr 2023 11:24:37 +0200 Subject: [PATCH] Correctly hide download buttons using CSS `visibility:hidden; height: 0px` still keeps margins, creating a large amount of whitespace. `display: none` is the correct way to remove an HTML element completely. --- 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 */ pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy