Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update pad() documentation

* Remove version in main scss file
  • Loading branch information...
commit 44c35d5e14c177c23b275f363d1609121e15d2f6 1 parent 23b51f2
@kaishin kaishin authored
Showing with 6 additions and 4 deletions.
  1. +5 −3 README.md
  2. +1 −1  app/assets/stylesheets/_neat.scss
View
8 README.md
@@ -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.
View
2  app/assets/stylesheets/_neat.scss
@@ -1,4 +1,4 @@
-// Bourbon Neat 1.0.1
+// Bourbon Neat
// MIT Licensed
// Copyright (c) 2011 thoughtbot, inc.

1 comment on commit 44c35d5

@dukex

\o/

Please sign in to comment.
Something went wrong with that request. Please try again.