Sass Variables
“Variables are containers for storing data” here variables is storing value: as like color, fonts or any CSS value. Variables always create with $ before given name.
(underscore and dashed is same, dash value replace to underscore value.)
Example:
$bg: #f00;
$b_c: #000;
$b-c: #ff0;
$bcLogo: #f0f;
$BcLogo: #f00;
body {
background:$b_c;
}
No comments:
Note: Only a member of this blog may post a comment.