diff --git a/_rem.scss b/_rem.scss index 7395810..e50e86f 100644 --- a/_rem.scss +++ b/_rem.scss @@ -36,7 +36,7 @@ $rem-px-only: false !default; } } - @return $result; + @return if(length($result) == 1, nth($result, 1), $result); } @function rem($values...) { diff --git a/bower.json b/bower.json index 3b854d9..a64aaef 100644 --- a/bower.json +++ b/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": [ diff --git a/package.json b/package.json index 14c4719..5a37410 100644 --- a/package.json +++ b/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",