app-image-select.less 2.2 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
.app-image-select {
    height: 148px;
}

.app-image-select__content{
    height: 100%;
    display: flex;
    flex-direction: column;

    > .content__img {
        height: 100%;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        > img {
            max-width: 100%;
            max-height: 100%;
        }
    }

    > .content__svg {
        height: 100%;
        width: 100%;
        display: flex;
        align-items: center;
        > svg {
            width: 100%;
        }
    }

    .content__action{
        display: block;
        position: absolute;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        cursor: pointer;
        text-align: center;
        color: #fff;
        opacity: 0;
        font-size: 20px;
        background-color: rgba(0, 0, 0, .5);
        transition: opacity .3s;

        &:hover {
            opacity: 1
        }

        .flex();

        span+span {
            margin-left: 15px;
        }
    }
}
.app-image-select__dialog-model{
    .el-dialog{
        display: flex;      
        
        .el-dialog__header {
            padding: 0;
        }
        &.app-image-select--has-picture .el-upload.el-upload--picture-card {
            display: none;
        }
        &.is-disabled .el-upload.el-upload--picture-card {
            background-color: rgba(0, 0, 0, 0.1);
            border: none;
            cursor: not-allowed;
        }
        .el-upload-list__item {
            transition: none;
        }
        .el-upload-list__item.is-ready {
            display: none;
        }
    }
    
    .el-dialog__body {
        display: flex;
        width: 100%;
        height: 80vh;
    }

    .dialog-model__image__img {
        height: 100%;
        width: 100%;
        max-width: 100%;
        max-height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        > img {
            max-width: 100%;
            max-height: 100%;
        }
    }

    .dialog-model__image__svg {
        height: 100%;
        width: 100%;
        display: flex;
        align-items: center;
        > svg {
            width: 100%;
        }
    }
}