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

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

python - Error: Unresolved reference 'selenium' What is the reason? -

php - Need to store a large amount of data in session with CI 3 but on storing large data in session it is itself destorying automatically -