Created
September 30, 2016 10:16
-
-
Save georgeroubie/9301e864c178f6dac51720374db0bc40 to your computer and use it in GitHub Desktop.
Extend Ionic Grid with sass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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