mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-10 22:52:34 +01:00
Improve drag performance and hover states in doc tree (#15102)
* 🎨 Improve drag performance and hover states in doc tree Improve https://github.com/siyuan-note/siyuan/issues/13864 * 🎨 Improve drag performance and hover states in doc tree Improve https://github.com/siyuan-note/siyuan/issues/13864
This commit is contained in:
parent
855d6cc2db
commit
10a4742ebb
3 changed files with 52 additions and 3 deletions
|
|
@ -9,11 +9,20 @@
|
|||
&--background .b3-list-item {
|
||||
border-radius: var(--b3-border-radius);
|
||||
|
||||
&:hover:not(.b3-list-item--focus):not(.dragover):not(.dragover__current):not(.dragover__top):not(.dragover__bottom),
|
||||
&:hover,
|
||||
&--focus {
|
||||
background-color: var(--b3-list-hover);
|
||||
}
|
||||
|
||||
&.dragover,
|
||||
&.dragover__top,
|
||||
&.dragover__bottom,
|
||||
&.dragover__current {
|
||||
&:hover {
|
||||
background-color: var(--b3-list-hover);
|
||||
}
|
||||
}
|
||||
|
||||
&.dragover,
|
||||
&.dragover__top,
|
||||
&.dragover__bottom {
|
||||
|
|
|
|||
|
|
@ -284,6 +284,22 @@ html {
|
|||
overflow: hidden;
|
||||
transition: var(--b3-transition);
|
||||
}
|
||||
|
||||
&--dragover {
|
||||
.b3-list--background .b3-list-item:not(.b3-list-item--focus) {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.b3-list-item {
|
||||
&--hide-action .b3-list-item__action {
|
||||
display: none;
|
||||
}
|
||||
|
||||
> * {
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.counter {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue