Skip to content

Instantly share code, notes, and snippets.

@jameswragg
Last active August 29, 2015 14:15
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 jameswragg/c78b89c7987a4c5fead2 to your computer and use it in GitHub Desktop.
Save jameswragg/c78b89c7987a4c5fead2 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// ----
// Example SCSS file
$primaryColor: #eeffcc;
$container-width: 100%;
// consume variables
.container {
color: $primaryColor;
width: $container-width;
}
// maths
.one-quarter {
width: $container-width / 4;
}
// nesting
.nav {
margin: 0;
.item {
display: inline-block;
}
.link {
color: complement($primaryColor);
}
}
.container {
color: #eeffcc;
width: 100%;
}
.one-quarter {
width: 25%;
}
.nav {
margin: 0;
}
.nav .item {
display: inline-block;
}
.nav .link {
color: #ddccff;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment