Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Customizing the formatting output of .sass?

Tags:

#foo { color:black; } 

Is there some sort of option to prefix a newline before the trailing } when a .css file is generated from .sass?

I would appreciate it if someone included an example of combining sass --watch style.scss:style.css, which is what I'm using, along with this newline requirement.

like image 719
meder omuraliev Avatar asked Jul 01 '10 19:07

meder omuraliev


2 Answers

You can pass a --style parameter to specify what you want. I think you want the "expanded" style:

sass --watch style.scss:style.css --style expanded 

See the Sass documentation for different output styles.

like image 71
Andrew Vit Avatar answered Dec 23 '22 19:12

Andrew Vit


You can set the style to expanded: http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#output_style

like image 22
igorw Avatar answered Dec 23 '22 19:12

igorw