'can we use object literal type complex variables in "less"?
I am trying to add a struct of variables / or an object literal of variables to scope styles in less.
@open: {
@width: 400px;
}
@closed: {
@width: 400px;
}
.search-composed {
width: @closed.width;
&.closed {
width: @open.width;
}
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
