-
Notifications
You must be signed in to change notification settings - Fork 332
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: place the RDT flyout in the sidebar (#1005)
* try to set the flyout in the left bottom corner * add a mutation observer * add some styling * typo * start customization * customization * avoid y scroll * custom content * custom content * typo * fix test * color of the links * color to surface * final custom ? * bug in margins * custom for small screen
- Loading branch information
Showing
5 changed files
with
104 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletions
69
src/pydata_sphinx_theme/assets/styles/components/_readthedocs-switcher.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
.bd-sidebar-primary div#rtd-footer-container { | ||
position: sticky; | ||
bottom: -1rem; | ||
margin: -1rem; // ignore sidebar padding | ||
|
||
.rst-versions.rst-badge { | ||
position: unset; | ||
font-size: 0.9em; | ||
font-family: var(--pst-font-family-base); | ||
max-width: unset; | ||
|
||
.rst-current-version { | ||
display: flex; | ||
align-items: center; | ||
gap: 0.2rem; | ||
height: 2.5rem; | ||
transition: background-color 0.2s ease-out; | ||
background-color: var(--pst-color-background); | ||
color: var(--pst-color-success); | ||
border-top: 1px solid var(--pst-color-border); | ||
} | ||
|
||
.fa.fa-book { | ||
color: var(--pst-color-text-muted); | ||
margin-right: auto; | ||
|
||
&::after { | ||
color: var(--pst-color-text-base); | ||
content: "Read The Docs"; | ||
font-family: var(--pst-font-family-base); | ||
font-weight: var(--pst-font-weight-heading); | ||
} | ||
} | ||
.fa.fa-caret-down { | ||
color: var(--pst-color-text-muted); | ||
} | ||
} | ||
|
||
.rst-versions.rst-badge.shift-up { | ||
.rst-current-version { | ||
border-bottom: 1px solid var(--pst-color-border); | ||
} | ||
} | ||
|
||
.rst-other-versions { | ||
background-color: var(--pst-color-surface); | ||
color: var(--pst-color-text-base); | ||
|
||
dl { | ||
dd a { | ||
color: var(--pst-color-text-muted); | ||
} | ||
} | ||
|
||
hr { | ||
background-color: var(--pst-color-border); | ||
} | ||
|
||
small a { | ||
color: var(--pst-color-link); | ||
} | ||
|
||
input { | ||
padding-left: 0.5rem; | ||
border: 1px solid var(--pst-color-border); | ||
background-color: var(--pst-color-surface); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,4 +79,6 @@ | |
<div class="sidebar-end-items__item"> | ||
</div> | ||
</div> | ||
<div id="rtd-footer-container"> | ||
</div> | ||
</div> |