Skip to content

Instantly share code, notes, and snippets.

@iso100
Forked from anonymous/block-x-ray.scss
Created November 4, 2012 15:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iso100/4012229 to your computer and use it in GitHub Desktop.
Save iso100/4012229 to your computer and use it in GitHub Desktop.
Conditionally shades block level elements (Compass)
$show-blocks: true; // Show Block Shading
// Shades all block level elements if show-blocks is true
// Requires Compass
@if $show-blocks == true {
#{elements-of-type(block)}{
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