fix(gem icon in menu): add hover animation

This commit is contained in:
Matteo Pagliazzi
2020-09-22 15:53:05 +02:00
parent 58a73dd62a
commit 74428d0727

View File

@@ -679,8 +679,31 @@ body.modal-open #habitica-menu {
margin-left: 24px;
}
@keyframes rotateGemColors {
/* Gems are green by default, so we rotate through ROYGBIV starting with green. */
20% {
fill: #46A7D9; /* Blue */
}
40% {
fill: #925CF3; /* Purple */
}
60% {
fill: #DE3F3F; /* Red */
}
80% {
fill: #FA8537; /* Orange */
}
100% {
fill: #FFB445; /* Yellow */
}
}
.gem:hover {
cursor: pointer;
& ::v-deep path:nth-child(1) {
animation: rotateGemColors 3s linear infinite alternate;
}
}
.message-count {