Permalink
Browse files

Use posts pagination and style it properly.

  • Loading branch information...
gonzomir committed Jul 31, 2017
1 parent 2a739b3 commit a3abeb4a63486b248ca2cf9c94a6f4a5d6696b09
Showing with 29 additions and 5 deletions.
  1. +1 −1 archive.php
  2. +1 −1 index.php
  3. +1 −1 search.php
  4. +26 −2 style.css
@@ -34,7 +34,7 @@
endwhile;
the_posts_navigation();
the_posts_pagination( array( 'mid_size' => 5 ) );
else :
@@ -39,7 +39,7 @@
endwhile;
the_posts_navigation();
the_posts_pagination( array( 'mid_size' => 5 ) );
else :
@@ -31,7 +31,7 @@
endwhile;
the_posts_navigation();
the_posts_pagination( array( 'mid_size' => 5 ) );
else :
@@ -806,6 +806,7 @@ h1 a:visited, h2 a:visited, h3 a:visited {
.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .pagination,
.site-main .post-navigation {
margin: 0 0 3em;
overflow: hidden;
@@ -832,8 +833,23 @@ h1 a:visited, h2 a:visited, h3 a:visited {
width: 50%;
}
}
.pagination a,
.pagination .current {
display: inline-block;
border: 1px solid;
border-color: currentColor;
border-radius: 3px;
margin: 0 .125em;
min-width: 2em;
padding: calc(.25em - 1px) .5em;
text-align: center;
text-decoration: none;
}
.pagination .current {
color: var(--accessory-colour);
}
/*--------------------------------------------------------------
@@ -1076,6 +1092,7 @@ h1 a:visited, h2 a:visited, h3 a:visited {
--------------------------------------------------------------*/
/* Globally hidden elements when Infinite Scroll is supported and in use. */
.infinite-scroll .posts-navigation, /* Older / Newer Posts Navigation (always hidden) */
.infinite-scroll .pagination, /* Posts Pagination (always hidden) */
.infinite-scroll.neverending .site-footer { /* Theme Footer (when set to scrolling) */
display: none;
}
@@ -1298,8 +1315,10 @@ footer[role="contentinfo"] a:focus {
margin: 0;
}
.home.blog main > .posts-navigation {
grid-column-start: 1;
.home.blog main > .posts-navigation,
.home.blog main > .pagination {
grid-column: 1 / -1;
align-self: center;
}
}
@@ -1384,10 +1403,15 @@ footer[role="contentinfo"] a:focus {
}
.posts-navigation,
.pagination,
.post-navigation {
clear: both;
}
.pagination {
text-align: center;
}
.single main h1 {
}

0 comments on commit a3abeb4

Please sign in to comment.