Skip to content

Instantly share code, notes, and snippets.

@dazld
Created June 25, 2021 06:08
Show Gist options
  • Save dazld/cfe876e5f00ed5616ac0297183caac51 to your computer and use it in GitHub Desktop.
Save dazld/cfe876e5f00ed5616ac0297183caac51 to your computer and use it in GitHub Desktop.
:root {
--z-index: 1;
}
.up {
--z-index: calc(var(--z-index) + 1);
z-index: var(--z-index);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment