From dfa26692ee91d738c15ac5c49129bce1b05096e9 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 18 Apr 2022 22:19:13 +0200 Subject: posts: even feed entry padding values --- assets/css/jekyll-theme/posts.css | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'assets/css') diff --git a/assets/css/jekyll-theme/posts.css b/assets/css/jekyll-theme/posts.css index f693868..348ca42 100644 --- a/assets/css/jekyll-theme/posts.css +++ b/assets/css/jekyll-theme/posts.css @@ -35,7 +35,8 @@ @media (min-width: 480px) { /* If the screen width allows for it, add some padding on the sides. */ .feed-entry { - padding: 0 11px; + padding-left: 11px; + padding-right: 11px; } } .feed-entry:hover, .feed-entry:focus { @@ -54,8 +55,14 @@ * Android's Chrome thinks that it's not necessary to highlight the top * margin (reproducible by long-pressing the link), _but_ it does highlight * the top padding. This is obviously a browser bug. */ + + /* Also, set the value to a lower one, it's better that way. */ margin-top: 0; - padding-top: 22px; + padding-top: 16px; +} +.feed-entry { + /* Add some padding on the bottom to match the top value. */ + padding-bottom: 5px; } .pagination { -- cgit v1.2.3