app-image-upload.less 3.1 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 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146
.app-picture-upload {
    >div {
        display: inline;
    }

    .is-disabled {
        .el-upload {
            cursor: not-allowed;
        }
    }

    .el-image {
        .item__image {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
            height: 100%;
            font-size: 30px;
        }
    }

    .picture-upload__card {
        margin: 0;
        display: inline;
        vertical-align: top;
    }

    .el-upload-content__item {
        overflow: hidden;
        background-color: #fff;
        border: 1px solid #c0ccda;
        border-radius: 6px;
        box-sizing: border-box;
        width: 148px;
        height: 148px;
        margin: 0 8px 8px 0;
        display: inline-block;
        position: relative;

        .el-upload-content__item__thumbnail {
            min-width: 100px;
            min-height: 100px;
            width: 100%;
            height: 100%;
            cursor: pointer;
            &:hover {
                opacity: 1
            }
        }

        .el-upload-content__item__caption{
           display: none;
        }

        .el-icon-close {
            display: none;
        }
    }
    
    .el-upload-content__item__status-label {
        display: block;
        position: absolute;
        right: -15px;
        top: -6px;
        width: 40px;
        height: 24px;
        background: #13ce66;
        text-align: center;
        transform: rotate(45deg);
        box-shadow: 0 0 1pc 1px rgb(0 0 0 / 20%);

        .el-icon-check {
            font-size: 12px;
            margin-top: 11px;
            transform: rotate(-45deg);
            color: #fff;
        }
    }

    .el-upload-content__item__action {
        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;
        .flex();
        &:hover {
            opacity: 1
        }
        
        span+span {
            margin-left: 15px;
        }
    }

    .is-single {
        .picture-upload__card .el-upload-content__item {
            width: calc(100% + 2px);
            height: calc(100% + 2px);

            .el-upload-content__item__thumbnail {
                min-width: 100px;
                min-height: 100px;

            }
            .el-upload-content__item__action {
                span {
                    margin-right: 16px;
                }
            }
        }

        .el-upload--picture-card {
            width: calc(100% + 2px);
            height: calc(100% + 2px);
            display: flex;
            align-items: center;
            justify-content: center;
        }
    }
}

.app-picture-upload-model {
    .el-image {
        width: 100%;
        height: 100%;

        .upload-model__image {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
            height: 300px;
            font-size: 30px;
            vertical-align: top;
        }
    }
}