0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-29 21:52:22 +01:00

un-nest and un-chain popover classes

This commit is contained in:
Mark Otto 2017-12-26 21:58:57 -08:00
parent fa2cc20e92
commit 28fd9deb54

View File

@ -27,20 +27,19 @@
width: $popover-arrow-width;
height: $popover-arrow-height;
margin: 0 $border-radius-lg;
}
.arrow::before,
.arrow::after {
&::before,
&::after {
position: absolute;
display: block;
content: "";
border-color: transparent;
border-style: solid;
}
}
}
// Popover directions
&.bs-popover-top {
.bs-popover-top {
margin-bottom: $popover-arrow-height;
.arrow {
@ -63,7 +62,7 @@
}
}
&.bs-popover-right {
.bs-popover-right {
margin-left: $popover-arrow-height;
.arrow {
@ -89,7 +88,7 @@
}
}
&.bs-popover-bottom {
.bs-popover-bottom {
margin-top: $popover-arrow-height;
.arrow {
@ -124,7 +123,7 @@
}
}
&.bs-popover-left {
.bs-popover-left {
margin-right: $popover-arrow-height;
.arrow {
@ -149,7 +148,8 @@
border-left-color: $popover-arrow-color;
}
}
&.bs-popover-auto {
.bs-popover-auto {
&[x-placement^="top"] {
@extend .bs-popover-top;
}
@ -163,7 +163,6 @@
@extend .bs-popover-left;
}
}
}
// Offset the popover to account for the popover arrow