Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@georgeroubie
Created September 30, 2016 10:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save georgeroubie/9301e864c178f6dac51720374db0bc40 to your computer and use it in GitHub Desktop.
Save georgeroubie/9301e864c178f6dac51720374db0bc40 to your computer and use it in GitHub Desktop.
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