.vdr {
    touch-action: none;
    border: 1px dashed #d6d6d6
}

.handle,.vdr {
    position: absolute;
    box-sizing: border-box
}

.handle {
    width: 8px;
    height: 8px;
    background: #fff;
    border: 1px solid #333;
    box-shadow: 0 0 2px #bbb
}

.handle-tl {
    top: -5px;
    left: -5px;
    cursor: nw-resize
}

.handle-tm {
    top: -5px;
    left: calc(50% - 4px);
    cursor: n-resize
}

.handle-tr {
    top: -5px;
    right: -5px;
    cursor: ne-resize
}

.handle-ml {
    top: calc(50% - 4px);
    left: -5px;
    cursor: w-resize
}

.handle-mr {
    top: calc(50% - 4px);
    right: -5px;
    cursor: e-resize
}

.handle-bl {
    bottom: -5px;
    left: -5px;
    cursor: sw-resize
}

.handle-bm {
    bottom: -5px;
    left: calc(50% - 4px);
    cursor: s-resize
}

.handle-br {
    bottom: -5px;
    right: -5px;
    cursor: se-resize
}

.ref-line {
    position: absolute;
    background-color: #f0c;
    z-index: 9999
}

.v-line {
    width: 1px
}

.h-line {
    height: 1px
}

@media only screen and (max-width: 768px) {
    [class*=handle-]:before {
        content:"";
        left: -10px;
        right: -10px;
        bottom: -10px;
        top: -10px;
        position: absolute
    }
}
