Hacker News new | past | comments | ask | show | jobs | submit login

How does the SCSS syntax differentiate between `& .childclass` and `&.additionalclass` without the ampersand?



It 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.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: