1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-29 08:10:47 +02:00

Placement auto for popovers

This commit is contained in:
Johann-S
2017-05-24 14:09:36 +02:00
parent 2c72af88ee
commit 4c3b6c5ceb
3 changed files with 19 additions and 1 deletions

View File

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