You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
138 lines
3.6 KiB
SCSS
138 lines
3.6 KiB
SCSS
//Bootstrap 4 alpha popover styles - works with ng-bootstrap by Valor popover plugin
|
|
|
|
.popover.popover-top, .popover.bs-tether-element-attached-bottom {
|
|
margin-top: -10px;
|
|
}
|
|
|
|
.popover.popover-top::before, .popover.popover-top::after, .popover.bs-tether-element-attached-bottom::before, .popover.bs-tether-element-attached-bottom::after {
|
|
left: 50%;
|
|
border-bottom-width: 0;
|
|
}
|
|
|
|
.popover.popover-top::before, .popover.bs-tether-element-attached-bottom::before {
|
|
bottom: -11px;
|
|
margin-left: -11px;
|
|
border-top-color: rgba(0, 0, 0, 0.25);
|
|
}
|
|
|
|
.popover.popover-top::after, .popover.bs-tether-element-attached-bottom::after {
|
|
bottom: -10px;
|
|
margin-left: -10px;
|
|
border-top-color: #fff;
|
|
}
|
|
|
|
.popover.popover-right, .popover.bs-tether-element-attached-left {
|
|
margin-left: 10px;
|
|
}
|
|
|
|
.popover.popover-right::before, .popover.popover-right::after, .popover.bs-tether-element-attached-left::before, .popover.bs-tether-element-attached-left::after {
|
|
top: 50%;
|
|
border-left-width: 0;
|
|
}
|
|
|
|
.popover.popover-right::before, .popover.bs-tether-element-attached-left::before {
|
|
left: -11px;
|
|
margin-top: -11px;
|
|
border-right-color: rgba(0, 0, 0, 0.25);
|
|
}
|
|
|
|
.popover.popover-right::after, .popover.bs-tether-element-attached-left::after {
|
|
left: -10px;
|
|
margin-top: -10px;
|
|
border-right-color: #fff;
|
|
}
|
|
|
|
.popover.popover-bottom, .popover.bs-tether-element-attached-top {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.popover.popover-bottom::before, .popover.popover-bottom::after, .popover.bs-tether-element-attached-top::before, .popover.bs-tether-element-attached-top::after {
|
|
left: 50%;
|
|
border-top-width: 0;
|
|
}
|
|
|
|
.popover.popover-bottom::before, .popover.bs-tether-element-attached-top::before {
|
|
top: -11px;
|
|
margin-left: -11px;
|
|
border-bottom-color: rgba(0, 0, 0, 0.25);
|
|
}
|
|
|
|
.popover.popover-bottom::after, .popover.bs-tether-element-attached-top::after {
|
|
top: -10px;
|
|
margin-left: -10px;
|
|
border-bottom-color: #f7f7f7;
|
|
}
|
|
|
|
.popover.popover-bottom .popover-title::before, .popover.bs-tether-element-attached-top .popover-title::before {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 50%;
|
|
display: block;
|
|
width: 20px;
|
|
margin-left: -10px;
|
|
content: "";
|
|
border-bottom: 1px solid #f7f7f7;
|
|
}
|
|
|
|
.popover.popover-left, .popover.bs-tether-element-attached-right {
|
|
margin-left: -10px;
|
|
}
|
|
|
|
.popover.popover-left::before, .popover.popover-left::after, .popover.bs-tether-element-attached-right::before, .popover.bs-tether-element-attached-right::after {
|
|
top: 50%;
|
|
border-right-width: 0;
|
|
}
|
|
|
|
.popover.popover-left::before, .popover.bs-tether-element-attached-right::before {
|
|
right: -11px;
|
|
margin-top: -11px;
|
|
border-left-color: rgba(0, 0, 0, 0.25);
|
|
}
|
|
|
|
.popover.popover-left::after, .popover.bs-tether-element-attached-right::after {
|
|
right: -10px;
|
|
margin-top: -10px;
|
|
border-left-color: #fff;
|
|
}
|
|
|
|
.popover::before,
|
|
.popover::after {
|
|
position: absolute;
|
|
display: block;
|
|
width: 0;
|
|
height: 0;
|
|
border-color: transparent;
|
|
border-style: solid;
|
|
}
|
|
|
|
.popover::before {
|
|
content: "";
|
|
border-width: 11px;
|
|
}
|
|
|
|
.popover::after {
|
|
content: "";
|
|
border-width: 10px;
|
|
}
|
|
|
|
// Popover animations
|
|
|
|
@-webkit-keyframes fadeInPopover {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
@keyframes fadeInPopover {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
|
|
.popover-fadeIn {
|
|
-webkit-animation-name: fadeInPopover;
|
|
animation-name: fadeInPopover;
|
|
-webkit-animation-delay: 0.2s;
|
|
-moz-animation-delay: 0.2s; animation-delay: 0.2s;
|
|
-webkit-animation-duration: 0.2s;
|
|
animation-duration: 0.2s;
|
|
-webkit-animation-fill-mode: both;
|
|
animation-fill-mode: both;
|
|
} |