From 1f964c664c019fd01d8d8ead04184b00b3178d59 Mon Sep 17 00:00:00 2001 From: igoradamenko Date: Mon, 7 Jan 2019 00:38:19 +0200 Subject: [PATCH] change colors of hovers of comment votes buttons --- .../comment/__vote/_selected/comment__vote_selected.svg | 3 --- .../__vote/_type/_down/comment__vote_type_down.scss | 7 ++----- .../comment/__vote/_type/_up/comment__vote_type_up.scss | 7 ++----- web/app/components/comment/__vote/comment__vote.scss | 4 ---- 4 files changed, 4 insertions(+), 17 deletions(-) delete mode 100644 web/app/components/comment/__vote/_selected/comment__vote_selected.svg diff --git a/web/app/components/comment/__vote/_selected/comment__vote_selected.svg b/web/app/components/comment/__vote/_selected/comment__vote_selected.svg deleted file mode 100644 index a7d75552..00000000 --- a/web/app/components/comment/__vote/_selected/comment__vote_selected.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/web/app/components/comment/__vote/_type/_down/comment__vote_type_down.scss b/web/app/components/comment/__vote/_type/_down/comment__vote_type_down.scss index 82a16994..5caf0646 100644 --- a/web/app/components/comment/__vote/_type/_down/comment__vote_type_down.scss +++ b/web/app/components/comment/__vote/_type/_down/comment__vote_type_down.scss @@ -2,10 +2,7 @@ transform: scale(1, -1); margin-left: 4px; - &.comment__vote_selected { - &, - &:hover { - background-image: url('comment__vote_type_down.svg'); - } + &.comment__vote_selected, &:hover { + background-image: url('comment__vote_type_down.svg'); } } diff --git a/web/app/components/comment/__vote/_type/_up/comment__vote_type_up.scss b/web/app/components/comment/__vote/_type/_up/comment__vote_type_up.scss index 1285f48b..c3a78603 100644 --- a/web/app/components/comment/__vote/_type/_up/comment__vote_type_up.scss +++ b/web/app/components/comment/__vote/_type/_up/comment__vote_type_up.scss @@ -1,10 +1,7 @@ .comment__vote_type_up { margin-right: 4px; - &.comment__vote_selected { - &, - &:hover { - background-image: url('comment__vote_type_up.svg'); - } + &.comment__vote_selected, &:hover { + background-image: url('comment__vote_type_up.svg'); } } diff --git a/web/app/components/comment/__vote/comment__vote.scss b/web/app/components/comment/__vote/comment__vote.scss index cf6dc84c..12084446 100644 --- a/web/app/components/comment/__vote/comment__vote.scss +++ b/web/app/components/comment/__vote/comment__vote.scss @@ -8,8 +8,4 @@ background: url('comment__vote.svg') center no-repeat; background-size: contain; cursor: pointer; - - &:hover { - background-image: url('_selected/comment__vote_selected.svg'); - } }