Hello guys!
I'm currently using icomoon with "generate sass variables" on, and it's generates two files. For organization reasons, I use only one file for the icon font. It would be great if Icomoon App would only generate one file, by using sass maps, unique-id and @each. It saves a lot of space for fonts with a lot of icons.
So, instead of
It would be something like:
$icons: (
arrow: "\e906",
circle: "\e901"
);
and for the random string after ?
url('#{$icomoon-font-path}/icomoon.eot?th35f8')
I defined a $uid variable as follow
url('#{$icomoon-font-path}/icomoon.eot?#{$uid}')
Finally, for icon classes:
@each $icon, $char in $icons {
.icon-#{$icon} {
&:before {
content: $char;
}
}
}