124 lines
2.9 KiB
CSS
124 lines
2.9 KiB
CSS
/*
|
|
Popovers
|
|
========================================
|
|
*/
|
|
|
|
.popover {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: var(--zindex-popover);
|
|
display: none;
|
|
max-width: 276px;
|
|
padding: 1px;
|
|
text-align: left; /* Reset given new insertion method */
|
|
background-color: var(--popover-background);
|
|
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 */
|
|
.popover.top { margin-top: -10px; }
|
|
.popover.right { margin-left: 10px; }
|
|
.popover.bottom { margin-top: 10px; }
|
|
.popover.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: var(--popover-title-background);
|
|
border-bottom: 1px solid #e7e7e7;
|
|
border-radius: 5px 5px 0 0;
|
|
}
|
|
|
|
.popover-title:empty {
|
|
display: none;
|
|
}
|
|
|
|
.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: var(--popover-arrow-outer-width);
|
|
}
|
|
.popover .arrow:after {
|
|
border-width: var(--popover-arrow-width);
|
|
content: "";
|
|
}
|
|
|
|
.popover.top .arrow {
|
|
left: 50%;
|
|
margin-left: calc(var(--popover-arrow-outer-width) * -1);
|
|
border-bottom-width: 0;
|
|
border-top-color: var(--popover-arrow-outer-color);
|
|
bottom: calc(var(--popover-arrow-outer-width) * -1);
|
|
}
|
|
.popover.top .arrow:after {
|
|
bottom: 1px;
|
|
margin-left: calc(var(--popover-arrow-width) * -1);
|
|
border-bottom-width: 0;
|
|
border-top-color: var(--popover-arrow-color);
|
|
}
|
|
.popover.right .arrow {
|
|
top: 50%;
|
|
left: calc(var(--popover-arrow-outer-width) * -1);
|
|
margin-top: calc(var(--popover-arrow-outer-width) * -1);
|
|
border-left-width: 0;
|
|
border-right-color: var(--popover-arrow-outer-color);
|
|
}
|
|
.popover.right .arrow:after {
|
|
left: 1px;
|
|
bottom: calc(var(--popover-arrow-width) * -1);
|
|
border-left-width: 0;
|
|
border-right-color: var(--popover-arrow-color);
|
|
}
|
|
.popover.bottom .arrow {
|
|
left: 50%;
|
|
margin-left: calc(var(--popover-arrow-outer-width) * -1);
|
|
border-top-width: 0;
|
|
border-bottom-color: var(--popover-arrow-outer-color);
|
|
top: calc(var(--popover-arrow-outer-width) * -1);
|
|
}
|
|
.popover.bottom .arrow:after {
|
|
top: 1px;
|
|
margin-left: calc(var(--popover-arrow-width) * -1);
|
|
border-top-width: 0;
|
|
border-bottom-color: var(--popover-arrow-color);
|
|
}
|
|
.popover.left .arrow {
|
|
top: 50%;
|
|
right: calc(var(--popover-arrow-outer-width) * -1);
|
|
margin-top: calc(var(--popover-arrow-outer-width) * -1);
|
|
border-right-width: 0;
|
|
border-left-color: var(--popover-arrow-outer-color);
|
|
}
|
|
.popover.left .arrow:after {
|
|
right: 1px;
|
|
border-right-width: 0;
|
|
border-left-color: var(--popover-arrow-color);
|
|
bottom: calc(var(--popover-arrow-width) * -1);
|
|
}
|