react-dnd-crop
Version:
React custom Drag and drop with Cropper
87 lines (74 loc) • 1.53 kB
CSS
#DRAG_AND_DROP_AREA {
padding: 10px;
display: flex;
flex-wrap: wrap;
flex-direction: column;
text-align: center;
background-color: rgba(204, 213, 224, 0.1);
border-radius: 20px;
border: 2px dashed rgba(204, 213, 224, 0.25);
}
#DRAG_AND_DROP_ZONE {
display: flex;
flex-wrap: wrap;
align-content: flex-start;
}
#DRAG_AND_DROP_PLACEHOLDER {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
text-align: center;
justify-content: center;
align-items: center;
}
#DRAG_AND_DROP_PLACEHOLDER h1 {
color: #708088;
font-size: 16px;
}
#DRAG_AND_DROP_PLACEHOLDER p {
color: rgba(112, 128, 136, 0.5);
font-size: 14px;
}
#DRAG_AND_DROP_PLACEHOLDER i {
color: #ccd5e0;
font-size: 80px;
}
#DRAG_AND_DROP_AREA_ITEM {
width: 103px;
height: 77px;
margin: 8px;
text-align: center;
}
#DRAG_AND_DROP_AREA_ITEM_IMAGE_CONTAINER {
width: inherit;
height: inherit;
margin: 0;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
color: transparent;
border-radius: 4.3px;
}
#DRAG_AND_DROP_AREA_ITEM_IMAGE_CONTAINER:hover {
color: white;
}
#DRAG_AND_DROP_AREA_INPUT {
display: none;
}
#DRAG_AND_DROP_AREA_ITEM_CANCEL_ICON {
/* color: rgb(202, 197, 197); */
/* float: right; */
display: block;
}
#DRAG_AND_DROP_AREA_ITEM_CROP_ICON {
/* color: rgb(202, 197, 197); */
/* float: right; */
position: relative;
display: block;
/* left: 23px;
top: 50px; */
}
#DRAG_AND_DROP_MESSAGE {
position: relative;
}