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