Spin boosts/faves icon on hover (more fun!)
This commit is contained in:
@ -142,12 +142,17 @@ section#comments {
|
||||
|
||||
svg {
|
||||
margin-inline-end: 0.25rem;
|
||||
transition: var(--transition-long);
|
||||
vertical-align: -0.125em;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
box-shadow: var(--edge-highlight);
|
||||
text-decoration: none;
|
||||
|
||||
svg {
|
||||
rotate: 360deg;
|
||||
}
|
||||
}
|
||||
|
||||
&:active {
|
||||
|
@ -211,7 +211,7 @@
|
||||
boosts.className = "boosts";
|
||||
boosts.setAttribute("href", `${status.url}/reblogs`);
|
||||
boosts.setAttribute("title", `Favorites from ${instance}`);
|
||||
|
||||
|
||||
let boostsIcon = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
||||
boostsIcon.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
||||
boostsIcon.setAttribute("width", "16");
|
||||
|
Reference in New Issue
Block a user