Skip to content

Commit

Permalink
Cleaner way to space buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
jonels-msft committed May 26, 2021
1 parent cb46c28 commit 67c139b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 1 addition & 5 deletions sphinx_rtd_theme/footer.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
<footer>
{%- if (theme_prev_next_buttons_location == 'bottom' or theme_prev_next_buttons_location == 'both') and (next or prev) %}
<div class="rst-footer-buttons" role="navigation" aria-label="{{ _('Footer') }}">
<div class="column">
{%- if prev %}
<a href="{{ prev.link|e }}" class="btn btn-neutral" title="{{ prev.title|striptags|e }}" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> {{ _('Previous') }}</a>
{%- endif %}
</div>
<div class="column">
{%- if next %}
<a href="{{ next.link|e }}" class="btn btn-neutral float-right" title="{{ next.title|striptags|e }}" accesskey="n" rel="next">{{ _('Next') }} <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
<a href="{{ next.link|e }}" class="btn btn-neutral" title="{{ next.title|striptags|e }}" accesskey="n" rel="next">{{ _('Next') }} <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
{%- endif %}
</div>
</div>
{%- endif %}

Expand Down
4 changes: 1 addition & 3 deletions src/sass/_theme_layout.sass
Original file line number Diff line number Diff line change
Expand Up @@ -353,9 +353,7 @@ footer
.rst-footer-buttons
display: flex
flex-direction: row

.column
width: 50%
justify-content: space-between;

.rst-breadcrumbs-buttons
margin-top: 12px
Expand Down

0 comments on commit 67c139b

Please sign in to comment.