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?

2
  • Does this answer your question? Using variables for CSS properties in Sass Commented Aug 31, 2020 at 11:44
  • @MaxiGui, No, but thanks. I'm looking for especially properties not variables compiling to properties. Commented Aug 31, 2020 at 11:46

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.