Skip to content
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

@_ parametric condition not functional #8

Open
succinct opened this issue Apr 17, 2012 · 0 comments
Open

@_ parametric condition not functional #8

succinct opened this issue Apr 17, 2012 · 0 comments

Comments

@succinct
Copy link

According to the LESS documentation, the following is allowable:

.mixin (dark, @color) {
color: darken(@color, 10%);
}
.mixin (light, @color) {
color: lighten(@color, 10%);
}
.mixin (@_, @color) {
display: block;
}

This allows you to have a parametric condition that is applied regardless of what parameter is supplied. However, I'm unable to even TYPE @_ within Netbeans with the plugin loaded; it starts shifting the code color formatting around. Loading a file that has been edited externally breaks when it hits the line with the @_.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant