summaryrefslogtreecommitdiff
path: root/assets/css/components
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-05-20 12:07:08 +0800
committerEltrac <hi@guhub.cn>2025-05-20 12:07:08 +0800
commitc1f5a15ed5f4753ee0ab0b09a8f227bd20a2125c (patch)
tree006ef1bbf071557fa585556ad5b60b3ca46e649b /assets/css/components
parent86ce4c172b2babf71b2a35946f47f7a6f9795103 (diff)
feat: change Related Posts to Now Read This
1. Fewer items (only one), less distraction 2. Show summary 3. Encourage readers to read more with a imperative sentence Former-commit-id: ad1558fe2088d8b7ab1252ed63e9da749133b6ae
Diffstat (limited to 'assets/css/components')
-rw-r--r--assets/css/components/_post.scss57
1 files changed, 18 insertions, 39 deletions
diff --git a/assets/css/components/_post.scss b/assets/css/components/_post.scss
index 4c05841a..05e29e08 100644
--- a/assets/css/components/_post.scss
+++ b/assets/css/components/_post.scss
@@ -96,48 +96,27 @@
/* related posts */
-.related-posts {
- .related-posts-list {
- padding-inline-start: 0;
- .related-posts-item {
- display: flex;
- justify-content: space-between;
- align-items: center;
- .related-post-subtitle {
- color: var(--secondary-text-color);
- }
- .related-post-reading-time {
- font-family: var(--mono-font-family);
- color: var(--secondary-text-color);
- font-size: 0.9rem;
- }
- }
- }
-}
-
-.post-bottom-navigation {
- ul {
- list-style: none;
- padding: 0;
+.nrt {
+ margin-top: 5rem;
+ position: relative;
+ .nrt-title {
+ position: absolute;
+ z-index: -1;
+ bottom: 0;
+ right: 0;
+ font-size: 2rem;
margin: 0;
+ opacity: .25;
+ font-style: italic;
+ }
+ .nrt-header {
display: flex;
- gap: 0.5rem;
justify-content: space-between;
- align-items: center;
- li {
- &:not(:nth-child(2)) {
- width: 37.5%;
- }
- &:nth-child(3) {
- text-align: right;
- }
- a {
- color: var(--secondary-text-color);
- text-decoration: none;
- &:hover {
- color: var(--primary-color);
- }
- }
+ .nrt-link {
+ font-weight: 800;
+ }
+ .nrt-reading-time {
+ color: var(--secondary-text-color)
}
}
}