Skip to content

Instantly share code, notes, and snippets.

@iso100
Created November 4, 2012 20:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iso100/4013659 to your computer and use it in GitHub Desktop.
Save iso100/4013659 to your computer and use it in GitHub Desktop.
Conditionally shades block level elements (No Compass)
$show-blocks: true; // Show Block Shading
// Shades all block level elements if show-blocks is true
@if $show-blocks == true {
address, article, aside, blockquote,
center, dd, details, dir, div, dl,
dt, fieldset, figcaption, figure,
footer, form, frameset, h1, h2, h3,
h4, h5, h6, header, hgroup, hr,
isindex, menu, nav, noframes,
noscript, ol, p, pre, section,
summary, ul{
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