.metu-btn {
  position: relative;
  display: inline-block;
  font-weight: $btn-font-weight;
  line-height: $btn-line-height;
  color: $body-color;
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
  background-image: none;
  border-width: $btn-border-width;
  border-style: solid;
  border-color: transparent;
  @include button-size( $btn-padding-y,  $btn-padding-x,  $btn-font-size,  $border-radius);
  box-shadow: $btn-box-shadow;
  cursor: pointer;
  transition: $btn-transition;
  &.disabled,
  &[disabled] {
    cursor: not-allowed;
    opacity: $btn-disabled-opacity;
    box-shadow: none;
    > * {
      pointer-events: none;
    }
  }
}

.metu-btn-large {
  @include button-size($btn-padding-y-lg, $btn-padding-x-lg, $btn-font-size-lg, $btn-border-radius-lg);
}
.metu-btn-small {
  @include button-size($btn-padding-y-sm, $btn-padding-x-sm, $btn-font-size-sm, $btn-border-radius-sm);
}

.metu-btn-primary {
  @include button-style($primary, $primary, $white)
}
.metu-btn-danger {
  @include button-style($danger, $danger, $white)
}
.metu-btn-default {
  @include button-style($white, $gray-400, $body-color, $white, $primary, $primary)
}

.metu-btn-default:disabled,
.metu-btn-default.disabled {
  @include button-style($gray-200, $gray-400, $body-color)
}

.metu-btn-ghost.metu-btn-primary {
  @include button-style(transparent, $primary, $primary)
}
.metu-btn-ghost.metu-btn-danger {
  @include button-style(transparent, $danger, $danger)
}

.metu-btn-link {
  font-weight: $font-weight-normal;
  color: $btn-link-color;
  text-decoration: $link-decoration;
  box-shadow: none;
  &:hover {
    color: $btn-link-hover-color;
    text-decoration: $link-hover-decoration; 
  }
  &:focus,
  &.focus {
    text-decoration: $link-hover-decoration;
    box-shadow: none;
  }
  &:disabled,
  &.disabled {
    color: $btn-link-disabled-color;
    pointer-events: none;
  }
}

.metu-btn-group.no-margin {
  .metu-btn {
    border-radius: 0;
    &:first-child {
      border-top-left-radius: $border-radius;
      border-bottom-left-radius: $border-radius;
    }
    &:last-child {
      border-top-right-radius: 4px;
      border-bottom-right-radius: 4px;
    }
  }
}

.metu-btn-group.has-margin {
  .metu-btn {
    margin: 0 5px;
    &:first-child {
      margin-left: 0;
    }
    &:last-child {
      margin-right: 0;
    }
  }
}