UX: Use empty heart for unliked state
This commit is contained in:
parent
6215baca97
commit
f812f5cd1c
|
@ -9,7 +9,7 @@ const REPLACEMENTS = {
|
|||
'd-watching-first': 'dot-circle-o',
|
||||
'd-drop-expanded': 'caret-down',
|
||||
'd-drop-collapsed': 'caret-right',
|
||||
'd-unliked': 'heart',
|
||||
'd-unliked': 'heart-o',
|
||||
'd-liked': 'heart',
|
||||
'notification.mentioned': "at",
|
||||
'notification.group_mentioned': "at",
|
||||
|
|
|
@ -12,7 +12,7 @@ function animateHeart($elem, start, end, complete) {
|
|||
.animate({ textIndent: end }, {
|
||||
complete,
|
||||
step(now) {
|
||||
$(this).css('transform','scale('+now+')');
|
||||
$(this).css('transform','scale('+now+')').addClass("fa-heart").removeClass("fa-heart-o");
|
||||
},
|
||||
duration: 150
|
||||
}, 'linear');
|
||||
|
@ -69,7 +69,7 @@ registerButton('like-count', attrs => {
|
|||
const title = attrs.liked
|
||||
? count === 1 ? 'post.has_likes_title_only_you' : 'post.has_likes_title_you'
|
||||
: 'post.has_likes_title';
|
||||
const icon = attrs.yours ? 'heart' : '';
|
||||
const icon = attrs.yours ? 'heart-o' : '';
|
||||
const additionalClass = attrs.yours ? 'my-likes' : 'regular-likes';
|
||||
|
||||
return { action: 'toggleWhoLiked',
|
||||
|
|
|
@ -101,7 +101,7 @@ nav.post-controls {
|
|||
}
|
||||
&.my-likes {
|
||||
margin-right: -2px;
|
||||
i.fa-heart {
|
||||
i.fa-heart-o {
|
||||
padding-left: 10px;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -64,7 +64,7 @@ span.badge-posts {
|
|||
button.like-count {
|
||||
font-size: $font-up-1;
|
||||
padding: 8px 4px;
|
||||
i.fa-heart {
|
||||
i.fa-heart, i.fa-heart-o {
|
||||
padding-left: 8px;
|
||||
color: dark-light-choose($primary-low-mid, $secondary-high);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue