mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2024-11-23 10:21:46 +01:00
fix(comments): remove div.comments-container, apply card style depending on comment system
This commit is contained in:
parent
f051517f0a
commit
2912b7e2f0
4 changed files with 11 additions and 10 deletions
|
@ -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"
|
6
assets/scss/partials/comments/provider/disqus.scss
Normal file
6
assets/scss/partials/comments/provider/disqus.scss
Normal 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);
|
||||
}
|
|
@ -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 }}
|
|
@ -1 +1,3 @@
|
|||
{{ template "_internal/disqus.html" . }}
|
||||
<div class="disqus-container">
|
||||
{{ template "_internal/disqus.html" . }}
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue