From 38eb9c4eaf513c278ca991c7f0e9e65f6d11890e Mon Sep 17 00:00:00 2001 From: Yihui Xie Date: Sat, 6 Mar 2021 13:41:46 -0600 Subject: [PATCH] fix(article): also define the padding for div under .article-content (#162) 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); }