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

Listboxes in c# -

Excel Duty List -

Multilayer CSV to filtered excel -