Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
account42
on July 27, 2022
|
parent
|
context
|
favorite
| on:
Help pick a syntax for CSS nesting
How does the SCSS syntax differentiate between `& .childclass` and `&.additionalclass` without the ampersand?
kevincox
on July 27, 2022
[–]
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: