@mixin bootstrap-tooltip-color($color) {
  .tooltip-inner{
    background-color: $color;
  }

  &.bs-tooltip-top {
    .arrow::before {
      border-top-color: $color;
    }
  }

  &.bs-tooltip-right {
    .arrow::before {
      border-right-color: $color;
    }
  }

  &.bs-tooltip-bottom {
    .arrow::before {
      border-bottom-color: $color;
    }
  }

  &.bs-tooltip-left {
    .arrow::before {
      border-left-color: $color;
    }
  }
}

.tooltip {
  pointer-events: none;

  &.action-edit, &.action-save, &.action-capture, &.action-add {
    @include bootstrap-tooltip-color(theme-color("success"));
  }
  &.action-clone, &.action-cancel {
    @include bootstrap-tooltip-color(theme-color("warning"));
  }
  &.action-void, &.action-failure, &.action-remove {
    @include bootstrap-tooltip-color(theme-color("danger"));
  }
}
