I'm trying to add a number with a string and LESS is not interpreting as I wanted, see example:
@screen-sm: 768;
@screen-md: 1024;
.col-tablet(@rules) {
@media (min-width: @screen-sm+'px') and (max-width: @screen-md+-1+'px') {
@rules();
}
}
.col-tablet({
display: block;
});
and the output:
@media (min-width: 768 'px') and (max-width: 1024+-1 'px') {
display: block;
}