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 -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -