I am trying to set up a loop that will create a set of classes, using another loop that I've set up, for each of the breakpoints I've defined. These are the BP's
$mobileMedium : 480px;
$tabletVertical : 768px;
$desktopNormal : 1024px;
$desktopWide : 1200px;
And this is my scss.
@each $bpName in "mobileMedium", "tabletVertical", "desktopNormal", "desktopWide"{
@include breakpoint($$bpName) {
@include generate("$bpName", "Container", "width");
}
}
I was hoping for something like this (example):
@media (min-width: 768px) {
.tabletVerticalContainer-1_12 {
width: 8.33333%;
}
But this is what Terminal returns:
error sass/screen.scss (Line 36 of sass/_grid.scss:
Invalid CSS after "...ude breakpoint(": expected ")", was "$$bpName) {")
I guess it boils down to how I can combine the both text (the '$') and the variable in the argument.
Any ideas?