Skip to content

Instantly share code, notes, and snippets.

@cwmanning
Created July 9, 2014 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cwmanning/d3ae990b8c9f73553bd2 to your computer and use it in GitHub Desktop.
Save cwmanning/d3ae990b8c9f73553bd2 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.9)
// Compass (v1.0.0.alpha.20)
// ----
=calcIt($property, $fallback, $expression)
#{$property}: $fallback
#{$property}: calc(#{$expression})
body
+calcIt(width, 80%, "100% - 3em")
body {
width: 80%;
width: calc(100% - 3em);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment