Closed getdave closed 10 years ago
the rem() mixin needs to be updated here
rem()
to be
// REMs - the ultimate REM mixin @mixin rem($property, $values) { $px : (); /* 3 */ $rem: (); /* 3 */ @each $value in $values { /* 4 */ @if $value == 0 or $value == auto { /* 5 */ $px : append($px , $value); $rem: append($rem, $value); } @else { $unit: unit($value); /* 6 */ $val: parseInt($value); /* 6 */ @if $unit == "px" { /* 7 */ $px : append($px, $value); $rem: append($rem, ($val / 16 + rem)); } @if $unit == "rem" { /* 7 */ $px : append($px, ($val * 16 + px)); $rem: append($rem, $value); } } } @if $px == $rem { /* 8 */ #{$property}: $px; /* 9 */ } @else { #{$property}: $px; /* 9 */ #{$property}: $rem; /* 9 */ } }
the
rem()
mixin needs to be updated hereto be