diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-04-18 22:19:13 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-04-18 22:19:13 +0200 |
commit | dfa26692ee91d738c15ac5c49129bce1b05096e9 (patch) | |
tree | 60f797b0b5cb57c2433aa19351c800f8bac5a0fa /assets/css | |
parent | paginator: add a test post on the second page (diff) | |
download | jekyll-theme-dfa26692ee91d738c15ac5c49129bce1b05096e9.tar.gz jekyll-theme-dfa26692ee91d738c15ac5c49129bce1b05096e9.zip |
posts: even feed entry padding values
Diffstat (limited to '')
-rw-r--r-- | assets/css/jekyll-theme/posts.css | 11 |
1 files changed, 9 insertions, 2 deletions
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 { |