Closed alexvb closed 10 years ago
Good idea, implemented in 0.2.0. :)
@SAPikachu - This is not well implemented.... you merely created a map which is not even used, yet still generate tons of variables... not DRY at all :/
$icons-map: (add-user: '\e63e', remove-user: '\e63f', user: '\e628', search: '\e62e');
// no need for mixin! just loop..
@each $key, $value in $icons-map {
.icon-#{$key}:before { content: #{$value}; }
}
output CSS - http://sassmeister.com/gist/1cbf8139c4afb77094de
now instead of generating a huge file (when having lots of icons), you generate a much smaller file.. I realize you are already looping in the javascript when generating this whole SCSS file, but still it'll make more sense when looking at it.
@yairEO
It would be great if there was an option to generate a sass map instead of variables. For example:
This would enable the possibility to iterate over all references for more advanced usage like different classes for different use cases.