stylefmt
stylefmt copied to clipboard
Incorrect spacing before brackets
Stylefmt is removing the spaces between the closing parenthesis and opening brackets ( ){
) in this snippet:
.m-members-list--responsive {
margin-right: bm(-2);
.m-members-list__line-item {
@include media($tablet--only){
@include columns--two;
}
@include media($desktop-small--only){
@include columns--two;
}
@include media($desktop-medium--only){
@include columns--two;
}
@include media($desktop-large--up){
@include columns--three;
}
}
}
A similar error occurs in the case of SCSS syntax. I'm using sublime-stylefmt.
It removes space (&{
) and adds line break before @at-root
:
Before:
max-height: 700px;
@at-root .tab-side & {
After:
max-height: 700px;
@at-root .tab-side &{