Skip to content

Instantly share code, notes, and snippets.

@williankeller
Created September 1, 2015 18:46
Show Gist options
  • Select an option

  • Save williankeller/717642a33916ea5c8e8a to your computer and use it in GitHub Desktop.

Select an option

Save williankeller/717642a33916ea5c8e8a to your computer and use it in GitHub Desktop.
Dependências de margens e Grades de colunas
// Margens
$margins: top bottom left right;
@each $margin in $margins{
@for $i from 1 through 10 {
.m-#{$margin}-#{$i} {
margin-#{$margin}: $i * 10px;
}
}
}
// Grade de colunas
@for $i from 1 through 12 {
.column-#{$i} {
width: 100% / 12 * $i;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment