Is it possible to have an @
symbol in a classname when using sass?
I keep getting compilation errors even though it seems to be valid syntax in CSS.
I want classnames like:
.u-6@sm {
width: 50%;
}
I've tried a variaty of approaches using interpolation but can't get it to spit out the CSS with the @
symbol.
e.g.
$at-symbol: unquote('@');
.u-6#{$at-symbol}sm {
width: 50%;
}
That doens't work. I also tried a function to return it and a mixin that accepts a symbol as a param but still nothing.
The weirdest thing is that if I do this:
.u-6\@sm {
width: 50%;
}
it compiles fine with both backslash and the @
symbol. Huh? Whaa? So why can't I use just the @
?