Less helps you to write better, reusable, and more readable CSS. While writing, you should check your syntax and solve the errors found while compiling your code. In the first recipe, you will learn how to do this. The final CSS code should be tested on different devices and browsers. Automated testing, as required for test-driven development (TDD), is not possible, but you can test your code in a browser. Although some tools that compare screen dumps have had the spot light recently, for more information, see https://github.com/BBC-News/wraith and https://github.com/facebook/huxley. In this chapter, you will learn how to find the Less code that generates the style rules for an HTML element in your page. A good code also contains constructive comments that make your code clearer for others. Adding comments to your code is covered in the Commenting your code in Less recipe. Finally, you will learn about two tools that can build style guides based on your code. Note that the style...
LESS WEB DEVELOPMENT COOKBOOK
LESS WEB DEVELOPMENT COOKBOOK
Overview of this book
Table of Contents (19 chapters)
Less Web Development Cookbook
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
Getting to Grips with the Basics of Less
Debugging and Documenting Your Less Code
Using Variables and Mixins
Leveraging the Less Built-in Functions
Extending and Referencing
Advanced Less Coding
Leveraging Libraries with Prebuilt Mixins
Building a Layout with Less
Using Bootstrap with Less
Less and WordPress
Compiling Less Real Time for Development Using Grunt
Index
Customer Reviews