Created
February 18, 2011 19:12
-
-
Save stevenharman/834221 to your computer and use it in GitHub Desktop.
Using variables w/in a namespace
This file contains 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
#forms { | |
@input: #454545; | |
@input_border: #CCCCCC; | |
} | |
/* then, somewhere later try to use that */ | |
fieldset { | |
input { | |
color: #forms > @input; /* maybe #forms[@input] is a better syntax? | |
border: 1px solid #forms > @input_border; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment