Skip to content

Commit

Permalink
Merge pull request #89 from mathuo/88-fix-droptarget-styles
Browse files Browse the repository at this point in the history
fix: style fix
  • Loading branch information
mathuo authored Apr 28, 2022
2 parents 083ca6a + 8f8083e commit 4936f64
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions packages/dockview/src/dnd/droptarget.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,24 @@
height: 100%;
width: 100%;
background-color: var(--dv-drag-over-background-color);

transition-duration: 0.15s;
transition-timing-function: ease-out;
transition: top 70ms ease-out,left 70ms ease-out,width 70ms ease-out,height 70ms ease-out,opacity .15s ease-out;
will-change: transform;
pointer-events: none;

&.left {
transform: translateX(-25%) scaleX(50%)
transform: translateX(-25%) scaleX(0.5)
}

&.right {
transform: translateX(25%) scaleX(50%)
transform: translateX(25%) scaleX(0.5)
}

&.top {
transform: translateY(-25%) scaleY(50%);
transform: translateY(-25%) scaleY(0.5);
}

&.bottom {
transform: translateY(25%) scaleY(50%);
transform: translateY(25%) scaleY(0.5);
}

&.small-top {
Expand Down

0 comments on commit 4936f64

Please sign in to comment.