@import "mixins/mixins";
@import "common/var";

@include b(form-split-line) {
    width: 100%;
    margin-bottom: 22px;
    display: flex;
    flex-direction: row;
    align-items: center;
    .head-name {
        flex: 0 0 auto;
        height: 64px;
        line-height: 64px;
        font-size: 18px;
        text-align: left;
        color: $--color-primary;
        margin-right: 28px;
    }
    
    .head-line {
        flex: 1 1 auto;
        width: 100%;
        background: $--color-primary;
        height: 2px;
    }

    .prepend {
        margin-right: 28px;
    }

    @include m(medium) {
        &.el-form-split-line {
            margin-bottom: 20px;
        }
        .head-name {
            height: 56px;
            line-height: 56px;
            font-size: 16px;
            margin-right: 24px;
        }
        .prepend {
            margin-right: 24px;
        }
    }
    @include m(small) {
        &.el-form-split-line {
            margin-bottom: 18px;
        }
        .head-name {
            height: 48px;
            line-height: 48px;
            font-size: 14px;
            margin-right: 20px;
        }
        .prepend {
            margin-right: 20px;
        }
    }
    @include m(mini) {
        &.el-form-split-line {
            margin-bottom: 18px;
        }
        .head-name {
            height: 40px;
            line-height: 40px;
            font-size: 14px;
            margin-right: 16px;
        }
        .prepend {
            margin-right: 16px;
        }
    }

    @include m(primary) {
        .head-name {
            color: $--color-primary;
        }
        .head-line {
          background: $--color-primary;
        }
    }

    @include m(success) {
        .head-name {
            color: $--color-success;
        }
        .head-line {
          background: $--color-success;
        }
    }

    @include m(info) {
        .head-name {
            color: $--color-info;
        }
        .head-line {
          background: $--color-info;
        }
    }

    @include m(warning) {
        .head-name {
            color: $--color-warning;
        }
        .head-line {
          background: $--color-warning;
        }
    }

    @include m(danger) {
        .head-name {
            color: $--color-danger;
        }
        .head-line {
          background: $--color-danger;
        }
    }
}
