Fixed and cleaned comment template/stylesheet
fixed: * comment-report-icon will not be displayed when post author is current user * if you hover a comment all report icons will be displayed
This commit is contained in:
parent
218845d5b4
commit
23d0890bdc
2 changed files with 8 additions and 7 deletions
|
|
@ -133,17 +133,17 @@
|
|||
padding-top: 10px;
|
||||
|
||||
.controls {
|
||||
.comment_delete {
|
||||
.comment_delete, .comment_report {
|
||||
@include transition(opacity);
|
||||
@include opacity(0);
|
||||
}
|
||||
}
|
||||
&:hover {
|
||||
.controls {
|
||||
.comment_delete {
|
||||
.comment_delete, .comment_report {
|
||||
@include opacity(0.3);
|
||||
}
|
||||
.comment_delete:hover {
|
||||
.comment_delete:hover, .comment_report:hover {
|
||||
@include opacity(1);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,14 +7,15 @@
|
|||
|
||||
<div class="bd">
|
||||
<div class="controls">
|
||||
{{#unless authorIsCurrentUser}}
|
||||
<a href="#" data-type="comment" class="comment_report" title="{{t "report.name"}}">
|
||||
<div class="icons-report"/>
|
||||
</a>
|
||||
{{/unless}}
|
||||
{{#if canRemove}}
|
||||
<a href="#" class="delete comment_delete" title="{{t "delete"}}">
|
||||
<div alt="Deletelabel" class="icons-deletelabel" />
|
||||
<a/>
|
||||
{{else}}
|
||||
<a href="#" data-type="comment" class="comment_report" title="{{t "report.name"}}">
|
||||
<div class="icons-report control_icon"/>
|
||||
</a>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue