mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-07 22:26:57 +02:00
Fix tooltip body placement with variation placements
This commit is contained in:
@@ -62,7 +62,7 @@ const Default = {
|
|||||||
delay: 0,
|
delay: 0,
|
||||||
fallbackPlacements: ['top', 'right', 'bottom', 'left'],
|
fallbackPlacements: ['top', 'right', 'bottom', 'left'],
|
||||||
html: false,
|
html: false,
|
||||||
offset: [0, 0],
|
offset: [0, 6],
|
||||||
placement: 'top',
|
placement: 'top',
|
||||||
popperConfig: null,
|
popperConfig: null,
|
||||||
sanitize: true,
|
sanitize: true,
|
||||||
|
@@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
z-index: var(--#{$prefix}tooltip-zindex);
|
z-index: var(--#{$prefix}tooltip-zindex);
|
||||||
display: block;
|
display: block;
|
||||||
padding: var(--#{$prefix}tooltip-arrow-height);
|
|
||||||
margin: var(--#{$prefix}tooltip-margin);
|
margin: var(--#{$prefix}tooltip-margin);
|
||||||
@include deprecate("`$tooltip-margin`", "v5", "v5.x", true);
|
@include deprecate("`$tooltip-margin`", "v5", "v5.x", true);
|
||||||
// Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.
|
// Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.
|
||||||
@@ -45,7 +44,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.bs-tooltip-top .tooltip-arrow {
|
.bs-tooltip-top .tooltip-arrow {
|
||||||
bottom: 0;
|
bottom: calc(-1 * var(--#{$prefix}tooltip-arrow-height)); // stylelint-disable-line function-disallowed-list
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
top: -1px;
|
top: -1px;
|
||||||
@@ -56,7 +55,7 @@
|
|||||||
|
|
||||||
/* rtl:begin:ignore */
|
/* rtl:begin:ignore */
|
||||||
.bs-tooltip-end .tooltip-arrow {
|
.bs-tooltip-end .tooltip-arrow {
|
||||||
left: 0;
|
left: calc(-1 * var(--#{$prefix}tooltip-arrow-height)); // stylelint-disable-line function-disallowed-list
|
||||||
width: var(--#{$prefix}tooltip-arrow-height);
|
width: var(--#{$prefix}tooltip-arrow-height);
|
||||||
height: var(--#{$prefix}tooltip-arrow-width);
|
height: var(--#{$prefix}tooltip-arrow-width);
|
||||||
|
|
||||||
@@ -70,7 +69,7 @@
|
|||||||
/* rtl:end:ignore */
|
/* rtl:end:ignore */
|
||||||
|
|
||||||
.bs-tooltip-bottom .tooltip-arrow {
|
.bs-tooltip-bottom .tooltip-arrow {
|
||||||
top: 0;
|
top: calc(-1 * var(--#{$prefix}tooltip-arrow-height)); // stylelint-disable-line function-disallowed-list
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
bottom: -1px;
|
bottom: -1px;
|
||||||
@@ -81,7 +80,7 @@
|
|||||||
|
|
||||||
/* rtl:begin:ignore */
|
/* rtl:begin:ignore */
|
||||||
.bs-tooltip-start .tooltip-arrow {
|
.bs-tooltip-start .tooltip-arrow {
|
||||||
right: 0;
|
right: calc(-1 * var(--#{$prefix}tooltip-arrow-height)); // stylelint-disable-line function-disallowed-list
|
||||||
width: var(--#{$prefix}tooltip-arrow-height);
|
width: var(--#{$prefix}tooltip-arrow-height);
|
||||||
height: var(--#{$prefix}tooltip-arrow-width);
|
height: var(--#{$prefix}tooltip-arrow-width);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user