Multiple two-class selectors in Sass
In this case we can use @each
directive:
$pages: shop, contact, about, faq;
body {
@each $page in $pages {
&.#{$page} {
background-color:#FFF;
}
}
}
sassmeister.com
try this:
body{
&.shop, &.contact, &.about, &.faq {
background-color:#fff;
}
}