]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Apply arrow styles to direct descendants of bootstrap popover classes
authorSam Tape <sam.tape@wheniwork.com>
Fri, 30 Nov 2018 20:29:31 +0000 (14:29 -0600)
committerMark Otto <otto@github.com>
Fri, 21 Dec 2018 21:54:29 +0000 (13:54 -0800)
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.

scss/_popover.scss

index 4a79fb7517efc2f468360139ece78ac5adb616de..e9a1ea8575487edb4a991a68a64923bcc2509c0c 100644 (file)
 .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;
   }
 .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;
   }
 .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;
   }
 .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;
   }