mirror of https://github.com/twbs/bootstrap.git
un-nest and un-chain popover classes
This commit is contained in:
parent
fa2cc20e92
commit
28fd9deb54
|
@ -27,20 +27,19 @@
|
||||||
width: $popover-arrow-width;
|
width: $popover-arrow-width;
|
||||||
height: $popover-arrow-height;
|
height: $popover-arrow-height;
|
||||||
margin: 0 $border-radius-lg;
|
margin: 0 $border-radius-lg;
|
||||||
}
|
|
||||||
|
|
||||||
.arrow::before,
|
&::before,
|
||||||
.arrow::after {
|
&::after {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
display: block;
|
display: block;
|
||||||
content: "";
|
content: "";
|
||||||
border-color: transparent;
|
border-color: transparent;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Popover directions
|
.bs-popover-top {
|
||||||
|
|
||||||
&.bs-popover-top {
|
|
||||||
margin-bottom: $popover-arrow-height;
|
margin-bottom: $popover-arrow-height;
|
||||||
|
|
||||||
.arrow {
|
.arrow {
|
||||||
|
@ -63,7 +62,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.bs-popover-right {
|
.bs-popover-right {
|
||||||
margin-left: $popover-arrow-height;
|
margin-left: $popover-arrow-height;
|
||||||
|
|
||||||
.arrow {
|
.arrow {
|
||||||
|
@ -89,7 +88,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.bs-popover-bottom {
|
.bs-popover-bottom {
|
||||||
margin-top: $popover-arrow-height;
|
margin-top: $popover-arrow-height;
|
||||||
|
|
||||||
.arrow {
|
.arrow {
|
||||||
|
@ -124,7 +123,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.bs-popover-left {
|
.bs-popover-left {
|
||||||
margin-right: $popover-arrow-height;
|
margin-right: $popover-arrow-height;
|
||||||
|
|
||||||
.arrow {
|
.arrow {
|
||||||
|
@ -149,7 +148,8 @@
|
||||||
border-left-color: $popover-arrow-color;
|
border-left-color: $popover-arrow-color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
&.bs-popover-auto {
|
|
||||||
|
.bs-popover-auto {
|
||||||
&[x-placement^="top"] {
|
&[x-placement^="top"] {
|
||||||
@extend .bs-popover-top;
|
@extend .bs-popover-top;
|
||||||
}
|
}
|
||||||
|
@ -163,7 +163,6 @@
|
||||||
@extend .bs-popover-left;
|
@extend .bs-popover-left;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Offset the popover to account for the popover arrow
|
// Offset the popover to account for the popover arrow
|
||||||
|
|
Loading…
Reference in New Issue