mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
33e14fe5bf
Conflicts: README.md docs/assets/css/bootstrap.css docs/assets/js/bootstrap.js docs/assets/js/bootstrap.min.js docs/examples/fluid.html docs/scaffolding.html less/breadcrumbs.less less/popovers.less less/responsive.less
130 lines
3.0 KiB
Plaintext
130 lines
3.0 KiB
Plaintext
//
|
|
// Popovers
|
|
// --------------------------------------------------
|
|
|
|
|
|
.popover {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: @zindex-popover;
|
|
display: none;
|
|
width: 236px;
|
|
padding: 1px;
|
|
text-align: left; // Reset given new insertion method
|
|
background-color: @popover-background;
|
|
-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;
|
|
|
|
// Offset the popover to account for the popover arrow
|
|
&.top { margin-top: -10px; }
|
|
&.right { margin-left: 10px; }
|
|
&.bottom { margin-top: 10px; }
|
|
&.left { margin-left: -10px; }
|
|
}
|
|
|
|
.popover-title {
|
|
margin: 0; // reset heading margin
|
|
padding: 8px 14px;
|
|
font-size: 14px;
|
|
font-weight: normal;
|
|
line-height: 18px;
|
|
background-color: @popover-title-background;
|
|
border-bottom: 1px solid darken(@popover-title-background, 5%);
|
|
border-radius: 5px 5px 0 0;
|
|
}
|
|
|
|
.popover-content {
|
|
padding: 9px 14px;
|
|
}
|
|
|
|
// Arrows
|
|
//
|
|
// .arrow is outer, .arrow:after is inner
|
|
|
|
.popover .arrow,
|
|
.popover .arrow:after {
|
|
position: absolute;
|
|
display: block;
|
|
width: 0;
|
|
height: 0;
|
|
border-color: transparent;
|
|
border-style: solid;
|
|
}
|
|
.popover .arrow {
|
|
border-width: @popover-arrow-outer-width;
|
|
}
|
|
.popover .arrow:after {
|
|
border-width: @popover-arrow-width;
|
|
content: "";
|
|
}
|
|
|
|
.popover {
|
|
&.top .arrow {
|
|
left: 50%;
|
|
margin-left: -@popover-arrow-outer-width;
|
|
border-bottom-width: 0;
|
|
border-top-color: #999; // IE8 fallback
|
|
border-top-color: @popover-arrow-outer-color;
|
|
bottom: -@popover-arrow-outer-width;
|
|
&:after {
|
|
bottom: 1px;
|
|
margin-left: -@popover-arrow-width;
|
|
border-bottom-width: 0;
|
|
border-top-color: @popover-arrow-color;
|
|
}
|
|
}
|
|
&.right .arrow {
|
|
top: 50%;
|
|
left: -@popover-arrow-outer-width;
|
|
margin-top: -@popover-arrow-outer-width;
|
|
border-left-width: 0;
|
|
border-right-color: #999; // IE8 fallback
|
|
border-right-color: @popover-arrow-outer-color;
|
|
&:after {
|
|
left: 1px;
|
|
bottom: -@popover-arrow-width;
|
|
border-left-width: 0;
|
|
border-right-color: @popover-arrow-color;
|
|
}
|
|
}
|
|
&.bottom .arrow {
|
|
left: 50%;
|
|
margin-left: -@popover-arrow-outer-width;
|
|
border-top-width: 0;
|
|
border-bottom-color: #999; // IE8 fallback
|
|
border-bottom-color: @popover-arrow-outer-color;
|
|
top: -@popover-arrow-outer-width;
|
|
&:after {
|
|
top: 1px;
|
|
margin-left: -@popover-arrow-width;
|
|
border-top-width: 0;
|
|
border-bottom-color: @popover-arrow-color;
|
|
}
|
|
}
|
|
|
|
&.left .arrow {
|
|
top: 50%;
|
|
right: -@popover-arrow-outer-width;
|
|
margin-top: -@popover-arrow-outer-width;
|
|
border-right-width: 0;
|
|
border-left-color: #999; // IE8 fallback
|
|
border-left-color: @popover-arrow-outer-color;
|
|
&:after {
|
|
right: 1px;
|
|
border-right-width: 0;
|
|
border-left-color: @popover-arrow-color;
|
|
bottom: -@popover-arrow-width;
|
|
}
|
|
}
|
|
|
|
}
|