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
.mixin(@colWidth) {
// selector with guard (applies also to & when() ...).clsWithGuardwhen (@colWidth<=0) {
dispaly: none;
}
}
.mixin(0px);
Error
NameError: variable @colWidth is undefined in mixin-vars2.less on line 4, column 23:
3 // selector with guard (applies also to & when() ...)
4 .clsWithGuard when (@colWidth <= 0) {
5 dispaly: none;
I think example 2 should produce the same output as example 1?
Fun fact: Copy the variable into another in the current scope works.
Example:
.mixin(@colWidth) {
// class with guard (applies also go & when() ...@colWidth2: @colWidth;
.clsWithGuardwhen (@colWidth2<=0) {
dispaly: none;
}
}
.mixin(0px);
The text was updated successfully, but these errors were encountered:
Example 1
CSS:
Example 2:
Error
I think example 2 should produce the same output as example 1?
Fun fact: Copy the variable into another in the current scope works.
Example:
The text was updated successfully, but these errors were encountered: