Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/alanorth/hugo-theme-bootstrap4-blog.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorAlan Orth <alan.orth@gmail.com>2017-01-07 12:28:25 +0300
committerAlan Orth <alan.orth@gmail.com>2017-01-07 12:28:25 +0300
commit25e5232a98ee1267b81d8f9f378e0b2ec14467ed (patch)
tree0e062e0f6ee582b0e0fe56964b319fa82824f10c /source
parent325c5977c1d1dd5e8c91417b04614ebe4e396a5f (diff)
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.
Diffstat (limited to 'source')
-rw-r--r--source/scss/main.scss5
1 files changed, 5 insertions, 0 deletions
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