Skip to content

Commit

Permalink
Check if mixin is being used in offcanvas
Browse files Browse the repository at this point in the history
  • Loading branch information
winghouchan committed May 3, 2014
1 parent a9d9b5f commit ecbf187
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions scss/foundation/components/_global.scss
Expand Up @@ -128,20 +128,21 @@ $base-line-height: 150% !default;
display: block;
height: 0;

@if $top {
top: $top;
@if $offcanvas {
@if $top {
top: $top;
}
@else {
top: ($width - rem-calc(3 * $thickness) - rem-calc(2 * $gap))/2;
}
// disable width centering if $top is not false
@if $left {
left: $left;
}
@else {
left: ($tabbar-menu-icon-width - $width)/2;
}
}
@else {
top: ($width - rem-calc(3 * $thickness) - rem-calc(2 * $gap))/2;
}
// disable width centering if $top is not false
@if $left {
left: $left;
}
@else {
left: 0;
}

box-shadow:
0 0px 0 $thickness $color,
0 $gap + $thickness 0 $thickness $color,
Expand Down

0 comments on commit ecbf187

Please sign in to comment.