comments: show "undo vote" link by default on voted comments (fix #4143).

This commit is contained in:
evazion
2019-08-20 17:40:37 -05:00
parent 6e708dec18
commit 2cf929ad6e
6 changed files with 49 additions and 27 deletions

View File

@@ -15,6 +15,26 @@ div.comments-for-post {
background: $menu_color;
}
&[data-is-voted="true"] {
.comment-vote-up-link, .comment-vote-down-link {
display: none;
}
}
&[data-is-voted="false"] {
.comment-unvote-link {
display: none;
}
}
&[data-below-threshold="true"][data-is-sticky="false"] {
opacity: 0.3;
&:hover {
opacity: 1.0;
}
}
div.author {
width: 12em;
float: left;
@@ -38,14 +58,6 @@ div.comments-for-post {
}
}
}
article.comment.below-threshold:not([data-is-sticky="true"]) {
opacity: 0.3;
}
article.comment.below-threshold:hover {
opacity: 1.0;
}
}
}