Skip to content

Commit 901a16a

Browse files
committed
Cleaner way to space buttons
1 parent cb46c28 commit 901a16a

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

sphinx_rtd_theme/footer.html

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
<footer>
22
{%- if (theme_prev_next_buttons_location == 'bottom' or theme_prev_next_buttons_location == 'both') and (next or prev) %}
33
<div class="rst-footer-buttons" role="navigation" aria-label="{{ _('Footer') }}">
4-
<div class="column">
54
{%- if prev %}
65
<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>
76
{%- endif %}
8-
</div>
9-
<div class="column">
107
{%- if next %}
11-
<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>
8+
<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>
129
{%- endif %}
13-
</div>
1410
</div>
1511
{%- endif %}
1612

src/sass/_theme_layout.sass

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -353,9 +353,7 @@ footer
353353
.rst-footer-buttons
354354
display: flex
355355
flex-direction: row
356-
357-
.column
358-
width: 50%
356+
justify-content: space-between
359357

360358
.rst-breadcrumbs-buttons
361359
margin-top: 12px

0 commit comments

Comments
 (0)