How to operate by passing parameters in less

sass defines a function that operates on the passed parameters and returns them. How can less be implemented?
such as this form:

clipboard.png

calculate according to the current screen width by passing px, convert it to vw, and then use the calculated vw, in padding because the style is all written by less, so you want to use less to achieve this function

Nov.09,2021

use plug-ins to implement http://lesscss.org/features/-sharp.

Menu