Skip to content

Instantly share code, notes, and snippets.

Created November 3, 2012 12:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/4007219 to your computer and use it in GitHub Desktop.
Save anonymous/4007219 to your computer and use it in GitHub Desktop.
Conditionally shades block level elements
$show-blocks: true; // Show Block Shading
// Shades all block level elements if show-blocks is true
#{elements-of-type(block)}{
@if $show-blocks == true {
background: rgba(0,0,0,0.2);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment