comments: add scores, rework comment menu.
* Add comment scores. * Rework voting buttons so that you can click the upvote/downvote buttons to toggle votes. * Hide the edit, delete, undelete, and report buttons behind a popup menu. * Show the upvote/downvote/reply buttons to logged out users. Redirect them to the login page instead.
This commit is contained in:
@@ -9,15 +9,15 @@ article.comment {
|
||||
background-color: var(--moderation-report-background-color);
|
||||
}
|
||||
|
||||
&[data-is-voted="true"] {
|
||||
.comment-vote-up-link, .comment-vote-down-link {
|
||||
display: none;
|
||||
&[data-is-upvoted="true"] {
|
||||
a.comment-upvote-link {
|
||||
color: var(--link-color);
|
||||
}
|
||||
}
|
||||
|
||||
&[data-is-voted="false"] {
|
||||
.comment-unvote-link {
|
||||
display: none;
|
||||
&[data-is-downvoted="true"] {
|
||||
a.comment-downvote-link {
|
||||
color: var(--link-color);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,4 +38,21 @@ article.comment {
|
||||
font-weight: bold;
|
||||
color: var(--moderation-report-text-color);
|
||||
}
|
||||
|
||||
.comment-votes {
|
||||
color: var(--muted-text-color);
|
||||
|
||||
a {
|
||||
color: var(--muted-text-color);
|
||||
|
||||
&:hover {
|
||||
color: var(--link-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.popup-menu {
|
||||
width: 1.5em;
|
||||
height: 1.5em;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user