🔀 Merge pull request #26 from Benjamin-Lee/patch-1

Fix article pagination spacing
pull/27/head
James Panther 2021-11-06 14:40:45 +11:00 committed by GitHub
commit 5de5c0a56e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 10 deletions

View File

@ -1928,8 +1928,8 @@ body a, body button {
margin-right: 0.75rem;
}
.-mt-1 {
margin-top: -0.25rem;
.mt-\[0\.1rem\] {
margin-top: 0.1rem;
}
.ml-3 {
@ -2336,14 +2336,14 @@ body a, body button {
line-height: 1.75rem;
}
.leading-3 {
line-height: .75rem;
}
.leading-6 {
line-height: 1.5rem;
}
.leading-3 {
line-height: .75rem;
}
.text-neutral-400 {
color: var(--color-neutral-400);
}

View File

@ -8,8 +8,10 @@
<a class="flex" href="{{ .NextInSection.RelPermalink }}">
<span class="mr-3 article-pagination-direction">&larr;</span>
<span class="flex flex-col">
<span class="article-pagination-title">{{ .NextInSection.Title | emojify }}</span>
<span class="-mt-1 text-xs text-neutral-400 dark:text-neutral-500">
<span class="article-pagination-title mt-[0.1rem] leading-6"
>{{ .NextInSection.Title | emojify }}</span
>
<span class="mt-[0.1rem] text-xs text-neutral-400 dark:text-neutral-500">
{{ if .Params.showDate | default (.Site.Params.article.showDate | default true) }}
{{ partial "meta/date.html" . }}
{{ end }}
@ -22,8 +24,10 @@
{{ if .PrevInSection }}
<a class="flex text-right" href="{{ .PrevInSection.RelPermalink }}">
<span class="flex flex-col">
<span class="article-pagination-title">{{ .PrevInSection.Title | emojify }}</span>
<span class="-mt-1 text-xs text-neutral-400 dark:text-neutral-500">
<span class="article-pagination-title mt-[0.1rem] leading-6"
>{{ .PrevInSection.Title | emojify }}</span
>
<span class="mt-[0.1rem] text-xs text-neutral-400 dark:text-neutral-500">
{{ if .Params.showDate | default (.Site.Params.article.showDate | default true) }}
{{ partial "meta/date.html" . }}
{{ end }}