Last active
February 25, 2016 12:36
-
-
Save michelalbers/904c13e3ae1cf6136b31 to your computer and use it in GitHub Desktop.
Divide spaced values in sass
This file contains hidden or 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
.foo { | |
padding: 1px 1.5px; | |
} |
This file contains hidden or 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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
$foo: 10px 15px; | |
@mixin divider($value, $divisor) { | |
padding: nth($value, 1) / $divisor nth($value, 2) / $divisor; | |
} | |
.foo { | |
@include divider($foo, 10); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment