Cargando…

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

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

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autores principales: Jobsen, Bass (Autor), Meyghani, Amin (Autor)
Otros Autores: Page, Luke (Autor de introducción, etc.)
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham, England : Packt Publishing, 2015.
Colección:Community experience distilled.
Temas:
Acceso en línea:Texto completo
Tabla de Contenidos:
  • 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