Skip to content

Commit

Permalink
Add gutterless grids
Browse files Browse the repository at this point in the history
Closes #8
  • Loading branch information
csswizardry committed Mar 13, 2013
1 parent 05d0e51 commit c6d17da
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -4,3 +4,4 @@
* **1.2** Set `.grid__item` to be full-width by default
* **1.3** Offer switches for mobile-first and responsiveness
* **1.4** Add `.grid--rev` option to reverse grids’ display order
* **1.5** Add gutterless grids option
14 changes: 14 additions & 0 deletions csswizardry-grids.scss
Expand Up @@ -113,6 +113,20 @@ $class-type: unquote(".");
}


/**
* Gutterless grids have all the properties of regular grids, minus any spacing.
*/
#{$class-type}grid--full{
@extend #{$class-type}grid;
margin-left:0;
}

#{$class-type}grid--full > #{$class-type}grid__item{
padding-left:0;
}






Expand Down

0 comments on commit c6d17da

Please sign in to comment.