Skip to content

Commit

Permalink
doc: style the readthedocs badge
Browse files Browse the repository at this point in the history
Signed-off-by: Frost Ming <me@frostming.com>
  • Loading branch information
frostming committed Apr 25, 2024
1 parent af918b7 commit b2a72d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/assets/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ a.pdm-expansions {
}

/* for readthedocs badge */
div.rst-versions.rst-badge {
left: 20px;
right: auto;
#readthedocs-embed-flyout {
position: sticky;
bottom: 0px;
width: auto;
max-width: 200px;
}
1 change: 1 addition & 0 deletions docs/overrides/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
{% endblock %}

{% block footer %}
<div id="readthedocs-embed-flyout"></div>
{{ super() }}
<div class="bot-container">
<a class="twemoji bot-button" href="javascript:void(0)" title="Ask bot about PDM">
Expand Down

0 comments on commit b2a72d7

Please sign in to comment.