1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-28 07:39:57 +02:00

Placement auto for tooltips

This commit is contained in:
Johann-S
2017-05-24 13:48:32 +02:00
parent 460ff235fa
commit 2c72af88ee
3 changed files with 18 additions and 0 deletions

View File

@@ -74,6 +74,20 @@
border-left-color: $tooltip-arrow-color;
}
}
&.bs-tooltip-auto {
&[x-placement^="top"] {
@extend .bs-tooltip-top;
}
&[x-placement^="right"] {
@extend .bs-tooltip-right;
}
&[x-placement^="bottom"] {
@extend .bs-tooltip-bottom;
}
&[x-placement^="left"] {
@extend .bs-tooltip-left;
}
}
.arrow::before {
position: absolute;