Skip to content

Commit

Permalink
units() renamed to generateUnits() and some minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Mack, Kevin committed Aug 20, 2014
1 parent e08763e commit 18f4d2b
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions assets/scss/spacing.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,9 @@
box-sizing: border-box;
}

@mixin units($property: padding, $version: default, $variation: base ) {
/**
I'm the output!
*/
$versions: map-get($units, $property);

@mixin generateUnits($property: padding, $version: default, $variation: base ) {

$versions: map-get($units, $property);
$values: map-get($versions, $version);
$unit: if(map-has-key($values, "unit"),map-get($values, "unit"),$default-space);
$selector-base: if(map-has-key($values, "selector-name"),map-get($values, "selector-name"),$property);
Expand Down Expand Up @@ -68,17 +65,12 @@
}
}



//$media-query-min: #{$media-query-min}
//$unit--media-query-min: #{$unit--media-query-min}
//$media-query-max: #{$media-query-max}
//$unit--media-query-max: #{$unit--media-query-max}
//Both have breakpoints: #{$units-are-controlled-by-breakpoints}




}

@if( $variation == "base" ) {
Expand Down Expand Up @@ -116,10 +108,6 @@


}


/*I'm the output! END*/

}


Expand Down

0 comments on commit 18f4d2b

Please sign in to comment.