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 { @import "provider/disqus.scss"
background-color: var(--card-background);
border-radius: var(--card-border-radius);
@include box_shadow(1);
padding: var(--content-padding);
}

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 }} {{ if .Site.Params.comments.enabled }}
<div class="comments-container provider-{{ .Site.Params.comments.provider }}">
{{ partial (printf "comments/provider/%s" .Site.Params.comments.provider) . }} {{ partial (printf "comments/provider/%s" .Site.Params.comments.provider) . }}
</div>
{{ end }} {{ end }}

View File

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