Less web development cookbook : over 110 practical recipes to help you write leaner, more efficient CSS code /

Jobsen, Bass,

Less web development cookbook : over 110 practical recipes to help you write leaner, more efficient CSS code / Bass Jobsen, Amin Meyghani ; foreword by Luke Page. - 1 online resource (394 pages) : illustrations (some color) - Community Experience Distilled . - Community experience distilled. .

"Quick answers to common problems"--Cover. Includes index.

Cover -- Copyright -- Credits -- Foreword -- About the Author -- About the Reviewers -- www.PacktPub.com -- Table of Contents -- Preface -- Chapter 1: Getting to Grips with the Basics of Less -- Introduction -- Downloading, installing, and integrating less.js -- Installing the lessc compiler with npm -- Using less.js with Rhino -- Declaring variables with Less for commonly used values -- Setting the properties of CSS styles with mixins -- Writing more intuitive code and making inheritance clear with nested rules Creating complex relationships between propertiesUsing the built-in functions of Less -- Using namespaces to make your code reusable and portable -- Chapter 2: Debugging and Documenting Your Less Code -- Introduction -- Debugging your code with less.js -- Using CSS source maps to debug your code -- Using Chrome Developer Tools to debug your code -- Commenting your code in Less -- Building style guides with tdcss.js -- Building style guides with StyleDocco -- Chapter 3: Using Variables and Mixins -- Introduction Deriving a set of variables from a single base variableValue escaping with the ~value syntax -- Using variable interpolation -- Redeclaring variables based on lazy loading -- Using mixins to set properties -- Declaring a class and mixin at once -- Using selectors inside mixins -- Using parametric mixins -- Chapter 4: Leveraging the Less Built-in Functions -- Introduction -- Converting units with the convert function -- Using the default function -- Embedding images with data URIs -- Formatting strings -- Replacing a text within a string Working with listsUsing mathematical functions -- Using the color function -- Evaluating the type of a value -- Creating color objects with RGB values -- Getting information about a color -- Creating a color variant with the darken and lighten functions -- Creating overlays of two colors with Less -- Chapter 5: Extending and Referencing -- Introduction -- Referencing parent selectors with the & operator -- Referencing to the parent selector more than once -- Changing the selecting order with the & operator -- Using extend to merge selectors Using extend inside a rulesetExtending with the all keyword -- Extending with media queries -- Using extend to reduce the compiled CSS size -- Using extend as an alternative for a mixin -- Chapter 6: Advanced Less Coding -- Introduction -- Giving your rules importance with the!important statement -- Using mixins with multiple parameters -- Using duplicate mixin names -- Building a switch to leverage argument matching -- Avoiding individual parameters to leverage the @arguments variable

Aimed at those who want to overcome the limitations of CSS, through this book you will begin to harness the efficiency of Less by building advanced, responsive, and modern websites. Experienced web developers, students, and even web designers will find this guide very useful as they enhance their CSS skills.

9781783981496 (electronic bk.) 1783981490 (electronic bk.)

9781783981496 Packt Publishing Pvt. Ltd

018006823 Uk


Web sites--Design.
Cascading style sheets.
Web site development.
Sites Web--Conception.
Feuilles de style en cascade.
Sites Web--Développement.
COMPUTERS--General.
Cascading style sheets.
Web site development.
Web sites--Design.


Electronic books.
Electronic books.

TK5105.888 / .J637 2015eb

006.6776

O.P. Jindal Global University, Sonepat-Narela Road, Sonepat, Haryana (India) - 131001

Send your feedback to glus@jgu.edu.in

Hosted, Implemented & Customized by: BestBookBuddies   |   Maintained by: Global Library