Skip to content

Commit

Permalink
fixes drop left
Browse files Browse the repository at this point in the history
  • Loading branch information
andresgalante committed Oct 19, 2017
1 parent 28ea06d commit 0a5b7fc
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions scss/mixins/_caret.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,27 @@

@mixin caret($direction: down) {
@if $enable-caret {
@if $direction != left {
&::after {
display: inline-block;
width: 0;
height: 0;
margin-left: $caret-width * .85;
vertical-align: $caret-width * .85;
content: "";
@if $direction == down {
@include caret-down;
} @else if $direction == up {
@include caret-up;
} @else if $direction == right {
@include caret-right;
}
&::after {
display: inline-block;
width: 0;
height: 0;
margin-left: $caret-width * .85;
vertical-align: $caret-width * .85;
content: "";
@if $direction == down {
@include caret-down;
} @else if $direction == up {
@include caret-up;
} @else if $direction == right {
@include caret-right;
}
}

@if $direction == left {
&::after {
display: none;
}

&::before {
display: inline-block;
width: 0;
Expand Down

0 comments on commit 0a5b7fc

Please sign in to comment.