Created
April 28, 2014 08:57
-
-
Save certainlyakey/11366089 to your computer and use it in GitHub Desktop.
Sass mixin - repeat same value for up to 4 properties
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
//Repeats same value for up to 4 properties | |
@mixin repeat-value($val, $prop1,$prop2,$prop3:'',$prop4:'') { | |
#{$prop1}:$val; | |
#{$prop2}:$val; | |
@if $prop3 != '' {#{$prop3}:$val;} | |
@if $prop4 != '' {#{$prop4}:$val;} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment