Fix tooltip margin to be stick at their caller
This commit is contained in:
parent
cc455c16c3
commit
2b403819b7
2 changed files with 2 additions and 5 deletions
|
|
@ -3,6 +3,7 @@
|
|||
position: absolute;
|
||||
z-index: $zindex-tooltip;
|
||||
display: block;
|
||||
margin: $tooltip-margin;
|
||||
// Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.
|
||||
// So reset our font and text properties to avoid inheriting weird values.
|
||||
@include reset-text();
|
||||
|
|
@ -15,7 +16,6 @@
|
|||
|
||||
&.bs-tooltip-top {
|
||||
padding: $tooltip-arrow-width 0;
|
||||
margin-top: -$tooltip-margin;
|
||||
|
||||
.arrow::before {
|
||||
bottom: 0;
|
||||
|
|
@ -28,7 +28,6 @@
|
|||
}
|
||||
&.bs-tooltip-right {
|
||||
padding: 0 $tooltip-arrow-width;
|
||||
margin-left: $tooltip-margin;
|
||||
|
||||
.arrow::before {
|
||||
top: 50%;
|
||||
|
|
@ -41,7 +40,6 @@
|
|||
}
|
||||
&.bs-tooltip-bottom {
|
||||
padding: $tooltip-arrow-width 0;
|
||||
margin-top: $tooltip-margin;
|
||||
|
||||
.arrow::before {
|
||||
top: 0;
|
||||
|
|
@ -54,7 +52,6 @@
|
|||
}
|
||||
&.bs-tooltip-left {
|
||||
padding: 0 $tooltip-arrow-width;
|
||||
margin-left: -$tooltip-margin;
|
||||
|
||||
.arrow::before {
|
||||
top: 50%;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue