diff options
| author | Johann-S <[email protected]> | 2017-05-24 13:48:32 +0200 |
|---|---|---|
| committer | Johann-S <[email protected]> | 2017-05-24 14:57:40 +0200 |
| commit | 2c72af88ee177758f67bc7797b95f7dfc95f701b (patch) | |
| tree | 858f16deafe3c1358e48a92ac12f03c9d943aa4a /scss | |
| parent | 460ff235fa26834b35a99c1b71dd67cd6835e88a (diff) | |
| download | bootstrap-2c72af88ee177758f67bc7797b95f7dfc95f701b.tar.xz bootstrap-2c72af88ee177758f67bc7797b95f7dfc95f701b.zip | |
Placement auto for tooltips
Diffstat (limited to 'scss')
| -rw-r--r-- | scss/_tooltip.scss | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scss/_tooltip.scss b/scss/_tooltip.scss index c62ce9779..fe97fbbbd 100644 --- a/scss/_tooltip.scss +++ b/scss/_tooltip.scss @@ -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; |
