I would like to make dynamic MIN/MAX suffix in properties defined in a Less MediaQuery.
I wrote this code but it does not compile:
@screen-md: 800px;
.MEDIAQUERY(@min-max, @size)
{
@media screen and (@{min-max}-width: @size)
{
@{min-max}-width:100px;
}
}
header
{
background-color: blue;
.MEDIAQUERY ( @min-max: max, @size: @screen-md );
}
While @{min-max}-width:100px;
is a correct syntax, equivalent applied in Mediaquery definition is not allowed, but I need to set sometime "max-width" value, and others "min-width" value in my media queries. How to obtain this?