-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when use css guards plus mixins seems not to be working #2566
Labels
Comments
Mixins defined in a ruleset are visible in that ruleset (and its children) only. And For your example the solution is as simple as: @enable-mint: true;
.label-mint when (@enable-mint = true) {
background-color: @mint-bg;
} If you can't modify "nifty.less" use .project-selector .project-name {
&:extend(.label, .label-mint);
font-size: 100%;
} For more details on why |
Thank you very much Max!, I understand now. |
Closing as "expected behaviour". |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My case:
app.less
nifty.less
When try to use the .label-mint as a mixin fails with the error:
I'm really lost, I'm using the mixin in a wrong way?
Thanks
The text was updated successfully, but these errors were encountered: