Permalink
Browse files

Update pad() documentation

* Remove version in main scss file
  • Loading branch information...
1 parent 23b51f2 commit 44c35d5e14c177c23b275f363d1609121e15d2f6 Reda Lemeden committed Dec 28, 2012
Showing with 6 additions and 4 deletions.
  1. +5 −3 README.md
  2. +1 −1 app/assets/stylesheets/_neat.scss
View
@@ -161,11 +161,13 @@ Please note that the `shift()` mixin is incompatible with display `table`.
### Padding columns
-To add padding around the entire column use `pad()`. By default it adds the same value as the grid's gutter but can take any unit value.
+To add padding around the entire column use `pad()`. By default it uses the grid's gutter but can take any argument, including the `padding` shorthand syntax.
```scss
-@include pad; // Adds a padding equivalent to the grid's gutter
-@include pad(20px); // Adds a padding of 20px
+@include pad; // Adds a padding equivalent to the grid's gutter --> padding: 2.35765%;
+@include pad(20px); // Adds a padding of 20px --> padding: 20px;
+@include pad(30px default); // padding: 30px 2.35765%;
+@include pad(30px 20px 10px default); // padding: 30px 20px 10px 2.35765%;
```
The `pad()` mixin works particularly well with `span-columns(x, table)` by adding the necessary padding without breaking your table-based grid layout.
@@ -1,4 +1,4 @@
-// Bourbon Neat 1.0.1
+// Bourbon Neat
// MIT Licensed
// Copyright (c) 2011 thoughtbot, inc.

1 comment on commit 44c35d5

@dukex
dukex commented on 44c35d5 Dec 28, 2012

\o/

Please sign in to comment.