Skip to content

Commit

Permalink
Merge pull request #703 from taupecat/upstream-master
Browse files Browse the repository at this point in the history
Using best practices to apply the proper units to the font-size mixin.

See http://sass-guidelin.es/#units
  • Loading branch information
obenland committed Feb 18, 2015
2 parents 70db168 + 0395cd6 commit d5c78ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sass/mixins/_mixins-master.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Rem output with px fallback
@mixin font-size($sizeValue: 1) {
font-size: ($sizeValue * 16) + px;
font-size: $sizeValue + rem;
font-size: ($sizeValue * 16) * 1px;
font-size: $sizeValue * 1rem;
}

// Center block
Expand Down

0 comments on commit d5c78ac

Please sign in to comment.