// @button--{{color}}

// black
@mixin button--dark {
  border-color: $color-brand--two;
  color: $color-brand--two;

  &:hover {
    background: $color-brand--two;
    border-color: $color-brand--two;
    color: $color-brand--white;

    .icon svg {
      fill: $color-brand--white;
    }
  }

  // on touch devices hover is similar to ':active' state.
  // outputs regular ':active' state & specific ':hover'
  // state for touch devices
  & {
    @include hover-touch {
      background: $color-brand--black;
      border-color: $color-brand--black;
      color: $color-brand--white;
    }
  }
  .icon svg {
    fill: $color-brand--two;
  }
}

// grey
@mixin button--light {
  border-color: $color-brand--white;
  color: $color-brand--white;
  background: transparent;

  &:hover {
    background: $color-brand--white;
    border-color: $color-brand--white;
    color: $color-brand--four;

    .icon svg {
      fill: $color-brand--four;
    }
  }

  // on touch devices hover is similar to ':active' state.
  // outputs regular ':active' state & specific ':hover'
  // state for touch devices
  & {
    @include hover-touch {
      background: $color-brand--five;
      border-color: $color-brand--four;
      color: $color-brand--four;
      .icon svg {
        fill: $color-brand--four;
      }
    }
  }
  .icon svg {
    fill: $color-brand--white;
  }
}

// orange
@mixin button--brand-one {
  border-color: $color-brand--one;
  color: $color-brand--one;

  &:hover {
    background: $color-brand--two;
    border-color: $color-brand--two;
    color: $color-brand--white;

    .icon svg {
      fill: $color-brand--white;
    }
  }

  // on touch devices hover is similar to ':active' state.
  // outputs regular ':active' state & specific ':hover'
  // state for touch devices
  & {
    @include hover-touch {
      background: $color-brand--one;
      border-color: $color-brand--one;
      color: $color-brand--white;
    }
  }
  .icon svg {
    fill: $color-brand--white;
  }
}
