matype / stylefmt

stylefmt is a tool that automatically formats stylesheets.
Other
2.1k stars 89 forks source link

Incorrect spacing before brackets #235

Open joaocunha opened 7 years ago

joaocunha commented 7 years ago

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;
    }
  }
}
nickensoul commented 5 years ago

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 &{