app-panel-field.scss 854 字节
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
.app-panel-field {
    height: 100%;
    width: 100%;
    display: flex;

    .editor {
        flex-grow: 1;
        line-height: 34px;

        .check-error {
            .ivu-input.ivu-input-default {
                border-color: red;
            }
        }

        .error-info {
            color: red;
        }
    }

    .app-panel-field-label {
        line-height: 22px;
        flex-shrink: 0;
    }
}

.app-panel-field.label-top {
    flex-flow: column;
}

.app-panel-field.label-bottom {
    flex-flow: column-reverse;
}

.app-panel-field.label-left {
    .app-panel-field-label {
        text-align: right;
    }
}

.app-panel-field.label-right {
    flex-flow: row-reverse;

    .app-panel-field-label {
        padding: 6px 0px 6px 10px;
    }
}

.app-panel-field.label-none {
    .app-panel-field-label {
        display: none;
    }
}