Leverage the features of Less to write better, reusable, and maintainable CSS code
Less is a preprocessor for CSS that uses less.js for real-time compilation, unlike other preprocessors. Building responsive websites with advanced features such as gradients and animations makes your CSS code complex. Less helps you to write clean, reusable, and maintainable CSS.
Starting off with the fundamental concepts of Less and CSS, you are taken on a tour of how to improve your web development skills with Less.
Next, you get to grips with mixins and variables in Less, which help you to avoid code duplication and write reusable code. Then, you venture into the concepts of nested rules, operations, and built-in functions, which help you in the dynamic creation of CSS properties and help you to create shorter and effective style sheets.
By the end of the book, you will be able to develop code faster and reduce the maintenance time for your web development projects.
What You Will Learn
Discover how to debug your code effectively by setting up an automatic build process with Grunt and Gulp
Explore the concepts of mixins and variables in Less to script reusable CSS code
Use postprocessors to autoprefix, compress, and optimize your CSS code
Create complex relationships between properties and use the built-in functions of Less to write your own functions
Build a responsive grid with Less to ensure a logical and formal structure for designs
Develop web applications with Less and integrate it with your WordPress themes using other CSS frameworks and grid systems
Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.