Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Commit

Permalink
Update position add on to utilize false/null rather than unitless zer…
Browse files Browse the repository at this point in the history
…o values.
  • Loading branch information
David Calhoun committed Feb 4, 2014
1 parent 44611cb commit 49c9379
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/assets/stylesheets/addons/_position.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@mixin position ($position: relative, $coordinates: 0 0 0 0) {
@mixin position ($position: relative, $coordinates: null null null null) {

@if type-of($position) == list {
$coordinates: $position;
Expand All @@ -14,19 +14,19 @@

position: $position;

@if ($top and $top == auto) or (type-of($top) == number and not unitless($top)) {
@if ($top and $top == auto) or (type-of($top) == number) {
top: $top;
}

@if ($right and $right == auto) or (type-of($right) == number and not unitless($right)) {
@if ($right and $right == auto) or (type-of($right) == number) {
right: $right;
}

@if ($bottom and $bottom == auto) or (type-of($bottom) == number and not unitless($bottom)) {
@if ($bottom and $bottom == auto) or (type-of($bottom) == number) {
bottom: $bottom;
}

@if ($left and $left == auto) or (type-of($left) == number and not unitless($left)) {
@if ($left and $left == auto) or (type-of($left) == number) {
left: $left;
}
}

0 comments on commit 49c9379

Please sign in to comment.