Skip to content

Commit

Permalink
Updated position addon to support values of auto.
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil LaPier committed May 10, 2012
1 parent b301698 commit d5727d5
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions app/assets/stylesheets/addons/_position.scss
Expand Up @@ -12,19 +12,31 @@

position: $position;

@if not(unitless($top)) {
@if $top == auto {
top: $top;
}
@else if not(unitless($top)) {
top: $top;
}

@if not(unitless($right)) {
@if $right == auto {
right: $right;
}
@else if not(unitless($right)) {
right: $right;
}

@if not(unitless($bottom)) {
@if $bottom == auto {
bottom: $bottom;
}
@else if not(unitless($bottom)) {
bottom: $bottom;
}

@if not(unitless($left)) {
@if $left == auto {
left: $left;
}
@else if not(unitless($left)) {
left: $left;
}
}

0 comments on commit d5727d5

Please sign in to comment.