simplify hover animation: 50% less CPU

This commit is contained in:
tophf 2022-09-06 21:25:13 +03:00
parent 7b64deeb37
commit 1b914a397e

View File

@ -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);