@import './variable';
.upload-box {
    display: inline-block;
    position: relative;
    &.list-type {
        min-height: 130px;
        min-width: 130px;
        position: absolute;
        top: 8px;
        left: 8px;
    }
    .upload-list {
        & + .tip-box {
            .el-upload__tip {
                margin-top: 0;
            }
        }
    }
}
.upload-item {
    display: inline-block;

    .upload-item + .el-button,
    .upload-item + .upload-item,
    .el-button + .upload-item {
        margin-left: 10px;
        border-radius: 2px;
    }
    &.upload-readonly .el-upload.el-upload--text {
        display: none;
    }
    .upload-item .el-upload {
        text-align: left;
    }
    .el-upload__tip {
        line-height: 20px;
    }

    .tip-box {
        font-size: 12px;
        color: $--color-text-regular;
    }
    .el-upload.el-upload--picture-card {
        width: 84px;
        height: 84px;
        line-height: 84px;
    }
}

.file-preview {
    width: 84px;
    height: 84px;
    border-radius: 5px;
    position: relative;
    display: inline-block;
    img {
        width: 100%;
        height: 100%;
    }
    .preview-mask {
        position: absolute;
        bottom: 0;
        right: 0;
        & > i {
            background-color: $--color-black;
            border-radius: 3px;
            color: $--color-white;
            width: 20px;
            height: 20px;
            font-size: 12px;
            line-height: 20px;
            text-align: center;
            display: inline-block;
        }
    }
    .file-type-preview {
        width: 100%;
        height: 100%;
        background-image: url('../../../images/filetypeBg.png');
        color: $--color-white;
        padding: 13px 0 0 10px;
        text-align: left;
        background-position: center;
        background-repeat: no-repeat;
        background-size: 100%;
        font-size: 16px;
        line-height: 18px;
        font-weight: bold;
    }
    .filename {
        max-height: 32px;
        width: 100%;
        overflow: hidden;
        color: $--color-text-regular;
        font-size: 12px;
        line-height: 16px;
        text-overflow: ellipsis;
    }
}
