feat: night mode

This commit is contained in:
tim
2025-07-09 00:55:42 +08:00
parent 47171a7649
commit fba2c80b9c
11 changed files with 46 additions and 47 deletions
+8 -1
View File
@@ -46,7 +46,10 @@
class="reply-toggle"
@click="toggleReplies"
>
{{ showReplies ? '收起' : '展开' }}{{ comment.reply.length }}条回复
<i v-if="showReplies" class="fas fa-chevron-up reply-toggle-icon"></i>
<i v-else class="fas fa-chevron-down reply-toggle-icon"></i>
{{ comment.reply.length }}条回复
</div>
<div v-if="showReplies" class="reply-list">
<BaseTimeline :items="comment.reply" >
@@ -191,6 +194,10 @@ export default CommentItem
animation: highlight 2s;
}
.reply-toggle-icon {
margin-right: 5px;
}
@keyframes highlight {
from { background-color: yellow; }
to { background-color: transparent; }