@import "mixins/mixins";
@import "mixins/utils";

@include b(attachment-manage) {
    background-color: #fff;
    height: 100%;
    padding: 10px;
    color:#3E3A39;
    font-size: 14px;
    img {
        vertical-align: middle;
    }
    ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .el-button {
        padding: 0 15px;
        height: 32px;
        border-radius: 4px;
        &.el-button--text {
            padding: 0;
            height: auto;
        }
    }
    .el-input__inner {
        height: 32px !important;
        line-height: 32px !important;
    }
    .attachment-manage-header {
        display: flex;
        align-items: center;
        .header-left {
            flex: 1;
        }
        .header-right {
            display: flex;
            .el-input-group {
                width: auto;
            }
            .el-button--text {
                margin-left: 10px;
            }
        }
    }
    .attachment-manage-content {
        padding-top: 20px;
        .attachment-list {
            .list-header {
                display: flex;
                .title {
                    flex: 1;
                }
            }
            .list-content {
                .el-icon-tickets {
                    color: gray;
                }
                .el-table {
                    .cell {
                        white-space: nowrap;
                        img,
                        .el-icon-tickets {
                            margin-right: 5px;
                        }
                        .el-icon-tickets {
                            font-size: 32px;
                            padding: 2px;
                        }
                        .el-button--text {
                            color: #b7b7b8;
                            font-size: 22px;
                            &+.el-button {
                                margin-left: 5px;
                            }
                            &:hover {
                                color: #67bcff;
                            }
                            .el-icon-delete {
                                &:hover {
                                    color: #f56a6b;
                                }
                            }
                        }
                    }
                }
                .list-view {
                    .checkbox-all {
                        font-size: 12px;
                        color:#929292;
                        padding: 8px 0;
                        border-bottom: 1px solid #ccc;
                    }
                    ul {
                        display: flex;
                        flex-flow: row wrap;
                        margin-top: 10px;
                        li {
                            position: relative;
                            border:1px solid #fff;
                            width: 130px;
                            padding: 2px;
                            margin: 5px;
                            text-align: center;
                            .el-icon-tickets {
                                font-size: 112px;
                                padding: 8px;
                            }
                            span {
                                display: block;
                                text-align: center;
                                width: 100%;
                                overflow: hidden;
                                white-space: nowrap;
                                text-overflow: ellipsis;
                            }
                            input {
                                display: none;
                                position: absolute;
                                left: 0;
                                top: 0;
                                z-index: 9;
                            }
                            &.selected,
                            &:hover {
                                border: 1px dashed #000;
                                border-radius: 10px;
                                input {
                                    display: block;
                                }
                            }
                        }
                    }
                }
            }
        }
        .capture-box{
            border: 1px solid #ccc;
            border-radius: 10px;
            .capture-box-header {
                padding: 0 15px;
                border-bottom: 1px solid #ccc;
                display: flex;
                align-items: center;
                height: 40px;
                span {
                    font-size: 16px;
                    font-weight: bold;
                    flex: 1;
                }
                i {
                    cursor: pointer;
                }
            }
            .capture-box-content {
                overflow: hidden;
                padding: 20px;
                position: relative;
                .capture-box-video {
                    .video_ {
                        position: relative;
                        width: 640px;
                        height: 360px;
                        margin: 0 auto;
                        .non-video {
                            color: gray;
                            position: absolute;
                            top: 0;
                            left: 0;
                            z-index: 9;
                            width: 100%;
                            height: 100%;
                            display: flex;
                            align-items: center;
                            align-content: center;
                            justify-content: center;
                            flex-flow: row wrap;
                            .title {
                                width: 100%;
                                text-align: center;
                            }
                        }
                        #video_bak {
                            width: 100%;
                            height: 100%;
                            background: black;
                        }
                    }
                    .button_ {
                        margin-top: 20px;
                        text-align: center;
                        img {
                            // display: none;
                            margin-right: 5px;
                        }
                    }
                }
                .capture-box-pic {
                    background: #FAFAFA;
                    position: absolute;
                    right: 0;
                    top: 0;
                    z-index: 9;
                    margin: 20px 0;
                    height: 360px;
                    max-width: 360px;
                    .pic-expand {
                        position: absolute;
                        right: 0;
                        top: -20px;
                        z-index: 9;   
                    }
                    .pic-list {
                        height: 100%;
                        overflow-y: auto;
                        li {
                            position: relative;
                            float: left;
                            img {
                                width: 100%;
                            }
                            .el-button {
                                position: absolute;
                                right: 0;
                                top: 0;
                                z-index: 9;
                                color: white;
                            }
                            &.active {
                                width: 155px;
                                margin: 8px;
                                img {
                                    border-radius: 10px;
                                }
                            }
                        }
                    }
                    .pic-info {
                        position: absolute;
                        bottom: 0;
                        left: 0;
                        right: 0;
                        z-index: 9;
                        display: flex;
                        align-items: center;
                        padding: 5px;
                        .el-button {
                            margin-left: 5px;
                        }
                    }
                }
            }
        }
    }
}

.attachment-manage-dialog {
    .el-dialog {
        .el-dialog__body {
            padding: 20px;
            .el-input__inner {
                height: 32px !important;
                line-height: 32px !important;
            }
            .upload-box {
                width: 400px;
            }
        }
    }
}
.attachment-manage-progress {
    margin-top: 28vh !important;
    .el-dialog {
        background: none;
        box-shadow: none !important;
        border: 0 !important;
        .el-dialog__header {
            display: none;
        }
        .el-dialog__body {
            padding: 0;
        }
    }
   .el-progress__text{
       color: red;
   }
}
.el-dialog.is-fullscreen.imgPreview_xy{
    background: #000;
    .el-dialog__header{
		padding:0;
        border: none;
        .Special.SpecChar{
            display: none;
        }
    }
    .el-dialog__body{
		display: flex;
		justify-content: center;
		align-items: center;
		height: 100%;
    }
}