.nut-divider {
  display: flex;
  align-items: center;
  font-size: $divider-text-font-size;
  color: $divider-text-color;
  margin: $divider-margin;

  &::before,
  &::after {
    content: '';
    border: $divider-line-height solid $divider-border-color;
    border-width: $divider-line-height 0 0;
    height: $divider-line-height;
    flex: 1;
  }

  &.nut-divider-center,
  &.nut-divider-left,
  &.nut-divider-right {
    &::before {
      margin-right: $divider-before-margin-right;
    }

    &::after {
      margin-left: $divider-after-margin-left;
    }
  }

  &.nut-divider-left {
    &::before {
      max-width: 10%;
    }
  }

  &.nut-divider-right {
    &::after {
      max-width: 10%;
    }
  }

  &.nut-divider-dashed {
    &::before,
    &::after {
      border-style: dashed;
    }
  }

  &.nut-divider-hairline {
    &::before,
    &::after {
      transform: scaleY(0.5);
    }
  }

  &.nut-divider-vertical {
    position: relative;
    top: $divider-vertical-top;
    display: inline-block;
    height: $divider-vertical-height;
    border-left: 1px solid $divider-vertical-border-left;
    margin: $divider-vertical-margin;
  }
}
