CodeZettaInterview Hub

SCSS · Mixins · Junior · Live Coding

How do you pass content blocks into mixins?

Short Interview Answer

@content directive lets callers pass nested CSS into the mixin wrapper (e.g., media query mixins).

Detailed Explanation

Powerful for breakpoint mixins. Document whether content is wrapped or merged.

Example

@mixin mq($bp) { @media (min-width: $bp) { @content; } }

Did you know this answer?