For some reason, I can never get simple math functions right in SASS. I have a situation where I want to add twice the width of the gutter to the width that I already defined elsewhere. Both are widths in EMS, but it seems that the addition I am doing treats them like strings. Here are some things I've tried:
$width: 18.75em;
$grid-spacing: 2em;
.column { margin-right: $width + $grid-spacing*2; }
Results in .column { margin-right: 18.75em2em; }
.column { margin-right: $width + ($grid-spacing*2); }
Results in .column { margin-right: 18.75em2em; }
.column { margin-right: $width + #{$grid-spacing*2}; }
Results in .column { margin-right: 18.75em + 2em; }
.column { margin-right: #{$width + #{$grid-spacing*2} };
Results in .column { margin-right: 18.75em + 2em; }
.column { margin-right:
Results in .column { margin-right: 18.75em + 2em; }
? SASS Github , . , , , + , , , , , , .
?