Skip to content

Instantly share code, notes, and snippets.

@fujimura
Last active November 22, 2016 07:36
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fujimura/6726130 to your computer and use it in GitHub Desktop.
Save fujimura/6726130 to your computer and use it in GitHub Desktop.
z-index.css.scss
@mixin stack-classes ($classes) {
$i: 10;
@each $class in $classes {
.#{$class} {
z-index: $i;
$i: $i + 10;
}
}
}
@include stack-classes(
adam
john
wynn
mason
kuroir
);
@chibamem
Copy link

🤘 ⭐ 🤘

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment