2012-06-29 00:46:45 -04:00
|
|
|
//
|
|
|
|
// Popovers
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
2011-11-17 02:58:36 -05:00
|
|
|
|
|
|
|
.popover {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
2012-11-30 18:23:13 -05:00
|
|
|
z-index: @zindex-popover;
|
2011-11-17 02:58:36 -05:00
|
|
|
display: none;
|
2012-12-28 15:18:59 -05:00
|
|
|
max-width: 276px;
|
2012-07-27 02:42:36 -04:00
|
|
|
padding: 1px;
|
2012-12-02 05:30:00 -05:00
|
|
|
text-align: left; // Reset given new insertion method
|
2012-11-30 18:40:44 -05:00
|
|
|
background-color: @popover-background;
|
2012-06-28 13:03:46 -04:00
|
|
|
-webkit-background-clip: padding-box;
|
|
|
|
-moz-background-clip: padding;
|
|
|
|
background-clip: padding-box;
|
|
|
|
border: 1px solid #ccc;
|
|
|
|
border: 1px solid rgba(0,0,0,.2);
|
2012-10-01 02:11:54 -04:00
|
|
|
border-radius: 6px;
|
2012-06-28 13:03:46 -04:00
|
|
|
.box-shadow(0 5px 10px rgba(0,0,0,.2));
|
|
|
|
|
2012-11-03 16:42:08 -04:00
|
|
|
// Overrides for proper insertion
|
|
|
|
white-space: normal;
|
|
|
|
|
2012-06-28 13:03:46 -04:00
|
|
|
// Offset the popover to account for the popover arrow
|
2012-09-18 02:03:18 -04:00
|
|
|
&.top { margin-top: -10px; }
|
2012-06-28 13:03:46 -04:00
|
|
|
&.right { margin-left: 10px; }
|
|
|
|
&.bottom { margin-top: 10px; }
|
2012-09-18 02:03:18 -04:00
|
|
|
&.left { margin-left: -10px; }
|
2012-01-30 04:20:51 -05:00
|
|
|
}
|
2012-06-28 13:03:46 -04:00
|
|
|
|
2012-01-30 04:20:51 -05:00
|
|
|
.popover-title {
|
2012-07-10 00:13:33 -04:00
|
|
|
margin: 0; // reset heading margin
|
2012-06-28 13:03:46 -04:00
|
|
|
padding: 8px 14px;
|
|
|
|
font-size: 14px;
|
|
|
|
font-weight: normal;
|
|
|
|
line-height: 18px;
|
2012-11-30 18:40:44 -05:00
|
|
|
background-color: @popover-title-background;
|
|
|
|
border-bottom: 1px solid darken(@popover-title-background, 5%);
|
2012-10-01 02:11:54 -04:00
|
|
|
border-radius: 5px 5px 0 0;
|
2012-12-28 15:18:59 -05:00
|
|
|
|
|
|
|
&:empty {
|
|
|
|
display: none;
|
|
|
|
}
|
2012-01-30 04:20:51 -05:00
|
|
|
}
|
2012-06-28 13:03:46 -04:00
|
|
|
|
2012-01-30 04:20:51 -05:00
|
|
|
.popover-content {
|
2012-06-28 13:03:46 -04:00
|
|
|
padding: 9px 14px;
|
2012-01-30 04:20:51 -05:00
|
|
|
}
|
2012-07-10 01:14:30 -04:00
|
|
|
|
|
|
|
// Arrows
|
2012-11-28 04:38:21 -05:00
|
|
|
//
|
|
|
|
// .arrow is outer, .arrow:after is inner
|
|
|
|
|
2012-07-10 01:14:30 -04:00
|
|
|
.popover .arrow,
|
|
|
|
.popover .arrow:after {
|
|
|
|
position: absolute;
|
2012-11-28 04:38:21 -05:00
|
|
|
display: block;
|
2012-07-10 01:14:30 -04:00
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
border-color: transparent;
|
|
|
|
border-style: solid;
|
|
|
|
}
|
2012-11-28 04:38:21 -05:00
|
|
|
.popover .arrow {
|
2012-11-30 18:40:44 -05:00
|
|
|
border-width: @popover-arrow-outer-width;
|
2012-11-28 04:38:21 -05:00
|
|
|
}
|
2012-07-10 01:14:30 -04:00
|
|
|
.popover .arrow:after {
|
2012-11-30 18:40:44 -05:00
|
|
|
border-width: @popover-arrow-width;
|
2012-07-10 01:14:30 -04:00
|
|
|
content: "";
|
|
|
|
}
|
|
|
|
|
|
|
|
.popover {
|
2012-11-28 04:38:21 -05:00
|
|
|
&.top .arrow {
|
|
|
|
left: 50%;
|
2012-11-30 18:40:44 -05:00
|
|
|
margin-left: -@popover-arrow-outer-width;
|
2012-11-28 04:38:21 -05:00
|
|
|
border-bottom-width: 0;
|
|
|
|
border-top-color: #999; // IE8 fallback
|
2012-11-30 18:40:44 -05:00
|
|
|
border-top-color: @popover-arrow-outer-color;
|
|
|
|
bottom: -@popover-arrow-outer-width;
|
2012-11-28 04:38:21 -05:00
|
|
|
&:after {
|
|
|
|
bottom: 1px;
|
2012-11-30 18:40:44 -05:00
|
|
|
margin-left: -@popover-arrow-width;
|
2012-11-28 04:38:21 -05:00
|
|
|
border-bottom-width: 0;
|
2012-11-30 18:40:44 -05:00
|
|
|
border-top-color: @popover-arrow-color;
|
2012-11-28 04:38:21 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
&.right .arrow {
|
|
|
|
top: 50%;
|
2012-11-30 18:40:44 -05:00
|
|
|
left: -@popover-arrow-outer-width;
|
|
|
|
margin-top: -@popover-arrow-outer-width;
|
2012-11-28 04:38:21 -05:00
|
|
|
border-left-width: 0;
|
|
|
|
border-right-color: #999; // IE8 fallback
|
2012-11-30 18:40:44 -05:00
|
|
|
border-right-color: @popover-arrow-outer-color;
|
2012-11-28 04:38:21 -05:00
|
|
|
&:after {
|
|
|
|
left: 1px;
|
2012-11-30 18:40:44 -05:00
|
|
|
bottom: -@popover-arrow-width;
|
2012-11-28 04:38:21 -05:00
|
|
|
border-left-width: 0;
|
2012-11-30 18:40:44 -05:00
|
|
|
border-right-color: @popover-arrow-color;
|
2012-11-28 04:38:21 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
&.bottom .arrow {
|
|
|
|
left: 50%;
|
2012-11-30 18:40:44 -05:00
|
|
|
margin-left: -@popover-arrow-outer-width;
|
2012-11-28 04:38:21 -05:00
|
|
|
border-top-width: 0;
|
|
|
|
border-bottom-color: #999; // IE8 fallback
|
2012-11-30 18:40:44 -05:00
|
|
|
border-bottom-color: @popover-arrow-outer-color;
|
|
|
|
top: -@popover-arrow-outer-width;
|
2012-11-28 04:38:21 -05:00
|
|
|
&:after {
|
|
|
|
top: 1px;
|
2012-11-30 18:40:44 -05:00
|
|
|
margin-left: -@popover-arrow-width;
|
2012-11-28 04:38:21 -05:00
|
|
|
border-top-width: 0;
|
2012-11-30 18:40:44 -05:00
|
|
|
border-bottom-color: @popover-arrow-color;
|
2012-11-28 04:38:21 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.left .arrow {
|
|
|
|
top: 50%;
|
2012-11-30 18:40:44 -05:00
|
|
|
right: -@popover-arrow-outer-width;
|
|
|
|
margin-top: -@popover-arrow-outer-width;
|
2012-11-28 04:38:21 -05:00
|
|
|
border-right-width: 0;
|
|
|
|
border-left-color: #999; // IE8 fallback
|
2012-11-30 18:40:44 -05:00
|
|
|
border-left-color: @popover-arrow-outer-color;
|
2012-11-28 04:38:21 -05:00
|
|
|
&:after {
|
|
|
|
right: 1px;
|
|
|
|
border-right-width: 0;
|
2012-11-30 18:40:44 -05:00
|
|
|
border-left-color: @popover-arrow-color;
|
|
|
|
bottom: -@popover-arrow-width;
|
2012-11-28 04:38:21 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-07-10 01:14:30 -04:00
|
|
|
}
|