Skip to content

Commit

Permalink
refactor: migrate comments to tailwind
Browse files Browse the repository at this point in the history
  • Loading branch information
HEIGE-PCloud committed May 23, 2024
1 parent 0f04c8a commit 14aa93b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
1 change: 0 additions & 1 deletion assets/css/_page/_single.scss
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,6 @@
}

@import "../_partial/_single/footer";
@import "../_partial/_single/comment";
@import "../_partial/_single/sponsor";
@import "../_partial/_single/related";
}
Expand Down
3 changes: 0 additions & 3 deletions assets/css/_partial/_single/_comment.scss

This file was deleted.

8 changes: 8 additions & 0 deletions assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -929,6 +929,14 @@ html.dark {
padding-bottom: 0.5rem;
}

.tw-pb-8 {
padding-bottom: 2rem;
}

.tw-pt-32 {
padding-top: 8rem;
}

.tw-text-fgColor-link-muted {
color: var(--global-link-color);
}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/comment.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

{{- if $comment.enable -}}
{{- .Scratch.SetInMap "this" "commentEnabled" true -}}
<div id="comments" class="print:!tw-hidden">
<div id="comments" class="print:!tw-hidden tw-pt-32 tw-pb-8">
{{- /* Disqus Comment System */ -}}
{{- $disqus := $comment.disqus | default dict -}}
{{- if $disqus.enable -}}
Expand Down

0 comments on commit 14aa93b

Please sign in to comment.