Skip to content

Commit dbab9ef

Browse files
committed
more styling again
1 parent de8c3a7 commit dbab9ef

File tree

2 files changed

+20
-11
lines changed

2 files changed

+20
-11
lines changed

src/pydata_sphinx_theme/assets/scripts/pydata-sphinx-theme.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -531,4 +531,4 @@ documentReady(addModeListener);
531531
documentReady(scrollToActive);
532532
documentReady(addTOCInteractivity);
533533
documentReady(setupSearchButtons);
534-
documentReady(initRTDObserver);
534+
// documentReady(initRTDObserver);

src/pydata_sphinx_theme/assets/styles/components/_readthedocs-switcher.scss

+19-10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1+
#readthedocs-embed-flyout {
2+
align-self: start;
3+
height: inherit;
4+
max-height: inherit;
5+
overflow-y: visible;
6+
position: relative;
7+
}
18
.rst-versions {
29
position: relative !important;
3-
bottom: unset;
4-
left: unset;
5-
width: unset;
6-
background: unset;
710
background-color: var(--pst-color-on-background) !important;
8-
color: var(--pst-color-text-muted);
11+
color: var(--pst-color-text-muted) !important;
912
font-family: unset !important;
10-
z-index: unset;
1113
a {
1214
background-color: var(--pst-color-on-background);
1315
color: var(--pst-color-text-base);
@@ -20,6 +22,8 @@
2022
&.rst-badge {
2123
// width: auto;
2224
appearance: button;
25+
height: inherit;
26+
max-height: inherit;
2327
border-color: var(--pst-color-border) !important;
2428
border-radius: var(--bs-dropdown-border-radius) !important;
2529
border-width: 1px !important;
@@ -37,12 +41,16 @@
3741
// }
3842
&.shift-up .rst-current-version {
3943
text-align: unset;
44+
display: inline;
4045
.fa-book {
4146
float: none !important;
4247
}
4348
.icon-book {
4449
float: none;
4550
}
51+
> .rst-current-version {
52+
height: inherit !important;
53+
}
4654
}
4755
// > .rst-current-version {
4856
// width: auto;
@@ -55,10 +63,10 @@
5563
// display: none;
5664
//}
5765
.rst-current-version {
58-
// padding: $base-line-height / 2;
66+
padding: unset !important;
5967
background-color: var(--bs-btn-bg) !important;
6068
text-align: left !important;
61-
font-size: unset;
69+
font-size: unset !important;
6270
color: var(--pst-color-text-base) !important;
6371
// @include clearfix;
6472
// .fa {
@@ -92,17 +100,18 @@
92100
// font-size: 90%;
93101
// padding: $base-line-height / 2;
94102
// display: none;
95-
color: var(--pst-color-text-muted);
103+
color: var(--pst-color-text-muted) !important;
96104
hr {
97105
// display: block;
98106
// height: 1px;
99107
// border: 0;
100108
// margin: 20px 0;
101109
// padding: 0;
110+
border: none !important;
102111
border-top: solid 1px var(--pst-color-border) !important;
103112
}
104113
dl {
105-
border-top: solid 1px var(--pst-color-border);
114+
border-top: solid 1px var(--pst-color-border) !important;
106115
}
107116
dd {
108117
border-color: var(--pst-color-border) !important;

0 commit comments

Comments
 (0)