4 z-index: $zindex-tooltip;
6 // Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.
7 // So reset our font and text properties to avoid inheriting weird values.
9 font-size: $font-size-sm;
10 // Allow breaking very long words so they don't overflow the tooltip's bounds
11 word-wrap: break-word;
14 &.show { opacity: $tooltip-opacity; }
17 &.bs-tether-element-attached-bottom {
18 padding: $tooltip-arrow-width 0;
19 margin-top: -$tooltip-margin;
21 .tooltip-inner::before {
24 margin-left: -$tooltip-arrow-width;
26 border-width: $tooltip-arrow-width $tooltip-arrow-width 0;
27 border-top-color: $tooltip-arrow-color;
31 &.bs-tether-element-attached-left {
32 padding: 0 $tooltip-arrow-width;
33 margin-left: $tooltip-margin;
35 .tooltip-inner::before {
38 margin-top: -$tooltip-arrow-width;
40 border-width: $tooltip-arrow-width $tooltip-arrow-width $tooltip-arrow-width 0;
41 border-right-color: $tooltip-arrow-color;
45 &.bs-tether-element-attached-top {
46 padding: $tooltip-arrow-width 0;
47 margin-top: $tooltip-margin;
49 .tooltip-inner::before {
52 margin-left: -$tooltip-arrow-width;
54 border-width: 0 $tooltip-arrow-width $tooltip-arrow-width;
55 border-bottom-color: $tooltip-arrow-color;
59 &.bs-tether-element-attached-right {
60 padding: 0 $tooltip-arrow-width;
61 margin-left: -$tooltip-margin;
63 .tooltip-inner::before {
66 margin-top: -$tooltip-arrow-width;
68 border-width: $tooltip-arrow-width 0 $tooltip-arrow-width $tooltip-arrow-width;
69 border-left-color: $tooltip-arrow-color;
74 // Wrapper for the tooltip content
76 max-width: $tooltip-max-width;
77 padding: $tooltip-padding-y $tooltip-padding-x;
78 color: $tooltip-color;
80 background-color: $tooltip-bg;
81 @include border-radius($border-radius);
87 border-color: transparent;