Skip to content

Instantly share code, notes, and snippets.

@iso100
iso100 / block-x-ray.scss
Created Nov 4, 2012 — forked from anonymous/block-x-ray.scss
Conditionally shades block level elements (Compass)
View block-x-ray.scss
$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);
}
}