I am looking for a solution where I define 1 variable globally and than overwrite it inside a media query - without putting the entire code in it (like LESS CSS set variables in media query?).
I thought something like that(defining):
@media (min-width: 768px) {
@BWInputHeight: 40px;
}
@media (max-width: 768px) {
//responsive screens
@BWInputHeight: 20px;
}
And using it like that:
.dataTables_filter input {
.form-control;
max-width: 135px;
display: inline-block;
height: @BWInputHeight;
padding: 1px 6px;
margin-right: 15px;
}
The problem here, "@BWInputHeight" is a undeclared variable. How can I solve this with LESS ?