Skip to content
This repository
Browse code

Update pad() documentation

* Remove version in main scss file
  • Loading branch information...
commit 44c35d5e14c177c23b275f363d1609121e15d2f6 1 parent 23b51f2
Reda Lemeden kaishin authored

Showing 2 changed files with 6 additions and 4 deletions. Show diff stats Hide diff stats

  1. +5 3 README.md
  2. +1 1  app/assets/stylesheets/_neat.scss
8 README.md
Source Rendered
@@ -161,11 +161,13 @@ Please note that the `shift()` mixin is incompatible with display `table`.
161 161
162 162 ### Padding columns
163 163
164   -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.
  164 +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.
165 165
166 166 ```scss
167   -@include pad; // Adds a padding equivalent to the grid's gutter
168   -@include pad(20px); // Adds a padding of 20px
  167 +@include pad; // Adds a padding equivalent to the grid's gutter --> padding: 2.35765%;
  168 +@include pad(20px); // Adds a padding of 20px --> padding: 20px;
  169 +@include pad(30px default); // padding: 30px 2.35765%;
  170 +@include pad(30px 20px 10px default); // padding: 30px 20px 10px 2.35765%;
169 171 ```
170 172
171 173 The `pad()` mixin works particularly well with `span-columns(x, table)` by adding the necessary padding without breaking your table-based grid layout.
2  app/assets/stylesheets/_neat.scss
... ... @@ -1,4 +1,4 @@
1   -// Bourbon Neat 1.0.1
  1 +// Bourbon Neat
2 2 // MIT Licensed
3 3 // Copyright (c) 2011 thoughtbot, inc.
4 4

1 comment on commit 44c35d5

Duke

\o/

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