Instant LESS CSS Preprocessor How-to by Alex Libby

Instant LESS CSS Preprocessor How-to by Alex Libby

Author:Alex Libby [Libby, Alex]
Language: eng
Format: mobi
Publisher: Packt Publishing
Published: 2013-02-22T05:00:00+00:00


.right_box { background-color: #FF1010; .box-shadow(3px 3px 5px, rgba(50, 50, 50, 0.75)); }

In the preceding example, we're passing the default value of 10px 3px 5px for the @style variable in the .left_box style; this will override the existing style set to produce the following:

.left_box {

background-color: #FF1010;

box-shadow: 10px 3px 5px rgba(50, 50, 50, 0.75);

-webkit-box-shadow: 10px 3px 5px rgba(50, 50, 50, 0.75);

-moz-box-shadow: 10px 3px 5px rgba(50, 50, 50, 0.75);

}

.right_box {

background-color: #FF1010;

box-shadow: 3px 3px 5px rgba(50, 50, 50, 0.75);

-webkit-box-shadow: 3px 3px 5px rgba(50, 50, 50, 0.75);

-moz-box-shadow: 3px 3px 5px rgba(50, 50, 50, 0.75);

}



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.