1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-20 12:21:35 +02:00

Update to popper.js v2.x

This commit is contained in:
Johann-S
2020-06-19 11:17:01 +03:00
committed by XhmikosR
parent 5f89ea3a0f
commit adfdf7160b
26 changed files with 145 additions and 297 deletions

View File

@@ -36,7 +36,7 @@
bottom: 0;
&::before {
top: 0;
top: -1px;
border-width: $tooltip-arrow-height ($tooltip-arrow-width / 2) 0;
border-top-color: $tooltip-arrow-color;
}
@@ -52,7 +52,7 @@
height: $tooltip-arrow-width;
&::before {
right: 0 #{"/* rtl:ignore */"};
right: -1px #{"/* rtl:ignore */"};
border-width: ($tooltip-arrow-width / 2) $tooltip-arrow-height ($tooltip-arrow-width / 2) 0 #{"/* rtl:ignore */"};
border-right-color: $tooltip-arrow-color #{"/* rtl:ignore */"};
}
@@ -66,7 +66,7 @@
top: 0;
&::before {
bottom: 0;
bottom: -1px;
border-width: 0 ($tooltip-arrow-width / 2) $tooltip-arrow-height;
border-bottom-color: $tooltip-arrow-color;
}
@@ -82,7 +82,7 @@
height: $tooltip-arrow-width;
&::before {
left: 0 #{"/* rtl:ignore */"};
left: -1px #{"/* rtl:ignore */"};
border-width: ($tooltip-arrow-width / 2) 0 ($tooltip-arrow-width / 2) $tooltip-arrow-height #{"/* rtl:ignore */"};
border-left-color: $tooltip-arrow-color #{"/* rtl:ignore */"};
}
@@ -90,16 +90,16 @@
}
.bs-tooltip-auto {
&[x-placement^="top"] {
&[data-popper-placement^="top"] {
@extend .bs-tooltip-top;
}
&[x-placement^="right"] {
&[data-popper-placement^="right"] {
@extend .bs-tooltip-end;
}
&[x-placement^="bottom"] {
&[data-popper-placement^="bottom"] {
@extend .bs-tooltip-bottom;
}
&[x-placement^="left"] {
&[data-popper-placement^="left"] {
@extend .bs-tooltip-start;
}
}