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

Chapter 4. Leveraging the Less Built-in Functions

In this chapter, you will learn the following topics:

  • 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 lists

  • Using 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