hugo-theme-termlite/assets/css/099_page_navigation.css
Eryn Wells accd1aceeb A couple fixes for page navigation
- Put the previous post on the left, and the next post on the right
- Simplify the CSS class names and styles
2024-12-23 08:13:30 -08:00

42 lines
591 B
CSS

/******************
# PAGE NAVIGATION
******************/
.page-navigation {
list-style: none;
padding-inline: 0;
&:has(.next-page:only-child) {
justify-content: flex-end;
}
.prev, .next {
display: block;
padding-inline: 0;
}
.next {
text-align: right;
}
.prev::before,
.next::after {
color: var(--text-color-secondary);
font-family: var(--font-family-monospace);
}
.prev::before {
content: "<-";
padding-inline-end: var(--space-s);
}
.next::after {
content: "->";
padding-inline-start: var(--space-s);
}
}