From b12443f48a11f542d613f2c52a59fb38919f5604 Mon Sep 17 00:00:00 2001 From: Nam Nguyen Date: Tue, 5 Jan 2021 10:40:31 -0800 Subject: [PATCH] Use a top (instead of bottom) border in hentry. `hentry` uses `clear: both` with the intention of placing a separator line (1px border) between each entry. However, it is wrongly using `border-bottom` instead of `border-top` to make that separator. CSS `clear` makes space to clear the **preceding** floats. Hence a `border-bottom` won't enjoy that `clear` effect. --- pelican/themes/notmyidea/static/css/main.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pelican/themes/notmyidea/static/css/main.css b/pelican/themes/notmyidea/static/css/main.css index 63f5adc0..aaea9b81 100644 --- a/pelican/themes/notmyidea/static/css/main.css +++ b/pelican/themes/notmyidea/static/css/main.css @@ -384,10 +384,10 @@ div.figure p.caption, figure p.caption { /* margin provided by figure */ .hentry { display: block; clear: both; - border-bottom: 1px solid #eee; + border-top: 1px solid #eee; padding: 1.5em 0; } -li:last-child .hentry, #content > .hentry {border: 0; margin: 0;} +li:first-child .hentry, #content > .hentry {border: 0; margin: 0;} #content > .hentry {padding: 1em 0;} .hentry img{display : none ;} .entry-title {font-size: 3em; margin-bottom: 10px; margin-top: 0;}