summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-02-26 14:23:21 +0800
committerEltrac <hi@guhub.cn>2025-02-26 14:23:21 +0800
commit23f6f5675f1b754bfe4f351ec5b6a1bc79d2262d (patch)
treeb9923ce2f3100a9d4f1adcd126a0e14fdfc599be /assets
parente3efc6cff6777ca6057b9427b93da77fd90f630f (diff)
feat: add static comments to post page
Former-commit-id: 79ea7a31bc8ad6038405832d0aefe76802ca5ccd
Diffstat (limited to 'assets')
-rw-r--r--assets/css/components/_comment.scss28
-rw-r--r--assets/css/index.scss1
2 files changed, 29 insertions, 0 deletions
diff --git a/assets/css/components/_comment.scss b/assets/css/components/_comment.scss
new file mode 100644
index 00000000..996f7e26
--- /dev/null
+++ b/assets/css/components/_comment.scss
@@ -0,0 +1,28 @@
+.post-comments {
+ .static-comments {
+ margin: 2rem 0;
+ .static-comments-heading {
+ color: var(--secondary-text-color)
+ }
+ .static-comments-item {
+ font-size: 1.2rem;
+ border-bottom: 1px solid #ccc;
+ padding: 1rem 0.25rem;
+ .static-comments-item-header {
+ margin-bottom: 1rem;
+ display: flex;
+ justify-content: space-between;
+ .comment-author {
+ font-weight: bold;
+ }
+ .comment-date {
+ color: var(--secondary-text-color);
+ }
+ }
+ .static-comments-item-footer {
+ font-size: 1rem;
+ text-align: right
+ }
+ }
+ }
+}
diff --git a/assets/css/index.scss b/assets/css/index.scss
index de0fb97e..6578c70a 100644
--- a/assets/css/index.scss
+++ b/assets/css/index.scss
@@ -5,6 +5,7 @@
@import 'components/pages';
@import 'components/post';
@import 'components/content';
+@import 'components/comment';
@import 'components/shortcodes';
@import 'components/footer';
@import 'components/animation';