2017-08-22 19:22:06 +00:00
|
|
|
/**
|
|
|
|
* Mousemove padding styles are used to add invisible elements to the popover
|
|
|
|
* to allow mouse movement from the popover trigger to the popover itself
|
|
|
|
* without triggering a mouseleave event.
|
|
|
|
*/
|
|
|
|
.popover-mousemove-padding-bottom {
|
|
|
|
bottom: -15px;
|
|
|
|
height: 20px;
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
width: 100%;
|
|
|
|
}
|
2018-07-25 18:28:36 +00:00
|
|
|
|
|
|
|
%vertical-popover-padding {
|
2017-08-22 19:22:06 +00:00
|
|
|
height: 100%;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
width: 40px;
|
|
|
|
}
|
|
|
|
|
2018-07-25 18:28:36 +00:00
|
|
|
.popover-mousemove-padding-left {
|
|
|
|
@extend %vertical-popover-padding;
|
|
|
|
left: -20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.popover-mousemove-padding-right {
|
|
|
|
@extend %vertical-popover-padding;
|
|
|
|
right: -20px;
|
|
|
|
}
|
|
|
|
|
2017-08-22 19:22:06 +00:00
|
|
|
/**
|
|
|
|
* An invisible element is added to the top of the popover to ensure the mouse
|
|
|
|
* stays over the popover when the popover's height is shrunk, which would then
|
|
|
|
* normally leave the mouse outside of the popover itself and cause a mouseleave
|
|
|
|
* event.
|
|
|
|
*/
|
|
|
|
.popover-mouse-padding-top {
|
|
|
|
height: 30px;
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
top: -25px;
|
|
|
|
width: 100%;
|
|
|
|
}
|
2019-03-11 11:43:33 +00:00
|
|
|
|
|
|
|
.popover {
|
|
|
|
background-color: $popoverBg;
|
|
|
|
border-radius: 3px;
|
|
|
|
margin: -16px -24px;
|
|
|
|
padding: 16px 24px;
|
|
|
|
}
|