5 z-index: $zindex-popover;
7 max-width: $popover-max-width;
8 padding: $popover-inner-padding;
9 // Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.
10 // So reset our font and text properties to avoid inheriting weird values.
11 @include reset-text();
12 font-size: $font-size-sm;
13 // Allow breaking very long words so they don't overflow the popover's bounds
14 word-wrap: break-word;
15 background-color: $popover-bg;
16 background-clip: padding-box;
17 border: $popover-border-width solid $popover-border-color;
18 @include border-radius($border-radius-lg);
19 @include box-shadow($popover-box-shadow);
25 &.bs-tether-element-attached-bottom {
26 margin-top: -$popover-arrow-width;
31 border-bottom-width: 0;
35 bottom: -$popover-arrow-outer-width;
36 margin-left: -$popover-arrow-outer-width;
37 border-top-color: $popover-arrow-outer-color;
41 bottom: -($popover-arrow-outer-width - 1);
42 margin-left: -$popover-arrow-width;
43 border-top-color: $popover-arrow-color;
48 &.bs-tether-element-attached-left {
49 margin-left: $popover-arrow-width;
58 left: -$popover-arrow-outer-width;
59 margin-top: -$popover-arrow-outer-width;
60 border-right-color: $popover-arrow-outer-color;
64 left: -($popover-arrow-outer-width - 1);
65 margin-top: -($popover-arrow-outer-width - 1);
66 border-right-color: $popover-arrow-color;
71 &.bs-tether-element-attached-top {
72 margin-top: $popover-arrow-width;
81 top: -$popover-arrow-outer-width;
82 margin-left: -$popover-arrow-outer-width;
83 border-bottom-color: $popover-arrow-outer-color;
87 top: -($popover-arrow-outer-width - 1);
88 margin-left: -$popover-arrow-width;
89 border-bottom-color: $popover-title-bg;
92 // This will remove the popover-title's border just below the arrow
93 .popover-title::before {
101 border-bottom: 1px solid $popover-title-bg;
106 &.bs-tether-element-attached-right {
107 margin-left: -$popover-arrow-width;
112 border-right-width: 0;
116 right: -$popover-arrow-outer-width;
117 margin-top: -$popover-arrow-outer-width;
118 border-left-color: $popover-arrow-outer-color;
122 right: -($popover-arrow-outer-width - 1);
123 margin-top: -($popover-arrow-outer-width - 1);
124 border-left-color: $popover-arrow-color;
130 // Offset the popover to account for the popover arrow
132 padding: $popover-title-padding-y $popover-title-padding-x;
133 margin-bottom: 0; // Reset the default from Reboot
134 font-size: $font-size-base;
135 background-color: $popover-title-bg;
136 border-bottom: $popover-border-width solid darken($popover-title-bg, 5%);
137 $offset-border-width: calc(#{$border-radius-lg} - #{$popover-border-width});
138 @include border-top-radius($offset-border-width);
146 padding: $popover-content-padding-y $popover-content-padding-x;
152 // .popover-arrow is outer, .popover-arrow::after is inner
160 border-color: transparent;
166 border-width: $popover-arrow-outer-width;
170 border-width: $popover-arrow-width;