Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A simple grid mixin
//=================================
/* Simple grid */
@mixin simple-grid($nombre-items , $margin-right ){
width: ( (100% - ( ($nombre-items - 1) * $margin-right) ) / $nombre-items);
margin-right: $margin-right;
float:left;
&:nth-child(n) {
margin-right: $margin-right;
}
&:nth-child( #{$nombre-items}n) {
margin-right: 0;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment