// Test change to verify auto-converter works
// Button variants
// Easily pump out default styles, as well as :hover, :focus, :active,
// and disabled options for all buttons
.button-variant(@el) {
  color: ~'var(--@{el}-color-default)';
  background-color: ~'var(--@{el}-background-default)';
  border-color: ~'var(--@{el}-border-color-default)';
  &:focus,
  &.focus {
    color: ~'var(--@{el}-color-focus)';
    background-color: ~'var(--@{el}-background-focus)';
    border-color: ~'var(--@{el}-border-color-focus)';
    box-shadow: inset 0 0 0 1px ~'var(--@{el}-border-color-focus)';
  }
  &:hover {
    color: ~'var(--@{el}-color-hover)';
    background-color: ~'var(--@{el}-background-hover)';
    border-color: ~'var(--@{el}-border-color-hover)';
    box-shadow: inset 0 0 0 1px ~'var(--@{el}-border-color-hover)';
  }
  &:active,
  &.active,
  .open > &.dropdown-toggle {
    color: ~'var(--@{el}-color-active)';
    background-color: ~'var(--@{el}-background-active)';
    border-color: ~'var(--@{el}-border-color-active)';
    box-shadow: inset 0 0 0 1px ~'var(--@{el}-border-color-active)';
    background-image: none;
  }

  &.disabled,
  &[disabled],
  fieldset[disabled] & {
    &,
    &:hover,
    &:focus,
    &.focus,
    &:active,
    &.active {
      color: ~'var(--@{el}-color-default)';
      background-color: ~'var(--@{el}-background-default)';
      border-color: ~'var(--@{el}-border-color-default)';
    }
  }
  .badge {
    border-width: 1px;
    border-style: solid;
    border-color: @palette-high;
  }
}

// Button sizes
.button-size(@padding-vertical,
@padding-horizontal,
@font-size,
@line-height,
@border-radius, @height) {
  padding: @padding-vertical @padding-horizontal;
  font-size: @font-size;
  line-height: @line-height;
  border-radius: @border-radius;
  height: @height;
}
