Merge pull request #316 from astagi/feature/popoverarrowheight

Add arrow-height parameter to popover mixin and fix height in points per role
stable
Xaviju 2015-02-04 08:07:41 +01:00
commit 92513cbc5a
2 changed files with 4 additions and 4 deletions

View File

@ -31,7 +31,7 @@
background: rgba($red, $green, $blue, $opacity);
}
@mixin popover($width, $top: '', $left: '', $bottom: '', $right: '', $arrow-width: 0, $arrow-top: '', $arrow-left: '', $arrow-bottom: '') {
@mixin popover($width, $top: '', $left: '', $bottom: '', $right: '', $arrow-width: 0, $arrow-top: '', $arrow-left: '', $arrow-bottom: '', $arrow-height: 15px) {
@extend %text;
background: $blackish;
bottom: #{$bottom};
@ -67,7 +67,7 @@
background: $blackish;
bottom: #{$arrow-bottom};
content: '';
height: 15px;
height: #{$arrow-height};
left: #{$arrow-left};
position: absolute;
top: #{$arrow-top};

View File

@ -305,7 +305,7 @@
text-align: center;
}
.popover {
@include popover(200px, $top: 105%, $left: 35%, $arrow-width: 10px, $arrow-top: -5px, $arrow-left: 10px);
@include popover(200px, $top: 105%, $left: 35%, $arrow-width: 10px, $arrow-top: -5px, $arrow-left: 10px, $arrow-height: 10px);
li {
display: inline-block;
width: 23%;
@ -320,7 +320,7 @@
}
}
&.fix {
@include popover(200px, $top: 105%, $left: -160px, $arrow-width: 10px, $arrow-top: -5px, $arrow-left: 90%);
@include popover(200px, $top: 105%, $left: -160px, $arrow-width: 10px, $arrow-top: -5px, $arrow-left: 90%, $arrow-height: 10px);
}
}
}