You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<divclass="m-200 m-400"><!-- Uses media min-width --><divclass="bp-200px"><!-- Controlled through JS --><divclass="m-200 m-400"><!-- Uses parent class --></div></div></div>
This saves you from having to duplicate the content within the mixin.
This should be an error, per the reference implementation:
Error: Base-level rules cannot contain the parent-selector-referencing character '&'.
on line 3 of standard input, in `mixin'
from line 10 of standard input
Normally, you get an error when you use an ampersand with no parents:
However, you don't get an error if you do the same thing within a mixin:
If this isn't a bug, I'd like to see the ampersand be a bit more useful:
should generate:
Or perhaps there's already a way to achieve the above result?
This would be useful in the following scenario:
This saves you from having to duplicate the content within the mixin.
The above scss would generate:
Live example of above
The text was updated successfully, but these errors were encountered: