feat: add transition
This commit is contained in:
parent
009d5d8adf
commit
c19b249725
1 changed files with 1 additions and 1 deletions
|
|
@ -224,6 +224,7 @@ function toggleExpand(node: Node, ancestor?: []) {
|
||||||
border: solid 1px transparent;
|
border: solid 1px transparent;
|
||||||
border-radius: var(--radius-2);
|
border-radius: var(--radius-2);
|
||||||
padding: 0.1rem 0.5rem;
|
padding: 0.1rem 0.5rem;
|
||||||
|
transition: 0.15s;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: hsla(0 0% 0% / 0.1);
|
background: hsla(0 0% 0% / 0.1);
|
||||||
|
|
@ -256,7 +257,6 @@ function toggleExpand(node: Node, ancestor?: []) {
|
||||||
}
|
}
|
||||||
|
|
||||||
& .active {
|
& .active {
|
||||||
border-radius: var(--radius-2);
|
|
||||||
border: solid 1px hsl(var(--info-bg));
|
border: solid 1px hsl(var(--info-bg));
|
||||||
background: hsla(var(--info-bg) / 0.1);
|
background: hsla(var(--info-bg) / 0.1);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue