Skip to content

Commit

Permalink
Add "false" option for measure mixin; fixes #20
Browse files Browse the repository at this point in the history
  • Loading branch information
stormwarning committed Dec 14, 2015
1 parent 366f2af commit da0070e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions utilities/_measure.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// @link http://tympanus.net/codrops/css_reference/hyphens/
// @since 0.4.0
//
@mixin typ-measure($max: 70, $min: null, $center: false) {
@mixin typ-measure($max: 70, $min: null, $center: null) {

max-width: $max * 1ch;
hyphenate-limit-chars: 6 3 2;
Expand All @@ -22,11 +22,16 @@

}

@if $center != false {
@if $center == true {

margin-right: auto;
margin-left: auto;

} @elseif $center == false {

margin-right: 0;
margin-left: 0;

}

}

0 comments on commit da0070e

Please sign in to comment.