I have the following Sass, following this example for @each:
@each $flag in USA, EUR, JPN {
a.#{$flag} {
display:inline-block;
overflow:hidden;
width:0;
height:11px;
padding-left:16px;
background:url('http://res.cloudinary.com/mrengy/image/upload/v1470163121/#{$flag}.gif');
}
}
It's just an example for an answer to another question. In CodePen, it is giving me an error:
Invalid CSS after "USA, EUR, JPN ": expected expression (e.g. 1px, bold), was "{"
Here's the example on CodePen.
That error makes no sense. What is the problem here?