From: Alejandra <90076947+alejsdev@users.noreply.github.com> Date: Sun, 21 Sep 2025 12:54:15 +0000 (+0200) Subject: 🐛 Hide sponsor badge when sponsor image is not displayed (#14096) X-Git-Tag: 0.118.0~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=40f3ab18e078ff4c809f3ca63851673bba435a5b;p=thirdparty%2Ffastapi%2Ffastapi.git 🐛 Hide sponsor badge when sponsor image is not displayed (#14096) --- diff --git a/docs/en/docs/css/custom.css b/docs/en/docs/css/custom.css index b192f6123a..05bfd0fe86 100644 --- a/docs/en/docs/css/custom.css +++ b/docs/en/docs/css/custom.css @@ -124,6 +124,11 @@ a.announce-link:hover { border-radius: 20px; } +/* Hide .sponsor-badge when .sponsor-image is display none */ +.announce-wrapper a:has(.sponsor-image[style*="display: none"]) .sponsor-badge { + display: none; +} + .announce-wrapper>div { min-height: 40px; display: flex;