FIX: Small post actions weren't applying the `deleted` class

This commit is contained in:
Robin Ward 2016-02-11 14:21:22 -05:00
parent 786f6ff8b0
commit 5af00da2d8
2 changed files with 9 additions and 1 deletions

View File

@ -26,6 +26,10 @@ const icons = {
export default createWidget('post-small-action', { export default createWidget('post-small-action', {
tagName: 'div.small-action.onscreen-post.clearfix', tagName: 'div.small-action.onscreen-post.clearfix',
buildClasses(attrs) {
if (attrs.deleted) { return 'deleted'; }
},
html(attrs) { html(attrs) {
const contents = []; const contents = [];

View File

@ -588,11 +588,15 @@ a.mention, a.mention-group {
} }
.deleted { .deleted {
.topic-body, .small-action { .topic-body {
background-color: dark-light-diff(rgba($danger,.7), $secondary, 50%, -60%); background-color: dark-light-diff(rgba($danger,.7), $secondary, 50%, -60%);
} }
} }
.small-action.deleted {
background-color: dark-light-diff(rgba($danger,.7), $secondary, 50%, -60%);
}
#share-link { #share-link {
width: 365px; width: 365px;
margin-left: -4px; margin-left: -4px;