diff options
author | Yihui Xie <xie@yihui.name> | 2021-03-06 22:41:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-06 22:41:46 +0300 |
commit | 38eb9c4eaf513c278ca991c7f0e9e65f6d11890e (patch) | |
tree | 03ab2162f0a99df97522fd6f8048b59f79758e04 /assets | |
parent | e61bca1dbdfc8a8232193b7672e7d4190bb34d31 (diff) |
fix(article): also define the padding for div under .article-content (#162)
Fixes rstudio/blogdown#591: not only `<p>` but also `<div>` could be the direct child of `.article-content`, so we also need the padding for `<div>`. The `div`s are generated by Pandoc, instead of Hugo's Markdown renderer. I think it will be great to support both ways.
Diffstat (limited to 'assets')
-rw-r--r-- | assets/scss/partials/layout/article.scss | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |