Skip to content

Instantly share code, notes, and snippets.

@carlitomurta
Created March 19, 2020 21:18
Show Gist options
  • Save carlitomurta/64b21374f9b9c225de1948d4adbfd538 to your computer and use it in GitHub Desktop.
Save carlitomurta/64b21374f9b9c225de1948d4adbfd538 to your computer and use it in GitHub Desktop.
Grid layout
$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