3 ms·
How does the SCSS syntax differentiate between `& .childclass` and `&.additionalclass` without the ampersand?
by account42 4y ago
How does the SCSS syntax differentiate between `& .childclass` and `&.additionalclass` without the ampersand?
- kevincox 4y agoIt doesn't. If there is no ampersand it is assumed to start with `& `. So `.childclass` is equivelent to `& .childclass` and if you want something else you need to do `&.additionalclass` or `& + .additionalclass` or whatever you want.