mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2024-11-23 10:21:46 +01:00
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
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue