Created
March 19, 2020 21:18
-
-
Save carlitomurta/64b21374f9b9c225de1948d4adbfd538 to your computer and use it in GitHub Desktop.
Grid layout
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
$columns: 16; // Number of columns in the grid system | |
.container { | |
margin: 0 auto; | |
max-width: 1440px; | |
padding: 0px 16px; | |
} | |
.row { | |
display: flex; | |
flex-wrap: wrap; | |
margin: 0 auto; | |
} | |
@for $width from 1 through $columns { | |
.col-#{$width} { | |
flex-basis: $width / $columns * 100%; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment