Skip to content

Instantly share code, notes, and snippets.

View emilchristensen's full-sized avatar

Emil Rømer Christensen emilchristensen

View GitHub Profile

Keybase proof

I hereby claim:

  • I am emilchristensen on github.
  • I am emilchristensen (https://keybase.io/emilchristensen) on keybase.
  • I have a public key ASDos__nEoGKF7jSEUNrPbISSMUyZivkZoRNMTV_U9ZG2go

To claim this, I am signing this object:

@emilchristensen
emilchristensen / buttons.scss
Created June 7, 2012 09:19
Button generator
/* Colored buttons button states */
@mixin button($offset) {
& { background-position: 0 -#{$offset}px; }
&:after { background-position: -480px -#{$offset}px; }
&>.after { background-position: -480px -#{$offset}px; }
&:hover { background-position: -500px -#{$offset}px; }
&:hover:after { background-position: -980px -#{$offset}px; }
&:hover>.after { background-position: -980px -#{$offset}px; }