I try to create a flexiable Table grid which is inside a for loop Its works perfectly fine on PX based but I cant get the % added it gives me an error.
$fg-column: 20px;
$$fg-max-columns:41;
width:(#{($fg-column /$fg-max-columns)}#{"%"}) * $i);
.table-grid-layout{
&.is-fluid{
@include fill-parent;
@for $i from 1 through 41 {
.column-#{$i} {
width:(#{($fg-column /$fg-max-columns)}#{"%"}) * $i);
}
}
}
&.not-fluid{
@include outer-container;
@for $i from 1 through 41 {
.column-#{$i} {
width: 20px * $i;
}
}
}
}