Created
November 18, 2013 22:56
-
-
Save jmmcduffie/7536894 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.3.0.rc.1) | |
// Compass (v0.13.alpha.10) | |
// ---- | |
@mixin calc($property, $value, $fallback) { | |
#{$property}: $fallback; | |
#{$property}: -webkit-calc(#{$value}); | |
#{$property}: calc(#{$value}); | |
} | |
body { | |
@include calc(width, "100% - 20px", 98%); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
width: 98%; | |
width: -webkit-calc(100% - 20px); | |
width: calc(100% - 20px); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Great mixin!