From 3d10802e09f3a58192746bbca52784e45107dec4 Mon Sep 17 00:00:00 2001 From: "Mack, Kevin" Date: Wed, 3 Sep 2014 16:49:13 -0400 Subject: [PATCH] Make $variation plural `unit()` mixin --- README.md | 4 ++-- unit-space.scss | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4c2adb6..e2e4eb2 100755 --- a/README.md +++ b/README.md @@ -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`) @@ -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)); } ```` diff --git a/unit-space.scss b/unit-space.scss index 23373b8..05ea4af 100755 --- a/unit-space.scss +++ b/unit-space.scss @@ -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);