2019-03-27 09:14:02 +01:00
|
|
|
$popover-arrow-size: 10px;
|
2016-02-22 11:41:50 +01:00
|
|
|
$color: inherit;
|
|
|
|
|
$color: $text-color;
|
|
|
|
|
$useDropShadow: false;
|
2016-02-22 14:20:34 +01:00
|
|
|
$attachmentOffset: 0%;
|
2017-12-19 16:22:41 +01:00
|
|
|
$easing: cubic-bezier(0, 0, 0.265, 1);
|
2016-02-22 11:41:50 +01:00
|
|
|
|
2019-08-29 19:04:33 +02:00
|
|
|
@include drop-theme('error', $popover-error-bg, $white);
|
2018-12-25 20:18:38 +01:00
|
|
|
@include drop-theme('popover', $popover-bg, $popover-color, $popover-border-color);
|
|
|
|
|
@include drop-theme('help', $popover-help-bg, $popover-help-color);
|
2017-04-13 18:39:49 +02:00
|
|
|
|
2018-12-25 20:18:38 +01:00
|
|
|
@include drop-animation-scale('drop', 'help', $attachmentOffset: $attachmentOffset, $easing: $easing);
|
|
|
|
|
@include drop-animation-scale('drop', 'error', $attachmentOffset: $attachmentOffset, $easing: $easing);
|
|
|
|
|
@include drop-animation-scale('drop', 'popover', $attachmentOffset: $attachmentOffset, $easing: $easing);
|
2017-04-13 18:39:49 +02:00
|
|
|
|
2016-02-22 11:41:50 +01:00
|
|
|
.drop-element {
|
2016-04-12 11:07:34 -04:00
|
|
|
z-index: 10000;
|
2016-02-22 11:41:50 +01:00
|
|
|
position: absolute;
|
|
|
|
|
display: none;
|
2016-02-22 14:20:34 +01:00
|
|
|
opacity: 0;
|
2016-02-22 11:41:50 +01:00
|
|
|
|
|
|
|
|
&.drop-open {
|
|
|
|
|
display: block;
|
|
|
|
|
}
|
2017-12-19 16:22:41 +01:00
|
|
|
}
|
2016-02-22 11:41:50 +01:00
|
|
|
|
2017-12-19 16:22:41 +01:00
|
|
|
.drop-element,
|
|
|
|
|
.drop-element * {
|
2016-02-22 11:41:50 +01:00
|
|
|
box-sizing: border-box;
|
|
|
|
|
}
|
|
|
|
|
|
2020-06-05 04:53:57 -04:00
|
|
|
.drop-popover-close {
|
2016-02-22 18:46:58 +01:00
|
|
|
position: absolute;
|
|
|
|
|
top: -5px;
|
|
|
|
|
right: 0;
|
|
|
|
|
font-size: $font-size-lg;
|
|
|
|
|
}
|
|
|
|
|
|
2016-03-01 21:01:41 +01:00
|
|
|
.drop-help {
|
2016-12-16 12:46:29 +01:00
|
|
|
a {
|
2019-06-25 11:38:51 +02:00
|
|
|
color: $gray-6;
|
2016-12-16 13:06:04 +01:00
|
|
|
&:hover {
|
2019-06-25 11:38:51 +02:00
|
|
|
color: $white;
|
2016-12-16 13:06:04 +01:00
|
|
|
}
|
2016-12-16 12:46:29 +01:00
|
|
|
}
|
2016-03-01 21:01:41 +01:00
|
|
|
}
|
|
|
|
|
|
2016-03-29 11:01:00 +02:00
|
|
|
.drop-hide-out-of-bounds {
|
|
|
|
|
&.drop-open.drop-help.drop-out-of-bounds,
|
|
|
|
|
&.drop-open-transitionend.drop-help.drop-out-of-bounds {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-12-16 10:34:00 +01:00
|
|
|
|
2017-10-07 10:31:39 +02:00
|
|
|
.drop-element.drop-popover {
|
|
|
|
|
.drop-content {
|
|
|
|
|
box-shadow: $popover-shadow;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-04-13 18:39:49 +02:00
|
|
|
.drop-element.drop-popover--form {
|
|
|
|
|
.drop-content {
|
|
|
|
|
max-width: none;
|
2017-10-07 10:31:39 +02:00
|
|
|
padding: 0;
|
2017-04-13 18:39:49 +02:00
|
|
|
}
|
|
|
|
|
}
|
2017-05-22 13:02:19 +02:00
|
|
|
|
|
|
|
|
.drop-element.drop-popover--annotation {
|
|
|
|
|
.drop-content {
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|