feat: add transition

This commit is contained in:
Methapon Metanipat 2024-10-01 09:51:55 +07:00
parent 009d5d8adf
commit c19b249725

View file

@ -224,6 +224,7 @@ function toggleExpand(node: Node, ancestor?: []) {
border: solid 1px transparent;
border-radius: var(--radius-2);
padding: 0.1rem 0.5rem;
transition: 0.15s;
&:hover {
background: hsla(0 0% 0% / 0.1);
@ -256,7 +257,6 @@ function toggleExpand(node: Node, ancestor?: []) {
}
& .active {
border-radius: var(--radius-2);
border: solid 1px hsl(var(--info-bg));
background: hsla(var(--info-bg) / 0.1);
}