Blame content/assets/css/bootstrap/_tooltip.scss

e8ec7a
//
e8ec7a
// Tooltips
e8ec7a
// --------------------------------------------------
e8ec7a
e8ec7a
e8ec7a
// Base class
e8ec7a
.tooltip {
e8ec7a
  position: absolute;
e8ec7a
  z-index: $zindex-tooltip;
e8ec7a
  display: block;
e8ec7a
  visibility: visible;
e8ec7a
  font-size: $font-size-small;
e8ec7a
  line-height: 1.4;
e8ec7a
  @include opacity(0);
e8ec7a
e8ec7a
  &.in     { @include opacity(.9); }
e8ec7a
  &.top    { margin-top:  -3px; padding: 5px 0; }
e8ec7a
  &.right  { margin-left:  3px; padding: 0 5px; }
e8ec7a
  &.bottom { margin-top:   3px; padding: 5px 0; }
e8ec7a
  &.left   { margin-left: -3px; padding: 0 5px; }
e8ec7a
}
e8ec7a
e8ec7a
// Wrapper for the tooltip content
e8ec7a
.tooltip-inner {
e8ec7a
  max-width: $tooltip-max-width;
e8ec7a
  padding: 3px 8px;
e8ec7a
  color: $tooltip-color;
e8ec7a
  text-align: center;
e8ec7a
  text-decoration: none;
e8ec7a
  background-color: $tooltip-bg;
e8ec7a
  border-radius: $border-radius-base;
e8ec7a
}
e8ec7a
e8ec7a
// Arrows
e8ec7a
.tooltip-arrow {
e8ec7a
  position: absolute;
e8ec7a
  width: 0;
e8ec7a
  height: 0;
e8ec7a
  border-color: transparent;
e8ec7a
  border-style: solid;
e8ec7a
}
e8ec7a
.tooltip {
e8ec7a
  &.top .tooltip-arrow {
e8ec7a
    bottom: 0;
e8ec7a
    left: 50%;
e8ec7a
    margin-left: -$tooltip-arrow-width;
e8ec7a
    border-width: $tooltip-arrow-width $tooltip-arrow-width 0;
e8ec7a
    border-top-color: $tooltip-arrow-color;
e8ec7a
  }
e8ec7a
  &.top-left .tooltip-arrow {
e8ec7a
    bottom: 0;
e8ec7a
    left: 5px;
e8ec7a
    border-width: $tooltip-arrow-width $tooltip-arrow-width 0;
e8ec7a
    border-top-color: $tooltip-arrow-color;
e8ec7a
  }
e8ec7a
  &.top-right .tooltip-arrow {
e8ec7a
    bottom: 0;
e8ec7a
    right: 5px;
e8ec7a
    border-width: $tooltip-arrow-width $tooltip-arrow-width 0;
e8ec7a
    border-top-color: $tooltip-arrow-color;
e8ec7a
  }
e8ec7a
  &.right .tooltip-arrow {
e8ec7a
    top: 50%;
e8ec7a
    left: 0;
e8ec7a
    margin-top: -$tooltip-arrow-width;
e8ec7a
    border-width: $tooltip-arrow-width $tooltip-arrow-width $tooltip-arrow-width 0;
e8ec7a
    border-right-color: $tooltip-arrow-color;
e8ec7a
  }
e8ec7a
  &.left .tooltip-arrow {
e8ec7a
    top: 50%;
e8ec7a
    right: 0;
e8ec7a
    margin-top: -$tooltip-arrow-width;
e8ec7a
    border-width: $tooltip-arrow-width 0 $tooltip-arrow-width $tooltip-arrow-width;
e8ec7a
    border-left-color: $tooltip-arrow-color;
e8ec7a
  }
e8ec7a
  &.bottom .tooltip-arrow {
e8ec7a
    top: 0;
e8ec7a
    left: 50%;
e8ec7a
    margin-left: -$tooltip-arrow-width;
e8ec7a
    border-width: 0 $tooltip-arrow-width $tooltip-arrow-width;
e8ec7a
    border-bottom-color: $tooltip-arrow-color;
e8ec7a
  }
e8ec7a
  &.bottom-left .tooltip-arrow {
e8ec7a
    top: 0;
e8ec7a
    left: 5px;
e8ec7a
    border-width: 0 $tooltip-arrow-width $tooltip-arrow-width;
e8ec7a
    border-bottom-color: $tooltip-arrow-color;
e8ec7a
  }
e8ec7a
  &.bottom-right .tooltip-arrow {
e8ec7a
    top: 0;
e8ec7a
    right: 5px;
e8ec7a
    border-width: 0 $tooltip-arrow-width $tooltip-arrow-width;
e8ec7a
    border-bottom-color: $tooltip-arrow-color;
e8ec7a
  }
e8ec7a
}