Skip to content

Instantly share code, notes, and snippets.

@sugarenia
Created April 22, 2014 06:46
Show Gist options
  • Save sugarenia/11167647 to your computer and use it in GitHub Desktop.
Save sugarenia/11167647 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.5)
// Compass (v1.0.0.alpha.18)
// ----
$zindex: (
header: 1000,
modal: 2000,
modal-buttons: 2500
);
@function z($label) {
@return map-get($zindex,$label);
}
.header {
z-index: z(header);
}
.modal {
z-index: z(modal);
&-buttons {
z-index: z(modal-buttons);
}
}
.header {
z-index: 1000;
}
.modal {
z-index: 2000;
}
.modal-buttons {
z-index: 2500;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment