From c38fdc2da5e64505c764a1abf1b5105507913c37 Mon Sep 17 00:00:00 2001 From: Yuri Sizov Date: Sat, 19 Nov 2022 22:23:38 +0300 Subject: [PATCH] Hide the ref badge from RTD's version selector --- _static/css/custom.css | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/_static/css/custom.css b/_static/css/custom.css index 121745b73..0dcdf6908 100644 --- a/_static/css/custom.css +++ b/_static/css/custom.css @@ -344,6 +344,11 @@ a[href*="classes/"]::before { display: none; } +/* Prevent the "ref" badge from appearing on Read the Docs inside of the version selector. */ +.rst-versions a[href*="classes/"]::before { + display: none; +} + hr, #search-results .search li:first-child, #search-results .search li { @@ -1031,6 +1036,21 @@ kbd.compound > .kbd, background-color: var(--navbar-current-background-color); } +.rst-versions.shift-up { + overflow: visible; +} + +.rst-versions.shift-up:before { + content: ''; + position: absolute; + left: 0; + top: -8px; + width: 100%; + height: 8px; + pointer-events: none; + background: linear-gradient(transparent, hsla(0, 0%, 0%, 0.2)); +} + @media only screen and (min-width: 769px) { .rst-versions { /* Required to center the page on wide displays */