style(paginav): improve layout and spacing for navigation links

This commit is contained in:
Aditya Telange
2026-04-11 20:53:16 +05:30
parent 86ed1c47bc
commit 8739b2f73b
2 changed files with 10 additions and 13 deletions
+10 -11
View File
@@ -173,29 +173,28 @@ details li ul {
.paginav {
display: flex;
line-height: 30px;
}
.paginav a {
padding-inline-start: 14px;
padding-inline-end: 14px;
border-radius: var(--radius);
line-height: 1.2;
}
.paginav .title {
letter-spacing: 1px;
text-transform: uppercase;
font-size: small;
font-size: 0.8rem;
color: var(--secondary);
}
.paginav .prev,
.paginav .next {
.paginav a {
width: 50%;
display: flex;
flex-direction: column;
gap: 0.5rem;
padding: 0.8rem;
border-radius: var(--radius);
}
.paginav span:hover:not(.title) {
box-shadow: 0 1px 0;
text-underline-offset: 0.2rem;
text-decoration: underline;
}
.paginav .next {
-2
View File
@@ -4,14 +4,12 @@
{{- with $pages.Next . }}
<a class="prev" href="{{ .Permalink }}">
<span class="title">« {{ i18n "prev_page" }}</span>
<br>
<span>{{- .Name -}}</span>
</a>
{{- end }}
{{- with $pages.Prev . }}
<a class="next" href="{{ .Permalink }}">
<span class="title">{{ i18n "next_page" }} »</span>
<br>
<span>{{- .Name -}}</span>
</a>
{{- end }}