Sha256: 9dd440abd5e59a1f4c5b06dd1aae9a1da0e2e6270f56488c1516be6fed206840

Contents?: true

Size: 1.67 KB

Versions: 5

Compression:

Stored size: 1.67 KB

Contents

//
// Tooltips
// --------------------------------------------------


// Base class
.tooltip {
  position: absolute;
  z-index: $zindexTooltip;
  display: block;
  visibility: visible;
  font-size: 11px;
  line-height: 1.4;
  @include opacity(0);
  &.in     { @include opacity(80); }
  &.top    { margin-top:  -3px; padding: 5px 0; }
  &.right  { margin-right:  3px; padding: 0 5px; }
  &.bottom { margin-top:   3px; padding: 5px 0; }
  &.left   { margin-right: -3px; padding: 0 5px; }
}

// Wrapper for the tooltip content
.tooltip-inner {
  max-width: 200px;
  padding: 8px;
  color: $tooltipColor;
  text-align: center;
  text-decoration: none;
  background-color: $tooltipBackground;
  @include border-radius($baseBorderRadius);
}

// Arrows
.tooltip-arrow {
  position: absolute;
  width: 0;
  height: 0;
  border-color: transparent;
  border-style: solid;
}
.tooltip {
  &.top .tooltip-arrow {
    bottom: 0;
    right: 50%;
    margin-right: -$tooltipArrowWidth;
    border-width: $tooltipArrowWidth $tooltipArrowWidth 0;
    border-top-color: $tooltipArrowColor;
  }
  &.right .tooltip-arrow {
    top: 50%;
    right: 0;
    margin-top: -$tooltipArrowWidth;
    border-width: $tooltipArrowWidth $tooltipArrowWidth $tooltipArrowWidth 0;
    border-left-color: $tooltipArrowColor;
  }
  &.left .tooltip-arrow {
    top: 50%;
    left: 0;
    margin-top: -$tooltipArrowWidth;
    border-width: $tooltipArrowWidth 0 $tooltipArrowWidth $tooltipArrowWidth;
    border-right-color: $tooltipArrowColor;
  }
  &.bottom .tooltip-arrow {
    top: 0;
    right: 50%;
    margin-right: -$tooltipArrowWidth;
    border-width: 0 $tooltipArrowWidth $tooltipArrowWidth;
    border-bottom-color: $tooltipArrowColor;
  }
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bootstrap-sass-rtl-2.3.2.0 vendor/assets/stylesheets/bootstrap-rtl/_tooltip.scss
bootstrap-sass-rtl-2.3.1.2 vendor/assets/stylesheets/bootstrap-rtl/_tooltip.scss
bootstrap-sass-rtl-2.3.1.1 vendor/assets/stylesheets/bootstrap-rtl/_tooltip.scss
bootstrap-sass-rtl-2.3.1.0 vendor/assets/stylesheets/bootstrap-rtl/_tooltip.scss
bootstrap-sass-rtl-2.3.0.1 vendor/assets/stylesheets/bootstrap-rtl/_tooltip.scss