Sha256: f5c2d0c136794309200ae6f66a27d2e0d2bbf4044015d44c81d3b77188a9f7cb

Contents?: true

Size: 983 Bytes

Versions: 6

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, &.action-cancel {
    @include bootstrap-tooltip-color($brand-warning);
  }
  &.action-void, &.action-failure, &.action-remove {
    @include bootstrap-tooltip-color($brand-danger);
  }
}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
solidus_backend-2.3.1 app/assets/stylesheets/spree/backend/plugins/_bootstrap_tooltip.scss
solidus_backend-2.3.0 app/assets/stylesheets/spree/backend/plugins/_bootstrap_tooltip.scss
solidus_backend-2.3.0.rc3 app/assets/stylesheets/spree/backend/plugins/_bootstrap_tooltip.scss
solidus_backend-2.3.0.rc2 app/assets/stylesheets/spree/backend/plugins/_bootstrap_tooltip.scss
solidus_backend-2.3.0.rc1 app/assets/stylesheets/spree/backend/plugins/_bootstrap_tooltip.scss
solidus_backend-2.3.0.beta1 app/assets/stylesheets/spree/backend/plugins/_bootstrap_tooltip.scss