// @button--{{color}}

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

  &:hover {
    background: $color-brand--two;
    border-color: $color-brand--two;
    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--two-180;
      border-color: $color--two-180;
      color: $color-brand--four;
    }
  }
  .icon svg {
    fill: $color-brand--two;
  }
}

// off-white
@mixin button--light {
  border-color: $color-brand--four;
  color: $color-brand--four;

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

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

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

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

  &:hover {
    background: $color-brand--one;
    border-color: $color-brand--one;
    color: $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--one-80;
      border-color: $color--one-80;
      color: $color-brand--four;
      outline: none;
    }
  }
}

