Sha256: 90a7e0cc7162032e8ca8a09aa8e8e4fc4a567cfe18433e265ac8b99fe65669e8

Contents?: true

Size: 1.58 KB

Versions: 13

Compression:

Stored size: 1.58 KB

Contents

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


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

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

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

Version data entries

13 entries across 13 versions & 5 rubygems

Version Path
twitter-bootstrap-rails-2.2.1 vendor/toolkit/twitter/bootstrap/tooltip.less
bootstrap-generators-2.2.2 vendor/twitter/bootstrap/less/tooltip.less
less-rails-bootstrap-2.2.1 vendor/frameworks/twitter/bootstrap/tooltip.less
twitter-bootstrap-rails-2.2.0 vendor/toolkit/twitter/bootstrap/tooltip.less
twitter-bootstrap-rails-2.1.9 vendor/toolkit/twitter/bootstrap/tooltip.less
twitter-bootstrap-rails-2.1.8 vendor/toolkit/twitter/bootstrap/tooltip.less
twitter-bootstrap-rails-2.1.7 vendor/toolkit/twitter/bootstrap/tooltip.less
style-guide-0.0.1 spec/dummy/app/assets/stylesheets/bootstrap/tooltip.less
rbootstrap-1.1.2 vendor/toolkit/twitter/bootstrap/tooltip.less
bootstrap-generators-2.2.1 vendor/twitter/bootstrap/less/tooltip.less
twitter-bootstrap-rails-2.1.6 vendor/toolkit/twitter/bootstrap/tooltip.less
less-rails-bootstrap-2.2.0 vendor/frameworks/twitter/bootstrap/tooltip.less
twitter-bootstrap-rails-2.1.5 vendor/toolkit/twitter/bootstrap/tooltip.less