Qualitfying Based on Context

PHOTO EMBED

Sat Feb 22 2025 09:11:29 GMT+0000 (Coordinated Universal Time)

Saved by @Sebhart #color

.button {
  body.page-about & { }
}		
content_copyCOPY

We’re repositioning the parent selector exactly where we need it. This is really useful for qualifying a selector based on a different parent. This will compile to: body.page-about .button {} Meaning, select the button class only when a child of a body with a page-about class.