difference # and {} or nohing in item on SASS -
$list: (orange, purple, teal); //add each-loop here @each $item in $list { .{$item} { background: $item; } }
$list: (orange, purple, teal);
//add each-loop here @each $item in $list { .$item { background: $item; } }
$list: (orange, purple, teal);
//add each-loop here @each $item in $list { .#{$item} { background: $item; } }
i new sass,when practising gave me same result.what difference between them?# {} or nothing why use nothing
only $item
when don't want add more. sass use #{}
separate code css. if want select class need .#{$item}
.
Comments
Post a Comment