Created
April 29, 2014 12:54
-
-
Save tareiking/11399444 to your computer and use it in GitHub Desktop.
SASS Maps
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
// The idea here is that you can define all your variables into a single $properties value and refer to them | |
// throughout the SASS project files. | |
// Potential usecase: Defining common values and Foundation 5 overrides | |
$properties: ( | |
background: red, | |
color: blue, | |
font-size: 1em, | |
font-family: (Helvetica, arial, sans-serif) | |
); | |
.foo { | |
color: map-get($properties, color); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment