-
Notifications
You must be signed in to change notification settings - Fork 451
Closed
Milestone
Description
It would be great to have an option that would allow for single-line declarations, when there is a single property. I'm indifferent to whether it would also include support for multiple (comma delimited) selectors, or just a single one, but it is nice for reading when there aren't multiple properties.
By extension, this would conditionally adjust the behavior of space-before-opening-brace and space-before-closing-brace, and whatever other line wrapping behavior takes place.
I'm using this in conjunction with scss-lint and I like how the linter has certain logic for various options to allow for single line rulesets.
Single line properties as an exception:
.icon-chevron-up { &:before { content: "\e030"; } }
.icon-chevron-down { &:before { content: "\e031"; } }
.icon-chevron-left { &:before { content: "\e032"; } }
.icon-chevron-right { &:before { content: "\e033"; } }
and standard formatting for multi-line declaration blocks:
p {
margin: 0;
padding: 0;
}
sutter, sergiofontes, rafaellyra, Yuhiro, jakobrosenberg and 4 more