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

e8ec7a
//
e8ec7a
// Popovers
e8ec7a
// --------------------------------------------------
e8ec7a
e8ec7a
e8ec7a
.popover {
e8ec7a
  position: absolute;
e8ec7a
  top: 0;
e8ec7a
  left: 0;
e8ec7a
  z-index: $zindex-popover;
e8ec7a
  display: none;
e8ec7a
  max-width: $popover-max-width;
e8ec7a
  padding: 1px;
e8ec7a
  text-align: left; // Reset given new insertion method
e8ec7a
  background-color: $popover-bg;
e8ec7a
  background-clip: padding-box;
e8ec7a
  border: 1px solid $popover-fallback-border-color;
e8ec7a
  border: 1px solid $popover-border-color;
e8ec7a
  border-radius: $border-radius-large;
e8ec7a
  @include box-shadow(0 5px 10px rgba(0,0,0,.2));
e8ec7a
e8ec7a
  // Overrides for proper insertion
e8ec7a
  white-space: normal;
e8ec7a
e8ec7a
  // Offset the popover to account for the popover arrow
e8ec7a
  &.top     { margin-top: -10px; }
e8ec7a
  &.right   { margin-left: 10px; }
e8ec7a
  &.bottom  { margin-top: 10px; }
e8ec7a
  &.left    { margin-left: -10px; }
e8ec7a
}
e8ec7a
e8ec7a
.popover-title {
e8ec7a
  margin: 0; // reset heading margin
e8ec7a
  padding: 8px 14px;
e8ec7a
  font-size: $font-size-base;
e8ec7a
  font-weight: normal;
e8ec7a
  line-height: 18px;
e8ec7a
  background-color: $popover-title-bg;
e8ec7a
  border-bottom: 1px solid darken($popover-title-bg, 5%);
e8ec7a
  border-radius: 5px 5px 0 0;
e8ec7a
}
e8ec7a
e8ec7a
.popover-content {
e8ec7a
  padding: 9px 14px;
e8ec7a
}
e8ec7a
e8ec7a
// Arrows
e8ec7a
//
e8ec7a
// .arrow is outer, .arrow:after is inner
e8ec7a
e8ec7a
.popover .arrow {
e8ec7a
  &,
e8ec7a
  &:after {
e8ec7a
    position: absolute;
e8ec7a
    display: block;
e8ec7a
    width: 0;
e8ec7a
    height: 0;
e8ec7a
    border-color: transparent;
e8ec7a
    border-style: solid;
e8ec7a
  }
e8ec7a
}
e8ec7a
.popover .arrow {
e8ec7a
  border-width: $popover-arrow-outer-width;
e8ec7a
}
e8ec7a
.popover .arrow:after {
e8ec7a
  border-width: $popover-arrow-width;
e8ec7a
  content: "";
e8ec7a
}
e8ec7a
e8ec7a
.popover {
e8ec7a
  &.top .arrow {
e8ec7a
    left: 50%;
e8ec7a
    margin-left: -$popover-arrow-outer-width;
e8ec7a
    border-bottom-width: 0;
e8ec7a
    border-top-color: $popover-arrow-outer-fallback-color; // IE8 fallback
e8ec7a
    border-top-color: $popover-arrow-outer-color;
e8ec7a
    bottom: -$popover-arrow-outer-width;
e8ec7a
    &:after {
e8ec7a
      content: " ";
e8ec7a
      bottom: 1px;
e8ec7a
      margin-left: -$popover-arrow-width;
e8ec7a
      border-bottom-width: 0;
e8ec7a
      border-top-color: $popover-arrow-color;
e8ec7a
    }
e8ec7a
  }
e8ec7a
  &.right .arrow {
e8ec7a
    top: 50%;
e8ec7a
    left: -$popover-arrow-outer-width;
e8ec7a
    margin-top: -$popover-arrow-outer-width;
e8ec7a
    border-left-width: 0;
e8ec7a
    border-right-color: $popover-arrow-outer-fallback-color; // IE8 fallback
e8ec7a
    border-right-color: $popover-arrow-outer-color;
e8ec7a
    &:after {
e8ec7a
      content: " ";
e8ec7a
      left: 1px;
e8ec7a
      bottom: -$popover-arrow-width;
e8ec7a
      border-left-width: 0;
e8ec7a
      border-right-color: $popover-arrow-color;
e8ec7a
    }
e8ec7a
  }
e8ec7a
  &.bottom .arrow {
e8ec7a
    left: 50%;
e8ec7a
    margin-left: -$popover-arrow-outer-width;
e8ec7a
    border-top-width: 0;
e8ec7a
    border-bottom-color: $popover-arrow-outer-fallback-color; // IE8 fallback
e8ec7a
    border-bottom-color: $popover-arrow-outer-color;
e8ec7a
    top: -$popover-arrow-outer-width;
e8ec7a
    &:after {
e8ec7a
      content: " ";
e8ec7a
      top: 1px;
e8ec7a
      margin-left: -$popover-arrow-width;
e8ec7a
      border-top-width: 0;
e8ec7a
      border-bottom-color: $popover-arrow-color;
e8ec7a
    }
e8ec7a
  }
e8ec7a
e8ec7a
  &.left .arrow {
e8ec7a
    top: 50%;
e8ec7a
    right: -$popover-arrow-outer-width;
e8ec7a
    margin-top: -$popover-arrow-outer-width;
e8ec7a
    border-right-width: 0;
e8ec7a
    border-left-color: $popover-arrow-outer-fallback-color; // IE8 fallback
e8ec7a
    border-left-color: $popover-arrow-outer-color;
e8ec7a
    &:after {
e8ec7a
      content: " ";
e8ec7a
      right: 1px;
e8ec7a
      border-right-width: 0;
e8ec7a
      border-left-color: $popover-arrow-color;
e8ec7a
      bottom: -$popover-arrow-width;
e8ec7a
    }
e8ec7a
  }
e8ec7a
e8ec7a
}