0

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?

TylerH
  • 20,799
  • 66
  • 75
  • 101
Simplicius
  • 2,009
  • 1
  • 5
  • 19
  • Does this answer your question? [Using variables for CSS properties in Sass](https://stackoverflow.com/questions/15292749/using-variables-for-css-properties-in-sass) – MaxiGui Aug 31 '20 at 11:44
  • @MaxiGui, No, but thanks. I'm looking for especially *properties* not variables *compiling* to properties. – Simplicius Aug 31 '20 at 11:46

0 Answers0