Skip to content

Instantly share code, notes, and snippets.

@finteractive
Created August 25, 2015 03:50
Show Gist options
  • Save finteractive/87f4cbb6aad19f0a0055 to your computer and use it in GitHub Desktop.
Save finteractive/87f4cbb6aad19f0a0055 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
$base-font-size: 21px !default;
@function em($px, $base: $base-font-size) {
@return ($px / $base) * 1em;
}
@function rem($px, $base: $base-font-size) {
@return ($px / $base) * 1rem;
}
.example {
padding: rem(40px);
margin: em(20px) em(15px);
}
.example {
padding: 1.90476rem;
margin: 0.95238em 0.71429em;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment