📜 ⬆️ ⬇️

LESS-Mix - a little about LESS-mixing

Wonderful framework LESS allows you to greatly simplify the work with styles. One of its great features is the mixins. Mixing allows you to include all class properties in another class by simply including the class name as the value of one of the properties. This is similar to using variables, but with respect to whole classes. Mixing can behave like functions, and take arguments. The ability to mix and take arguments and manipulate them lies at the heart of mixture libraries such as LESS Elements , LESS Hat , LESS Mix, and the mixins.less component in Bootstrap .




Recently, I used LESS Elements and I had enough of it. It is very lightweight ( 6 kb. ) And has all the frequent use of mixing. But starting to work on more complex projects I lacked the ability to create multi-spot, radial gradients, angular gradients, multi-animations and more. Switch to heavy LESS Hat which weighs as much as 115 kb. did not want. Therefore, I simply created my less- file in which I collected all the admixtures I needed. Over time, the admixtures accumulated, I sorted them by categories and decided to share them with the world. This is how the LESS-Mix library appeared that has everything you need but weighs only 7.7 kb .
')
The library consists of 27 admixtures divided into 8 sections:



The library supports multi-angle, radial gradients, angular gradients, multi-animations, multi-transformations, and especially convenient ones that can hide, select elements, hide text, and reset filters.

More information about the library and documentation in Russian can be found here:
LESS-Mix
GitHub repository:
denysdovhan / LESS-Mix

I am glad if the library will help you in the robot.
I would be grateful for both positive feedback and for objective criticism. I will especially be glad to hear suggestions for improvement!

Thanks for attention! Convenience in work!

Source: https://habr.com/ru/post/181083/


All Articles