Each loops (nested)

$backgrounds: (home, 'home.jpg'),
              (about, 'about.jpg');
@each $id, $image in $backgrounds {
    .photo-#{$id} {
      background: url($image);
    }
}
Comments