Skip to content

Commit

Permalink
[ref: #135] Add pxToRem function
Browse files Browse the repository at this point in the history
  • Loading branch information
James Kolce committed Apr 27, 2016
1 parent 7ab0d94 commit 4d2f42d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/core/globals/_functions.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,23 @@ $base-unit: 8 !default;
}


//
// pxToRem
// ------
// Converts a Px value into a Rem value
//
// @access public
//
// @param {Number} $px - value in pixels
//
// @return {Number} Value in Rems
//

@function pxToRem($px) {
@return ($px / $font-base-size) + rem;
}


//
// getColor
// --------
Expand Down

0 comments on commit 4d2f42d

Please sign in to comment.