From 1a91a4c400abb038b045679ca750513f3baa16db Mon Sep 17 00:00:00 2001 From: Daniel McCloy Date: Fri, 4 Aug 2023 17:10:09 -0500 Subject: [PATCH] remove cruft --- .../components/_readthedocs-switcher.scss | 80 +------------------ 1 file changed, 3 insertions(+), 77 deletions(-) diff --git a/src/pydata_sphinx_theme/assets/styles/components/_readthedocs-switcher.scss b/src/pydata_sphinx_theme/assets/styles/components/_readthedocs-switcher.scss index 859ed3b88..ce5968bd8 100644 --- a/src/pydata_sphinx_theme/assets/styles/components/_readthedocs-switcher.scss +++ b/src/pydata_sphinx_theme/assets/styles/components/_readthedocs-switcher.scss @@ -1,7 +1,6 @@ .rst-versions { position: relative !important; - color: var(--pst-color-text-muted) !important; - font-family: unset !important; + font-family: inherit !important; a { color: var(--pst-color-text-base); text-decoration: unset; @@ -11,96 +10,36 @@ } } &.rst-badge { - // width: auto; - appearance: button; - height: inherit; - max-height: inherit; border-color: var(--pst-color-border) !important; border-radius: var(--bs-dropdown-border-radius) !important; + border-style: solid !important; border-width: 1px !important; bottom: unset !important; right: unset !important; - // max-width: $nav-desktop-width; - // max-height: 90%; - // .icon-book { - // float: none; - // line-height: 30px; - // } - // .fa-book { - // float: none; - // line-height: 30px; - // } &.shift-up .rst-current-version { - text-align: unset; - display: inline; .fa-book { float: none !important; } - .icon-book { - float: none; - } > .rst-current-version { height: inherit !important; } } - // > .rst-current-version { - // width: auto; - // height: 30px; - // line-height: 30px; - // padding: 0 $base-line-height / 4; - // text-align: center; } - //.rst-badge-small { - // display: none; - //} .rst-current-version { - padding: unset !important; background-color: var(--pst-color-on-background) !important; - text-align: left !important; - font-size: unset !important; color: var(--pst-color-text-base) !important; - // @include clearfix; - // .fa { - // color: $section-background-color; - // } + font-size: unset !important; .fa-book { float: none; display: inline-block !important; } - .icon-book { - float: none; - } - // &.rst-out-of-date { - // background-color: $red; - // color: $white; - // } - // &.rst-active-old-version { - // background-color: $yellow; - // color: $black; - // } } - //&.shift-up { - // height: auto; - // max-height: 100%; - // overflow-y: scroll; - //} - //&.shift-up .rst-other-versions { - // display: inline-block !important; - //} .rst-other-versions { - // font-size: 90%; - // padding: $base-line-height / 2; - // display: none; position: absolute; width: 300px; color: var(--pst-color-text-muted) !important; background-color: var(--pst-color-on-background) !important; hr { - // display: block; - // height: 1px; - // border: 0; - // margin: 20px 0; - // padding: 0; border: none !important; border-top: solid 1px var(--pst-color-border) !important; } @@ -111,23 +50,10 @@ border-color: var(--pst-color-border) !important; border-radius: var(--bs-dropdown-border-radius) !important; border-width: 1px !important; - // display: inline-block; - // margin: 0; a { - // display: inline-block; - // padding: $base-line-height / 4; color: unset; @include link-style-hover; } } } } -//@include media($tablet) { -// .rst-versions { -// width: 85%; -// display: none; -// &.shift { -// display: block; -// } -// } -//}