css - Less can define the function like sass “@function” ? -


enter image description here

can less define functions sass, eg. @function?

.px-to-percent(@px, @base){   @percent: unit(((@px / @base) * 100), %); }  .myclass{   .px-to-percent(456, 1200);   width: @percent; } 

Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -