Skip to content

Commit

Permalink
LibSass 3.5 compatibility, fixes #10
Browse files Browse the repository at this point in the history
  • Loading branch information
pierreburel committed Mar 12, 2018
1 parent 9d1cae4 commit f76c998
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions _rem.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ $rem-px-only: false !default;

@each $value in $values {
@if type-of($value) == "number" and unit($value) == "rem" and $to == "px" {
$result: append($result, $value / 1rem * $rem-baseline + 0px, $separator);
$result: append($result, $value / 1rem * $rem-baseline, $separator);
} @else if type-of($value) == "number" and unit($value) == "px" and $to == "rem" {
$result: append($result, $value / $rem-baseline + 0rem, $separator);
$result: append($result, $value / $rem-baseline * 1rem, $separator);
} @else if type-of($value) == "list" {
$value-separator: rem-separator($value);
$value: rem-convert($to, $value...);
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "sass-rem",
"description": "Sass function and mixin to use rem units with optional pixel fallback.",
"version": "2.0.0",
"version": "2.0.1",
"homepage": "https://github.com/pierreburel/sass-rem",
"main": "_rem.scss",
"authors": [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sass-rem",
"version": "2.0.0",
"version": "2.0.1",
"description": "Sass function and mixin to use rem units with optional pixel fallback.",
"keywords": [
"sass",
Expand Down

0 comments on commit f76c998

Please sign in to comment.