Edited by @nex3 to change the title.
[cross-posted from http://stackoverflow.com/questions/8248976/sass-indented-syntax-on-multiple-lines]
I love indented syntax, I think it's much cleaner.
There's one issue I have with it. If I have a really long mixin declaration, there's no way to split it into multiple lines (obeying the 80 character limit, for example)
Take this example, first written in SCSS.
@mixin col($cols, $mleft: 0, $mright: 0, $include-margin: false, $border: 0,
$pleft: 0, $pright: 0, $include-padding: true, $extra: 0,
$clear: false, $lead: true, $container: false) {
color: red;
display: block;
}
I'm able to split up one long declaration in to multiple lines. With the indented syntax, I don't think there's a way. I have to put the declaration on one line, which is way less readable.
@mixin col($cols, $mleft: 0, $mright: 0, $include-margin: false, $border: 0, $pleft: 0, $pright: 0, $include-padding: true, $extra: 0, $clear: false, $lead: true, $container: false)
color: red
display: block
Is there some way I don't know of? And if not, can there be one? :)
Edited by @nex3 to change the title.
[cross-posted from http://stackoverflow.com/questions/8248976/sass-indented-syntax-on-multiple-lines]
I love indented syntax, I think it's much cleaner.
There's one issue I have with it. If I have a really long mixin declaration, there's no way to split it into multiple lines (obeying the 80 character limit, for example)
Take this example, first written in SCSS.
I'm able to split up one long declaration in to multiple lines. With the indented syntax, I don't think there's a way. I have to put the declaration on one line, which is way less readable.
Is there some way I don't know of? And if not, can there be one? :)