Skip to content

Instantly share code, notes, and snippets.

@scottkellum
Created June 27, 2013 15:30
Show Gist options
  • Save scottkellum/5877445 to your computer and use it in GitHub Desktop.
Save scottkellum/5877445 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com, the Sass playground.
// ---
// Sass (v3.2.9)
// ---
@mixin background-position($width) {
width: $width;
background-position: ($width - 20px) center;
}
#foo {
@include background-position(100px);
}
#foo.bar {
@include background-position(50px);
}
#foo {
width: 100px;
background-position: 80px center;
}
#foo.bar {
width: 50px;
background-position: 30px center;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment