Instant LESS CSS Preprocessor How-to

Practical, hands-on recipes to write more efficient CSS, with the help of the LESS CSS Preprocessor library

Instant LESS CSS Preprocessor How-to

Starting
Alex Libby

Practical, hands-on recipes to write more efficient CSS, with the help of the LESS CSS Preprocessor library
$12.99
RRP $22.99
eBook
$12.99 p/month

Get Access

Get Unlimited Access to every Packt eBook and Video course

Enjoy full and instant access to over 3000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

+ Collection
Free Sample

Book Details

ISBN 139781782163763
Paperback80 pages

Book Description

CSS styling has been a key part of developing for the Internet since the early 1990s, but unlike JavaScript, has suffered from the inability to produce dynamic styles using functions, operators, and variables. LESS brings the power of all three and more to your CSS, allowing you to engage a more efficient, modular style of working, and making it easier to maintain your CSS styling in your projects.

Instant LESS CSS Preprocessor How-To is a practical, hands-on guide that provides you with a number of clear step-by-step exercises to help you take advantage of the power of LESS, and give you a good grounding in writing and compiling CSS style sheets using the LESS Preprocessor language.

This book looks at how you can incorporate LESS into your web pages, and either produce style sheets dynamically, or pre-compile them before including the final article into your site’s pages.

You will also learn how you can use the power of mixins, functions, and variables to help produce style sheets, and reduce the amount of code you need to write in your style sheets. We will also take a look at how you can incorporate a more modular style to your development workflow, which will help with making style sheets more manageable and easier to update in the future. We will also take a look at how you can build up libraries of reusable code that you can incorporate into your future projects.

You will learn everything you need to know to start using LESS to help produce more efficient style sheets in your site’s pages, and adopt a more modular development workflow, which will make it easier to maintain your sites in the future.

Table of Contents

Chapter 1: Instant LESS CSS Preprocessor How-to
Installing LESS (Must know)
Precompiling LESS client side (Must know)
Precompiling LESS server side (Must know)
Compiling back to LESS from CSS (Should know)
Autorefreshing styles using watchr (Must know)
Using LESS variables (Must know)
Using mixins in LESS (Must know)
Parametric mixins in LESS (Must know)
Pattern-matching in LESS (Must know)
Using JavaScript evaluation in LESS (Should know)
Importing files and escaping code in LESS (Must know)
Using JavaScript operators in LESS (Should know)
Creating colors with operators in LESS (Should know)
Creating colors with functions (Should know)
Grouping/nesting styles in LESS (Should know)
Scoping in LESS (Should know)
Creating Polaroid effects using LESS (Become an expert)
Using LESS with other libraries (Become an expert)
Using pre-built mixin libraries (Become an expert)

What You Will Learn

  • Install and use LESS into your site
  • Produce dynamic style sheets, or precompiling and including the final articles into your site’s pages
  • Use variables, functions, mixins, and operators in your LESS code
  • Use JavaScript to produce styles in your LESS code
  • Use LESS with other libraries, such as Modernizr
  • Create, import or use existing pre-built mixin libraries in your projects
  • Use existing mixin libraries, or create your own, that you can reuse in future projects
  • Learn how to write more efficient CSS, using LESS

Authors

Table of Contents

Chapter 1: Instant LESS CSS Preprocessor How-to
Installing LESS (Must know)
Precompiling LESS client side (Must know)
Precompiling LESS server side (Must know)
Compiling back to LESS from CSS (Should know)
Autorefreshing styles using watchr (Must know)
Using LESS variables (Must know)
Using mixins in LESS (Must know)
Parametric mixins in LESS (Must know)
Pattern-matching in LESS (Must know)
Using JavaScript evaluation in LESS (Should know)
Importing files and escaping code in LESS (Must know)
Using JavaScript operators in LESS (Should know)
Creating colors with operators in LESS (Should know)
Creating colors with functions (Should know)
Grouping/nesting styles in LESS (Should know)
Scoping in LESS (Should know)
Creating Polaroid effects using LESS (Become an expert)
Using LESS with other libraries (Become an expert)
Using pre-built mixin libraries (Become an expert)

Book Details

ISBN 139781782163763
Paperback80 pages
Read More

Read More Reviews