From 873bc34d45e34a83f9669e7c30d4d1315f15e049 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Mon, 21 Sep 2020 15:44:37 +0530 Subject: [PATCH] misc: refactor * accessibility, duplicate code --- assets/css/footer.css | 2 +- assets/css/post-single.css | 4 +--- layouts/_default/terms.html | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/assets/css/footer.css b/assets/css/footer.css index bf7eeeee..4fd3acea 100644 --- a/assets/css/footer.css +++ b/assets/css/footer.css @@ -3,7 +3,7 @@ .footer { max-width: calc(var(--main-width) + var(--gap) * 2); margin: auto; - padding: calc((var(--footer-height) - (var(--gap)) - 10px)/ 2) var(--gap); + padding: calc((var(--footer-height) - (var(--gap)) - 10px) / 2) var(--gap); color: var(--secondary); font-size: 12px; text-align: center; diff --git a/assets/css/post-single.css b/assets/css/post-single.css index b73b2640..10b19713 100644 --- a/assets/css/post-single.css +++ b/assets/css/post-single.css @@ -31,9 +31,7 @@ .post-content h4, .post-content h5, .post-content h6 { - margin-top: 24px; - margin-bottom: 16px; - margin: 24px auto 16px auto; + margin: 24px 0 16px 0; } .post-content h1 { diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html index 5ed7aa01..6f47851c 100644 --- a/layouts/_default/terms.html +++ b/layouts/_default/terms.html @@ -12,7 +12,7 @@ {{ $count := .Count }} {{ with $.Site.GetPage (printf "/%s/%s" $type $name) }}