From ca42f4b718a701aee0db5714fc3aca020582d4c5 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Tue, 1 Feb 2022 05:51:15 -0800 Subject: [PATCH] Add hover states for stars These aren't quite right yet --- components/UncapStar/index.scss | 28 +++++++++++++++--- public/icons/uncap/blue-hover.svg | 44 +++++++++++++++++++++++++++++ public/icons/uncap/empty-hover.svg | 25 ++++++++++++++++ public/icons/uncap/purple-hover.svg | 44 +++++++++++++++++++++++++++++ public/icons/uncap/red-hover.svg | 44 +++++++++++++++++++++++++++++ public/icons/uncap/yellow-hover.svg | 44 +++++++++++++++++++++++++++++ 6 files changed, 225 insertions(+), 4 deletions(-) create mode 100644 public/icons/uncap/blue-hover.svg create mode 100644 public/icons/uncap/empty-hover.svg create mode 100644 public/icons/uncap/purple-hover.svg create mode 100644 public/icons/uncap/red-hover.svg create mode 100644 public/icons/uncap/yellow-hover.svg diff --git a/components/UncapStar/index.scss b/components/UncapStar/index.scss index 144de4c9..4386c5ea 100644 --- a/components/UncapStar/index.scss +++ b/components/UncapStar/index.scss @@ -15,21 +15,41 @@ &.empty.ulb, &.empty.special { background: url('/icons/uncap/empty.svg'); + + &:hover { + background: url('/icons/uncap/empty-hover.svg'); + } } &.mlb { - background: url('/icons/uncap/yellow.svg') + background: url('/icons/uncap/yellow.svg'); + + &:hover { + background: url('/icons/uncap/yellow-hover.svg'); + } } &.special { - background: url('/icons/uncap/red.svg') + background: url('/icons/uncap/red.svg'); + + &:hover { + background: url('/icons/uncap/red-hover.svg'); + } } &.flb { - background: url('/icons/uncap/blue.svg') + background: url('/icons/uncap/blue.svg'); + + &:hover { + background: url('/icons/uncap/blue-hover.svg'); + } } &.ulb { - background: url('/icons/uncap/purple.svg') + background: url('/icons/uncap/purple.svg'); + + &:hover { + background: url('/icons/uncap/purple-hover.svg'); + } } } \ No newline at end of file diff --git a/public/icons/uncap/blue-hover.svg b/public/icons/uncap/blue-hover.svg new file mode 100644 index 00000000..cb846567 --- /dev/null +++ b/public/icons/uncap/blue-hover.svg @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/icons/uncap/empty-hover.svg b/public/icons/uncap/empty-hover.svg new file mode 100644 index 00000000..6debb5dd --- /dev/null +++ b/public/icons/uncap/empty-hover.svg @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/icons/uncap/purple-hover.svg b/public/icons/uncap/purple-hover.svg new file mode 100644 index 00000000..b4d08a3e --- /dev/null +++ b/public/icons/uncap/purple-hover.svg @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/icons/uncap/red-hover.svg b/public/icons/uncap/red-hover.svg new file mode 100644 index 00000000..3ed4a968 --- /dev/null +++ b/public/icons/uncap/red-hover.svg @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/icons/uncap/yellow-hover.svg b/public/icons/uncap/yellow-hover.svg new file mode 100644 index 00000000..c6a6d5dd --- /dev/null +++ b/public/icons/uncap/yellow-hover.svg @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +