Rotate unread notification bell icon with CSS instead of relying on a separate icon

This commit is contained in:
Alex Gleason 2021-10-05 17:49:44 -05:00
parent e04a488ea4
commit 30973bd05f
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
3 changed files with 8 additions and 0 deletions

View file

@ -4,11 +4,13 @@
display: flex;
align-items: center;
justify-content: center;
transition: 0.2s;
svg {
// Apparently this won't skew the image as long as it has a viewbox
width: 100%;
height: 100%;
transition: 0.2s;
}
&--active {
@ -39,6 +41,12 @@
}
}
}
&--unread {
svg.icon-tabler-bell {
transform: rotate(45deg);
}
}
}
.icon-button > div {