xaun-l
11/17/2017 - 2:50 PM

Less Calc Interpolation

Interpolating values into cc3 calc functions

@my-var: 100%;

.class {
  // '~' is Less for CSS escaping (http://lesscss.org/functions/#string-functions-e).
  // It allows the variable interpolation to work for Less.
  height: ~"calc(@{my-var} - 50px)"
}