react-sortable-tree-node
Version:
react-sortable-tree-node
47 lines (44 loc) • 946 B
CSS
.rst__placeholder {
position: relative;
height: 68px;
max-width: 300px;
padding: 10px;
}
.rst__placeholder,
.rst__placeholder > * {
box-sizing: border-box;
}
.rst__placeholder::before {
border: 3px dashed #d9d9d9;
content: '';
position: absolute;
top: 5px;
right: 5px;
bottom: 5px;
left: 5px;
z-index: -1;
}
/**
* The outline of where the element will go if dropped, displayed while dragging
*/
.rst__placeholderLandingPad,
.rst__placeholderCancelPad {
border: none ;
box-shadow: none ;
outline: none ;
}
.rst__placeholderLandingPad *,
.rst__placeholderCancelPad * {
opacity: 0 ;
}
.rst__placeholderLandingPad::before,
.rst__placeholderCancelPad::before {
background-color: lightblue;
border-color: white;
}
/**
* Alternate appearance of the landing pad when the dragged location is invalid
*/
.rst__placeholderCancelPad::before {
background-color: #e6a8ad;
}