comments: refactor to use ViewComponent.
This commit is contained in:
31
app/components/comment_component/comment_component.scss
Normal file
31
app/components/comment_component/comment_component.scss
Normal file
@@ -0,0 +1,31 @@
|
||||
article.comment {
|
||||
flex: 1;
|
||||
|
||||
&[data-is-sticky="true"] {
|
||||
background: var(--comment-sticky-background-color);
|
||||
}
|
||||
|
||||
&[data-is-reported="true"] {
|
||||
border: var(--moderation-report-border);
|
||||
}
|
||||
|
||||
&[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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user