Vanessa 2024-11-27 20:39:21 +08:00
parent 18f68ac715
commit 83ea11101a
5 changed files with 19 additions and 29 deletions

View File

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

View File

@ -86,7 +86,7 @@
max-height: 24px; max-height: 24px;
} }
.dragover__top.av__row { .av__row.dragover__top::after {
box-shadow: 0 -2px 0 var(--b3-theme-primary-lighter), inset 0 2px 0 var(--b3-theme-primary-lighter) !important; top: -2px
} }
} }

View File

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

View File

@ -8,7 +8,7 @@
border-radius: var(--b3-border-radius); border-radius: var(--b3-border-radius);
&:hover:not(.b3-list-item--focus):not(.dragover):not(.dragover__top):not(.dragover__bottom), &:hover:not(.b3-list-item--focus):not(.dragover):not(.dragover__top):not(.dragover__bottom),
&--focus:not(.dragover) { &--focus:not(.dragover):not(.dragover__top):not(.dragover__bottom) {
background-color: var(--b3-list-hover); background-color: var(--b3-list-hover);
} }
} }

View File

@ -55,18 +55,6 @@
} }
} }
.bq {
.dragover {
&__top:not(.av__row) {
box-shadow: 0 -3px 0 var(--b3-theme-primary-lighter), inset 0 1px 0 var(--b3-theme-primary-lighter) !important;
}
&__bottom:not(.av__row) {
box-shadow: 0 3px 0 var(--b3-theme-primary-lighter), inset 0 -1px 0 var(--b3-theme-primary-lighter) !important;
}
}
}
&.list { &.list {
padding: 0; padding: 0;
display: flex; display: flex;
@ -476,11 +464,11 @@
} }
.dragover { .dragover {
&__top:not(.av__row) { &__top {
box-shadow: 0 -4px 0 0 var(--b3-theme-primary-lighter) !important; box-shadow: 0 -4px 0 0 var(--b3-theme-primary-lighter) !important;
} }
&__bottom:not(.av__row) { &__bottom {
box-shadow: 0 4px 0 0 var(--b3-theme-primary-lighter) !important box-shadow: 0 4px 0 0 var(--b3-theme-primary-lighter) !important
} }
} }