

@use "sass:color";

@mixin button-variant($start-color, $end-color, $text-color) {
  color: $text-color;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  background-color: $start-color;
  background-image: linear-gradient(to bottom, $start-color, $end-color);
  background-repeat: repeat-x;
  border-color: $start-color;
  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$start-color}', endColorstr='#{$end-color}', GradientType=0);

  &:hover,
  &:focus,
  &:active,
  &.active,
  &.disabled,
  &[disabled] {
    color: $text-color;
    background-color: color.adjust($start-color, $lightness: -10%);
  }
}