fix(comments): remove div.comments-container, apply card style depending on comment system

This commit is contained in:
Jimmy Cai 2020-09-09 00:24:17 +02:00
parent f051517f0a
commit 2912b7e2f0
No known key found for this signature in database
GPG key ID: 3EA408E527F37B18
4 changed files with 11 additions and 10 deletions

View file

@ -1,6 +1 @@
.comments-container {
background-color: var(--card-background);
border-radius: var(--card-border-radius);
@include box_shadow(1);
padding: var(--content-padding);
}
@import "provider/disqus.scss"

View file

@ -0,0 +1,6 @@
.disqus-container {
background-color: var(--card-background);
border-radius: var(--card-border-radius);
@include box_shadow(1);
padding: var(--content-padding);
}

View file

@ -1,5 +1,3 @@
{{ if .Site.Params.comments.enabled }}
<div class="comments-container provider-{{ .Site.Params.comments.provider }}">
{{ partial (printf "comments/provider/%s" .Site.Params.comments.provider) . }}
</div>
{{ partial (printf "comments/provider/%s" .Site.Params.comments.provider) . }}
{{ end }}

View file

@ -1 +1,3 @@
{{ template "_internal/disqus.html" . }}
<div class="disqus-container">
{{ template "_internal/disqus.html" . }}
</div>