Created
June 11, 2015 20:27
-
-
Save valdelama/3d11568f5403c5d5beca to your computer and use it in GitHub Desktop.
flexgrid
This file contains hidden or 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
.row { | |
display: flex; | |
flex-direction: row; | |
flex-wrap: nowrap; | |
margin-bottom: $base-line-height/4; | |
} | |
@for $i from 1 through 12 { | |
.col-#{$i} { | |
flex-basis: (100% / 12 * $i); | |
} | |
} | |
.col-auto { | |
flex: 1; | |
} | |
[class*='col-'] { | |
margin-right: 6px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment