Skip to content

Commit

Permalink
Make $variation plural unit() mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
Mack, Kevin committed Sep 3, 2014
1 parent 2267dd9 commit 3d10802
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ Ouput the compiled CSS properties from a map object into another selector.

* `$property`: Options `padding` | `margin`. Default is `padding`.
* `$version`: "custom-name". Default is `default`.
* `$variation`: Contains the variations of output properites. When option is set to `true` it will ouput the property and property value.
* `$variations`: Contains the variations of output properites. When option is set to `true` it will ouput the property and property value.
* "**base**": *Boolean*. Default is `true`. Outputs default unit. When value is `short` this key is used to output `padding` and `margin` property's shorthand.
* "**top**": *Boolean*. Default is `true`. Outputs variation of property (`padding-top`, `margin-top`)
* "**right**": *Boolean*. Default is `true`. Outputs variation of property (`padding-right`, `margin-right`)
Expand All @@ -143,7 +143,7 @@ Ouput the compiled CSS properties from a map object into another selector.

````
.some-selector-name {
@include units($property: "padding", $version: "default", $variation: (base: false, top: false, right: false, bottom: true, left: false));
@include units($property: "padding", $version: "default", $variations: (base: false, top: false, right: false, bottom: true, left: false));
}
````
Expand Down
2 changes: 1 addition & 1 deletion unit-space.scss
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
}

// output specific properites only
@mixin units($property: "padding", $version: "default", $variation: (base: true, top: true, right: true, bottom: true, left: true)) {
@mixin units($property: "padding", $version: "default", $variations: (base: true, top: true, right: true, bottom: true, left: true)) {
$variation-controls: $variation;
$versions: map-get($units, $property);
$values: map-get($versions, $version);
Expand Down

0 comments on commit 3d10802

Please sign in to comment.