.upload_component {
    input[type="file"] {
        @include input-type-file();
    }
    .tu-icon-cus-fujian {
        font-size: 18px;
        vertical-align: middle;
    }
    .upload_form_container {
        width: 100%;
        height: 100%;
        right: 0;
        cursor: pointer;
        overflow: hidden;
    }
}
// 上传状态的preview显示
.tita-upload-preview-new {
    position: relative;
    @include clearfix();
    font-size: 12px;
    line-height: 20px;
    .left_up {
        position: relative;
        float: left;
        width: 30px;
        height: 30px;
        background-color: #e4ebf0;
        margin-right: 10px;
    }
    .center_up {
        width: 150px;
        float: left;
        .name {
            font-size: 12px;
            color: #647481;
            line-height: 20px;
            margin-top: 6px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .progress,
        .progress-bar {
            height: 4px;
            border-radius: 2px;
        }
        .progress {
            background-color: #e3ecf1;
        }
        .progress-bar {
            width: 0%;
            background-color: #1687d9;
        }
        .status {
            position: absolute;
            right: 45px;
        }
        .status-error {
            color: #eb4447;
        }
        .status-success {
            color: #2dab92;
        }
    }
    .right_up {
        float: right;
        line-height: 30px;

        .action-iocn {
            font-size: 14px;
            vertical-align: middle;
            color: #a9b8bf;
            &:hover {
                color: #1687d9;
            }
        }
        .action-iocn-delete {
            &:hover {
                color: #eb4447;
            }
        }
    }
    .item_up {
        position: relative;
        float: left;
        margin-top: 10px;
        margin-right: 10px;
        width: 310px;
        height: 30px;
        padding: 5px;
        background-color: #f5f8fa;
        &:hover {
            .action_up {
                display: block;
                cursor: pointer;
            }
        }
    }
    .img_up {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        margin: auto;
        background-color: #fff;
        max-width: 30px;
        max-height: 30px;
    }
    .ico_up {
        display: inline-block;
        width: 30px;
        height: 30px;
        line-height: 30px;
        text-align: center;
        font-size: 30px;
        background-color: #ffffff;
    }
    .name_up {
        color: $gay2;
    }
    .action_up {
        display: none;
    }
}
// 显示状态的preview显示
.tita-upload-preview-show {
    .item_up {
        background-color: transparent;
        &:hover {
            background-color: #f5f8fa;
            .right_up {
                display: block;
            }
        }
    }
    .right_up {
        display: none;
    }
}

.loading_up {
    width: 153px;
    height: 16px;
    background: url(#{$baseImgUrl}/file_load.gif) no-repeat 0 0;
    display: inline-block;
}
.tita-existFile-box {
    .right_afb {
        position: absolute;
        right: 5px;
    }
}
.tita-upload-preview {
    @include clearfix();
    font-size: 12px;
    line-height: 20px;
    .item_up {
        margin-right: 40px;
        float: left;
        margin-top: 10px;
        position: relative;
        height: 142px;
        &:hover {
            .action_up {
                display: block;
                cursor: pointer;
            }
        }
    }
    .cont_up {
        width: 100px;
        height: 100px;
        overflow: hidden;
    }
    .img_up {
        border: 1px solid $gay7;
        background-color: $gay8;
        width: 98px;
        height: 98px;
        vertical-align: middle;
        overflow: hidden;
        text-align: center;
        display: table-cell;
        *display: inline-block;
        img {
            vertical-align: middle;
        }
    }
    .name_up {
        color: $gay2;
    }
    .action_up {
        display: none;
    }
    .loading_up {
        width: 153px;
        height: 16px;
        background: url(#{$baseImgUrl}/file_load.gif) no-repeat 0 0;
        display: inline-block;
    }
}

.tt_upload_type_container {
    display: none;
    position: absolute;
    background-color: white;
    border: 1px solid #dedede;
    @include box-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
    border-radius: 2px;
    width: 90px;
    padding: 10px 0;
    z-index: 1000;
    input[type="file"] {
        height: 30px;
    }
    .upload_new_file {
        position: relative;
    }
    .upload_type_item {
        overflow: hidden;
        padding: 0 15px;
        font-size: 12px;
        &:hover {
            background-color: #f5f8fa;
            cursor: pointer;
        }
        span {
            display: block;
            height: 30px;
            line-height: 30px;
            color: #36434d;
        }
    }
    .upload_form_container {
        right: -15px;
    }
}
