How to use LESS variables in @media
queries in Adobe CQ5?
myFile.less:
@myVar = 10px;
span {
width: @myVar;
}
works fine.
But:
myFile.less:
@myVar = 400px;
@media all and (min-width: @myVar) {
span{
color:red;
}
}
Results with:
clientLib.css:
@media all and (min-width: @myVar) {
span{
color:red;
}
}