Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'feature/grids' into v5.1.0

  • Loading branch information...
commit 3800e62a6d3d4de8b45b1d622ea879b9ec813475 2 parents 915686b + 29119be
Harry Roberts authored
Showing with 33 additions and 2 deletions.
  1. +33 −2 objects/_grids.scss
35 objects/_grids.scss
View
@@ -30,6 +30,10 @@
</div>
*
+ * The grid system is based on csswizardry-grids: github.com/csswizardry/csswizardry-grids
+ * If you would like to use the full features of csswizardry-grids then you can
+ * simply use it in conjunction with inuit.css as a second library.
+ *
* Demo: jsfiddle.net/inuitcss/CLYUC
*
*/
@@ -74,11 +78,38 @@
@extend .grid;
direction:rtl;
text-align:right;
-}
- .grid--rev > .grid__item{
+ > .grid__item{
direction:ltr;
text-align:left;
}
+}
+
+
+/**
+ * Gutterless grids have all the properties of regular grids, minus any spacing.
+ */
+.grid--full{
+ @extend #{$class-type}grid;
+ margin-left:0;
+
+ > .grid__item{
+ padding-left:0;
+ }
+}
+
+
+/**
+ * Centered grids align grid items centrally without needing to use push or pull
+ * classes.
+ */
+.grid--center{
+ @extend #{$class-type}grid;
+ text-align:center;
+
+ > .grid__item{
+ text-align:left;
+ }
+}
}//endif
Please sign in to comment.
Something went wrong with that request. Please try again.