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.
This commit is contained in:
Yihui Xie 2021-03-06 13:41:46 -06:00 committed by GitHub
parent e61bca1dbd
commit 38eb9c4eaf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}