Skip to content

Instantly share code, notes, and snippets.

@hpstuff
Created January 23, 2015 09:29
Show Gist options
  • Save hpstuff/9c9afb8e60443c706cec to your computer and use it in GitHub Desktop.
Save hpstuff/9c9afb8e60443c706cec to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.9)
// Compass (v1.0.1)
// ----
$media-break: 1024px;
@function strip-units($number) {
@return $number / ($number * 0 + 1);
}
@function vw($px, $base-width: $media-break){
@return (strip-units($px /$base-width)) * 100vw;
}
body {
padding: vw(20px) 0;
font-size: vw(14px);
}
body {
padding: 1.95313vw 0;
font-size: 1.36719vw;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment