revert "change vote arrows", because windows can't render them beautifully

This commit is contained in:
igoradamenko
2018-05-12 13:23:30 +03:00
parent 3bd14e0a40
commit 091eb33f35
5 changed files with 13 additions and 10 deletions
@@ -1,6 +1,6 @@
.comment__vote_disabled {
&, &:hover {
color: #ededed;
border-top-color: #ededed;
cursor: not-allowed;
}
}
@@ -1,4 +1,4 @@
.comment__vote_selected {
color: #0aa;
border-top-color: #0aa;
cursor: default;
}
@@ -1,3 +1,4 @@
.comment__vote_type_up {
transform: scale(1, -1);
margin-right: 4px;
}
@@ -1,11 +1,13 @@
.comment__vote {
display: inline-block;
font-size: 14px;
line-height: 1;
color: #dedede;
border-top: 9px solid #dedede;
border-right: 7px solid transparent;
border-left: 7px solid transparent;
font-size: 0;
line-height: 0;
cursor: pointer;
&:hover {
color: #0aa;
border-top-color: #0aa;
}
}
+4 -4
View File
@@ -277,8 +277,8 @@ export default class Comment extends Component {
<span
className={b('comment__vote', {}, { type: 'up', selected: scoreIncreased, disabled: isGuest || isCurrentUser })}
onClick={this.increaseScore}
title={isGuest ? 'Only authorized users are allowed to vote' : (isCurrentUser ? 'You can\'t vote for your own comment' : 'Vote up')}
></span>
title={isGuest ? 'Only authorized users are allowed to vote' : (isCurrentUser ? 'You can\'t vote for your own comment' : null)}
>Vote up</span>
<span className="comment__score-value">
{o.score.sign}{o.score.value}
@@ -288,8 +288,8 @@ export default class Comment extends Component {
<span
className={b('comment__vote', {}, { type: 'down', selected: scoreDecreased, disabled: isGuest || isCurrentUser })}
onClick={this.decreaseScore}
title={isGuest ? 'Only authorized users are allowed to vote' : (isCurrentUser ? 'You can\'t vote for your own comment' : 'Vote down')}
></span>
title={isGuest ? 'Only authorized users are allowed to vote' : (isCurrentUser ? 'You can\'t vote for your own comment' : null)}
>Vote down</span>
</span>
</div>