@import '../../style/index.less';
.upload-img-multiple-wrap {
    .hb-upload-img-wrap{
        margin-right: 20px;
    }
}

.hb-upload-img-wrap {
    display: inline-block;
    position: relative;
    .required {
        position: absolute;
        left: -10px;
        top: -10px;
        color: @error-color;
        z-index: 10;
    }
    .tooltips{
        position: absolute;
        left: -15px;
        top: 5px;
        z-index: 10;
        font-size: 12px;
        cursor: pointer;
        color: #a1a1a1;
    }
    .hb-upload-img {
        border: 1px dashed @border-color-base;
        padding: 5px;
        position: relative;
        .loading-box {
            position: absolute;
            left: 10px;
            top: -10px;
            width: calc(100% - 10px);
            z-index: 5;
        }

        &:hover {
            .tool-box {
                display: flex;
            }
        }

        .tool-box {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            display: none;
            align-items: center;
            justify-content: center;
            background-color: rgba(0, 0, 0, .5);
            z-index: 8;

            i {
                margin-right: 5px;
                color: @white;
                cursor: pointer;

                &:hover {
                    &.preview {
                        color: @info-color;
                    }

                    &.edit {
                        color: @primary-color;
                    }

                    &.delete {
                        color: @error-color;
                    }
                }
            }
        }

        .img-container {
            position: relative;



            .child-box {
                position: absolute;
                width: 100%;
                height: 100%;
                left: 0;
                top: 0;
                background-color: @white;

                &.input-box {
                    z-index: 2;
                }

                &.img-box {
                    z-index: 1;

                    img {
                        width: 100%;
                        height: 100%;
                    }
                }

                &.has-img {
                    &.input-box {
                        z-index: 1;
                    }

                    &.img-box {
                        z-index: 2;
                    }
                }

                &.input-box {
                    display: flex;
                    align-items: center;
                    justify-content: center;

                    input {
                        opacity: 0;
                        position: absolute;
                        width: 100%;
                        height: 100%;
                        left: 0;
                        top: 0;
                        cursor: pointer;
                    }

                    .upload-text {
                        text-align: center;

                        i {
                            font-size: 20px;
                        }
                    }
                }
            }


        }
    }
    .hb-upload-title{
        &.ellipsis{
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        &.title {
            font-weight: bold;
        }
    }
    
}