I’m going over a tutorial discussing a SASS grid system – no need to discuss the pros and cons of a grid system here. I am new to Sass. It generally seems straight forward but there’s some aspects of the syntax I may not understand.
I came across this:
.@{row-notation} {
padding: 0 1em;
...
I excluded the rest. What does the .@ mean syntactically? Is it some kind of interpolation? Or perhaps a typo? I’m referring to the official Sass site and a book and I can’t find anything referring to that.
If you do a cmd/ctrl+f for “.@{row-notation}” you’ll find it.
I have tried it although my error does not clearly point to that, or at least my understanding of the error. Additionally I’m so new that I am a bit uncertain.
First off, this is LESS not SASS. They are different languages. SASS variables start with $ instead of @. There are a few other nuances, but honestly this is the biggest.
This is probably why you’re getting an ERROR.
@row-notation: "row";
it means .row. The first . is nothing special. The @ is the variable. Wrapping it in @{ } tells the compiler that the variable is between the brackets, otherwise you’ll get a compile error.