Created
November 10, 2017 04:35
-
-
Save paulfarino/6ded837457bf792d440fbd9d5a7eeaf5 to your computer and use it in GitHub Desktop.
Simple CSS Grid, Grid
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
.wrapper { | |
display: grid; | |
grid-template-columns: repeat(12, 1fr); | |
grid-gap: 10px; | |
} | |
@for $i from 1 through 12 { | |
.col-#{$i} { | |
grid-column: span #{$i}; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment