Skip to content

Commit

Permalink
Add current page position between navigation buttons for pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
Praveer Gupta committed Aug 23, 2016
1 parent 0899d86 commit 29a0dc7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions _includes/pagination.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@
<span class="pagination-item disabled">{{ site.text.pagination.older }}</span>
{% endif %}
</div>
<div class="pagination-meta">Page {{ paginator.page }} of {{ paginator.total_pages }}</div>
</div>
6 changes: 5 additions & 1 deletion _sass/_pagination.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,14 @@
padding: 1em 1.5em;
}

.pagination .disabled {
.pagination .disabled, .pagination .pagination-meta {
opacity: 0.5;
}

.pagination .pagination-meta {
overflow: hidden;
}

.pagination a:hover, .pagination a:focus {
background: white;
color: #477dca;
Expand Down

0 comments on commit 29a0dc7

Please sign in to comment.