Skip to content

Instantly share code, notes, and snippets.

@kReEsTaL
Created October 15, 2013 19:09
Show Gist options
  • Save kReEsTaL/6997020 to your computer and use it in GitHub Desktop.
Save kReEsTaL/6997020 to your computer and use it in GitHub Desktop.
Compass mixin that lets you specify a background-size in em.
/** @subsection My Background Size Mixin */
/** Pouvoir passer une taille en paramètre en fonction d'un font-size donné */
@mixin my-background-size($width: $margin, $height: $margin, $font-size: $base-font-size)
{
@include background-size( em($width,$font-size) em($height,$font-size) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment