From 54664553a81f9144c83932d15fb6073e7c31c539 Mon Sep 17 00:00:00 2001 From: Pierre Burel Date: Wed, 16 Sep 2015 20:29:26 +0200 Subject: [PATCH] Function now return a number instead of a list if a single number is provided, fixes #4 --- _rem.scss | 2 +- bower.json | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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",