Book Image

LESS WEB DEVELOPMENT COOKBOOK

Book Image

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
Index

Introduction


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...