feat: add downvote button and vote count display to feed and post detail templates

This commit is contained in:
2026-05-16 00:31:11 +00:00
parent f4b825984a
commit 9553e30a79
5 changed files with 85 additions and 22 deletions
+35
View File
@@ -112,12 +112,23 @@
margin-bottom: 0.75rem;
}
.post-title-link {
text-decoration: none;
color: inherit;
display: block;
}
.post-title-link:hover .post-title {
color: var(--accent);
}
.post-title {
font-size: 1.125rem;
font-weight: 700;
margin-bottom: 0.5rem;
color: var(--text-primary);
line-height: 1.3;
transition: color 0.15s ease;
}
.post-content {
@@ -130,6 +141,12 @@
-webkit-line-clamp: 4;
-webkit-box-orient: vertical;
overflow: hidden;
cursor: pointer;
transition: color 0.15s ease;
}
.post-content:hover {
color: var(--accent);
}
.post-actions {
@@ -166,6 +183,24 @@
color: var(--accent);
}
.post-action-btn.vote-down {
color: var(--danger);
}
.post-votes {
display: inline-flex;
align-items: center;
gap: 0.125rem;
}
.post-vote-count {
font-weight: 600;
font-size: 0.8125rem;
color: var(--text-secondary);
min-width: 1.25rem;
text-align: center;
}
.post-action-btn.share {
margin-left: auto;
}