Skip to content

Instantly share code, notes, and snippets.

@ourmaninamsterdam
ourmaninamsterdam / SassMeister-input.scss
Last active August 29, 2015 14:03
CSS horizontal/vertical unit parser (for horizontal/vertical rhythm)
// ----
// Sass (v3.3.9)
// Compass (v1.0.0.alpha.20)
// By @ourmaninamsterdam
// ----
@function px-to-rem($px){
@return ( $px / $base-font-size ) * 1rem;
}