From d64c6e8699d27bf6fc972922f1f95c9672457a81 Mon Sep 17 00:00:00 2001 From: Helen Chong <119173961+helenclx@users.noreply.github.com> Date: Fri, 21 Jun 2024 19:09:03 +0800 Subject: [PATCH] Adjust blog post index border --- src/pages/blog.njk | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/pages/blog.njk b/src/pages/blog.njk index 832be293..8e084e97 100644 --- a/src/pages/blog.njk +++ b/src/pages/blog.njk @@ -52,14 +52,18 @@ eleventyComputed: .blog__posts { list-style-type: none; padding: 0; - margin: 0; - gap: 1.5em; + margin: 1.5em 0 0 0; } .blog__post { + --bdr-blogpost: 0.2em solid var(--clr-quote-border); gap: 0.6em; - padding-bottom: 1.5em; - border-bottom: 0.2em solid var(--clr-quote-border); + padding: 1.5em 0; + border-bottom: var(--bdr-blogpost); + } + + .blog__post:first-of-type { + border-top: var(--bdr-blogpost); } .blog__post--title {