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-01-07 13:07:53 +01:00
|
|
|
z-index: @zindexPopover;
|
2011-11-17 08:58:36 +01:00
|
|
|
display: none;
|
2012-07-27 08:42:36 +02:00
|
|
|
width: 236px;
|
|
|
|
padding: 1px;
|
|
|
|
background-color: @popoverBackground;
|
2012-06-28 19:03:46 +02: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);
|
|
|
|
.border-radius(6px);
|
|
|
|
.box-shadow(0 5px 10px rgba(0,0,0,.2));
|
|
|
|
|
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
|
2012-09-18 08:03:18 +02:00
|
|
|
&.top { margin-top: -10px; }
|
2012-06-28 19:03:46 +02:00
|
|
|
&.right { margin-left: 10px; }
|
|
|
|
&.bottom { margin-top: 10px; }
|
2012-09-18 08:03:18 +02:00
|
|
|
&.left { margin-left: -10px; }
|
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;
|
|
|
|
font-size: 14px;
|
|
|
|
font-weight: normal;
|
|
|
|
line-height: 18px;
|
2012-07-10 07:14:30 +02:00
|
|
|
background-color: @popoverTitleBackground;
|
2012-07-27 08:42:36 +02:00
|
|
|
border-bottom: 1px solid darken(@popoverTitleBackground, 5%);
|
2012-06-28 19:03:46 +02:00
|
|
|
.border-radius(5px 5px 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
|
|
|
|
|
2012-07-10 07:14:30 +02:00
|
|
|
.popover .arrow,
|
|
|
|
.popover .arrow:after {
|
|
|
|
position: absolute;
|
2012-11-28 10:38:21 +01:00
|
|
|
display: block;
|
2012-07-10 07:14:30 +02:00
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
border-color: transparent;
|
|
|
|
border-style: solid;
|
|
|
|
}
|
2012-11-28 10:38:21 +01:00
|
|
|
.popover .arrow {
|
|
|
|
border-width: @popoverArrowOuterWidth;
|
|
|
|
}
|
2012-07-10 07:14:30 +02:00
|
|
|
.popover .arrow:after {
|
2012-11-28 10:38:21 +01:00
|
|
|
border-width: @popoverArrowWidth;
|
2012-07-10 07:14:30 +02:00
|
|
|
content: "";
|
|
|
|
}
|
|
|
|
|
|
|
|
.popover {
|
2012-11-28 10:38:21 +01:00
|
|
|
&.top .arrow {
|
|
|
|
left: 50%;
|
|
|
|
margin-left: -@popoverArrowOuterWidth;
|
|
|
|
border-bottom-width: 0;
|
|
|
|
border-top-color: #999; // IE8 fallback
|
|
|
|
border-top-color: @popoverArrowOuterColor;
|
|
|
|
bottom: -@popoverArrowOuterWidth;
|
|
|
|
&:after {
|
|
|
|
bottom: 1px;
|
|
|
|
margin-left: -@popoverArrowWidth;
|
|
|
|
border-bottom-width: 0;
|
|
|
|
border-top-color: @popoverArrowColor;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.right .arrow {
|
|
|
|
top: 50%;
|
|
|
|
left: -@popoverArrowOuterWidth;
|
|
|
|
margin-top: -@popoverArrowOuterWidth;
|
|
|
|
border-left-width: 0;
|
|
|
|
border-right-color: #999; // IE8 fallback
|
|
|
|
border-right-color: @popoverArrowOuterColor;
|
|
|
|
&:after {
|
|
|
|
left: 1px;
|
|
|
|
bottom: -@popoverArrowWidth;
|
|
|
|
border-left-width: 0;
|
|
|
|
border-right-color: @popoverArrowColor;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.bottom .arrow {
|
|
|
|
left: 50%;
|
|
|
|
margin-left: -@popoverArrowOuterWidth;
|
|
|
|
border-top-width: 0;
|
|
|
|
border-bottom-color: #999; // IE8 fallback
|
|
|
|
border-bottom-color: @popoverArrowOuterColor;
|
|
|
|
top: -@popoverArrowOuterWidth;
|
|
|
|
&:after {
|
|
|
|
top: 1px;
|
|
|
|
margin-left: -@popoverArrowWidth;
|
|
|
|
border-top-width: 0;
|
|
|
|
border-bottom-color: @popoverArrowColor;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.left .arrow {
|
|
|
|
top: 50%;
|
|
|
|
right: -@popoverArrowOuterWidth;
|
|
|
|
margin-top: -@popoverArrowOuterWidth;
|
|
|
|
border-right-width: 0;
|
|
|
|
border-left-color: #999; // IE8 fallback
|
|
|
|
border-left-color: @popoverArrowOuterColor;
|
|
|
|
&:after {
|
|
|
|
right: 1px;
|
|
|
|
border-right-width: 0;
|
|
|
|
border-left-color: @popoverArrowColor;
|
|
|
|
bottom: -@popoverArrowWidth;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
2012-07-10 07:14:30 +02:00
|
|
|
&.top .arrow {
|
|
|
|
bottom: -@popoverArrowWidth;
|
|
|
|
left: 50%;
|
|
|
|
margin-left: -@popoverArrowWidth;
|
|
|
|
border-width: @popoverArrowWidth @popoverArrowWidth 0;
|
2012-11-28 10:38:21 +01:00
|
|
|
//border-top-color: @popoverArrowColor;
|
|
|
|
border-top-color: blue;
|
2012-07-10 07:14:30 +02:00
|
|
|
&:after {
|
|
|
|
border-width: @popoverArrowOuterWidth @popoverArrowOuterWidth 0;
|
2012-11-28 10:38:21 +01:00
|
|
|
//border-top-color: @popoverArrowOuterColor;
|
|
|
|
border-top-color: red;
|
|
|
|
top: -@popoverArrowWidth;
|
|
|
|
//bottom: -1px;
|
2012-07-10 07:14:30 +02:00
|
|
|
left: -@popoverArrowOuterWidth;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.right .arrow {
|
|
|
|
top: 50%;
|
|
|
|
left: -@popoverArrowWidth;
|
|
|
|
margin-top: -@popoverArrowWidth;
|
|
|
|
border-width: @popoverArrowWidth @popoverArrowWidth @popoverArrowWidth 0;
|
|
|
|
border-right-color: @popoverArrowColor;
|
|
|
|
&:after {
|
|
|
|
border-width: @popoverArrowOuterWidth @popoverArrowOuterWidth @popoverArrowOuterWidth 0;
|
|
|
|
border-right-color: @popoverArrowOuterColor;
|
|
|
|
bottom: -@popoverArrowOuterWidth;
|
|
|
|
left: -1px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.bottom .arrow {
|
|
|
|
top: -@popoverArrowWidth;
|
|
|
|
left: 50%;
|
|
|
|
margin-left: -@popoverArrowWidth;
|
|
|
|
border-width: 0 @popoverArrowWidth @popoverArrowWidth;
|
2012-07-27 08:42:36 +02:00
|
|
|
border-bottom-color: @popoverArrowColor;
|
2012-07-10 07:14:30 +02:00
|
|
|
&:after {
|
|
|
|
border-width: 0 @popoverArrowOuterWidth @popoverArrowOuterWidth;
|
|
|
|
border-bottom-color: @popoverArrowOuterColor;
|
|
|
|
top: -1px;
|
|
|
|
left: -@popoverArrowOuterWidth;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.left .arrow {
|
|
|
|
top: 50%;
|
|
|
|
right: -@popoverArrowWidth;
|
|
|
|
margin-top: -@popoverArrowWidth;
|
|
|
|
border-width: @popoverArrowWidth 0 @popoverArrowWidth @popoverArrowWidth;
|
|
|
|
border-left-color: @popoverArrowColor;
|
|
|
|
&:after {
|
|
|
|
border-width: @popoverArrowOuterWidth 0 @popoverArrowOuterWidth @popoverArrowOuterWidth;
|
|
|
|
border-left-color: @popoverArrowOuterColor;
|
|
|
|
bottom: -@popoverArrowOuterWidth;
|
|
|
|
right: -1px;
|
|
|
|
}
|
2012-11-28 10:38:21 +01:00
|
|
|
}*/
|
2012-07-10 07:14:30 +02:00
|
|
|
}
|