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:
parent
e61bca1dbd
commit
38eb9c4eaf
@ -189,7 +189,8 @@
|
|||||||
font-size: var(--article-font-size);
|
font-size: var(--article-font-size);
|
||||||
line-height: var(--article-line-height);
|
line-height: var(--article-line-height);
|
||||||
|
|
||||||
& > p {
|
& > p,
|
||||||
|
& > div {
|
||||||
margin: 1.5em 0;
|
margin: 1.5em 0;
|
||||||
padding: 0 var(--card-padding);
|
padding: 0 var(--card-padding);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user