V
V
Vladimir Kulikov2020-12-01 20:20:22
Sass
Vladimir Kulikov, 2020-12-01 20:20:22

Why doesn't nesting selectors work in sass?

Hello, why doesn't class nesting work?

Tried to do it differently.

Tried like this:

Nesting with parentheses as in the examples

.taskbar {
  	background-color: #101010
    
    li {
        width: 100px
    }
}

Выдает ошибку: messageOriginal: Invalid CSS after ".taskbar {": expected "}", was "{"


So:
Without brackets


.taskbar 
  	background-color: #101010
    li 
        width: 100px

Выдает ошибку: Illegal nesting: Only properties may be nested beneath properties.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question