Skip to content

Commit

Permalink
Ensure icon on sidebar bullets is rotated when link is active (#1157)
Browse files Browse the repository at this point in the history
* fix: ensure sidebar links icon is rotated for active links

* Add animation for sidebar link icon rotation
  • Loading branch information
kevgathuku authored Apr 16, 2020
1 parent 2c18509 commit 7d259fb
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,19 @@
height: 5px;
width: 8px;
background: url('/img/triangle_dark.svg') no-repeat center center;
}
}

&.active {
transform: rotate(-90deg);
}
@keyframes rotateIcon {
100% {
transform: rotate(-90deg);
}
}

.active::before {
animation: rotateIcon 0.5s forwards;
}

.footer {
margin-top: 30px;
padding-bottom: 30px;
Expand Down

0 comments on commit 7d259fb

Please sign in to comment.