Skip to content

Commit

Permalink
Fix x-rem mixin to work with libsass
Browse files Browse the repository at this point in the history
Closes #28.
Closes #29.
  • Loading branch information
anselmh authored and drublic committed Jan 11, 2014
1 parent 6b6485e commit e369bc1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

### HEAD

* Fix `x-rem` mixin to work with libsass (#28)
* Remove -ms-filter for opacity mixin

### 0.7.0 - 19.12.2013
Expand Down
2 changes: 1 addition & 1 deletion mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@
@each $value in $values {
// If the value is zero, return 0
@if $value == 0 or type_of($value) != number {
@if ( $value == 0 ) or type_of($value) == string or type_of($value) == color or type_of($value) == bool {
$px-values: append($px-values, $value);
$rem-values: append($rem-values, $value);
Expand Down
2 changes: 1 addition & 1 deletion partials/_rem.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
@each $value in $values {

// If the value is zero, return 0
@if $value == 0 or type_of($value) != number {
@if ( $value == 0 ) or type_of($value) == string or type_of($value) == color or type_of($value) == bool {
$px-values: append($px-values, $value);
$rem-values: append($rem-values, $value);

Expand Down

0 comments on commit e369bc1

Please sign in to comment.