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

View File

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