</li>
{if MODULE_LIKE && $__wcf->getSession()->getPermission('user.like.canViewLike')}
- <li>
+ <li class="wcfLikeCounter{if $article->cumulativeLikes > 0} likeCounterLiked{elseif $article->cumulativeLikes < 0}likeCounterDisliked{/if}">
{if $article->likes || $article->dislikes}
- <span class="icon icon16 fa-thumbs-o-{if $article->cumulativeLikes < 0}down{else}up{/if} jsTooltip" title="{lang likes=$article->likes dislikes=$article->dislikes}wcf.like.tooltip{/lang}"></span>
- {if $article->cumulativeLikes > 0}+{elseif $article->cumulativeLikes == 0}±{/if}{#$article->cumulativeLikes}
+ <span class="icon icon16 fa-thumbs-o-{if $article->cumulativeLikes < 0}down{else}up{/if} jsTooltip" title="{lang likes=$article->likes dislikes=$article->dislikes}wcf.like.tooltip{/lang}"></span>{if $article->cumulativeLikes > 0}+{elseif $article->cumulativeLikes == 0}±{/if}{#$article->cumulativeLikes}
{/if}
</li>
{/if}
var content = '<span class="icon icon16 fa-thumbs-o-' + (cumulativeLikes < 0 ? 'down' : 'up' ) + '"></span><span class="wcfLikeValue">';
if (cumulativeLikes > 0) {
content += '+' + StringUtil.addThousandsSeparator(cumulativeLikes);
+ data.badge.classList.add('likeCounterLiked');
}
else if (cumulativeLikes < 0) {
// U+2212 = minus sign
content += '\u2212' + StringUtil.addThousandsSeparator(Math.abs(cumulativeLikes));
+ data.badge.classList.add('likeCounterDisliked');
}
else {
// U+00B1 = plus-minus sign
--- /dev/null
+.likesSummary {
+ color: $wcfContentDimmedText;
+ cursor: pointer;
+ flex: 0 0 auto;
+
+ > .icon {
+ color: $wcfContentDimmedText;
+ margin-right: 5px;
+ }
+}
+
+.wcfLikeCounter {
+ color: $wcfContentDimmedText;
+
+ .icon {
+ color: inherit !important;
+ }
+
+ &.likeCounterLiked {
+ color: #060 !important;
+ }
+ &.likeCounterDisliked {
+ color: #900 !important;
+ }
+}
@include inlineList;
@include wcfFontSmall;
-
- .wcfLikeCounter {
- color: $wcfContentDimmedText;
- }
}
.messageQuickOptions {
}
}
-.likesSummary {
- color: $wcfContentDimmedText;
- cursor: pointer;
- flex: 0 0 auto;
-
- > .icon {
- color: $wcfContentDimmedText;
- margin-right: 5px;
- }
-}
-
.messageSignature {
border-top: 1px solid $wcfContentBorderInner;
opacity: .6;
> .statusDisplay {
display: flex;
float: right;
- opacity: .6;
+ opacity: .75;
transition: opacity .12s;
> .statusIcons {