$number: 1; // .5, 100px, 1em
$string: bold; // relative, "../main.css"
$color: red; // #FFF, rgba(1, 1, 1, 0.3)
$boolean: true; // false
$null: null;
$list: orange, red, blue;
$map: (
0: orange,
R: red,
)
list와 map을 사용할 때는 each를 사용해서 반복문을 만들 수 있음
$list: orange, red, blue;
@each $c in $list {
.box {
color: $c;
}
}
$map: (
0: orange,
R: red,
)
@each $k, $v in $map {
.box-#{$k} {
color: $v;
}
}
@mixin left-top {
position: absolute;
top: 0;
@content;
}
.box {
width: 200px;
@include left-top {
bottom: 0;
right: 0;
}
}