I know that both Sass and Less support the variable
directive. I'm only familiar with Sass, but is there any syntax allowing to use a property instead of a variable?
For example:
$height: 1rem;
$line-height: 1.5;
@if($height > $line-height) {
input {
//
}
}
This works, obviously, but is there any possible way to use properties
instead of variables
in any CSS preprocessor?