Improve drag block to database highlighting (#13284)

fix https://github.com/siyuan-note/siyuan/issues/13251
This commit is contained in:
Jeffrey Chen 2024-11-27 19:56:54 +08:00 committed by GitHub
parent 0ed794aacf
commit 18f68ac715
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 18 additions and 6 deletions

View file

@ -125,14 +125,26 @@
position: relative;
font-size: 87.5%;
&.dragover__bottom {
border-bottom-color: var(--b3-theme-primary-lighter);
&.dragover__top::before {
content: '';
position: absolute;
left: 0;
right: 0;
top: -2.5px;
height: 4px;
background-color: var(--b3-theme-primary-lighter);
z-index: 3;
}
&.dragover__top {
&.dragover__bottom::after {
content: '';
position: absolute;
left: 0;
right: 0;
bottom: -2.5px;
height: 4px;
background-color: var(--b3-theme-primary-lighter);
z-index: 3;
box-shadow: 0 -3px 0 var(--b3-theme-primary-lighter), inset 0 2px 0 var(--b3-theme-primary-lighter) !important;
}
&:hover [data-type="block-more"] {

View file

@ -13,12 +13,12 @@
}
// 需要 !important否则拖拽到闪卡无效果
&__top {
&__top:not(.av__row) {
border-radius: 0 !important;
box-shadow: 0 -3px 0 var(--b3-theme-primary-lighter), inset 0 1px 0 var(--b3-theme-primary-lighter) !important;
}
&__bottom {
&__bottom:not(.av__row) {
border-radius: 0 !important;
box-shadow: 0 2px 0 var(--b3-theme-primary-lighter), inset 0 -2px 0 var(--b3-theme-primary-lighter) !important;
}