Sha256: cfcd7a199807ee54e511abcd314ab8cf952724aad884d8461407c53d94cb6d01

Contents?: true

Size: 983 Bytes

Versions: 5

Compression:

Stored size: 983 Bytes

Contents

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

  &.tooltip-top,
  &.bs-tether-element-attached-bottom {
    .tooltip-inner::before {
      border-top-color: $color;
    }
  }

  &.tooltip-right,
  &.bs-tether-element-attached-left {
    .tooltip-inner::before {
      border-right-color: $color;
    }
  }

  &.tooltip-bottom,
  &.bs-tether-element-attached-top {
    .tooltip-inner::before {
      border-bottom-color: $color;
    }
  }

  &.tooltip-left,
  &.bs-tether-element-attached-right {
    .tooltip-inner::before {
      border-left-color: $color;
    }
  }
}

.tooltip {
  pointer-events: none;

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
solidus_backend-2.2.2 app/assets/stylesheets/spree/backend/plugins/_bootstrap_tooltip.scss
solidus_backend-2.2.1 app/assets/stylesheets/spree/backend/plugins/_bootstrap_tooltip.scss
solidus_backend-2.2.0 app/assets/stylesheets/spree/backend/plugins/_bootstrap_tooltip.scss
solidus_backend-2.2.0.rc1 app/assets/stylesheets/spree/backend/plugins/_bootstrap_tooltip.scss
solidus_backend-2.2.0.beta1 app/assets/stylesheets/spree/backend/plugins/_bootstrap_tooltip.scss