simplify hover animation: 50% less CPU
This commit is contained in:
parent
7b64deeb37
commit
1b914a397e
|
@ -69,15 +69,8 @@
|
||||||
.style-name-link {
|
.style-name-link {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
.entry .style-name:hover::before {
|
.entry .style-name:hover {
|
||||||
content: "";
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
bottom: 0;
|
|
||||||
background: linear-gradient(to right, hsla(180, 50%, 30%, 0.2), hsla(180, 20%, 10%, 0.05) 50%, transparent);
|
background: linear-gradient(to right, hsla(180, 50%, 30%, 0.2), hsla(180, 20%, 10%, 0.05) 50%, transparent);
|
||||||
pointer-events: none;
|
|
||||||
}
|
}
|
||||||
.entry.enabled .style-name:hover .style-name-link {
|
.entry.enabled .style-name:hover .style-name-link {
|
||||||
color: var(--accent-1);
|
color: var(--accent-1);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user