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