Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CaiJimmy/hugo-theme-stack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorYihui Xie <xie@yihui.name>2021-03-06 22:41:46 +0300
committerGitHub <noreply@github.com>2021-03-06 22:41:46 +0300
commit38eb9c4eaf513c278ca991c7f0e9e65f6d11890e (patch)
tree03ab2162f0a99df97522fd6f8048b59f79758e04 /assets
parente61bca1dbdfc8a8232193b7672e7d4190bb34d31 (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.scss3
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);
}