2012-06-29 06:46:45 +02:00
|
|
|
//
|
|
|
|
// Popovers
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
2011-11-17 08:58:36 +01:00
|
|
|
|
|
|
|
.popover {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
2012-12-01 00:23:13 +01:00
|
|
|
z-index: @zindex-popover;
|
2011-11-17 08:58:36 +01:00
|
|
|
display: none;
|
2013-07-26 14:04:15 +02:00
|
|
|
max-width: @popover-max-width;
|
2012-07-27 08:42:36 +02:00
|
|
|
padding: 1px;
|
2014-08-23 22:42:45 +02:00
|
|
|
// Reset font and text propertes given new insertion method
|
|
|
|
font-size: @font-size-base;
|
|
|
|
font-weight: normal;
|
|
|
|
line-height: @line-height-base;
|
|
|
|
text-align: left;
|
2013-04-01 02:19:12 +02:00
|
|
|
background-color: @popover-bg;
|
2013-05-08 08:43:51 +02:00
|
|
|
background-clip: padding-box;
|
2013-07-26 14:04:15 +02:00
|
|
|
border: 1px solid @popover-border-color;
|
2014-09-22 01:04:37 +02:00
|
|
|
.border-radius(@border-radius-lg);
|
2014-07-09 06:19:14 +02:00
|
|
|
.box-shadow(0 5px 10px rgba(0,0,0,.2));
|
2012-06-28 19:03:46 +02:00
|
|
|
|
2012-11-03 21:42:08 +01:00
|
|
|
// Overrides for proper insertion
|
|
|
|
white-space: normal;
|
|
|
|
|
2012-06-28 19:03:46 +02:00
|
|
|
// Offset the popover to account for the popover arrow
|
2014-02-10 10:57:11 +01:00
|
|
|
&.top { margin-top: -@popover-arrow-width; }
|
|
|
|
&.right { margin-left: @popover-arrow-width; }
|
|
|
|
&.bottom { margin-top: @popover-arrow-width; }
|
|
|
|
&.left { margin-left: -@popover-arrow-width; }
|
2012-01-30 10:20:51 +01:00
|
|
|
}
|
2012-06-28 19:03:46 +02:00
|
|
|
|
2012-01-30 10:20:51 +01:00
|
|
|
.popover-title {
|
2012-07-10 06:13:33 +02:00
|
|
|
margin: 0; // reset heading margin
|
2012-06-28 19:03:46 +02:00
|
|
|
padding: 8px 14px;
|
2013-04-24 00:41:06 +02:00
|
|
|
font-size: @font-size-base;
|
2013-04-01 02:19:12 +02:00
|
|
|
background-color: @popover-title-bg;
|
|
|
|
border-bottom: 1px solid darken(@popover-title-bg, 5%);
|
2014-09-22 01:04:37 +02:00
|
|
|
border-radius: (@border-radius-lg - 1) (@border-radius-lg - 1) 0 0;
|
2012-01-30 10:20:51 +01:00
|
|
|
}
|
2012-06-28 19:03:46 +02:00
|
|
|
|
2012-01-30 10:20:51 +01:00
|
|
|
.popover-content {
|
2012-06-28 19:03:46 +02:00
|
|
|
padding: 9px 14px;
|
2012-01-30 10:20:51 +01:00
|
|
|
}
|
2012-07-10 07:14:30 +02:00
|
|
|
|
|
|
|
// Arrows
|
2012-11-28 10:38:21 +01:00
|
|
|
//
|
|
|
|
// .arrow is outer, .arrow:after is inner
|
|
|
|
|
2014-02-02 23:14:22 +01:00
|
|
|
.popover > .arrow {
|
2013-07-07 07:02:58 +02:00
|
|
|
&,
|
|
|
|
&:after {
|
|
|
|
position: absolute;
|
|
|
|
display: block;
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
border-color: transparent;
|
|
|
|
border-style: solid;
|
|
|
|
}
|
2012-07-10 07:14:30 +02:00
|
|
|
}
|
2014-02-02 23:14:22 +01:00
|
|
|
.popover > .arrow {
|
2012-12-01 00:40:44 +01:00
|
|
|
border-width: @popover-arrow-outer-width;
|
2012-11-28 10:38:21 +01:00
|
|
|
}
|
2014-02-02 23:14:22 +01:00
|
|
|
.popover > .arrow:after {
|
2012-12-01 00:40:44 +01:00
|
|
|
border-width: @popover-arrow-width;
|
2012-07-10 07:14:30 +02:00
|
|
|
content: "";
|
|
|
|
}
|
|
|
|
|
|
|
|
.popover {
|
2014-02-02 23:14:22 +01:00
|
|
|
&.top > .arrow {
|
2012-11-28 10:38:21 +01:00
|
|
|
left: 50%;
|
2012-12-01 00:40:44 +01:00
|
|
|
margin-left: -@popover-arrow-outer-width;
|
2012-11-28 10:38:21 +01:00
|
|
|
border-bottom-width: 0;
|
2012-12-01 00:40:44 +01:00
|
|
|
border-top-color: @popover-arrow-outer-color;
|
|
|
|
bottom: -@popover-arrow-outer-width;
|
2012-11-28 10:38:21 +01:00
|
|
|
&:after {
|
2013-06-28 04:36:56 +02:00
|
|
|
content: " ";
|
2012-11-28 10:38:21 +01:00
|
|
|
bottom: 1px;
|
2012-12-01 00:40:44 +01:00
|
|
|
margin-left: -@popover-arrow-width;
|
2012-11-28 10:38:21 +01:00
|
|
|
border-bottom-width: 0;
|
2012-12-01 00:40:44 +01:00
|
|
|
border-top-color: @popover-arrow-color;
|
2012-11-28 10:38:21 +01:00
|
|
|
}
|
|
|
|
}
|
2014-02-02 23:14:22 +01:00
|
|
|
&.right > .arrow {
|
2012-11-28 10:38:21 +01:00
|
|
|
top: 50%;
|
2012-12-01 00:40:44 +01:00
|
|
|
left: -@popover-arrow-outer-width;
|
|
|
|
margin-top: -@popover-arrow-outer-width;
|
2012-11-28 10:38:21 +01:00
|
|
|
border-left-width: 0;
|
2012-12-01 00:40:44 +01:00
|
|
|
border-right-color: @popover-arrow-outer-color;
|
2012-11-28 10:38:21 +01:00
|
|
|
&:after {
|
2013-06-28 04:36:56 +02:00
|
|
|
content: " ";
|
2012-11-28 10:38:21 +01:00
|
|
|
left: 1px;
|
2012-12-01 00:40:44 +01:00
|
|
|
bottom: -@popover-arrow-width;
|
2012-11-28 10:38:21 +01:00
|
|
|
border-left-width: 0;
|
2012-12-01 00:40:44 +01:00
|
|
|
border-right-color: @popover-arrow-color;
|
2012-11-28 10:38:21 +01:00
|
|
|
}
|
|
|
|
}
|
2014-02-02 23:14:22 +01:00
|
|
|
&.bottom > .arrow {
|
2012-11-28 10:38:21 +01:00
|
|
|
left: 50%;
|
2012-12-01 00:40:44 +01:00
|
|
|
margin-left: -@popover-arrow-outer-width;
|
2012-11-28 10:38:21 +01:00
|
|
|
border-top-width: 0;
|
2012-12-01 00:40:44 +01:00
|
|
|
border-bottom-color: @popover-arrow-outer-color;
|
|
|
|
top: -@popover-arrow-outer-width;
|
2012-11-28 10:38:21 +01:00
|
|
|
&:after {
|
2013-06-28 04:36:56 +02:00
|
|
|
content: " ";
|
2012-11-28 10:38:21 +01:00
|
|
|
top: 1px;
|
2012-12-01 00:40:44 +01:00
|
|
|
margin-left: -@popover-arrow-width;
|
2012-11-28 10:38:21 +01:00
|
|
|
border-top-width: 0;
|
2012-12-01 00:40:44 +01:00
|
|
|
border-bottom-color: @popover-arrow-color;
|
2012-11-28 10:38:21 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-02-02 23:14:22 +01:00
|
|
|
&.left > .arrow {
|
2012-11-28 10:38:21 +01:00
|
|
|
top: 50%;
|
2012-12-01 00:40:44 +01:00
|
|
|
right: -@popover-arrow-outer-width;
|
|
|
|
margin-top: -@popover-arrow-outer-width;
|
2012-11-28 10:38:21 +01:00
|
|
|
border-right-width: 0;
|
2012-12-01 00:40:44 +01:00
|
|
|
border-left-color: @popover-arrow-outer-color;
|
2012-11-28 10:38:21 +01:00
|
|
|
&:after {
|
2013-06-28 04:36:56 +02:00
|
|
|
content: " ";
|
2012-11-28 10:38:21 +01:00
|
|
|
right: 1px;
|
|
|
|
border-right-width: 0;
|
2012-12-01 00:40:44 +01:00
|
|
|
border-left-color: @popover-arrow-color;
|
|
|
|
bottom: -@popover-arrow-width;
|
2012-11-28 10:38:21 +01:00
|
|
|
}
|
|
|
|
}
|
2012-07-10 07:14:30 +02:00
|
|
|
}
|