I'm trying to workaround Bourbon not supporting @keyframe
by generating my own prefixes version with a Sass loop like this:
$list: '' -ms- -webkit- -moz- -o-
$at: @ //at sign
@each $prefix in $list
#{$at}#{$prefix}keyframes moveclouds
from
#{$prefix}transform: translateX(2400px)
to
#{$prefix}transform: translateX(-400px)
and expecting to generate css:
@keyframes moveclouds from {
transform: translateX(2400px);
}
@keyframes moveclouds to {
transform: translateX(-400px);
}
@-moz-keyframes moveclouds from {
-moz-transform: translateX(2400px);
}
@-moz-keyframes moveclouds to {
-moz-transform: translateX(-400px);
}
....
the issue is that I cannot figure out how to force Sass output @
(at sign) in start of a line
if I do
$at: @ // wont work, error
$at: @ // will generate @keyframes = not good
$at: "@" // wont work error
$at: @@ // will generate @@keyframes = not good
so anyone got an idea how to output at sign in Sass ?
See Question&Answers more detail:os