mirror of
https://github.com/matrix-org/matrix.org.git
synced 2026-01-11 20:07:22 +00:00
Restyle pagination
This commit is contained in:
parent
b99ad1f932
commit
4f2ae2f60d
2 changed files with 26 additions and 9 deletions
|
|
@ -1,5 +1,17 @@
|
|||
.pagination {
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 1.5rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin: 1rem 0;
|
||||
font-size: 120%;
|
||||
|
||||
>div {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
a {
|
||||
padding: .5rem;
|
||||
display: block;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,13 @@
|
|||
<nav class="pagination">
|
||||
{% if paginator.previous %}
|
||||
<a class="w-button button-dark" href="{{ paginator.previous }}">‹ Previous</a>
|
||||
{% endif %}
|
||||
{% if paginator.next %}
|
||||
<a class="w-button button-dark" href="{{ paginator.next }}">Next ›</a>
|
||||
{% endif %}
|
||||
<div class="prev">
|
||||
{% if paginator.previous %}
|
||||
<a href="{{ paginator.previous }}">‹ Previous</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
<span class="page-number">{{ paginator.current_index }} / {{ paginator.number_pagers }}</span>
|
||||
<div class="prev">
|
||||
{% if paginator.next %}
|
||||
<a href="{{ paginator.next }}">Next ›</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</nav>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue