tentcss
tentcss copied to clipboard
Correctly adding unit to number [tentcss/src/02_tools/_scaling.scss]
Currently rem and em functions are returning a string, because the unit is incorrectly appended. See: https://css-tricks.com/snippets/sass/correctly-adding-unit-number/
https://github.com/sitetent/tentcss/blob/bac3d003a7c45a5b8be59bef50328e50bd99256c/src/02_tools/_scaling.scss#L15-L17
$return: append($return, ($val / $root + rem));
} @else {
$return: append($return, ($val * $root + px));
https://github.com/sitetent/tentcss/blob/bac3d003a7c45a5b8be59bef50328e50bd99256c/src/02_tools/_scaling.scss#L29-L31
$return: append($return, ($val / $root + em));
} @else {
$return: append($return, ($val * $root + px));
It looks like newer versions of Node Sass are breaking this. I'll be looking into doing a refactor for the current version of Tent to address this.