mirror of
				https://github.com/ZetaKebab/kesper.git
				synced 2025-11-04 08:09:49 +00:00 
			
		
		
		
	Added regular pagination option
Casper comes with infinite scrolling by default. This update makes it possible to go with the default pagination style when the <html> element has a class no-infinite-scroll.
This commit is contained in:
		@@ -273,7 +273,7 @@ production stylesheet in assets/built/screen.css
 | 
			
		||||
    color: #fff;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.home-template.has-cover .gh-head {
 | 
			
		||||
:is(.home-template, .paged:not(.tag-template):not(.author-template)).has-cover .gh-head {
 | 
			
		||||
    position: absolute;
 | 
			
		||||
    top: 0;
 | 
			
		||||
    right: 0;
 | 
			
		||||
@@ -1145,6 +1145,41 @@ make sure this only happens on large viewports / desktop-ish devices.
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* Pagination
 | 
			
		||||
/* ---------------------------------------------------------- */
 | 
			
		||||
 | 
			
		||||
.pagination {
 | 
			
		||||
    display: none;
 | 
			
		||||
    grid-template-columns: 1fr auto 1fr;
 | 
			
		||||
    align-items: center;
 | 
			
		||||
    margin-top: 8vmin;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
html.no-infinite-scroll .pagination {
 | 
			
		||||
    display: grid;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pagination a {
 | 
			
		||||
    font-size: 1.7rem;
 | 
			
		||||
    font-weight: 600;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pagination .page-number {
 | 
			
		||||
    grid-column-start: 2;
 | 
			
		||||
    color: var(--color-secondary-text);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pagination .older-posts {
 | 
			
		||||
    grid-column-start: 3;
 | 
			
		||||
    text-align: right;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@media (max-width: 767px) {
 | 
			
		||||
    .pagination .page-number {
 | 
			
		||||
        display: none;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/* 7. Single Post
 | 
			
		||||
/* ---------------------------------------------------------- */
 | 
			
		||||
 
 | 
			
		||||
@@ -14,6 +14,8 @@
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
(function (window, document) {
 | 
			
		||||
    if (document.documentElement.classList.contains('no-infinite-scroll')) return;
 | 
			
		||||
 | 
			
		||||
    // next link element
 | 
			
		||||
    var nextElement = document.querySelector('link[rel=next]');
 | 
			
		||||
    if (!nextElement) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user