Skip to content

Instantly share code, notes, and snippets.

@ourmaninamsterdam
Created July 9, 2014 09:44
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 ourmaninamsterdam/a241b99911b42a36f9eb to your computer and use it in GitHub Desktop.
Save ourmaninamsterdam/a241b99911b42a36f9eb to your computer and use it in GitHub Desktop.
Sass concatenate arguments
@function str-concatenate($args){
$str: '';
@for $i from 1 through length($args){
$str: $str + str-slice(nth($args,$i),1, str-length(nth($args,$i)));
}
@return $str;
}
.example {
width: str-concatenate("hello" "goodbye" "tarrah" "ciao");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment