D
D
Dmitry Klimantovich2018-08-03 16:01:08
css
Dmitry Klimantovich, 2018-08-03 16:01:08

Why don't nested SCSS properties compile?

border: {
      width: 2px;
      style: solid;
      color: $secondary;
    }

Why doesn't compilation to .scss work for me?
Mistake:
Error: Invalid CSS after "		border:": expected expression (e.g. 1px, bold), was "}"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
y0u, 2018-08-03
@y0u

Nested properties must be inside the selector, sort of like

.classname {
  border: {
      width: 2px;
      style: solid;
      color: $secondary;
    }
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question