Skip to content

Commit

Permalink
Add reverible grids option
Browse files Browse the repository at this point in the history
  • Loading branch information
csswizardry committed Mar 11, 2013
1 parent 5323c4e commit 0766ed5
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
9 changes: 5 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
* 1.0.0 Initial release
* 1.0.1 Make base grid classes follow silencing rules
* 1.1 Use more robust, markup-based method for removing whitespace
* 1.2 Set `.grid__item` to be full-width by default
* **1.0.0** Initial release
* **1.0.1** Make base grid classes follow silencing rules
* **1.1** Use more robust, markup-based method for removing whitespace
* **1.2** Set `.grid__item` to be full-width by default
* **1.3** Add `.grid--rev` option to reverse grids’ display order
16 changes: 16 additions & 0 deletions csswizardry-grids.scss
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,22 @@ $class-type: unquote(".");
}


/**
* Reversed grids allow you to structure your source different to how your
* rendered layout will appear.
*/
#{$class-type}grid--rev{
@extend #{$class-type}grid;
direction:rtl;
text-align:right;
}

#{$class-type}grid--rev > #{$class-type}grid__item{
direction:ltr;
text-align:left;
}





Expand Down

0 comments on commit 0766ed5

Please sign in to comment.