M
M
Mikhail Vlasov2016-05-27 13:58:33
css
Mikhail Vlasov, 2016-05-27 13:58:33

Why does it give an error when compiling bam nesting with scss?

Hello. I can’t find the answer, I shoveled the toaster, github and stackoverflow. When compiling nesting, it throws an error.
The example is very simple. maybe I'm not doing it right?
.block{
&__main {
color: #000;
}
}
It seems that this worked in .sass, but not in .scss. Help me understand
Galp version - 3.9.0 Sass
version - 3.4.22
clip2net.com/s/3yxOqlo

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Davydov, 2016-05-27
@space_pancake

Because writing styles for sass is different from scss.
It should be like this:

.block
    &__main 
    color:  #000

That is, without brackets and semicolons.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question