I'd like to do is create a list of margin css classes based on am array of numbers.
e.g. i'd like my css to look like this.
.ml-5 { margin-left: 5px; }
.ml-10 { margin-left: 10px; }
.ml-15 { margin-left: 15px; }
I want to do something like the following in my SCSS file to generate these for a set list of numbers
$list: 5, 10, 15, 20, 25, 30;
@each $n in $list {
.ml-$n: margin-left:$n;
}
Anyone know if this can be done?