@import './var.less';

.divider {
  display: flex;
  align-items: center;
  margin: @divider-margin;
  color: @brand-primary;
  line-height: @divider-line-height;
  border-color: @brand-primary;
  border-style: solid;
  border-width: 0;

  &::before,
  &::after {
    display: block;
    flex: 1;
    box-sizing: border-box;
    height: @divider-height;
    border-color: inherit;
    border-style: inherit;
    border-width: @divider-border;
  }

  &::before {
    content: '';
  }
  &_hairline {
    &::before,
    &::after {
      transform: scaleY(0.5);
    }
  }
  &_dashed {
    border-style: dashed;
  }
  &_content_center,
  &_content_left,
  &_content_right {
    &::before {
      margin-right: 16px;
    }

    &::after {
      margin-left: 16px;
      content: '';
    }
  }
  &_content_left {
    &::before {
      max-width: 10%;
    }
  }

  &_content_right {
    &::after {
      max-width: 10%;
    }
  }
}
