sonarr-repo-only/NzbDrone.Backbone/Content/Bootstrap/popovers.less

130 lines
3.0 KiB
Plaintext
Raw Normal View History

2013-01-17 00:39:42 +00:00
//
// Popovers
// --------------------------------------------------
.popover {
position: absolute;
top: 0;
left: 0;
z-index: @zindexPopover;
display: none;
width: 236px;
padding: 1px;
text-align: left; // Reset given new insertion method
2013-01-17 00:39:42 +00:00
background-color: @popoverBackground;
-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));
// Overrides for proper insertion
white-space: normal;
2013-01-17 00:39:42 +00:00
// Offset the popover to account for the popover arrow
&.top { margin-top: -10px; }
2013-01-17 00:39:42 +00:00
&.right { margin-left: 10px; }
&.bottom { margin-top: 10px; }
&.left { margin-left: -10px; }
2013-01-17 00:39:42 +00:00
}
.popover-title {
margin: 0; // reset heading margin
padding: 8px 14px;
font-size: 14px;
font-weight: normal;
line-height: 18px;
background-color: @popoverTitleBackground;
border-bottom: 1px solid darken(@popoverTitleBackground, 5%);
.border-radius(5px 5px 0 0);
}
.popover-content {
padding: 9px 14px;
}
// Arrows
//
// .arrow is outer, .arrow:after is inner
2013-01-17 00:39:42 +00:00
.popover .arrow,
.popover .arrow:after {
position: absolute;
display: block;
2013-01-17 00:39:42 +00:00
width: 0;
height: 0;
border-color: transparent;
border-style: solid;
}
.popover .arrow {
border-width: @popoverArrowOuterWidth;
}
2013-01-17 00:39:42 +00:00
.popover .arrow:after {
border-width: @popoverArrowWidth;
2013-01-17 00:39:42 +00:00
content: "";
}
.popover {
&.top .arrow {
left: 50%;
margin-left: -@popoverArrowOuterWidth;
border-bottom-width: 0;
border-top-color: #999; // IE8 fallback
border-top-color: @popoverArrowOuterColor;
bottom: -@popoverArrowOuterWidth;
2013-01-17 00:39:42 +00:00
&:after {
bottom: 1px;
margin-left: -@popoverArrowWidth;
border-bottom-width: 0;
border-top-color: @popoverArrowColor;
2013-01-17 00:39:42 +00:00
}
}
&.right .arrow {
top: 50%;
left: -@popoverArrowOuterWidth;
margin-top: -@popoverArrowOuterWidth;
border-left-width: 0;
border-right-color: #999; // IE8 fallback
border-right-color: @popoverArrowOuterColor;
2013-01-17 00:39:42 +00:00
&:after {
left: 1px;
bottom: -@popoverArrowWidth;
border-left-width: 0;
border-right-color: @popoverArrowColor;
2013-01-17 00:39:42 +00:00
}
}
&.bottom .arrow {
left: 50%;
margin-left: -@popoverArrowOuterWidth;
border-top-width: 0;
border-bottom-color: #999; // IE8 fallback
border-bottom-color: @popoverArrowOuterColor;
top: -@popoverArrowOuterWidth;
2013-01-17 00:39:42 +00:00
&:after {
top: 1px;
margin-left: -@popoverArrowWidth;
border-top-width: 0;
border-bottom-color: @popoverArrowColor;
2013-01-17 00:39:42 +00:00
}
}
2013-01-17 00:39:42 +00:00
&.left .arrow {
top: 50%;
right: -@popoverArrowOuterWidth;
margin-top: -@popoverArrowOuterWidth;
border-right-width: 0;
border-left-color: #999; // IE8 fallback
border-left-color: @popoverArrowOuterColor;
2013-01-17 00:39:42 +00:00
&:after {
right: 1px;
border-right-width: 0;
border-left-color: @popoverArrowColor;
bottom: -@popoverArrowWidth;
2013-01-17 00:39:42 +00:00
}
}
2013-01-17 00:39:42 +00:00
}