From 92c39129e85078feed6a0eb186d8f1ac2b5b8c80 Mon Sep 17 00:00:00 2001 From: Yihui Xie Date: Wed, 3 Mar 2021 21:23:13 -0600 Subject: [PATCH] Also define the padding for div under .article-content Fixes rstudio/blogdown#591: not only `

` but also `

` could be the direct child of `.article-content`, so we also need the padding for `
`. The `div`s are generated by Pandoc, instead of Hugo's Markdown renderer. I think it will be great to support both ways. --- assets/scss/partials/layout/article.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/scss/partials/layout/article.scss b/assets/scss/partials/layout/article.scss index 3248163..3fd6a46 100644 --- a/assets/scss/partials/layout/article.scss +++ b/assets/scss/partials/layout/article.scss @@ -189,7 +189,8 @@ font-size: var(--article-font-size); line-height: var(--article-line-height); - & > p { + & > p, + & > div { margin: 1.5em 0; padding: 0 var(--card-padding); }