In a scss file, I saw the below code snippet:
@mixin myMixin() {
:global(.rtl) & {
@content;
}
}
I understand the keywords @mixin
as well as @content
and tried to understand :global()
from this link:
What does :global (colon global) do?.
But I am not sure what "&" does here or what this whole mixin does.