Skip to content

Instantly share code, notes, and snippets.

@tjunghans
Created January 12, 2017 14:57
Show Gist options
  • Save tjunghans/07958c985a44c630bd26cdeb84431c4e to your computer and use it in GitHub Desktop.
Save tjunghans/07958c985a44c630bd26cdeb84431c4e to your computer and use it in GitHub Desktop.
Grid CSS
// Based on material css
.container {
margin: 0 auto;
.row {
margin-left: -4px;
margin-right: -4px;
}
}
.row {
margin-left: auto;
margin-right: auto;
margin-bottom: 20px;
&:after {
content: "";
display: table;
clear: both;
}
}
.col {
box-sizing: border-box;
float: left;
min-height: 1px;
padding: 0 4px;
width: 100%;
&.s2 {
width: 50%
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment