From 6d38c10a0751a7bb0e3cbc4488af258492351cfd 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 32481633c..3fd6a46f5 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); }