Variables

Among the most valuable LESS features, there is variable support. This is a brief example of what we can do with it:

// Variables can be declared as such: 
@link-color: #red; 
@link-color-hover: lightcoral; 
 
// And then they can be referenced like this: 
a, span. link { 
    color: @link-color; 
} 
 
a:hover, span.link:hover { 
    color: @link-color-hover; 
} 

As you might have noticed, double-slash style (//) inline comments are supported as well, while CSS only allows the slash-asterisk (/**/) syntax.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.129.210.91