app-array-box.less 1.5 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
.app-array-box {
    display: flex;
    flex-direction: column;
    gap: 5px;
    .app-array-box__icon  {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        text-align: center;
        line-height: 32px;
        display: inline-block;
        cursor: pointer;
        margin-left: 5px;
        color: white;
        font-size: 18px;
    }
    .ivu-icon-md-add {
        background-color: #409EFF;
        border-color: #409EFF;
        &:hover {
            background-color: #66b1ff;
            border-color: #66b1ff;
            color: #FFF;
        }
    }
    .ivu-icon-md-remove {
        background-color: #F56C6C;
        border-color: #F56C6C;
        &:hover {
            background-color: #f78989;
            border-color: #f78989;
            color: #FFF;
        }
    }
    .app-array-box__item {
        display: flex;
        >.input-unit{
            flex: auto;
        }
        >.ivu-tooltip {
            width: 100%;
            flex: auto;
        }
        
        .app-array-box__icons {
            flex: none;
        }
    }
    .ivu-tooltip-popper   {
        .el-image, img {
            width: 170px;
        }
    }
    &.is-disabled {
        .app-array-box__icon {
            cursor: not-allowed;
        }
    }
}

.ivu-form-item-error {
    .app-inupt-box--correct {
        .ivu-input-number,
        .ivu-input {
            border-color: #3880ff !important;
            &:focus {
                box-shadow: 0 0 0 2px #e1ecff !important;
            }
        }
    }
}