Created
October 11, 2013 13:16
-
-
Save creaux/6934482 to your computer and use it in GitHub Desktop.
LESS CSS scale model mixin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// 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