What is the equivalent of Scss\' emCalc() in less?
emCalc()
padding: emCalc(24px);
in Scss will calculate em based on the viewpoint and
You could do this to convert px to em.
@font-size: 16; // Your base font-size in pixels @em: @font-size*1em; // Shorthand for outputting ems, e.g. "12/@em" @rem: @font-size*1rem; // Shorthand for outputting ems, e.g. "12/@rem" h1{ font-size: 20/@em; }