aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Tape <[email protected]>2018-11-30 14:29:31 -0600
committerMark Otto <[email protected]>2018-12-21 13:54:29 -0800
commit9d3930b6dd9232c1a5d8b900c601e2424835f75b (patch)
treecaaacfb0c87e4c1f21e2fec20f06ee93d63fff0f
parentf6abb4976fe69b2e8c8b9ef4307dc2d4b720a33a (diff)
downloadbootstrap-9d3930b6dd9232c1a5d8b900c601e2424835f75b.tar.xz
bootstrap-9d3930b6dd9232c1a5d8b900c601e2424835f75b.zip
Apply arrow styles to direct descendants of bootstrap popover classes
With the current styles, it is not possible to nest a popover inside of another popover if they have different placements because the arrow styles of the parent popover will conflict with the arrow styles of the child popover.
-rw-r--r--scss/_popover.scss40
1 files changed, 20 insertions, 20 deletions
diff --git a/scss/_popover.scss b/scss/_popover.scss
index 4a79fb751..e9a1ea857 100644
--- a/scss/_popover.scss
+++ b/scss/_popover.scss
@@ -38,21 +38,21 @@
.bs-popover-top {
margin-bottom: $popover-arrow-height;
- .arrow {
+ > .arrow {
bottom: calc((#{$popover-arrow-height} + #{$popover-border-width}) * -1);
}
- .arrow::before,
- .arrow::after {
+ > .arrow::before,
+ > .arrow::after {
border-width: $popover-arrow-height ($popover-arrow-width / 2) 0;
}
- .arrow::before {
+ > .arrow::before {
bottom: 0;
border-top-color: $popover-arrow-outer-color;
}
- .arrow::after {
+ > .arrow::after {
bottom: $popover-border-width;
border-top-color: $popover-arrow-color;
}
@@ -61,24 +61,24 @@
.bs-popover-right {
margin-left: $popover-arrow-height;
- .arrow {
+ > .arrow {
left: calc((#{$popover-arrow-height} + #{$popover-border-width}) * -1);
width: $popover-arrow-height;
height: $popover-arrow-width;
margin: $border-radius-lg 0; // make sure the arrow does not touch the popover's rounded corners
}
- .arrow::before,
- .arrow::after {
+ > .arrow::before,
+ > .arrow::after {
border-width: ($popover-arrow-width / 2) $popover-arrow-height ($popover-arrow-width / 2) 0;
}
- .arrow::before {
+ > .arrow::before {
left: 0;
border-right-color: $popover-arrow-outer-color;
}
- .arrow::after {
+ > .arrow::after {
left: $popover-border-width;
border-right-color: $popover-arrow-color;
}
@@ -87,21 +87,21 @@
.bs-popover-bottom {
margin-top: $popover-arrow-height;
- .arrow {
+ > .arrow {
top: calc((#{$popover-arrow-height} + #{$popover-border-width}) * -1);
}
- .arrow::before,
- .arrow::after {
+ > .arrow::before,
+ > .arrow::after {
border-width: 0 ($popover-arrow-width / 2) $popover-arrow-height ($popover-arrow-width / 2);
}
- .arrow::before {
+ > .arrow::before {
top: 0;
border-bottom-color: $popover-arrow-outer-color;
}
- .arrow::after {
+ > .arrow::after {
top: $popover-border-width;
border-bottom-color: $popover-arrow-color;
}
@@ -122,24 +122,24 @@
.bs-popover-left {
margin-right: $popover-arrow-height;
- .arrow {
+ > .arrow {
right: calc((#{$popover-arrow-height} + #{$popover-border-width}) * -1);
width: $popover-arrow-height;
height: $popover-arrow-width;
margin: $border-radius-lg 0; // make sure the arrow does not touch the popover's rounded corners
}
- .arrow::before,
- .arrow::after {
+ > .arrow::before,
+ > .arrow::after {
border-width: ($popover-arrow-width / 2) 0 ($popover-arrow-width / 2) $popover-arrow-height;
}
- .arrow::before {
+ > .arrow::before {
right: 0;
border-left-color: $popover-arrow-outer-color;
}
- .arrow::after {
+ > .arrow::after {
right: $popover-border-width;
border-left-color: $popover-arrow-color;
}