Skip to content

Commit

Permalink
Function now return a number instead of a list if a single number is …
Browse files Browse the repository at this point in the history
…provided, fixes #4
  • Loading branch information
pierreburel committed Sep 16, 2015
1 parent bde7e08 commit 5466455
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _rem.scss
Expand Up @@ -36,7 +36,7 @@ $rem-px-only: false !default;
}
}

@return $result;
@return if(length($result) == 1, nth($result, 1), $result);
}

@function rem($values...) {
Expand Down
2 changes: 1 addition & 1 deletion bower.json
@@ -1,7 +1,7 @@
{
"name": "sass-rem",
"description": "Sass mixin and function to use rem units with pixel fallback.",
"version": "1.2.1",
"version": "1.2.2",
"homepage": "https://github.com/pierreburel/sass-rem",
"main": "_rem.scss",
"authors": [
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "sass-rem",
"version": "1.2.1",
"version": "1.2.2",
"description": "Sass mixin and function to use rem units with pixel fallback.",
"keywords": [
"sass",
Expand Down

0 comments on commit 5466455

Please sign in to comment.