Created
November 3, 2012 12:13
-
-
Save anonymous/4007219 to your computer and use it in GitHub Desktop.
Conditionally shades block level elements
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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