Last active
December 26, 2015 03:39
-
-
Save doughamlin/7087479 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.7) | |
// ---- | |
@mixin padding($padding) { | |
padding: @each $value in $padding { $value + px }; | |
padding: @each $value in $padding { ($value / 10) + rem }; | |
} | |
.test1 { | |
@include padding(24); | |
} | |
.test2 { | |
@include padding(24 12); | |
} | |
.test3 { | |
@include padding(24 12 12); | |
} | |
.test4 { | |
@include padding(12 18 24 12); | |
} |
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
Invalid CSS after " padding: #{": expected expression (e.g. 1px, bold), was "@each $value in..." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment