From 25e5232a98ee1267b81d8f9f378e0b2ec14467ed Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sat, 7 Jan 2017 11:28:25 +0200 Subject: [PATCH] source/scss/main.scss: Add top margin to Disqus When both sharing and Disqus blocks are present, the Disqus block needs a top margin. Otherwise, if sharing is hidden, then the hr following the blog post's article tag already provides enough of a bottom margin. --- source/scss/main.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/scss/main.scss b/source/scss/main.scss index 7799153..4a09838 100644 --- a/source/scss/main.scss +++ b/source/scss/main.scss @@ -160,6 +160,11 @@ article img { height: auto; margin: 13px auto; } +/* add a margin above the disqus comments only if the preceeding sharing section +is present (because sharing can be hidden, and the margin isn't always needed */ +section + #disqus_thread { + margin-top: 1rem; +} /* * Footer