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 -

python 3.5 - Pyqtgraph string in x tick -