Improve drag block to database highlighting

fix https://github.com/siyuan-note/siyuan/issues/13251
This commit is contained in:
Jeffrey Chen 2024-11-26 19:58:00 +08:00
parent 9860fc7749
commit e798190dd3
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

@ -2,12 +2,12 @@
background-color: var(--b3-theme-primary-lightest) !important;
// 需要 !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;
}