We have the following declarations in styles.less:
.table tbody > tr > td {
&.colnum, &.colnumdec {
> input[type=text], > input[type=number] {
text-align: center;
}
}
}
.inputquantity {
.colnumdec;
width: 50px;
}
.inputprize {
.colnumdec;
width: 70px;
}
The problem is that LESS complains at inputprize { .colnumdec; with undeclared mixin.
We tried to solving it by adding a explicit declarations of those clases:
.colnum, .colnumdec {
}
But having no properties makes the LESS compiler to omit them, if we instead put one irrelevant property it works fine:
.colnum, .colnumdec {
border:inherit;
}
Whats the correct way of solving this?