Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird parenthess indentation #25

Open
PythonNut opened this issue Feb 15, 2014 · 4 comments
Open

Weird parenthess indentation #25

PythonNut opened this issue Feb 15, 2014 · 4 comments

Comments

@PythonNut
Copy link

scss-mode indents parentheses like this:

a {
  background: linear-gradient(to bottom,
                              red,
                              blue
                             );
}

Which is very strange.

a {
  background: linear-gradient(to bottom,
    red,
    blue
  );
}

Is more inline with general SCSS style (and coding styles that I see in the wild).

@Silex
Copy link

Silex commented Oct 9, 2014

it also indents this wrongly (the &:hover part):

.navbar-default
{
  background-color: $bgDefault;
  border-color: $bgHighlight;

  .navbar-brand
  {
    line-height: 50px;
    padding: 0;
    color: $colDefault;

    &:hover, &:focus
                 {
                   color: $colHighlight;
                 }
  }
}

Probably related to #23

@Silex
Copy link

Silex commented Feb 20, 2015

I discovered this comes from css-mode and only happens when { is on a line of its own.

@art-solopov
Copy link

@Silex I have this even when the bracket is on the previous line:

svg .node {

  a:hover, a:focus {
             text-decoration: none;
  }
}

@Mrngilles
Copy link

Same issue for me as @art-solopov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants