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 {
width: 100%;
}
.entry .style-name:hover::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
.entry .style-name:hover {
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 {
color: var(--accent-1);