Book Image

LESS WEB DEVELOPMENT ESSENTIALS

By : Bass Jobsen
Book Image

LESS WEB DEVELOPMENT ESSENTIALS

By: Bass Jobsen

Overview of this book

Less is a CSS preprocessor that essentially improves the functionality of simple CSS with the addition of several features. The book begins by teaching you how Less facilitates the process of web development. You will quickly then move on to actually creating your first layout using Less and compiling your very first Less code. Next, you will learn about variables and mixins and how they will help in building robust CSS code. In addition, you'll learn how to keep your code clean and test it by using style guides. We will then move on to the concept of Bootstrapping and the strength of using Less with Twitter Bootstrap. Going one step further, you will be able to customize Twitter's Bootstrap 3 using Less. Finally, you will learn how to integrate Less into your WordPress themes and explore other web apps that use Less. By leveraging this powerful CSS preprocessor, you will be able to consistently produce amazing web applications while making CSS code development an enjoyable experience.
Table of Contents (15 chapters)
Less Web Development Essentials
Credits
Foreword
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Testing your code


You don't have to write all the Less code yourself as it is reusable and portable. Mixins and snippets of Less code can be found on the Web and (re)used in your projects. Search for Less mixin background gradients and you will get many useful hits. Try to find code that offers support for browsers and meets your requirements. If you have any doubts about the browser support of a mixin, consider asking questions on Stackoverflow.com (http://www.stackoverflow.com/). Always show your code and what you have done; don't just ask for a solution. Also, other questions regarding Less can be asked on Stackoverflow.com.

Integration of code snippets or even complete namespaces will make the testing of your code more important.

Understanding TDD

Test-driven development (TDD) is a proven method for software development. In TDD, you write tests for every piece of code in your project. All tests should pass after changing your code when adding or improving functionalities or refactoring...