Skip to content

Commit

Permalink
148 - toggle hover change
Browse files Browse the repository at this point in the history
  • Loading branch information
lightbulbman committed Jan 19, 2025
1 parent 4f4397b commit 5ed5eff
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/css/manage.scss
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ $inactive-color: #ccc;
height: 17px;
border-radius: 34px;
background-color: #ccc;
box-shadow: 0 0px 1px 0px rgba(0, 0, 0, .2);
transition: all 200ms ease-in-out !important;

&:hover {
box-shadow: 0 1px 3px 0px rgba(0, 0, 0, 0.5);
}

&::before {
transition: all .4s;
Expand All @@ -72,20 +78,12 @@ $inactive-color: #ccc;
border-radius: 50%;
}

&:hover::before {
transform: translateX(40%);
}

.snippets .active-snippet & {
background-color: $active-color;

&::before {
transform: translateX(100%);
}

&:hover::before {
transform: translateX(60%);
}
}

.snippets .erroneous-snippet &::before {
Expand Down

0 comments on commit 5ed5eff

Please sign in to comment.