@import "bootstrap/variables"; .popover { // Offset the popover to account for the popover arrow &.bottomleft { margin-top: $popover-arrow-width; } &.bottomright { margin-top: $popover-arrow-width; } &.bottomleft > .arrow { left: 90%; margin-left: -$popover-arrow-outer-width; border-top-width: 0; border-bottom-color: $popover-arrow-outer-fallback-color; // IE8 fallback border-bottom-color: $popover-arrow-outer-color; top: -$popover-arrow-outer-width; &:after { content: " "; top: 1px; margin-left: -$popover-arrow-width; border-top-width: 0; border-bottom-color: $popover-arrow-color; } } &.bottomright > .arrow { left: 10%; margin-left: -$popover-arrow-outer-width; border-top-width: 0; border-bottom-color: $popover-arrow-outer-fallback-color; // IE8 fallback border-bottom-color: $popover-arrow-outer-color; top: -$popover-arrow-outer-width; &:after { content: " "; top: 1px; margin-left: -$popover-arrow-width; border-top-width: 0; border-bottom-color: $popover-arrow-color; } } }