...
You can create your own functions and use it within your files. Just make sure that its name does not conflict with the evolution of Sass and Compass.
SCSS example:
Code Block |
---|
$grid-width: 40px;
$gutter-width: 10px;
@function grid-width($n) {
@return $n * $grid-width + ($n - 1) * $gutter-width;
}
#sidebar {width: grid-width(5);} |
CSS result:
Code Block |
---|
#sidebar {width: 240px;} |