From bcf29f7dbc1a326ba6652d305eccd5cc75065dc9 Mon Sep 17 00:00:00 2001 From: David Brown Date: Sat, 6 Jul 2013 19:29:30 -0600 Subject: [PATCH] Update _pxToEm.scss Added a check for if the value 'auto' is passed to the function to deal with cases where auto is desired as an output. for example: margin: pxToEm(20px auto, 16px); would output -> margin: 1.25em auto; --- oocss/src/components/utils/_pxToEm.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oocss/src/components/utils/_pxToEm.scss b/oocss/src/components/utils/_pxToEm.scss index 6faa5531..255c1f99 100644 --- a/oocss/src/components/utils/_pxToEm.scss +++ b/oocss/src/components/utils/_pxToEm.scss @@ -15,7 +15,7 @@ $list: (); @each $value in $values { - @if ($value == 0) { + @if ($value == 0 or $value == auto) { $list: append($list, $value); } @else { $emValue: ($value/$elFontSize)+em;