定义变量:
$linkColor: #08c;
/*使用*/
a {
text-decoration:none;
color:$linkColor;
&:hover{
color:darken($linkColor,10%); /* 颜色为10% */
}
}
函数:
1、map_get
$theme:(blue:#13d2cd,yellow:#ffbd43);
/*使用*/
.aa{
color: map_get($theme, blue);
}