Skip to content

Instantly share code, notes, and snippets.

@anotheruiguy
Created April 7, 2014 16:26
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 anotheruiguy/10023575 to your computer and use it in GitHub Desktop.
Save anotheruiguy/10023575 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.4)
// Compass (v1.0.0.alpha.18)
// ----
$types: positive negative passive aggressive;
$length: length($types);
$type-width: 20px;
@while $length > 0 {
.type-#{nth($types, $length)} {
width: $type-width + $length;
}
$length: $length - 1;
}
.type-aggressive {
width: 24px;
}
.type-passive {
width: 23px;
}
.type-negative {
width: 22px;
}
.type-positive {
width: 21px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment