Skip to content

Commit

Permalink
update docs: add back sponsor button
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmicBboy committed Apr 30, 2022
1 parent 9c5eaa3 commit c494ee7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/source/_static/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ div.sponsorship {
}

.sponsorship button {
border: 1px solid #dcdcdc;
background: var(--color-code-background);
border: 1px solid var(--color-sidebar-background-border);
color: var(--color-code-foreground);
width: auto;
height: 40px;
width: 100px;
Expand All @@ -53,6 +55,7 @@ div.sponsorship {

.rst-versions.rst-badge {
bottom: 75px !important;
max-width: fit-content !important;
}

/* tabbed content */
Expand Down
12 changes: 12 additions & 0 deletions docs/source/_templates/page.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{% extends "!page.html" %}

{% block body -%}
{{ super() }}

<div class="sponsorship">
<a href="{{ sponsor_link }}" target="_blank">
<button><i class="fa fa-heart"></i> Sponsor</button>
</a>
</div>

{%- endblock %}

0 comments on commit c494ee7

Please sign in to comment.