Skip to content

Instantly share code, notes, and snippets.

@halan
Created March 14, 2014 20:12
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 halan/9555841 to your computer and use it in GitHub Desktop.
Save halan/9555841 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<h1>Foo</h1>
<h2>bar</h2>
<h3>foobar</h3>
<div>
<h1>Foo</h1>
<h2>bar</h2>
<h3>foobar</h3>
</div>
// ----
// Sass (v3.3.2)
// Compass (v1.0.0.alpha.18)
// ----
$colors: (h1: red, h2: green);
h1{color: map-get($colors, h1);}
h2{color: map-get($colors, h2);}
$colors: map-merge($colors, (h3: blue));
h3{color: map-get($colors, h3);}
$cool-theme: (h1: pink);
$theme: $cool-theme;
div h1{color: map-get($theme, h1);}
h1 {
color: red;
}
h2 {
color: green;
}
h3 {
color: blue;
}
div h1 {
color: pink;
}
<h1>Foo</h1>
<h2>bar</h2>
<h3>foobar</h3>
<div>
<h1>Foo</h1>
<h2>bar</h2>
<h3>foobar</h3>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment