@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;
        min-width: 80px;
        padding: 0 16px;
        height: 32px;
        border-radius: 16px;
        line-height: 32px;
        font-size: 16px;
        text-align: center;
        background-color: $--color-primary;
        color: $--color-white;
    }
    
    .head-line {
        flex: 1 1 auto;
        width: 100%;
        background: $--color-primary;
        height: 2px;
    }

    @include m(small) {
        .head-name {
            min-width: 64px;
            padding: 0 12px;
            height: 24px;
            border-radius: 12px;
            line-height: 24px;
            font-size: 14px;
        }
        &.el-form-split-line {
            margin-bottom: 18px;
        }
    }
    @include m(mini) {
        .head-name {
            min-width: 64px;
            padding: 0 12px;
            height: 24px;
            border-radius: 12px;
            line-height: 24px;
            font-size: 14px;
        }
        &.el-form-split-line {
            margin-bottom: 18px;
        }
    }

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

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

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

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

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