scss-mode
scss-mode copied to clipboard
Weird parenthess indentation
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).
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
I discovered this comes from css-mode and only happens when {
is on a line of its own.
@Silex I have this even when the bracket is on the previous line:
svg .node {
a:hover, a:focus {
text-decoration: none;
}
}
Same issue for me as @art-solopov