Skip to content

Instantly share code, notes, and snippets.

@creaux
Created October 11, 2013 13:16
Show Gist options
  • Save creaux/6934482 to your computer and use it in GitHub Desktop.
Save creaux/6934482 to your computer and use it in GitHub Desktop.
LESS CSS scale model mixin
//
// Dummy represent scale model of specificaly sized image
// Mixin is base on popular http://placehold.it/ solution
// arguments: width, height
// data: int, int
//
.dummy(@width, @height) {
background: url("http://placehold.it/@{width}x@{height}");
width: @width*1px;
height: @height*1px;
display: block;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment