Instantly share code, notes, and snippets.

Embed
What would you like to do?
Extend Ionic Grid with sass
// Extend ionic sass grid offset
@for $i from 1 through 100 {
.col-offset-#{$i} {
margin-left: percentage($i)/100;
}
}
// Extend ionic sass grid
@for $i from 1 through 100 {
.col-#{$i} {
@include flex(0, 0, percentage($i)/100);
max-width: percentage($i)/100;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment