Skip to content

Commit

Permalink
Update _pxToEm.scss
Browse files Browse the repository at this point in the history
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;
  • Loading branch information
MrFjords committed Jul 7, 2013
1 parent 748c194 commit bcf29f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oocss/src/components/utils/_pxToEm.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bcf29f7

Please sign in to comment.