Skip to content

Commit

Permalink
Improve vote button hover
Browse files Browse the repository at this point in the history
  • Loading branch information
melroy89 committed Feb 11, 2025
1 parent 2271be2 commit d008056
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 6 deletions.
1 change: 1 addition & 0 deletions assets/styles/components/_vote.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

&:hover,
&:focus-visible {
background-color: var(--kbin-vote-bg-hover-bg);
color: var(--kbin-vote-text-hover-color);
}

Expand Down
5 changes: 3 additions & 2 deletions assets/styles/mixins/theme-dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,14 @@

//vote
--kbin-vote-bg: #1c1c1c;
--kbin-vote-bg-hover-bg: #161616;
--kbin-vote-text-color: #b6b6b6;
--kbin-vote-text-hover-color: #fafafa;
--kbin-upvoted-color: #24b270;
--kbin-downvoted-color: #dc2f3f;

//boost
--kbin-boosted-color: var(--kbin-upvoted-color);
//boost
--kbin-boosted-color: var(--kbin-upvoted-color);

// alerts
--kbin-alert-info-bg: rgba(153,116,4,0.15);
Expand Down
5 changes: 3 additions & 2 deletions assets/styles/mixins/theme-light.scss
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,9 @@

//vote
--kbin-vote-bg: #e7e7e7;
--kbin-vote-text-color: #1f1f1f;
--kbin-vote-text-hover-color: #000;
--kbin-vote-bg-hover-bg: #dfdfdf;
--kbin-vote-text-color: #222222;
--kbin-vote-text-hover-color: #0d0014;
--kbin-upvoted-color: #0f5132;
--kbin-downvoted-color: #842029;

Expand Down
1 change: 1 addition & 0 deletions assets/styles/mixins/theme-solarized-dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ $green: #859900;

//vote
--kbin-vote-bg: #00242c;
--kbin-vote-bg-hover-bg: #001f25;
--kbin-vote-text-color: #b6b6b6;
--kbin-vote-text-hover-color: #fafafa;
--kbin-upvoted-color: #{$green};
Expand Down
5 changes: 3 additions & 2 deletions assets/styles/mixins/theme-solarized-light.scss
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,14 @@ $green: #859900;

//vote
--kbin-vote-bg: #fff5db;
--kbin-vote-bg-hover-bg: #f3e8cd;
--kbin-vote-text-color: #{$base01};
--kbin-vote-text-hover-color: #{$base1};
--kbin-upvoted-color: #{$green};
--kbin-downvoted-color: #{$red};

//boost
--kbin-boosted-color: var(--kbin-upvoted-color);
//boost
--kbin-boosted-color: var(--kbin-upvoted-color);

// alerts
--kbin-alert-info-bg: #fff3cd;
Expand Down
1 change: 1 addition & 0 deletions assets/styles/themes/_kbin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@

//vote
--kbin-vote-bg: #2B2D31;
--kbin-vote-bg-hover-bg: #222427;
--kbin-vote-text-color: #B6BAC2;
--kbin-vote-text-hover-color: #fafafa;
--kbin-upvoted-color: #24b270;
Expand Down
1 change: 1 addition & 0 deletions assets/styles/themes/_tokyo-night.scss
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@

// vote
--kbin-vote-bg: #1c1d26;
--kbin-vote-bg-hover-bg: #13141b;
--kbin-vote-text-color: #d6d6ff;
--kbin-vote-text-hover-color: #9999ff;
--kbin-upvoted-color: var(--kbin-success-color);
Expand Down

0 comments on commit d008056

Please sign in to comment.