Skip to content

Commit

Permalink
style: add hover states
Browse files Browse the repository at this point in the history
  • Loading branch information
remvze committed Dec 29, 2023
1 parent 8efb1ce commit 2c74dd0
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/components/buttons/play/play.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
border: 1px solid var(--color-neutral-50);
border-radius: 100px;
outline: none;
transition: 0.2s;

&:hover {
background-color: var(--color-neutral-800);
}

&:disabled,
&.disabled {
Expand Down
6 changes: 5 additions & 1 deletion src/components/buttons/unselect/unselect.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
color: var(--color-foreground);
cursor: pointer;
background-color: var(--color-neutral-100);
border: 1px solid var(--color-neutral-200);
border: 1px solid var(--color-neutral-300);
border-radius: 100px;
outline: none;
transition: 0.2s;
Expand All @@ -19,6 +19,10 @@
&.disabled {
cursor: not-allowed;
}

&:hover {
background-color: var(--color-neutral-200);
}
}

.tooltip {
Expand Down
5 changes: 5 additions & 0 deletions src/components/scroll-to-top/scroll-to-top.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,9 @@
background-color: var(--color-neutral-100);
border: 1px solid var(--color-neutral-300);
border-radius: 50%;
transition: 0.2s;

&:hover {
background-color: var(--color-neutral-200);
}
}
5 changes: 5 additions & 0 deletions src/components/sections/ready.astro
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,11 @@ import { Container } from '@/components/container';
border: none;
border-radius: 100px;
outline: none;
transition: 0.2s;

&:hover {
background-color: var(--color-neutral-800);
}
}
}
</style>
5 changes: 5 additions & 0 deletions src/components/shuffle/shuffle.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,9 @@
background-color: var(--color-neutral-100);
border: 1px solid var(--color-neutral-300);
border-radius: 50%;
transition: 0.2s;

&:hover {
background-color: var(--color-neutral-200);
}
}
5 changes: 5 additions & 0 deletions src/components/sound/favorite/favorite.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
border: 1px solid var(--color-neutral-200);
border-radius: 50%;
outline: none;
transition: 0.2s;

&:hover {
color: var(--color-foreground);
}

&.isFavorite {
color: var(--color-foreground);
Expand Down
4 changes: 4 additions & 0 deletions src/components/sound/sound.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@
}
}

&:hover .icon {
color: var(--color-foreground-subtle);
}

&.selected {
border-color: transparent;
box-shadow: 0 0 0 2px var(--color-neutral-800);
Expand Down

0 comments on commit 2c74dd0

Please sign in to comment.