diff --git a/src/pydata_sphinx_theme/assets/scripts/pydata-sphinx-theme.js b/src/pydata_sphinx_theme/assets/scripts/pydata-sphinx-theme.js index bf56b0a442..4c4262ff97 100644 --- a/src/pydata_sphinx_theme/assets/scripts/pydata-sphinx-theme.js +++ b/src/pydata_sphinx_theme/assets/scripts/pydata-sphinx-theme.js @@ -531,4 +531,4 @@ documentReady(addModeListener); documentReady(scrollToActive); documentReady(addTOCInteractivity); documentReady(setupSearchButtons); -documentReady(initRTDObserver); +// documentReady(initRTDObserver); 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 743c0cb572..433a77e153 100644 --- a/src/pydata_sphinx_theme/assets/styles/components/_readthedocs-switcher.scss +++ b/src/pydata_sphinx_theme/assets/styles/components/_readthedocs-switcher.scss @@ -1,13 +1,15 @@ +#readthedocs-embed-flyout { + align-self: start; + height: inherit; + max-height: inherit; + overflow-y: visible; + position: relative; +} .rst-versions { position: relative !important; - bottom: unset; - left: unset; - width: unset; - background: unset; background-color: var(--pst-color-on-background) !important; - color: var(--pst-color-text-muted); + color: var(--pst-color-text-muted) !important; font-family: unset !important; - z-index: unset; a { background-color: var(--pst-color-on-background); color: var(--pst-color-text-base); @@ -20,6 +22,8 @@ &.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-width: 1px !important; @@ -37,12 +41,16 @@ // } &.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; @@ -55,10 +63,10 @@ // display: none; //} .rst-current-version { - // padding: $base-line-height / 2; + padding: unset !important; background-color: var(--bs-btn-bg) !important; text-align: left !important; - font-size: unset; + font-size: unset !important; color: var(--pst-color-text-base) !important; // @include clearfix; // .fa { @@ -92,17 +100,18 @@ // font-size: 90%; // padding: $base-line-height / 2; // display: none; - color: var(--pst-color-text-muted); + color: var(--pst-color-text-muted) !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; } dl { - border-top: solid 1px var(--pst-color-border); + border-top: solid 1px var(--pst-color-border) !important; } dd { border-color: var(--pst-color-border) !important;