@use "./config";
@use "sass:map";
@use "../../../styles/tools/generate";
@use "../../../styles/tokens/breakpoint";
@use "../../../styles/tokens/color";
@use "../../../styles/tokens/space";
@use "../../../styles/typography/config" as typography-config;

@mixin divider-base($base: config.$base) {
  display: flex;
  flex: 0 1 auto;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: stretch;

  @include generate.css-map($base);

  @each $breakpoint, $value in config.$spacing {
    @include breakpoint.get($breakpoint) {
      padding-top: $value;
      padding-bottom: $value;
    }
  }
}

@mixin divider-content() {
  text-align: center;
  display: flex;
  justify-content: center;
  margin: 0 space.get("small");
}

@mixin divider-content-color() {
  color: var(--color-text-default);
}

@mixin divider-line() {
  border-width: 0 0 1px;
  border-style: solid;
  flex-grow: 1;
}

@mixin divider-line-color() {
  border-color: var(--color-border-strong);
}
