Skip to content

Commit

Permalink
2.13
Browse files Browse the repository at this point in the history
  • Loading branch information
wizardforcel committed Feb 12, 2016
1 parent 45947c8 commit a138498
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 6 deletions.
14 changes: 8 additions & 6 deletions layout/_partial/archive.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
<%- partial('article', {post: post, index: true}) %>
<% }) %>
<% if (page.total > 1){ %>
<nav id="page-nav">
<%- paginator({
prev_text: '&laquo; Prev',
next_text: 'Next &raquo;'
}) %>
<nav id="pagination">
<nav id="page-nav">
<%- paginator({
prev_text: '&laquo; Prev',
next_text: 'Next &raquo;'
}) %>
</nav>
</nav>
<% } %>
<% } else { %>
Expand All @@ -30,4 +32,4 @@
<% if (page.posts.length){ %>
</div></section>
<% } %>
<% } %>
<% } %>
52 changes: 52 additions & 0 deletions source/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,58 @@ img.wp-smiley,
}

/* Navigation */
#pagination {
zoom: 1;
-webkit-border-radius: 2px;
border-radius: 2px;
text-align: center;
overflow: hidden;
margin-bottom: 50px;
border: 1px solid rgba(0, 0, 0, 0.24);
}
#pagination:before,
#pagination:after {
content: "";
display: table;
}
#pagination:after {
clear: both;
}
#pagination a,
#pagination span {
padding: 10px 20px;
line-height: 1;
height: 2ex;
}
#pagination a {
color: #999;
text-decoration: none;
}
#pagination a:hover {
color: #000;
}
#pagination .prev {
float: left;
}
#pagination .next {
float: right;
}
#pagination .page-number {
display: inline-block;
}
@media mq-mobile {
#pagination .page-number {
display: none;
}
}
#pagination .current {
color: #000;
font-weight: bold;
}
#pagination .space {
color: #ddd;
}

.site-content nav {
clear: both;
line-height: 2;
Expand Down

0 comments on commit a138498

Please sign in to comment.