Responsive Web Design by Example Beginner's Guide

Responsive Web Design by Example Beginner's Guide

Author:Beginner's Guide
Language: eng
Format: epub
Publisher: Packt Publishing


Custom LESS variables

In the previous chapter, we imported the built-in variables from Bootstrap. However, we need to define our own variables to meet the special requirement for our website.

In Chapter 1, Responsive Web Design, we discussed how to define a variable in LESS. But just in case you are not willing to flip back to the previous chapter, the variable in LESS is simply defined with the @ symbol.

For example, the following code snippet defines the white color with the @color variable:

@color: #fff;



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.