From 94b99350fc6bfaa0a13806dd338d5b3e85810c1f Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Tue, 2 Feb 2021 17:37:50 +0800 Subject: [PATCH] Restore the prompt in the page nav button in the latest/oldest articles --- _includes/post-nav.html | 6 ++++-- _sass/layout/post.scss | 13 +++++++------ 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/_includes/post-nav.html b/_includes/post-nav.html index 521b9e5..c8a6f2e 100644 --- a/_includes/post-nav.html +++ b/_includes/post-nav.html @@ -9,7 +9,8 @@

{{ page.previous.title }}

{% else %} - +

-

{% endif %} @@ -20,7 +21,8 @@

{{ page.next.title }}

{% else %} - +

-

{% endif %} diff --git a/_sass/layout/post.scss b/_sass/layout/post.scss index cc3b60c..6debb22 100644 --- a/_sass/layout/post.scss +++ b/_sass/layout/post.scss @@ -85,6 +85,12 @@ &.btn-outline-primary.disabled:focus { box-shadow: none; } + &::before { + color: var(--text-muted-color); + font-size: 0.65rem; + text-transform: uppercase; + content: attr(prompt); + } } p { @@ -95,12 +101,6 @@ } a { - &::before { - color: var(--text-muted-color); - font-size: 0.65rem; - text-transform: uppercase; - content: attr(prompt); - } &:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; @@ -112,6 +112,7 @@ right: 0.5px; } } + } // .post-navigation @keyframes fade-up {